Etapas são as colunas do quadro. Cada etapa pertence a uma pipeline e tem uma position que
define sua ordem. Todas as rotas desta página exigem a permissão pipeline.manage.
Para criar ou reordenar várias etapas de uma vez, prefira
Configurar pipeline — é uma
operação transacional que salva a lista completa.
O objeto Etapa
string
UUID da etapa
string
Nome exibido no topo da coluna
string
Cor no formato de token "H S% L%" (tripla HSL sem o invólucro hsl())
string
won, lost ou ausente para uma etapa comum
integer
Ordem da coluna no quadro (base 0)
Criar etapa
POST/backend/pipelines/{id}/stages
Adiciona uma etapa comum ao fim da pipeline. Não é possível criar etapas won ou lost —
elas já existem desde a criação da pipeline.
Request Body
string
obrigatório
Nome da etapa
string
Cor no formato "H S% L%". Quando omitida, usa o cinza padrão "215 16% 47%".
Etapa que receberá os negócios da etapa excluída. Obrigatório quando a etapa ainda contém
negócios.
Excluir uma etapa que ainda tem negócios semtarget_stage_id retorna 409. Os
negócios nunca são apagados junto com a etapa — a API obriga a escolher um destino.
O destino precisa pertencer à mesma pipeline e não pode ser a própria etapa sendo excluída —
ambos os casos retornam 400.
As etapas de Ganho (kind: "won") e Perdido (kind: "lost") não podem ser
excluídas (400), porque não existe rota que as recrie. A pipeline também precisa manter
pelo menos uma etapa.
{ "code": "ERR_CONFLICT", "message": "A etapa \"Proposta enviada\" tem 12 negócio(s). Escolha para qual etapa eles devem ir."}
{ "code": "ERR_INVALID_INPUT", "message": "A etapa de ganho e a de perda não podem ser excluídas — a pipeline precisa delas para marcar negócios como ganhos ou perdidos"}
Fluxo recomendado na interface: tente o DELETE sem target_stage_id; se vier 409,
pergunte ao usuário para onde mover os negócios e repita com o parâmetro.
{"docsConfig":{"theme":"mint","$schema":"https://mintlify.com/docs.json","name":"Leavo API","colors":{"primary":"#F04438","light":"#F97066","dark":"#D92D20"},"logo":{"light":"https://mintcdn.com/startu/VNyk8IXRGxQ4KIo2/images/logo-light.svg?fit=max\u0026auto=format\u0026n=VNyk8IXRGxQ4KIo2\u0026q=85\u0026s=62b8319eb2601ff006226e7ad73f7a77","dark":"https://mintcdn.com/startu/VNyk8IXRGxQ4KIo2/images/logo-dark.svg?fit=max\u0026auto=format\u0026n=VNyk8IXRGxQ4KIo2\u0026q=85\u0026s=caa35e22e8ae37bfd48540d9ba44bb4d"},"favicon":"https://mintcdn.com/startu/VNyk8IXRGxQ4KIo2/favicon.svg?fit=max\u0026auto=format\u0026n=VNyk8IXRGxQ4KIo2\u0026q=85\u0026s=29e7b17ad02c21e10b701205c0017513","api":{},"navbar":{"links":[{"href":"mailto:suporte@leavo.ai","label":"Suporte"}],"primary":{"type":"button","label":"Dashboard","href":"https://app.leavo.ai"}},"footer":{"socials":{"linkedin":"https://www.linkedin.com/company/leavoai"}},"search":{"prompt":"Buscar na documentação..."},"styling":{"latex":false},"navigation":{"global":{"anchors":[{"anchor":"API Status","icon":"signal","href":"https://status.leavo.ai"},{"anchor":"Suporte","icon":"envelope","href":"mailto:suporte@leavo.ai"}]},"languages":[{"language":"pt-BR","href":"pt-BR"},{"language":"en","href":"en"}]}},"deployment":{"deploymentMetadataValue":{"subdomain":"startu","hasAudioNarration":false,"actualSubdomain":"startu","customDomains":["docs.leavo.ai"],"gitSource":{"type":"github","owner":"prosppect","repo":"docs","deployBranch":"master","contentDirectory":"","isPrivate":true,"mountPath":"","label":"","_id":"6b10c9dd9ffae5051c408773"},"entitlements":{},"buildId":"6ae943a3b477dfa5519fdf92:success","clientVersion":"0.0.4436","searchFilterCounts":[{"language":"en","tag":"API Reference","count":53},{"language":"pt-BR","tag":"Referência da API","count":53},{"language":"en","tag":"Documentation","count":8},{"language":"pt-BR","tag":"Documentação","count":8},{"language":"en","tag":"Knowledge Base","count":6},{"language":"en","tag":"Leads","count":6},{"language":"en","tag":"Pipeline (CRM)","count":6},{"language":"pt-BR","tag":"Base de Conhecimento","count":6},{"language":"pt-BR","tag":"Leads","count":6},{"language":"pt-BR","tag":"Pipeline (CRM)","count":6},{"language":"en","tag":"Core Concepts","count":4},{"language":"en","tag":"Status","count":4},{"language":"en","tag":"Tags","count":4},{"language":"en","tag":"Webhooks","count":4},{"language":"pt-BR","tag":"Conceitos","count":4},{"language":"pt-BR","tag":"Status","count":4},{"language":"pt-BR","tag":"Tags","count":4},{"language":"pt-BR","tag":"Webhooks","count":4},{"language":"en","tag":"Cadences","count":3},{"language":"pt-BR","tag":"Cadências","count":3}]},"assistantConfig":{"enableAskAiButton":false,"enableStarterQuestions":false,"enableAskAiSearchBar":true},"basePath":"","hasChatPermissions":false,"hasWebMcpPermissions":false,"toggles":[{"name":"kill-isr","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"agent-mintlify-slack","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"agent-integrations-settings","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"rbac-expansion","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"automations-pr-grouping","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"custom-prefix","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"analytics-v7","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"user-flows-analytics","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"no-publish-flow","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"snapshot-serving-live","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"stripTemperatureMiddleware","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"support-platform-pylon-zendesk","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"snapshot-serving","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"instant-rollback","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"granular-notifications-server","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"granular-notifications","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"automations-fable","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"fixed-ai-action-pricing","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"automation-resolve-merge-conflict","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"scoped-publishing","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"mintql","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"page-level-analytics","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"editor-version-history-v2","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"billing-page-v2","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"full-page-search","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"workspace-projects","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"fork-pr-previews","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"revalidation-jwt","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"hobby-abuse-scan","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"dashboard-inbox","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"turbopuffer-dual-write","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"approve-review-flow","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"editor-metadata","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"turbopuffer-serve","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"live-agents","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"starter-pricing","enabled":true,"variant":{"name":"control","enabled":true,"payload":{"type":"string","value":"control"},"feature_enabled":true},"impressionData":false},{"name":"llms-txt-v2","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"auth-vite-origin","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false}],"starterQuestions":[],"googleFontsInlined":false},"customCss":[]}
{"page":{"pagePath":"pt-BR/api-reference/pipeline/stages","slug":"/pt-BR/api-reference/pipeline/stages","pageMetadata":{"title":"Etapas","description":"Colunas do quadro kanban, incluindo Ganho e Perdido","href":"/pt-BR/api-reference/pipeline/stages"},"description":{"compiledSource":"\"use strict\";\nconst {jsx: _jsx} = arguments[0];\nconst {useMDXComponents: _provideComponents} = arguments[0];\nfunction _createMdxContent(props) {\n const _components = {\n p: \"p\",\n ..._provideComponents(),\n ...props.components\n };\n return _jsx(_components.p, {\n children: \"Colunas do quadro kanban, incluindo Ganho e Perdido\"\n });\n}\nfunction MDXContent(props = {}) {\n const {wrapper: MDXLayout} = {\n ..._provideComponents(),\n ...props.components\n };\n return MDXLayout ? _jsx(MDXLayout, {\n ...props,\n children: _jsx(_createMdxContent, {\n ...props\n })\n }) : _createMdxContent(props);\n}\nreturn {\n default: MDXContent\n};\n","frontmatter":{},"scope":{}},"pageType":"default","mdx":{"mdxSource":{"compiledSource":"\"use strict\";const{Fragment:_Fragment,jsx:_jsx,jsxs:_jsxs}=arguments[0];const{useMDXComponents:_provideComponents}=arguments[0];function _createMdxContent(props){const _components={a:`a`,code:`code`,hr:`hr`,p:`p`,strong:`strong`,..._provideComponents(),...props.components},{Card,Heading,Info,Note,ParamField,ResponseField,Tip,Warning}=_components;if(!Card)_missingMdxReference(`Card`,true);if(!Heading)_missingMdxReference(`Heading`,true);if(!Info)_missingMdxReference(`Info`,true);if(!Note)_missingMdxReference(`Note`,true);if(!ParamField)_missingMdxReference(`ParamField`,true);if(!ResponseField)_missingMdxReference(`ResponseField`,true);if(!Tip)_missingMdxReference(`Tip`,true);if(!Warning)_missingMdxReference(`Warning`,true);return _jsxs(_Fragment,{children:[_jsxs(_components.p,{children:[`Etapas são as colunas do quadro. Cada etapa pertence a uma pipeline e tem uma `,_jsx(_components.code,{children:`position`}),` que\ndefine sua ordem. Todas as rotas desta página exigem a permissão `,_jsx(_components.code,{children:`pipeline.manage`}),`.`]}),`\n`,_jsx(Info,{children:_jsxs(_components.p,{children:[`Para criar ou reordenar `,_jsx(_components.strong,{children:`várias etapas de uma vez`}),`, prefira\n`,_jsx(_components.a,{href:`/pt-BR/api-reference/pipeline/pipelines#configurar-pipeline`,children:`Configurar pipeline`}),` — é uma\noperação transacional que salva a lista completa.`]})}),`\n`,_jsx(Heading,{level:`2`,id:`o-objeto-etapa`,children:`O objeto Etapa`}),`\n`,_jsx(ResponseField,{name:`id`,type:`string`,id:`param-id`,children:_jsx(_components.p,{children:`UUID da etapa`})}),`\n`,_jsx(ResponseField,{name:`name`,type:`string`,id:`param-name`,children:_jsx(_components.p,{children:`Nome exibido no topo da coluna`})}),`\n`,_jsx(ResponseField,{name:`color`,type:`string`,id:`param-color`,children:_jsxs(_components.p,{children:[`Cor no formato de token `,_jsx(_components.code,{children:`\"H S% L%\"`}),` (tripla HSL sem o invólucro `,_jsx(_components.code,{children:`hsl()`}),`)`]})}),`\n`,_jsx(ResponseField,{name:`kind`,type:`string`,id:`param-kind`,children:_jsxs(_components.p,{children:[_jsx(_components.code,{children:`won`}),`, `,_jsx(_components.code,{children:`lost`}),` ou ausente para uma etapa comum`]})}),`\n`,_jsx(ResponseField,{name:`position`,type:`integer`,id:`param-position`,children:_jsx(_components.p,{children:`Ordem da coluna no quadro (base 0)`})}),`\n`,_jsx(_components.hr,{}),`\n`,_jsx(Heading,{level:`2`,id:`criar-etapa`,children:`Criar etapa`}),`\n`,_jsx(Card,{children:_jsxs(_components.p,{children:[_jsx(`strong`,{children:`POST`}),` `,_jsx(_components.code,{children:`/backend/pipelines/{id}/stages`})]})}),`\n`,_jsxs(_components.p,{children:[`Adiciona uma etapa comum ao fim da pipeline. Não é possível criar etapas `,_jsx(_components.code,{children:`won`}),` ou `,_jsx(_components.code,{children:`lost`}),` —\nelas já existem desde a criação da pipeline.`]}),`\n`,_jsx(Heading,{level:`3`,id:`request-body`,children:`Request Body`}),`\n`,_jsx(ParamField,{body:`name`,type:`string`,required:true,id:`param-name-1`,children:_jsx(_components.p,{children:`Nome da etapa`})}),`\n`,_jsx(ParamField,{body:`color`,type:`string`,id:`param-color-1`,children:_jsxs(_components.p,{children:[`Cor no formato `,_jsx(_components.code,{children:`\"H S% L%\"`}),`. Quando omitida, usa o cinza padrão `,_jsx(_components.code,{children:`\"215 16% 47%\"`}),`.`]})}),`\n`,`\n`,`\n`,_jsx(_components.hr,{}),`\n`,_jsx(Heading,{level:`2`,id:`atualizar-etapa`,children:`Atualizar etapa`}),`\n`,_jsx(Card,{children:_jsxs(_components.p,{children:[_jsx(`strong`,{children:`PUT`}),` `,_jsx(_components.code,{children:`/backend/pipeline/stages/{id}`})]})}),`\n`,_jsx(_components.p,{children:`Renomeia, recolore ou reposiciona uma etapa. Campos omitidos permanecem inalterados.`}),`\n`,_jsx(Heading,{level:`3`,id:`request-body-2`,children:`Request Body`}),`\n`,_jsx(ParamField,{body:`name`,type:`string`,id:`param-name-2`,children:_jsx(_components.p,{children:`Novo nome`})}),`\n`,_jsx(ParamField,{body:`color`,type:`string`,id:`param-color-2`,children:_jsxs(_components.p,{children:[`Nova cor no formato `,_jsx(_components.code,{children:`\"H S% L%\"`})]})}),`\n`,_jsx(ParamField,{body:`position`,type:`integer`,id:`param-position-1`,children:_jsx(_components.p,{children:`Nova posição no quadro`})}),`\n`,_jsx(Note,{children:_jsxs(_components.p,{children:[`As etapas `,_jsx(_components.code,{children:`won`}),` e `,_jsx(_components.code,{children:`lost`}),` podem ser renomeadas e recoloridas normalmente — o `,_jsx(_components.code,{children:`kind`}),` é que não\nmuda.`]})}),`\n`,`\n`,_jsx(_components.hr,{}),`\n`,_jsx(Heading,{level:`2`,id:`excluir-etapa`,children:`Excluir etapa`}),`\n`,_jsx(Card,{children:_jsxs(_components.p,{children:[_jsx(`strong`,{children:`DELETE`}),` `,_jsx(_components.code,{children:`/backend/pipeline/stages/{id}`})]})}),`\n`,_jsx(Heading,{level:`3`,id:`query-parameters`,children:`Query Parameters`}),`\n`,_jsx(ParamField,{query:`target_stage_id`,type:`string`,id:`param-target-stage-id`,children:_jsxs(_components.p,{children:[`Etapa que receberá os negócios da etapa excluída. `,_jsx(_components.strong,{children:`Obrigatório`}),` quando a etapa ainda contém\nnegócios.`]})}),`\n`,_jsx(Warning,{children:_jsxs(_components.p,{children:[`Excluir uma etapa que ainda tem negócios `,_jsx(_components.strong,{children:`sem`}),` `,_jsx(_components.code,{children:`target_stage_id`}),` retorna `,_jsx(_components.strong,{children:`409`}),`. Os\nnegócios nunca são apagados junto com a etapa — a API obriga a escolher um destino.`]})}),`\n`,_jsxs(_components.p,{children:[`O destino precisa pertencer à mesma pipeline e não pode ser a própria etapa sendo excluída —\nambos os casos retornam `,_jsx(_components.strong,{children:`400`}),`.`]}),`\n`,_jsx(Warning,{children:_jsxs(_components.p,{children:[`As etapas de `,_jsx(_components.strong,{children:`Ganho`}),` (`,_jsx(_components.code,{children:`kind: \"won\"`}),`) e `,_jsx(_components.strong,{children:`Perdido`}),` (`,_jsx(_components.code,{children:`kind: \"lost\"`}),`) `,_jsx(_components.strong,{children:`não podem ser\nexcluídas`}),` (`,_jsx(_components.strong,{children:`400`}),`), porque não existe rota que as recrie. A pipeline também precisa manter\npelo menos uma etapa.`]})}),`\n`,`\n`,`\n`,_jsx(Tip,{children:_jsxs(_components.p,{children:[`Fluxo recomendado na interface: tente o `,_jsx(_components.code,{children:`DELETE`}),` sem `,_jsx(_components.code,{children:`target_stage_id`}),`; se vier `,_jsx(_components.strong,{children:`409`}),`,\npergunte ao usuário para onde mover os negócios e repita com o parâmetro.`]})})]})}function MDXContent(props={}){const{wrapper:MDXLayout}={..._provideComponents(),...props.components};return MDXLayout?_jsx(MDXLayout,{...props,children:_jsx(_createMdxContent,{...props})}):_createMdxContent(props)}return{default:MDXContent};function _missingMdxReference(id,component){throw new Error(`Expected `+(component?`component`:`object`)+\" `\"+id+\"` to be defined: you likely forgot to import, pass, or provide it.\")}","frontmatter":{},"scope":{"config":{},"pageMetadata":{"title":"Etapas","description":"Colunas do quadro kanban, incluindo Ganho e Perdido","href":"/pt-BR/api-reference/pipeline/stages"}}},"mdxSourceWithNoJs":{"compiledSource":"\"use strict\";const{Fragment:_Fragment,jsx:_jsx,jsxs:_jsxs}=arguments[0];const{useMDXComponents:_provideComponents}=arguments[0];function _createMdxContent(props){const _components={a:`a`,code:`code`,hr:`hr`,p:`p`,pre:`pre`,span:`span`,strong:`strong`,..._provideComponents(),...props.components},{Card,CodeBlock,Heading,Info,Note,ParamField,RequestExample,ResponseExample,ResponseField,Tip,Warning}=_components;if(!Card)_missingMdxReference(`Card`,true);if(!CodeBlock)_missingMdxReference(`CodeBlock`,true);if(!Heading)_missingMdxReference(`Heading`,true);if(!Info)_missingMdxReference(`Info`,true);if(!Note)_missingMdxReference(`Note`,true);if(!ParamField)_missingMdxReference(`ParamField`,true);if(!RequestExample)_missingMdxReference(`RequestExample`,true);if(!ResponseExample)_missingMdxReference(`ResponseExample`,true);if(!ResponseField)_missingMdxReference(`ResponseField`,true);if(!Tip)_missingMdxReference(`Tip`,true);if(!Warning)_missingMdxReference(`Warning`,true);return _jsxs(_Fragment,{children:[_jsxs(_components.p,{children:[`Etapas são as colunas do quadro. Cada etapa pertence a uma pipeline e tem uma `,_jsx(_components.code,{children:`position`}),` que\ndefine sua ordem. Todas as rotas desta página exigem a permissão `,_jsx(_components.code,{children:`pipeline.manage`}),`.`]}),`\n`,_jsx(Info,{children:_jsxs(_components.p,{children:[`Para criar ou reordenar `,_jsx(_components.strong,{children:`várias etapas de uma vez`}),`, prefira\n`,_jsx(_components.a,{href:`/pt-BR/api-reference/pipeline/pipelines#configurar-pipeline`,children:`Configurar pipeline`}),` — é uma\noperação transacional que salva a lista completa.`]})}),`\n`,_jsx(Heading,{level:`2`,id:`o-objeto-etapa`,children:`O objeto Etapa`}),`\n`,_jsx(ResponseField,{name:`id`,type:`string`,id:`param-id`,children:_jsx(_components.p,{children:`UUID da etapa`})}),`\n`,_jsx(ResponseField,{name:`name`,type:`string`,id:`param-name`,children:_jsx(_components.p,{children:`Nome exibido no topo da coluna`})}),`\n`,_jsx(ResponseField,{name:`color`,type:`string`,id:`param-color`,children:_jsxs(_components.p,{children:[`Cor no formato de token `,_jsx(_components.code,{children:`\"H S% L%\"`}),` (tripla HSL sem o invólucro `,_jsx(_components.code,{children:`hsl()`}),`)`]})}),`\n`,_jsx(ResponseField,{name:`kind`,type:`string`,id:`param-kind`,children:_jsxs(_components.p,{children:[_jsx(_components.code,{children:`won`}),`, `,_jsx(_components.code,{children:`lost`}),` ou ausente para uma etapa comum`]})}),`\n`,_jsx(ResponseField,{name:`position`,type:`integer`,id:`param-position`,children:_jsx(_components.p,{children:`Ordem da coluna no quadro (base 0)`})}),`\n`,_jsx(_components.hr,{}),`\n`,_jsx(Heading,{level:`2`,id:`criar-etapa`,children:`Criar etapa`}),`\n`,_jsx(Card,{children:_jsxs(_components.p,{children:[_jsx(`strong`,{children:`POST`}),` `,_jsx(_components.code,{children:`/backend/pipelines/{id}/stages`})]})}),`\n`,_jsxs(_components.p,{children:[`Adiciona uma etapa comum ao fim da pipeline. Não é possível criar etapas `,_jsx(_components.code,{children:`won`}),` ou `,_jsx(_components.code,{children:`lost`}),` —\nelas já existem desde a criação da pipeline.`]}),`\n`,_jsx(Heading,{level:`3`,id:`request-body`,children:`Request Body`}),`\n`,_jsx(ParamField,{body:`name`,type:`string`,required:true,id:`param-name-1`,children:_jsx(_components.p,{children:`Nome da etapa`})}),`\n`,_jsx(ParamField,{body:`color`,type:`string`,id:`param-color-1`,children:_jsxs(_components.p,{children:[`Cor no formato `,_jsx(_components.code,{children:`\"H S% L%\"`}),`. Quando omitida, usa o cinza padrão `,_jsx(_components.code,{children:`\"215 16% 47%\"`}),`.`]})}),`\n`,_jsxs(RequestExample,{children:[_jsx(CodeBlock,{filename:`cURL`,numberOfLines:`4`,language:`shellscript`,children:_jsx(_components.pre,{className:`shiki shiki-themes github-light-default dark-plus`,style:{backgroundColor:`#ffffff`,\"--shiki-dark-bg\":`#0B0C0E`,color:`#1f2328`,\"--shiki-dark\":`#D4D4D4`},language:`shellscript`,children:_jsxs(_components.code,{language:`shellscript`,numberOfLines:`4`,children:[_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#953800`,\"--shiki-dark\":`#DCDCAA`},children:`curl`}),_jsx(_components.span,{style:{color:`#0550AE`,\"--shiki-dark\":`#569CD6`},children:` -X`}),_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:` POST`}),_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:` \"https://api.leavo.ai/backend/pipelines/bb0e8400-e29b-41d4-a716-446655440000/stages\"`}),_jsx(_components.span,{style:{color:`#CF222E`,\"--shiki-dark\":`#D7BA7D`},children:` \\\\`})]}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#0550AE`,\"--shiki-dark\":`#569CD6`},children:` -H`}),_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:` \"Authorization: Bearer sua_chave_aqui\"`}),_jsx(_components.span,{style:{color:`#CF222E`,\"--shiki-dark\":`#D7BA7D`},children:` \\\\`})]}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#0550AE`,\"--shiki-dark\":`#569CD6`},children:` -H`}),_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:` \"Content-Type: application/json\"`}),_jsx(_components.span,{style:{color:`#CF222E`,\"--shiki-dark\":`#D7BA7D`},children:` \\\\`})]}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#0550AE`,\"--shiki-dark\":`#569CD6`},children:` -d`}),_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:` '{ \"name\": \"Proposta enviada\", \"color\": \"271 81% 56%\" }'`})]}),`\n`]})})}),_jsx(CodeBlock,{filename:`JavaScript`,numberOfLines:`11`,language:`javascript`,children:_jsx(_components.pre,{className:`shiki shiki-themes github-light-default dark-plus`,style:{backgroundColor:`#ffffff`,\"--shiki-dark-bg\":`#0B0C0E`,color:`#1f2328`,\"--shiki-dark\":`#D4D4D4`},language:`javascript`,children:_jsxs(_components.code,{language:`javascript`,numberOfLines:`11`,children:[_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#CF222E`,\"--shiki-dark\":`#569CD6`},children:`const`}),_jsx(_components.span,{style:{color:`#0550AE`,\"--shiki-dark\":`#4FC1FF`},children:` response`}),_jsx(_components.span,{style:{color:`#CF222E`,\"--shiki-dark\":`#D4D4D4`},children:` =`}),_jsx(_components.span,{style:{color:`#CF222E`,\"--shiki-dark\":`#C586C0`},children:` await`}),_jsx(_components.span,{style:{color:`#8250DF`,\"--shiki-dark\":`#DCDCAA`},children:` fetch`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`(`})]}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:` 'https://api.leavo.ai/backend/pipelines/bb0e8400-e29b-41d4-a716-446655440000/stages'`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`,`})]}),`\n`,_jsx(_components.span,{className:`line`,children:_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:` {`})}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#9CDCFE`},children:` method:`}),_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:` 'POST'`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`,`})]}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#9CDCFE`},children:` headers:`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:` {`})]}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:` 'Authorization'`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#9CDCFE`},children:`:`}),_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:` 'Bearer sua_chave_aqui'`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`,`})]}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:` 'Content-Type'`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#9CDCFE`},children:`:`}),_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:` 'application/json'`})]}),`\n`,_jsx(_components.span,{className:`line`,children:_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:` },`})}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#9CDCFE`},children:` body:`}),_jsx(_components.span,{style:{color:`#0550AE`,\"--shiki-dark\":`#4FC1FF`},children:` JSON`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`.`}),_jsx(_components.span,{style:{color:`#8250DF`,\"--shiki-dark\":`#DCDCAA`},children:`stringify`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`({ `}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#9CDCFE`},children:`name:`}),_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:` 'Proposta enviada'`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`, `}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#9CDCFE`},children:`color:`}),_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:` '271 81% 56%'`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:` })`})]}),`\n`,_jsx(_components.span,{className:`line`,children:_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:` }`})}),`\n`,_jsx(_components.span,{className:`line`,children:_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`);`})}),`\n`]})})})]}),`\n`,_jsx(ResponseExample,{children:_jsx(CodeBlock,{filename:`201 Created`,numberOfLines:`6`,language:`json`,children:_jsx(_components.pre,{className:`shiki shiki-themes github-light-default dark-plus`,style:{backgroundColor:`#ffffff`,\"--shiki-dark-bg\":`#0B0C0E`,color:`#1f2328`,\"--shiki-dark\":`#D4D4D4`},language:`json`,children:_jsxs(_components.code,{language:`json`,numberOfLines:`6`,children:[_jsx(_components.span,{className:`line`,children:_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`{`})}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#116329`,\"--shiki-dark\":`#9CDCFE`},children:` \"id\"`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`: `}),_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:`\"cc4e8400-e29b-41d4-a716-446655440000\"`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`,`})]}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#116329`,\"--shiki-dark\":`#9CDCFE`},children:` \"name\"`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`: `}),_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:`\"Proposta enviada\"`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`,`})]}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#116329`,\"--shiki-dark\":`#9CDCFE`},children:` \"color\"`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`: `}),_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:`\"271 81% 56%\"`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`,`})]}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#116329`,\"--shiki-dark\":`#9CDCFE`},children:` \"position\"`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`: `}),_jsx(_components.span,{style:{color:`#0550AE`,\"--shiki-dark\":`#B5CEA8`},children:`4`})]}),`\n`,_jsx(_components.span,{className:`line`,children:_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`}`})}),`\n`]})})})}),`\n`,_jsx(_components.hr,{}),`\n`,_jsx(Heading,{level:`2`,id:`atualizar-etapa`,children:`Atualizar etapa`}),`\n`,_jsx(Card,{children:_jsxs(_components.p,{children:[_jsx(`strong`,{children:`PUT`}),` `,_jsx(_components.code,{children:`/backend/pipeline/stages/{id}`})]})}),`\n`,_jsx(_components.p,{children:`Renomeia, recolore ou reposiciona uma etapa. Campos omitidos permanecem inalterados.`}),`\n`,_jsx(Heading,{level:`3`,id:`request-body-2`,children:`Request Body`}),`\n`,_jsx(ParamField,{body:`name`,type:`string`,id:`param-name-2`,children:_jsx(_components.p,{children:`Novo nome`})}),`\n`,_jsx(ParamField,{body:`color`,type:`string`,id:`param-color-2`,children:_jsxs(_components.p,{children:[`Nova cor no formato `,_jsx(_components.code,{children:`\"H S% L%\"`})]})}),`\n`,_jsx(ParamField,{body:`position`,type:`integer`,id:`param-position-1`,children:_jsx(_components.p,{children:`Nova posição no quadro`})}),`\n`,_jsx(Note,{children:_jsxs(_components.p,{children:[`As etapas `,_jsx(_components.code,{children:`won`}),` e `,_jsx(_components.code,{children:`lost`}),` podem ser renomeadas e recoloridas normalmente — o `,_jsx(_components.code,{children:`kind`}),` é que não\nmuda.`]})}),`\n`,_jsx(RequestExample,{children:_jsx(CodeBlock,{filename:`cURL`,numberOfLines:`4`,language:`shellscript`,children:_jsx(_components.pre,{className:`shiki shiki-themes github-light-default dark-plus`,style:{backgroundColor:`#ffffff`,\"--shiki-dark-bg\":`#0B0C0E`,color:`#1f2328`,\"--shiki-dark\":`#D4D4D4`},language:`shellscript`,children:_jsxs(_components.code,{language:`shellscript`,numberOfLines:`4`,children:[_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#953800`,\"--shiki-dark\":`#DCDCAA`},children:`curl`}),_jsx(_components.span,{style:{color:`#0550AE`,\"--shiki-dark\":`#569CD6`},children:` -X`}),_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:` PUT`}),_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:` \"https://api.leavo.ai/backend/pipeline/stages/cc4e8400-e29b-41d4-a716-446655440000\"`}),_jsx(_components.span,{style:{color:`#CF222E`,\"--shiki-dark\":`#D7BA7D`},children:` \\\\`})]}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#0550AE`,\"--shiki-dark\":`#569CD6`},children:` -H`}),_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:` \"Authorization: Bearer sua_chave_aqui\"`}),_jsx(_components.span,{style:{color:`#CF222E`,\"--shiki-dark\":`#D7BA7D`},children:` \\\\`})]}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#0550AE`,\"--shiki-dark\":`#569CD6`},children:` -H`}),_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:` \"Content-Type: application/json\"`}),_jsx(_components.span,{style:{color:`#CF222E`,\"--shiki-dark\":`#D7BA7D`},children:` \\\\`})]}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#0550AE`,\"--shiki-dark\":`#569CD6`},children:` -d`}),_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:` '{ \"name\": \"Proposta\", \"position\": 2 }'`})]}),`\n`]})})})}),`\n`,_jsx(_components.hr,{}),`\n`,_jsx(Heading,{level:`2`,id:`excluir-etapa`,children:`Excluir etapa`}),`\n`,_jsx(Card,{children:_jsxs(_components.p,{children:[_jsx(`strong`,{children:`DELETE`}),` `,_jsx(_components.code,{children:`/backend/pipeline/stages/{id}`})]})}),`\n`,_jsx(Heading,{level:`3`,id:`query-parameters`,children:`Query Parameters`}),`\n`,_jsx(ParamField,{query:`target_stage_id`,type:`string`,id:`param-target-stage-id`,children:_jsxs(_components.p,{children:[`Etapa que receberá os negócios da etapa excluída. `,_jsx(_components.strong,{children:`Obrigatório`}),` quando a etapa ainda contém\nnegócios.`]})}),`\n`,_jsx(Warning,{children:_jsxs(_components.p,{children:[`Excluir uma etapa que ainda tem negócios `,_jsx(_components.strong,{children:`sem`}),` `,_jsx(_components.code,{children:`target_stage_id`}),` retorna `,_jsx(_components.strong,{children:`409`}),`. Os\nnegócios nunca são apagados junto com a etapa — a API obriga a escolher um destino.`]})}),`\n`,_jsxs(_components.p,{children:[`O destino precisa pertencer à mesma pipeline e não pode ser a própria etapa sendo excluída —\nambos os casos retornam `,_jsx(_components.strong,{children:`400`}),`.`]}),`\n`,_jsx(Warning,{children:_jsxs(_components.p,{children:[`As etapas de `,_jsx(_components.strong,{children:`Ganho`}),` (`,_jsx(_components.code,{children:`kind: \"won\"`}),`) e `,_jsx(_components.strong,{children:`Perdido`}),` (`,_jsx(_components.code,{children:`kind: \"lost\"`}),`) `,_jsx(_components.strong,{children:`não podem ser\nexcluídas`}),` (`,_jsx(_components.strong,{children:`400`}),`), porque não existe rota que as recrie. A pipeline também precisa manter\npelo menos uma etapa.`]})}),`\n`,_jsx(RequestExample,{children:_jsx(CodeBlock,{filename:`cURL`,numberOfLines:`7`,language:`shellscript`,children:_jsx(_components.pre,{className:`shiki shiki-themes github-light-default dark-plus`,style:{backgroundColor:`#ffffff`,\"--shiki-dark-bg\":`#0B0C0E`,color:`#1f2328`,\"--shiki-dark\":`#D4D4D4`},language:`shellscript`,children:_jsxs(_components.code,{language:`shellscript`,numberOfLines:`7`,children:[_jsx(_components.span,{className:`line`,children:_jsx(_components.span,{style:{color:`#6E7781`,\"--shiki-dark\":`#6A9955`},children:`# Etapa vazia — nenhum destino necessário`})}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#953800`,\"--shiki-dark\":`#DCDCAA`},children:`curl`}),_jsx(_components.span,{style:{color:`#0550AE`,\"--shiki-dark\":`#569CD6`},children:` -X`}),_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:` DELETE`}),_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:` \"https://api.leavo.ai/backend/pipeline/stages/cc4e8400-e29b-41d4-a716-446655440000\"`}),_jsx(_components.span,{style:{color:`#CF222E`,\"--shiki-dark\":`#D7BA7D`},children:` \\\\`})]}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#0550AE`,\"--shiki-dark\":`#569CD6`},children:` -H`}),_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:` \"Authorization: Bearer sua_chave_aqui\"`})]}),`\n`,_jsx(_components.span,{className:`line`}),`\n`,_jsx(_components.span,{className:`line`,children:_jsx(_components.span,{style:{color:`#6E7781`,\"--shiki-dark\":`#6A9955`},children:`# Etapa com negócios — destino obrigatório`})}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#953800`,\"--shiki-dark\":`#DCDCAA`},children:`curl`}),_jsx(_components.span,{style:{color:`#0550AE`,\"--shiki-dark\":`#569CD6`},children:` -X`}),_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:` DELETE`}),_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:` \"https://api.leavo.ai/backend/pipeline/stages/cc4e8400-e29b-41d4-a716-446655440000?target_stage_id=cc0e8400-e29b-41d4-a716-446655440000\"`}),_jsx(_components.span,{style:{color:`#CF222E`,\"--shiki-dark\":`#D7BA7D`},children:` \\\\`})]}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#0550AE`,\"--shiki-dark\":`#569CD6`},children:` -H`}),_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:` \"Authorization: Bearer sua_chave_aqui\"`})]}),`\n`]})})})}),`\n`,_jsxs(ResponseExample,{children:[_jsx(CodeBlock,{filename:`200 OK`,numberOfLines:`1`,language:`json`,children:_jsx(_components.pre,{className:`shiki shiki-themes github-light-default dark-plus`,style:{backgroundColor:`#ffffff`,\"--shiki-dark-bg\":`#0B0C0E`,color:`#1f2328`,\"--shiki-dark\":`#D4D4D4`},language:`json`,children:_jsxs(_components.code,{language:`json`,numberOfLines:`1`,children:[_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`{ `}),_jsx(_components.span,{style:{color:`#116329`,\"--shiki-dark\":`#9CDCFE`},children:`\"success\"`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`: `}),_jsx(_components.span,{style:{color:`#0550AE`,\"--shiki-dark\":`#569CD6`},children:`true`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:` }`})]}),`\n`]})})}),_jsx(CodeBlock,{filename:`409 Conflict`,numberOfLines:`4`,language:`json`,children:_jsx(_components.pre,{className:`shiki shiki-themes github-light-default dark-plus`,style:{backgroundColor:`#ffffff`,\"--shiki-dark-bg\":`#0B0C0E`,color:`#1f2328`,\"--shiki-dark\":`#D4D4D4`},language:`json`,children:_jsxs(_components.code,{language:`json`,numberOfLines:`4`,children:[_jsx(_components.span,{className:`line`,children:_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`{`})}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#116329`,\"--shiki-dark\":`#9CDCFE`},children:` \"code\"`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`: `}),_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:`\"ERR_CONFLICT\"`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`,`})]}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#116329`,\"--shiki-dark\":`#9CDCFE`},children:` \"message\"`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`: `}),_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:`\"A etapa `}),_jsx(_components.span,{style:{color:`#CF222E`,\"--shiki-dark\":`#D7BA7D`},children:`\\\\\"`}),_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:`Proposta enviada`}),_jsx(_components.span,{style:{color:`#CF222E`,\"--shiki-dark\":`#D7BA7D`},children:`\\\\\"`}),_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:` tem 12 negócio(s). Escolha para qual etapa eles devem ir.\"`})]}),`\n`,_jsx(_components.span,{className:`line`,children:_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`}`})}),`\n`]})})}),_jsx(CodeBlock,{filename:`400 Bad Request`,numberOfLines:`4`,language:`json`,children:_jsx(_components.pre,{className:`shiki shiki-themes github-light-default dark-plus`,style:{backgroundColor:`#ffffff`,\"--shiki-dark-bg\":`#0B0C0E`,color:`#1f2328`,\"--shiki-dark\":`#D4D4D4`},language:`json`,children:_jsxs(_components.code,{language:`json`,numberOfLines:`4`,children:[_jsx(_components.span,{className:`line`,children:_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`{`})}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#116329`,\"--shiki-dark\":`#9CDCFE`},children:` \"code\"`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`: `}),_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:`\"ERR_INVALID_INPUT\"`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`,`})]}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#116329`,\"--shiki-dark\":`#9CDCFE`},children:` \"message\"`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`: `}),_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:`\"A etapa de ganho e a de perda não podem ser excluídas — a pipeline precisa delas para marcar negócios como ganhos ou perdidos\"`})]}),`\n`,_jsx(_components.span,{className:`line`,children:_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`}`})}),`\n`]})})})]}),`\n`,_jsx(Tip,{children:_jsxs(_components.p,{children:[`Fluxo recomendado na interface: tente o `,_jsx(_components.code,{children:`DELETE`}),` sem `,_jsx(_components.code,{children:`target_stage_id`}),`; se vier `,_jsx(_components.strong,{children:`409`}),`,\npergunte ao usuário para onde mover os negócios e repita com o parâmetro.`]})})]})}function MDXContent(props={}){const{wrapper:MDXLayout}={..._provideComponents(),...props.components};return MDXLayout?_jsx(MDXLayout,{...props,children:_jsx(_createMdxContent,{...props})}):_createMdxContent(props)}return{default:MDXContent};function _missingMdxReference(id,component){throw new Error(`Expected `+(component?`component`:`object`)+\" `\"+id+\"` to be defined: you likely forgot to import, pass, or provide it.\")}","frontmatter":{},"scope":{"config":{},"pageMetadata":{"title":"Etapas","description":"Colunas do quadro kanban, incluindo Ganho e Perdido","href":"/pt-BR/api-reference/pipeline/stages"}}}},"mdxExtracts":{"tableOfContents":[{"title":"O objeto Etapa","slug":"o-objeto-etapa","depth":2,"children":[]},{"title":"Criar etapa","slug":"criar-etapa","depth":2,"children":[{"title":"Request Body","slug":"request-body","depth":3,"children":[]}]},{"title":"Atualizar etapa","slug":"atualizar-etapa","depth":2,"children":[{"title":"Request Body","slug":"request-body-2","depth":3,"children":[]}]},{"title":"Excluir etapa","slug":"excluir-etapa","depth":2,"children":[{"title":"Query Parameters","slug":"query-parameters","depth":3,"children":[]}]}],"codeExamples":{"request":{"type":"RequestExample","children":[{"filename":"cURL","html":"\u003cpre class=\"shiki shiki-themes github-light-default dark-plus\" style=\"background-color:#ffffff;--shiki-dark-bg:#0B0C0E;color:#1f2328;--shiki-dark:#D4D4D4\" language=\"shellscript\">\u003ccode language=\"shellscript\" numberOfLines=\"4\">\u003cspan class=\"line\">\u003cspan style=\"color:#953800;--shiki-dark:#DCDCAA\">curl\u003c/span>\u003cspan style=\"color:#0550AE;--shiki-dark:#569CD6\"> -X\u003c/span>\u003cspan style=\"color:#0A3069;--shiki-dark:#CE9178\"> POST\u003c/span>\u003cspan style=\"color:#0A3069;--shiki-dark:#CE9178\"> \"https://api.leavo.ai/backend/pipelines/bb0e8400-e29b-41d4-a716-446655440000/stages\"\u003c/span>\u003cspan style=\"color:#CF222E;--shiki-dark:#D7BA7D\"> \\\u003c/span>\u003c/span>\n\u003cspan class=\"line\">\u003cspan style=\"color:#0550AE;--shiki-dark:#569CD6\"> -H\u003c/span>\u003cspan style=\"color:#0A3069;--shiki-dark:#CE9178\"> \"Authorization: Bearer sua_chave_aqui\"\u003c/span>\u003cspan style=\"color:#CF222E;--shiki-dark:#D7BA7D\"> \\\u003c/span>\u003c/span>\n\u003cspan class=\"line\">\u003cspan style=\"color:#0550AE;--shiki-dark:#569CD6\"> -H\u003c/span>\u003cspan style=\"color:#0A3069;--shiki-dark:#CE9178\"> \"Content-Type: application/json\"\u003c/span>\u003cspan style=\"color:#CF222E;--shiki-dark:#D7BA7D\"> \\\u003c/span>\u003c/span>\n\u003cspan class=\"line\">\u003cspan style=\"color:#0550AE;--shiki-dark:#569CD6\"> -d\u003c/span>\u003cspan style=\"color:#0A3069;--shiki-dark:#CE9178\"> '{ \"name\": \"Proposta enviada\", \"color\": \"271 81% 56%\" }'\u003c/span>\u003c/span>\n\u003c/code>\u003c/pre>"},{"filename":"JavaScript","html":"\u003cpre class=\"shiki shiki-themes github-light-default dark-plus\" style=\"background-color:#ffffff;--shiki-dark-bg:#0B0C0E;color:#1f2328;--shiki-dark:#D4D4D4\" language=\"javascript\">\u003ccode language=\"javascript\" numberOfLines=\"11\">\u003cspan class=\"line\">\u003cspan style=\"color:#CF222E;--shiki-dark:#569CD6\">const\u003c/span>\u003cspan style=\"color:#0550AE;--shiki-dark:#4FC1FF\"> response\u003c/span>\u003cspan style=\"color:#CF222E;--shiki-dark:#D4D4D4\"> =\u003c/span>\u003cspan style=\"color:#CF222E;--shiki-dark:#C586C0\"> await\u003c/span>\u003cspan style=\"color:#8250DF;--shiki-dark:#DCDCAA\"> fetch\u003c/span>\u003cspan style=\"color:#1F2328;--shiki-dark:#D4D4D4\">(\u003c/span>\u003c/span>\n\u003cspan class=\"line\">\u003cspan style=\"color:#0A3069;--shiki-dark:#CE9178\"> 'https://api.leavo.ai/backend/pipelines/bb0e8400-e29b-41d4-a716-446655440000/stages'\u003c/span>\u003cspan style=\"color:#1F2328;--shiki-dark:#D4D4D4\">,\u003c/span>\u003c/span>\n\u003cspan class=\"line\">\u003cspan style=\"color:#1F2328;--shiki-dark:#D4D4D4\"> {\u003c/span>\u003c/span>\n\u003cspan class=\"line\">\u003cspan style=\"color:#1F2328;--shiki-dark:#9CDCFE\"> method:\u003c/span>\u003cspan style=\"color:#0A3069;--shiki-dark:#CE9178\"> 'POST'\u003c/span>\u003cspan style=\"color:#1F2328;--shiki-dark:#D4D4D4\">,\u003c/span>\u003c/span>\n\u003cspan class=\"line\">\u003cspan style=\"color:#1F2328;--shiki-dark:#9CDCFE\"> headers:\u003c/span>\u003cspan style=\"color:#1F2328;--shiki-dark:#D4D4D4\"> {\u003c/span>\u003c/span>\n\u003cspan class=\"line\">\u003cspan style=\"color:#0A3069;--shiki-dark:#CE9178\"> 'Authorization'\u003c/span>\u003cspan style=\"color:#1F2328;--shiki-dark:#9CDCFE\">:\u003c/span>\u003cspan style=\"color:#0A3069;--shiki-dark:#CE9178\"> 'Bearer sua_chave_aqui'\u003c/span>\u003cspan style=\"color:#1F2328;--shiki-dark:#D4D4D4\">,\u003c/span>\u003c/span>\n\u003cspan class=\"line\">\u003cspan style=\"color:#0A3069;--shiki-dark:#CE9178\"> 'Content-Type'\u003c/span>\u003cspan style=\"color:#1F2328;--shiki-dark:#9CDCFE\">:\u003c/span>\u003cspan style=\"color:#0A3069;--shiki-dark:#CE9178\"> 'application/json'\u003c/span>\u003c/span>\n\u003cspan class=\"line\">\u003cspan style=\"color:#1F2328;--shiki-dark:#D4D4D4\"> },\u003c/span>\u003c/span>\n\u003cspan class=\"line\">\u003cspan style=\"color:#1F2328;--shiki-dark:#9CDCFE\"> body:\u003c/span>\u003cspan style=\"color:#0550AE;--shiki-dark:#4FC1FF\"> JSON\u003c/span>\u003cspan style=\"color:#1F2328;--shiki-dark:#D4D4D4\">.\u003c/span>\u003cspan style=\"color:#8250DF;--shiki-dark:#DCDCAA\">stringify\u003c/span>\u003cspan style=\"color:#1F2328;--shiki-dark:#D4D4D4\">({ \u003c/span>\u003cspan style=\"color:#1F2328;--shiki-dark:#9CDCFE\">name:\u003c/span>\u003cspan style=\"color:#0A3069;--shiki-dark:#CE9178\"> 'Proposta enviada'\u003c/span>\u003cspan style=\"color:#1F2328;--shiki-dark:#D4D4D4\">, \u003c/span>\u003cspan style=\"color:#1F2328;--shiki-dark:#9CDCFE\">color:\u003c/span>\u003cspan style=\"color:#0A3069;--shiki-dark:#CE9178\"> '271 81% 56%'\u003c/span>\u003cspan style=\"color:#1F2328;--shiki-dark:#D4D4D4\"> })\u003c/span>\u003c/span>\n\u003cspan class=\"line\">\u003cspan style=\"color:#1F2328;--shiki-dark:#D4D4D4\"> }\u003c/span>\u003c/span>\n\u003cspan class=\"line\">\u003cspan style=\"color:#1F2328;--shiki-dark:#D4D4D4\">);\u003c/span>\u003c/span>\n\u003c/code>\u003c/pre>"}],"attributes":[]},"response":{"type":"ResponseExample","children":[{"filename":"201 Created","html":"\u003cpre class=\"shiki shiki-themes github-light-default dark-plus\" style=\"background-color:#ffffff;--shiki-dark-bg:#0B0C0E;color:#1f2328;--shiki-dark:#D4D4D4\" language=\"json\">\u003ccode language=\"json\" numberOfLines=\"6\">\u003cspan class=\"line\">\u003cspan style=\"color:#1F2328;--shiki-dark:#D4D4D4\">{\u003c/span>\u003c/span>\n\u003cspan class=\"line\">\u003cspan style=\"color:#116329;--shiki-dark:#9CDCFE\"> \"id\"\u003c/span>\u003cspan style=\"color:#1F2328;--shiki-dark:#D4D4D4\">: \u003c/span>\u003cspan style=\"color:#0A3069;--shiki-dark:#CE9178\">\"cc4e8400-e29b-41d4-a716-446655440000\"\u003c/span>\u003cspan style=\"color:#1F2328;--shiki-dark:#D4D4D4\">,\u003c/span>\u003c/span>\n\u003cspan class=\"line\">\u003cspan style=\"color:#116329;--shiki-dark:#9CDCFE\"> \"name\"\u003c/span>\u003cspan style=\"color:#1F2328;--shiki-dark:#D4D4D4\">: \u003c/span>\u003cspan style=\"color:#0A3069;--shiki-dark:#CE9178\">\"Proposta enviada\"\u003c/span>\u003cspan style=\"color:#1F2328;--shiki-dark:#D4D4D4\">,\u003c/span>\u003c/span>\n\u003cspan class=\"line\">\u003cspan style=\"color:#116329;--shiki-dark:#9CDCFE\"> \"color\"\u003c/span>\u003cspan style=\"color:#1F2328;--shiki-dark:#D4D4D4\">: \u003c/span>\u003cspan style=\"color:#0A3069;--shiki-dark:#CE9178\">\"271 81% 56%\"\u003c/span>\u003cspan style=\"color:#1F2328;--shiki-dark:#D4D4D4\">,\u003c/span>\u003c/span>\n\u003cspan class=\"line\">\u003cspan style=\"color:#116329;--shiki-dark:#9CDCFE\"> \"position\"\u003c/span>\u003cspan style=\"color:#1F2328;--shiki-dark:#D4D4D4\">: \u003c/span>\u003cspan style=\"color:#0550AE;--shiki-dark:#B5CEA8\">4\u003c/span>\u003c/span>\n\u003cspan class=\"line\">\u003cspan style=\"color:#1F2328;--shiki-dark:#D4D4D4\">}\u003c/span>\u003c/span>\n\u003c/code>\u003c/pre>"}],"attributes":[]}}},"jsLinks":[],"subdomain":"startu","siteName":"Leavo API","title":"Etapas - Leavo API","contextualStarterQuestions":[],"navMaps":{"firstHrefInVersion":{},"firstHrefInLanguage":{"pt-BR":{"href":"/pt-BR/api-reference/pipeline/stages","matchLevel":0},"en":{"href":"/en/api-reference/pipeline/stages","matchLevel":1}}},"lastModified":"2026-07-21T15:07:54.142Z","originalFileLocation":"pt-BR/api-reference/pipeline/stages.mdx","locale":"pt-BR"},"headHtml":"\u003cscript data-mint-head>(function(){var d=document.documentElement,p=null;if(!p){try{p=localStorage.getItem(\"isDarkMode\")}catch(e){}if(p==='true')p='dark';else if(p==='false')p='light';if(p!=='light'\u0026\u0026p!=='dark'\u0026\u0026p!=='system')p=\"system\"}var r=p==='system'?(matchMedia(\"(prefers-color-scheme: dark)\").matches?'dark':'light'):p;d.classList.remove(r==='dark'?'light':'dark');d.classList.add(r);d.setAttribute(\"data-theme-preference\",p)})();\u003c/script>\u003cmeta data-mint-head name=\"description\" content=\"Colunas do quadro kanban, incluindo Ganho e Perdido\">\u003cmeta data-mint-head name=\"application-name\" content=\"Leavo API\">\u003cmeta data-mint-head name=\"generator\" content=\"Mintlify\">\u003clink data-mint-head rel=\"icon\" type=\"image/png\" sizes=\"192x192\" href=\"/mintlify-assets/_mintlify/favicons/startu/jWtmnoEKtRZ-Ozkx/_generated/favicon/android-chrome-192x192.png\" media=\"(prefers-color-scheme: light)\">\u003clink data-mint-head rel=\"apple-touch-icon\" type=\"image/png\" sizes=\"180x180\" href=\"/mintlify-assets/_mintlify/favicons/startu/jWtmnoEKtRZ-Ozkx/_generated/favicon/apple-touch-icon.png\">\u003clink data-mint-head rel=\"icon\" type=\"image/png\" sizes=\"16x16\" href=\"/mintlify-assets/_mintlify/favicons/startu/jWtmnoEKtRZ-Ozkx/_generated/favicon/favicon-16x16.png\" media=\"(prefers-color-scheme: light)\">\u003clink data-mint-head rel=\"icon\" type=\"image/png\" sizes=\"32x32\" href=\"/mintlify-assets/_mintlify/favicons/startu/jWtmnoEKtRZ-Ozkx/_generated/favicon/favicon-32x32.png\" media=\"(prefers-color-scheme: light)\">\u003clink data-mint-head rel=\"shortcut icon\" type=\"image/x-icon\" href=\"/mintlify-assets/_mintlify/favicons/startu/jWtmnoEKtRZ-Ozkx/_generated/favicon/favicon.ico\" media=\"(prefers-color-scheme: light)\">\u003clink data-mint-head rel=\"icon\" type=\"image/png\" sizes=\"192x192\" href=\"/mintlify-assets/_mintlify/favicons/startu/jWtmnoEKtRZ-Ozkx/_generated/favicon-dark/android-chrome-192x192.png\" media=\"(prefers-color-scheme: dark)\">\u003clink data-mint-head rel=\"icon\" type=\"image/png\" sizes=\"16x16\" href=\"/mintlify-assets/_mintlify/favicons/startu/jWtmnoEKtRZ-Ozkx/_generated/favicon-dark/favicon-16x16.png\" media=\"(prefers-color-scheme: dark)\">\u003clink data-mint-head rel=\"icon\" type=\"image/png\" sizes=\"32x32\" href=\"/mintlify-assets/_mintlify/favicons/startu/jWtmnoEKtRZ-Ozkx/_generated/favicon-dark/favicon-32x32.png\" media=\"(prefers-color-scheme: dark)\">\u003clink data-mint-head rel=\"shortcut icon\" type=\"image/x-icon\" href=\"/mintlify-assets/_mintlify/favicons/startu/jWtmnoEKtRZ-Ozkx/_generated/favicon-dark/favicon.ico\" media=\"(prefers-color-scheme: dark)\">\u003cmeta data-mint-head property=\"og:title\" content=\"Etapas - Leavo API\">\u003cmeta data-mint-head property=\"og:description\" content=\"Colunas do quadro kanban, incluindo Ganho e Perdido\">\u003cmeta data-mint-head property=\"og:site_name\" content=\"Leavo API\">\u003cmeta data-mint-head property=\"og:url\" content=\"https://docs.leavo.ai/pt-BR/api-reference/pipeline/stages\">\u003cmeta data-mint-head property=\"og:type\" content=\"website\">\u003cmeta data-mint-head property=\"og:image\" content=\"https://startu.mintlify.site/_mintlify/api/og/v2?division=Pipeline+%28CRM%29\u0026amp;title=Etapas\u0026amp;description=Colunas+do+quadro+kanban%2C+incluindo+Ganho+e+Perdido\u0026amp;theme=09489769e86cdea2c87dbabd\u0026amp;signature=f9d3b9ec812fb5dcae4853013719d1ffe5f78b153755012b1f67aa84361e6239\">\u003cmeta data-mint-head property=\"og:image:width\" content=\"1200\">\u003cmeta data-mint-head property=\"og:image:height\" content=\"630\">\u003cmeta data-mint-head name=\"twitter:card\" content=\"summary_large_image\">\u003cmeta data-mint-head name=\"twitter:title\" content=\"Etapas - Leavo API\">\u003cmeta data-mint-head name=\"twitter:description\" content=\"Colunas do quadro kanban, incluindo Ganho e Perdido\">\u003cmeta data-mint-head name=\"twitter:image\" content=\"https://startu.mintlify.site/_mintlify/api/og/v2?division=Pipeline+%28CRM%29\u0026amp;title=Etapas\u0026amp;description=Colunas+do+quadro+kanban%2C+incluindo+Ganho+e+Perdido\u0026amp;theme=09489769e86cdea2c87dbabd\u0026amp;signature=f9d3b9ec812fb5dcae4853013719d1ffe5f78b153755012b1f67aa84361e6239\">\u003cmeta data-mint-head name=\"twitter:image:width\" content=\"1200\">\u003cmeta data-mint-head name=\"twitter:image:height\" content=\"630\">\u003cmeta data-mint-head name=\"msapplication-config\" content=\"/mintlify-assets/_mintlify/favicons/startu/jWtmnoEKtRZ-Ozkx/_generated/favicon/browserconfig.xml\">\u003cmeta data-mint-head name=\"apple-mobile-web-app-title\" content=\"Leavo API\">\u003cmeta data-mint-head name=\"msapplication-TileColor\" content=\"#F04438\">\u003clink data-mint-head rel=\"canonical\" href=\"https://docs.leavo.ai/pt-BR/api-reference/pipeline/stages\">\u003clink data-mint-head rel=\"alternate\" type=\"application/xml\" href=\"/sitemap.xml\">\u003clink data-mint-head rel=\"alternate\" type=\"text/markdown\" href=\"/pt-BR/api-reference/pipeline/stages.md\">\u003clink data-mint-head rel=\"alternate\" hreflang=\"pt-BR\" href=\"https://docs.leavo.ai/pt-BR/api-reference/pipeline/stages\">\u003clink data-mint-head rel=\"alternate\" hreflang=\"en\" href=\"https://docs.leavo.ai/en/api-reference/pipeline/stages\">\u003clink data-mint-head rel=\"alternate\" hreflang=\"x-default\" href=\"https://docs.leavo.ai/pt-BR/api-reference/pipeline/stages\">\u003cscript data-mint-head type=\"application/ld+json\">{\"@context\":\"https://schema.org\",\"@graph\":[{\"@type\":\"Organization\",\"@id\":\"https://docs.leavo.ai/#organization\",\"name\":\"Leavo API\",\"url\":\"https://docs.leavo.ai\",\"logo\":{\"@type\":\"ImageObject\",\"url\":\"https://mintcdn.com/startu/VNyk8IXRGxQ4KIo2/images/logo-light.svg?fit=max\u0026auto=format\u0026n=VNyk8IXRGxQ4KIo2\u0026q=85\u0026s=62b8319eb2601ff006226e7ad73f7a77\"}},{\"@type\":\"WebSite\",\"@id\":\"https://docs.leavo.ai#website\",\"name\":\"Leavo API\",\"url\":\"https://docs.leavo.ai\",\"publisher\":{\"@id\":\"https://docs.leavo.ai/#organization\"}},{\"@type\":\"WebPage\",\"@id\":\"https://docs.leavo.ai/pt-BR/api-reference/pipeline/stages#webpage\",\"url\":\"https://docs.leavo.ai/pt-BR/api-reference/pipeline/stages\",\"name\":\"Etapas\",\"description\":\"Colunas do quadro kanban, incluindo Ganho e Perdido\",\"dateModified\":\"2026-07-21T15:07:54.142Z\",\"isPartOf\":{\"@id\":\"https://docs.leavo.ai#website\"},\"breadcrumb\":{\"@id\":\"https://docs.leavo.ai/pt-BR/api-reference/pipeline/stages#breadcrumb\"}},{\"@type\":\"BreadcrumbList\",\"@id\":\"https://docs.leavo.ai/pt-BR/api-reference/pipeline/stages#breadcrumb\",\"itemListElement\":[{\"@type\":\"ListItem\",\"position\":1,\"name\":\"Pipeline (CRM)\",\"item\":\"https://docs.leavo.ai/pt-BR/api-reference/pipeline/overview\"},{\"@type\":\"ListItem\",\"position\":2,\"name\":\"Etapas\",\"item\":\"https://docs.leavo.ai/pt-BR/api-reference/pipeline/stages\"}]},{\"@type\":[\"Article\",\"TechArticle\"],\"@id\":\"https://docs.leavo.ai/pt-BR/api-reference/pipeline/stages#article\",\"headline\":\"Etapas\",\"name\":\"Etapas\",\"description\":\"Colunas do quadro kanban, incluindo Ganho e Perdido\",\"url\":\"https://docs.leavo.ai/pt-BR/api-reference/pipeline/stages\",\"mainEntityOfPage\":{\"@id\":\"https://docs.leavo.ai/pt-BR/api-reference/pipeline/stages#webpage\"},\"dateModified\":\"2026-07-21T15:07:54.142Z\",\"publisher\":{\"@id\":\"https://docs.leavo.ai/#organization\"},\"isPartOf\":{\"@id\":\"https://docs.leavo.ai#website\"}}]}\u003c/script>\u003cscript data-mint-head type=\"application/ld+json\">{\"@context\":\"https://schema.org\",\"@type\":\"WebSite\",\"name\":\"Leavo API\",\"publisher\":{\"@type\":\"Organization\",\"name\":\"Leavo API\"},\"provider\":{\"@type\":\"Organization\",\"name\":\"Mintlify\",\"url\":\"https://mintlify.com\"}}\u003c/script>","agentPointerHref":"/pt-BR/api-reference/pipeline/stages.md","siteName":"Leavo API","nav":{"global":{"anchors":[{"anchor":"API Status","icon":"signal","href":"https://status.leavo.ai"},{"anchor":"Suporte","icon":"envelope","href":"mailto:suporte@leavo.ai"}]},"languages":[{"language":"pt-BR","tabs":[{"tab":"Documentação","pages":[{"title":"Documentação","href":"/pt-BR"}]},{"tab":"Referência da API","groups":[{"group":"Visão Geral","pages":[{"title":"API Reference","icon":"code","href":"/pt-BR/api-reference/introduction"}]},{"group":"Leads","pages":[{"title":"Listar Leads","api":"GET /backend/leads","href":"/pt-BR/api-reference/leads/list"},{"title":"Criar Lead","api":"POST /backend/leads","href":"/pt-BR/api-reference/leads/create"},{"title":"Atualizar Lead","api":"PUT /backend/leads/{id}","href":"/pt-BR/api-reference/leads/update"},{"title":"Deletar Lead","api":"DELETE /backend/leads/{id}","href":"/pt-BR/api-reference/leads/delete"},{"title":"Tags do Lead","href":"/pt-BR/api-reference/leads/tags"},{"title":"Status do Lead","api":"PUT /backend/leads/{id}/status/{status_id}","href":"/pt-BR/api-reference/leads/status"}]},{"group":"Status","pages":[{"title":"Listar Status","api":"GET /backend/status","href":"/pt-BR/api-reference/status/list"},{"title":"Criar Status","api":"POST /backend/status","href":"/pt-BR/api-reference/status/create"},{"title":"Atualizar Status","api":"PUT /backend/status/{id}","href":"/pt-BR/api-reference/status/update"},{"title":"Deletar Status","api":"DELETE /backend/status/{id}","href":"/pt-BR/api-reference/status/delete"}]},{"group":"Tags","pages":[{"title":"Listar Tags","api":"GET /backend/tags","href":"/pt-BR/api-reference/tags/list"},{"title":"Criar Tag","api":"POST /backend/tags","href":"/pt-BR/api-reference/tags/create"},{"title":"Atualizar Tag","api":"PUT /backend/tags/{id}","href":"/pt-BR/api-reference/tags/update"},{"title":"Deletar Tag","api":"DELETE /backend/tags/{id}","href":"/pt-BR/api-reference/tags/delete"}]},{"group":"Base de Conhecimento","pages":[{"title":"Visão Geral","icon":"book-open","href":"/pt-BR/api-reference/knowledge/overview"},{"title":"Listar Conhecimentos","api":"GET /backend/knowledge","href":"/pt-BR/api-reference/knowledge/list"},{"title":"Criar Conhecimento","api":"POST /backend/knowledge","href":"/pt-BR/api-reference/knowledge/create"},{"title":"Atualizar Conhecimento","api":"PUT /backend/knowledge/{id}","href":"/pt-BR/api-reference/knowledge/update"},{"title":"Excluir Conhecimento","api":"DELETE /backend/knowledge/{id}","href":"/pt-BR/api-reference/knowledge/delete"},{"title":"Assignação a Assistentes","icon":"users-gear","href":"/pt-BR/api-reference/knowledge/assignments"}]},{"group":"Pipeline (CRM)","pages":[{"title":"Visão Geral da Pipeline","href":"/pt-BR/api-reference/pipeline/overview"},{"title":"Pipelines e Grupos","description":"Criar, configurar, reordenar e excluir funis de venda","href":"/pt-BR/api-reference/pipeline/pipelines"},{"title":"Etapas","href":"/pt-BR/api-reference/pipeline/stages"},{"title":"Negócios","description":"Quadro, listagem, criação, edição e movimentação de negócios","href":"/pt-BR/api-reference/pipeline/deals"},{"title":"Catálogo de Produtos","href":"/pt-BR/api-reference/pipeline/products"},{"title":"Atividades, Arquivos e Histórico","href":"/pt-BR/api-reference/pipeline/activities"}]},{"group":"Webhooks","pages":[{"title":"Visão Geral","icon":"webhook","href":"/pt-BR/api-reference/webhooks/overview"},{"title":"Webhooks de Entrada","href":"/pt-BR/api-reference/webhooks/inbound"},{"title":"Webhooks de Saída","href":"/pt-BR/api-reference/webhooks/outbound"},{"title":"Gerenciar Webhooks","href":"/pt-BR/api-reference/webhooks/manage"}]},{"group":"Campos Personalizados","pages":[{"title":"Visão Geral","icon":"sliders","href":"/pt-BR/api-reference/custom-fields/overview"},{"title":"Definições de Campos","href":"/pt-BR/api-reference/custom-fields/definitions"},{"title":"Valores de Campos","href":"/pt-BR/api-reference/custom-fields/values"}]},{"group":"Cadências","pages":[{"title":"Visão Geral","icon":"calendar","href":"/pt-BR/api-reference/cadences/overview"},{"title":"Criar Cadência","api":"POST /backend/cadences","href":"/pt-BR/api-reference/cadences/create"},{"title":"Gerenciar Cadências","href":"/pt-BR/api-reference/cadences/manage"}]},{"group":"Conversas","pages":[{"title":"Listar Conversas","api":"GET /backend/conversations","href":"/pt-BR/api-reference/conversations/list"},{"title":"Stream de Conversas","api":"GET /backend/conversations/stream","href":"/pt-BR/api-reference/conversations/stream"}]},{"group":"Mensagens","pages":[{"title":"Buscar Mensagens","api":"GET /backend/messages","href":"/pt-BR/api-reference/messages/get"},{"title":"Enviar Mensagem","api":"POST /backend/messages/send","href":"/pt-BR/api-reference/messages/send"},{"title":"Enviar Mídia com Upload","api":"POST /backend/messages/send-media","href":"/pt-BR/api-reference/messages/media"}]},{"group":"Departamentos","pages":[{"title":"Visão Geral","icon":"building","href":"/pt-BR/api-reference/departments/overview"},{"title":"Gerenciar Departamentos","icon":"gear","href":"/pt-BR/api-reference/departments/manage"},{"title":"Membros","icon":"users","href":"/pt-BR/api-reference/departments/members"}]},{"group":"Upload de Arquivos","pages":[{"title":"Visão Geral","icon":"cloud-arrow-up","href":"/pt-BR/api-reference/uploads/overview"},{"title":"Enviar Arquivo","icon":"upload","href":"/pt-BR/api-reference/uploads/upload"},{"title":"Gerenciar Uploads","icon":"folder-open","href":"/pt-BR/api-reference/uploads/manage"}]},{"group":"Templates (Meta/Gupshup)","pages":[{"title":"Visão Geral","icon":"file-lines","href":"/pt-BR/api-reference/templates/overview"},{"title":"Gerenciar Templates","icon":"list","href":"/pt-BR/api-reference/templates/manage"},{"title":"Associação com Cadências","icon":"link","href":"/pt-BR/api-reference/templates/cadence-associations"}]},{"group":"Follow-up","pages":[{"title":"Visão Geral","icon":"clock-rotate-left","href":"/pt-BR/api-reference/followup/overview"},{"title":"Gerenciar Follow-up","icon":"gear","href":"/pt-BR/api-reference/followup/manage"}]}]}]},{"language":"en","pages":[{"title":"en","href":"/en/api-reference/pipeline/stages"}]}]},"basePath":"","title":"Etapas - Leavo API","deploymentId":"dpl_AYyV3CY85Zsy44WzfDVuMiAS7PWU","buildId":"dpl_AYyV3CY85Zsy44WzfDVuMiAS7PWU","dynamics":["2b790eda92"],"chunks":["ApiExamples-btA_N7J3.js","usePlaygroundInputsStore-D9E8vgOP.js","shallow-BXJ3D3rC.js","utils-uJw0j5Le.js","utils-BhOu8MoY.js","isEqual-DTxWZblT.js","_Uint8Array-BCCZOmlk.js","isObject-FP1Yky1u.js","CodeSnippets-yZyeAOhB.js","CodeSnippet-DNSgsmyp.js","snippetPresets-DfrK5Qk-.js","style-to-object-BY3JEAdk.js","use-playground-group-access-B6tdpwEQ.js","cloneDeep-DIo_VyID.js","v4-DIgz8zy6.js"]}