{
"error": "Unauthorized",
"message": "Token de API inválido ou ausente."
}
{
"error": "Validation Error",
"message": {
"name": [
"O campo name é obrigatório."
],
"phone_number": [
"O campo phone_number deve estar em formato válido."
]
}
}
Leads
Criar Lead
Cria um novo lead no workspace. Se já existir um lead com o mesmo telefone ou e-mail, retorna o lead existente com status 200.
{
"error": "Unauthorized",
"message": "Token de API inválido ou ausente."
}
{
"error": "Validation Error",
"message": {
"name": [
"O campo name é obrigatório."
],
"phone_number": [
"O campo phone_number deve estar em formato válido."
]
}
}
{"docsConfig":{"$schema":"https://mintlify.com/docs.json","theme":"mint","name":"Integrabot","colors":{"primary":"#34322d","light":"#6b6963","dark":"#34322d"},"favicon":"https://mintcdn.com/integrabot-3c8fcc0d/jqOH0M_OLd2TNwC_/logo/icon-logo-light.png?fit=max\u0026auto=format\u0026n=jqOH0M_OLd2TNwC_\u0026q=85\u0026s=dd9e3ce34ca6e22266b98280ca00c52e","logo":{"light":"https://mintcdn.com/integrabot-3c8fcc0d/jqOH0M_OLd2TNwC_/logo/integrabot-logo-light.png?fit=max\u0026auto=format\u0026n=jqOH0M_OLd2TNwC_\u0026q=85\u0026s=eea95d51ed0f1fe5b5d2a83ab019d1b1","dark":"https://mintcdn.com/integrabot-3c8fcc0d/jqOH0M_OLd2TNwC_/logo/integrabot-logo-dark.png?fit=max\u0026auto=format\u0026n=jqOH0M_OLd2TNwC_\u0026q=85\u0026s=68dbba816153231f838ebec075c5638f"},"background":{"decoration":null,"color":{"light":"#f8f8f7","dark":"#1a1a1a"}},"navbar":{"links":[{"label":"Suporte","href":"mailto:hello@integrabot.ai"}],"primary":{"type":"button","label":"Acessar","href":"https://integrabot.ai"}},"search":{"prompt":"Buscar..."},"footer":{"socials":{"x":"https://x.com/integrabot","github":"https://github.com/altaforjatecnologia","linkedin":"https://linkedin.com/company/integrabot"}},"styling":{"latex":true},"navigation":{"global":{"anchors":[{"anchor":"Comunidade","href":"https://discord.gg/integrabot","icon":"discord"}]},"pages":[]}},"deployment":{"deploymentMetadataValue":{"subdomain":"integrabot-3c8fcc0d","hasAudioNarration":false,"actualSubdomain":"integrabot-3c8fcc0d","customDomains":["docs.integrabot.ai"],"gitSource":{"type":"github","owner":"altaforjatecnologia","repo":"docs","deployBranch":"main","contentDirectory":"","isPrivate":true,"mountPath":"","label":""},"chroma":{"liveDeploymentHistoryId":"6ac4c1213801ab5d23834451","collectionId":"c6a7450c-b958-4c50-8719-286d917448b6","schemaVersion":"v3","latestBuiltDeploymentHistoryId":"6ac4c1213801ab5d23834451"},"entitlements":{},"buildId":"6ac4c1213801ab5d23834451","clientVersion":"0.0.3971","searchFilterCounts":[{"language":"default","tag":"Português","count":13},{"language":"default","tag":"Documentation","count":6},{"language":"default","tag":"API Reference","count":6},{"language":"default","tag":"Recursos","count":4},{"language":"default","tag":"Leads","count":3},{"language":"default","tag":"Começando","count":3},{"language":"default","tag":"Planos e cobrança","count":3},{"language":"default","tag":"Guias","count":3},{"language":"default","tag":"Agents","count":2},{"language":"default","tag":"English","count":1}]},"assistantConfig":{},"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":"editor-v7-file-tree","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":"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":"workos-onboarding","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"llms-txt-v2","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"pause-universal-search-reconcile","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":"per-site-search-delta","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":"editor-private-page-search","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":"editor-nav-generations","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":"workspace-projects","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"assistant-v5","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"byok-sep-25","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":"vite-origin","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"editor-agent-model-picker","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"billing-updated-9-15","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"workos-sso-scim","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":"workos-signup","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"workos-enabled","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false}],"isAtlas":false,"googleFontsInlined":false},"customCss":[],"page":{"pagePath":"api-reference/endpoint/create-lead","slug":"/api-reference/endpoint/create-lead","pageMetadata":{"title":"Criar Lead","openapi":"POST /v1/leads","description":"Cria um novo lead no workspace. Se já existir um lead com o mesmo telefone ou e-mail, retorna o lead existente com status 200.","href":"/api-reference/endpoint/create-lead"},"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: \"Cria um novo lead no workspace. Se já existir um lead com o mesmo telefone ou e-mail, retorna o lead existente com status 200.\"\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}=arguments[0];const{useMDXComponents:_provideComponents}=arguments[0];function _createMdxContent(props){return _jsx(_Fragment,{})}function MDXContent(props={}){const{wrapper:MDXLayout}={..._provideComponents(),...props.components};return MDXLayout?_jsx(MDXLayout,{...props,children:_jsx(_createMdxContent,{...props})}):_createMdxContent(props)}return{default:MDXContent}","frontmatter":{},"scope":{"config":{},"pageMetadata":{"title":"Criar Lead","openapi":"POST /v1/leads","description":"Cria um novo lead no workspace. Se já existir um lead com o mesmo telefone ou e-mail, retorna o lead existente com status 200.","href":"/api-reference/endpoint/create-lead"}}},"mdxSourceWithNoJs":null},"mdxExtracts":{"tableOfContents":[],"codeExamples":{}},"jsLinks":[],"openApiReferenceData":{"operation":{"operationId":"createLead","summary":"Criar Lead","description":"Cria um novo lead no workspace. Se já existir um lead com o mesmo telefone ou e-mail, retorna o lead existente com status 200.","tags":["Leads"],"requestBody":"c781d6d6-41fd-42c1-9014-2160b2a005f5","responses":{"200":"f3b0f3d6-c27e-4201-9829-e9ee63258282","201":"4bdc134b-1e38-4f24-b482-ae610fae0eb3","401":"de66ad7e-a1b9-40cf-8efa-c39ccb9c4c97","422":"0ddf3e31-f696-4272-aceb-4a52fb7da176"},"method":"post","type":"path","servers":["86c2870e-c2bb-4603-9ee6-bb48ba5476e9"],"security":["7632abb3-2235-4b39-9b2e-76d5ae4b377e"],"path":"/v1/leads","baseUrlOptions":["https://api.integrabot.ai"],"title":"Criar Lead","codeSamples":[],"requiredOnlyExamples":false,"requestExampleType":"generated","responseExampleType":"generated"},"dependencies":{"parameters":{},"requestBody":{"required":true,"content":{"application/json":{"schema":{"type":"object","required":["name","type"],"properties":{"name":{"type":"string","description":"Nome completo do lead","example":"Maria Silva","isRequired":true,"uniqueKey":"name","typeLabel":"string"},"type":{"type":"string","enum":["web","telegram","email","manual"],"description":"Canal de origem do lead","example":"web","isRequired":true,"uniqueKey":"type","typeLabel":"enum\u003cstring>"},"phone_number":{"type":"string","description":"Número de telefone. Obrigatório quando aplicável. Formato: DDI+DDD+Numero, apenas dígitos.","example":"5511999998888","uniqueKey":"phone_number","typeLabel":"string"},"email":{"type":"string","format":"email","description":"Endereço de e-mail do lead","example":"maria@exemplo.com","uniqueKey":"email","typeLabel":"string\u003cemail>"},"agent_id":{"type":"string","format":"uuid","description":"UUID do agent ao qual o lead será atribuído. Se não informado, o lead fica sem agent.","example":"a1b2c3d4-e5f6-7890-abcd-ef1234567890","uniqueKey":"agent_id","typeLabel":"string\u003cuuid>"},"custom_fields":{"type":"object","description":"Campos personalizados como pares chave-valor. Use para armazenar informações extras do lead.","additionalProperties":{"type":"string","uniqueKey":"custom_fields.additionalProperties","typeLabel":"string"},"example":{"empresa":"Acme Ltda","cidade":"São Paulo"},"uniqueKey":"custom_fields","typeLabel":"object"}},"uniqueKey":"","typeLabel":"object"},"examples":{"lead_web_completo":{"title":"lead_web_completo","value":{"name":"Maria Silva","type":"web","phone_number":"5511999998888","email":"maria@exemplo.com","agent_id":"a1b2c3d4-e5f6-7890-abcd-ef1234567890","custom_fields":{"empresa":"Acme Ltda","cidade":"São Paulo"}}},"lead_web":{"title":"lead_web","value":{"name":"João Santos","type":"web","email":"joao@empresa.com","custom_fields":{"produto_interesse":"Plano Pro"}}}},"exampleType":"examples"}},"exampleType":"examples"},"responses":{"f3b0f3d6-c27e-4201-9829-e9ee63258282":{"description":"Lead já existia. Retorna o lead existente sem criar duplicata.","content":{"application/json":{"schema":{"type":"object","properties":{"id":{"type":"integer","example":1234,"uniqueKey":"id","typeLabel":"integer"},"name":{"type":"string","example":"Maria Silva","uniqueKey":"name","typeLabel":"string"},"type":{"type":"string","enum":["web","telegram","email","manual"],"example":"web","uniqueKey":"type","typeLabel":"enum\u003cstring>"},"phone_number":{"oneOf":[{"type":"string","example":"5511999998888","uniqueKey":"phone_number.oneOf.0","typeLabel":"string"},{"type":"null","example":"5511999998888","uniqueKey":"phone_number.oneOf.1","typeLabel":"null"}],"uniqueKey":"phone_number","typeLabel":"string | null"},"email":{"oneOf":[{"type":"string","example":"maria@exemplo.com","uniqueKey":"email.oneOf.0","typeLabel":"string"},{"type":"null","example":"maria@exemplo.com","uniqueKey":"email.oneOf.1","typeLabel":"null"}],"uniqueKey":"email","typeLabel":"string | null"},"status":{"type":"string","enum":["new","contacted","qualified","lost","converted"],"example":"new","uniqueKey":"status","typeLabel":"enum\u003cstring>"},"agent_id":{"oneOf":[{"type":"string","format":"uuid","example":"a1b2c3d4-e5f6-7890-abcd-ef1234567890","uniqueKey":"agent_id.oneOf.0","typeLabel":"string\u003cuuid>"},{"type":"null","format":"uuid","example":"a1b2c3d4-e5f6-7890-abcd-ef1234567890","uniqueKey":"agent_id.oneOf.1","typeLabel":"null"}],"uniqueKey":"agent_id","typeLabel":"string\u003cuuid> | null"},"custom_fields":{"oneOf":[{"type":"object","additionalProperties":{"type":"string","uniqueKey":"custom_fields.oneOf.0.additionalProperties","typeLabel":"string"},"example":{"empresa":"Acme Ltda","cidade":"São Paulo"},"uniqueKey":"custom_fields.oneOf.0","typeLabel":"object"},{"type":"null","additionalProperties":{"type":"string","uniqueKey":"custom_fields.oneOf.1.additionalProperties","typeLabel":"string"},"example":{"empresa":"Acme Ltda","cidade":"São Paulo"},"uniqueKey":"custom_fields.oneOf.1","typeLabel":"null"}],"uniqueKey":"custom_fields","typeLabel":"object | null"},"created_at":{"type":"string","format":"date-time","example":"2025-01-15T10:30:00Z","uniqueKey":"created_at","typeLabel":"string\u003cdate-time>"},"updated_at":{"type":"string","format":"date-time","example":"2025-01-15T14:22:00Z","uniqueKey":"updated_at","typeLabel":"string\u003cdate-time>"}},"uniqueKey":"","typeLabel":"object"},"example":{"id":1001,"name":"Maria Silva","type":"web","phone_number":"5511999998888","email":"maria@exemplo.com","status":"contacted","agent_id":null,"custom_fields":{},"created_at":"2025-01-10T08:15:00Z","updated_at":"2025-01-14T16:45:00Z"},"examples":{"Example":{"title":"Example","value":{"id":1001,"name":"Maria Silva","type":"web","phone_number":"5511999998888","email":"maria@exemplo.com","status":"contacted","agent_id":null,"custom_fields":{},"created_at":"2025-01-10T08:15:00Z","updated_at":"2025-01-14T16:45:00Z"}}},"exampleType":"examples"}},"exampleType":"examples"},"4bdc134b-1e38-4f24-b482-ae610fae0eb3":{"description":"Lead criado com sucesso.","content":{"application/json":{"schema":{"type":"object","properties":{"id":{"type":"integer","example":1234,"uniqueKey":"id","typeLabel":"integer"},"name":{"type":"string","example":"Maria Silva","uniqueKey":"name","typeLabel":"string"},"type":{"type":"string","enum":["web","telegram","email","manual"],"example":"web","uniqueKey":"type","typeLabel":"enum\u003cstring>"},"phone_number":{"oneOf":[{"type":"string","example":"5511999998888","uniqueKey":"phone_number.oneOf.0","typeLabel":"string"},{"type":"null","example":"5511999998888","uniqueKey":"phone_number.oneOf.1","typeLabel":"null"}],"uniqueKey":"phone_number","typeLabel":"string | null"},"email":{"oneOf":[{"type":"string","example":"maria@exemplo.com","uniqueKey":"email.oneOf.0","typeLabel":"string"},{"type":"null","example":"maria@exemplo.com","uniqueKey":"email.oneOf.1","typeLabel":"null"}],"uniqueKey":"email","typeLabel":"string | null"},"status":{"type":"string","enum":["new","contacted","qualified","lost","converted"],"example":"new","uniqueKey":"status","typeLabel":"enum\u003cstring>"},"agent_id":{"oneOf":[{"type":"string","format":"uuid","example":"a1b2c3d4-e5f6-7890-abcd-ef1234567890","uniqueKey":"agent_id.oneOf.0","typeLabel":"string\u003cuuid>"},{"type":"null","format":"uuid","example":"a1b2c3d4-e5f6-7890-abcd-ef1234567890","uniqueKey":"agent_id.oneOf.1","typeLabel":"null"}],"uniqueKey":"agent_id","typeLabel":"string\u003cuuid> | null"},"custom_fields":{"oneOf":[{"type":"object","additionalProperties":{"type":"string","uniqueKey":"custom_fields.oneOf.0.additionalProperties","typeLabel":"string"},"example":{"empresa":"Acme Ltda","cidade":"São Paulo"},"uniqueKey":"custom_fields.oneOf.0","typeLabel":"object"},{"type":"null","additionalProperties":{"type":"string","uniqueKey":"custom_fields.oneOf.1.additionalProperties","typeLabel":"string"},"example":{"empresa":"Acme Ltda","cidade":"São Paulo"},"uniqueKey":"custom_fields.oneOf.1","typeLabel":"null"}],"uniqueKey":"custom_fields","typeLabel":"object | null"},"created_at":{"type":"string","format":"date-time","example":"2025-01-15T10:30:00Z","uniqueKey":"created_at","typeLabel":"string\u003cdate-time>"},"updated_at":{"type":"string","format":"date-time","example":"2025-01-15T14:22:00Z","uniqueKey":"updated_at","typeLabel":"string\u003cdate-time>"}},"uniqueKey":"","typeLabel":"object"},"example":{"id":1234,"name":"Maria Silva","type":"web","phone_number":"5511999998888","email":"maria@exemplo.com","status":"new","agent_id":"a1b2c3d4-e5f6-7890-abcd-ef1234567890","custom_fields":{"empresa":"Acme Ltda","cidade":"São Paulo"},"created_at":"2025-01-15T10:30:00Z","updated_at":"2025-01-15T10:30:00Z"},"examples":{"Example":{"title":"Example","value":{"id":1234,"name":"Maria Silva","type":"web","phone_number":"5511999998888","email":"maria@exemplo.com","status":"new","agent_id":"a1b2c3d4-e5f6-7890-abcd-ef1234567890","custom_fields":{"empresa":"Acme Ltda","cidade":"São Paulo"},"created_at":"2025-01-15T10:30:00Z","updated_at":"2025-01-15T10:30:00Z"}}},"exampleType":"examples"}},"exampleType":"examples"},"de66ad7e-a1b9-40cf-8efa-c39ccb9c4c97":{"description":"Token de API inválido ou ausente.","content":{"application/json":{"schema":{"type":"object","properties":{"error":{"type":"string","example":"Unauthorized","uniqueKey":"error","typeLabel":"string"},"message":{"type":"string","example":"Token de API inválido ou ausente.","uniqueKey":"message","typeLabel":"string"}},"uniqueKey":"","typeLabel":"object"},"examples":{"Example":{"title":"Example","value":{"error":"Unauthorized","message":"Token de API inválido ou ausente."}}},"exampleType":"generated"}},"exampleType":"generated"},"0ddf3e31-f696-4272-aceb-4a52fb7da176":{"description":"Erro de validação. Verifique os campos enviados.","content":{"application/json":{"schema":{"type":"object","properties":{"error":{"type":"string","example":"Validation Error","uniqueKey":"error","typeLabel":"string"},"message":{"type":"object","additionalProperties":{"type":"array","items":{"type":"string","uniqueKey":"message.additionalProperties.items.[INDEX]","typeLabel":"string"},"uniqueKey":"message.additionalProperties","typeLabel":"string[]"},"example":{"name":["O campo name é obrigatório."],"phone_number":["O campo phone_number deve estar em formato válido."]},"uniqueKey":"message","typeLabel":"object"}},"uniqueKey":"","typeLabel":"object"},"examples":{"Example":{"title":"Example","value":{"error":"Validation Error","message":{"name":["O campo name é obrigatório."],"phone_number":["O campo phone_number deve estar em formato válido."]}}}},"exampleType":"generated"}},"exampleType":"generated"}},"security":{"7632abb3-2235-4b39-9b2e-76d5ae4b377e":{"bearerAuth":{"type":"http","scheme":"bearer","bearerFormat":"API Key starting with sk_","scopes":[],"schemeName":"bearerAuth"}}},"servers":{"86c2870e-c2bb-4603-9ee6-bb48ba5476e9":{"url":"https://api.integrabot.ai","description":"Produção"}},"processedSecurityOptions":[{"schemes":[{"scheme":{"type":"http","scheme":"bearer","bearerFormat":"API Key starting with sk_","scopes":[],"schemeName":"bearerAuth"},"schema":{"title":"Bearer Auth","type":"string","isRequired":true,"description":"Bearer authentication header of the form `Bearer \u003ctoken>`, where `\u003ctoken>` is your auth token.","format":"bearer","typeLabel":"string\u003cbearer>","deprecated":false},"schemeName":"bearerAuth","name":"Authorization"}],"title":"bearerAuth"}]},"originalFileLocation":"api-reference/openapi.json"},"subdomain":"integrabot-3c8fcc0d","siteName":"Integrabot","title":"Criar Lead - Integrabot","navMaps":{"firstHrefInVersion":{},"firstHrefInLanguage":{}},"lastModified":"2026-04-12T04:35:29.242Z","originalFileLocation":"api-reference/endpoint/create-lead.mdx"},"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=\"Cria um novo lead no workspace. Se já existir um lead com o mesmo telefone ou e-mail, retorna o lead existente com status 200.\">\u003cmeta data-mint-head name=\"application-name\" content=\"Integrabot\">\u003cmeta data-mint-head name=\"generator\" content=\"Mintlify\">\u003clink data-mint-head rel=\"icon\" type=\"image/png\" sizes=\"192x192\" href=\"/mintlify-assets/_mintlify/favicons/integrabot-3c8fcc0d/d1OGe6OKUXnvLrrS/_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/integrabot-3c8fcc0d/d1OGe6OKUXnvLrrS/_generated/favicon/apple-touch-icon.png\">\u003clink data-mint-head rel=\"icon\" type=\"image/png\" sizes=\"16x16\" href=\"/mintlify-assets/_mintlify/favicons/integrabot-3c8fcc0d/d1OGe6OKUXnvLrrS/_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/integrabot-3c8fcc0d/d1OGe6OKUXnvLrrS/_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/integrabot-3c8fcc0d/d1OGe6OKUXnvLrrS/_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/integrabot-3c8fcc0d/d1OGe6OKUXnvLrrS/_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/integrabot-3c8fcc0d/d1OGe6OKUXnvLrrS/_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/integrabot-3c8fcc0d/d1OGe6OKUXnvLrrS/_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/integrabot-3c8fcc0d/d1OGe6OKUXnvLrrS/_generated/favicon-dark/favicon.ico\" media=\"(prefers-color-scheme: dark)\">\u003cmeta data-mint-head property=\"og:title\" content=\"Criar Lead - Integrabot\">\u003cmeta data-mint-head property=\"og:description\" content=\"Cria um novo lead no workspace. Se já existir um lead com o mesmo telefone ou e-mail, retorna o lead existente com status 200.\">\u003cmeta data-mint-head property=\"og:site_name\" content=\"Integrabot\">\u003cmeta data-mint-head property=\"og:url\" content=\"https://docs.integrabot.ai/api-reference/endpoint/create-lead\">\u003cmeta data-mint-head property=\"og:type\" content=\"website\">\u003cmeta data-mint-head property=\"og:image\" content=\"https://integrabot-3c8fcc0d.mintlify.app/_mintlify/api/og/v2?division=Leads\u0026amp;title=Criar+Lead\u0026amp;description=Cria+um+novo+lead+no+workspace.+Se+j%C3%A1+existir+um+lead+com+o+mesmo+telefone+ou+e-mail%2C+retorna+o+lead+existente+com+status+200.\u0026amp;theme=1b822be97deddf2d78247e64\u0026amp;signature=f1ac5ff816b31e7daec15075ce3137cb4f260ab25f427c8518a6c1b7569237ce\">\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=\"Criar Lead - Integrabot\">\u003cmeta data-mint-head name=\"twitter:description\" content=\"Cria um novo lead no workspace. Se já existir um lead com o mesmo telefone ou e-mail, retorna o lead existente com status 200.\">\u003cmeta data-mint-head name=\"twitter:image\" content=\"https://integrabot-3c8fcc0d.mintlify.app/_mintlify/api/og/v2?division=Leads\u0026amp;title=Criar+Lead\u0026amp;description=Cria+um+novo+lead+no+workspace.+Se+j%C3%A1+existir+um+lead+com+o+mesmo+telefone+ou+e-mail%2C+retorna+o+lead+existente+com+status+200.\u0026amp;theme=1b822be97deddf2d78247e64\u0026amp;signature=f1ac5ff816b31e7daec15075ce3137cb4f260ab25f427c8518a6c1b7569237ce\">\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/integrabot-3c8fcc0d/d1OGe6OKUXnvLrrS/_generated/favicon/browserconfig.xml\">\u003cmeta data-mint-head name=\"apple-mobile-web-app-title\" content=\"Integrabot\">\u003cmeta data-mint-head name=\"msapplication-TileColor\" content=\"#34322d\">\u003clink data-mint-head rel=\"canonical\" href=\"https://docs.integrabot.ai/api-reference/endpoint/create-lead\">\u003clink data-mint-head rel=\"alternate\" type=\"application/xml\" href=\"/sitemap.xml\">\u003clink data-mint-head rel=\"alternate\" type=\"text/markdown\" href=\"/api-reference/endpoint/create-lead.md\">\u003cscript data-mint-head type=\"application/ld+json\">{\"@context\":\"https://schema.org\",\"@graph\":[{\"@type\":\"Organization\",\"@id\":\"https://docs.integrabot.ai/#organization\",\"name\":\"Integrabot\",\"url\":\"https://docs.integrabot.ai\",\"logo\":{\"@type\":\"ImageObject\",\"url\":\"https://mintcdn.com/integrabot-3c8fcc0d/jqOH0M_OLd2TNwC_/logo/integrabot-logo-light.png?fit=max\u0026auto=format\u0026n=jqOH0M_OLd2TNwC_\u0026q=85\u0026s=eea95d51ed0f1fe5b5d2a83ab019d1b1\"}},{\"@type\":\"WebSite\",\"@id\":\"https://docs.integrabot.ai#website\",\"name\":\"Integrabot\",\"url\":\"https://docs.integrabot.ai\",\"publisher\":{\"@id\":\"https://docs.integrabot.ai/#organization\"}},{\"@type\":\"WebPage\",\"@id\":\"https://docs.integrabot.ai/api-reference/endpoint/create-lead#webpage\",\"url\":\"https://docs.integrabot.ai/api-reference/endpoint/create-lead\",\"name\":\"Criar Lead\",\"description\":\"Cria um novo lead no workspace. Se já existir um lead com o mesmo telefone ou e-mail, retorna o lead existente com status 200.\",\"dateModified\":\"2026-04-12T04:35:29.242Z\",\"isPartOf\":{\"@id\":\"https://docs.integrabot.ai#website\"},\"breadcrumb\":{\"@id\":\"https://docs.integrabot.ai/api-reference/endpoint/create-lead#breadcrumb\"}},{\"@type\":\"BreadcrumbList\",\"@id\":\"https://docs.integrabot.ai/api-reference/endpoint/create-lead#breadcrumb\",\"itemListElement\":[{\"@type\":\"ListItem\",\"position\":1,\"name\":\"API Reference\",\"item\":\"https://docs.integrabot.ai/api-reference/introduction\"},{\"@type\":\"ListItem\",\"position\":2,\"name\":\"Criar Lead\",\"item\":\"https://docs.integrabot.ai/api-reference/endpoint/create-lead\"}]},{\"@type\":[\"TechArticle\",\"APIReference\"],\"@id\":\"https://docs.integrabot.ai/api-reference/endpoint/create-lead#apireference\",\"headline\":\"Criar Lead\",\"name\":\"Criar Lead\",\"description\":\"Cria um novo lead no workspace. Se já existir um lead com o mesmo telefone ou e-mail, retorna o lead existente com status 200.\",\"url\":\"https://docs.integrabot.ai/api-reference/endpoint/create-lead\",\"mainEntityOfPage\":{\"@id\":\"https://docs.integrabot.ai/api-reference/endpoint/create-lead#webpage\"},\"dateModified\":\"2026-04-12T04:35:29.242Z\",\"publisher\":{\"@id\":\"https://docs.integrabot.ai/#organization\"},\"isPartOf\":{\"@id\":\"https://docs.integrabot.ai#website\"}}]}\u003c/script>\u003cscript data-mint-head type=\"application/ld+json\">{\"@context\":\"https://schema.org\",\"@type\":\"WebSite\",\"name\":\"Integrabot\",\"creator\":{\"@type\":\"Organization\",\"name\":\"Mintlify\",\"url\":\"https://mintlify.com\"}}\u003c/script>","siteName":"Integrabot","nav":{"global":{"anchors":[{"anchor":"Comunidade","href":"https://discord.gg/integrabot","icon":"discord"}]},"tabs":[{"tab":"Documentation","groups":[{"group":"API Reference","pages":[{"title":"API Reference","description":"Documentação da API REST do Integrabot para gerenciar leads, agents e integrações","href":"/api-reference/introduction"},{"group":"Leads","pages":[{"title":"Criar Lead","openapi":"POST /v1/leads","href":"/api-reference/endpoint/create-lead"},{"title":"Listar Leads","openapi":"GET /v1/leads","description":"Retorna uma lista paginada de leads do workspace. Use os filtros para refinar os resultados.","href":"/api-reference/endpoint/list-leads"},{"title":"Detalhes do Lead","openapi":"GET /v1/leads/{id}","href":"/api-reference/endpoint/get-lead"}]},{"group":"Agents","pages":[{"title":"Listar Agents","openapi":"GET /v1/agents","href":"/api-reference/endpoint/list-agents"},{"title":"Detalhes do Agent","openapi":"GET /v1/agents/{uuid}","href":"/api-reference/endpoint/get-agent"}]}]}]},{"tab":"Português","pages":[{"title":"Português","href":"/pt/introduction"}]},{"tab":"English","pages":[{"title":"English","href":"/en/introduction"}]}]},"title":"Criar Lead - Integrabot","buildId":"dpl_DFJrtvUi8HS5F9nkooKuDJsuD5BM","deploymentId":"dpl_DFJrtvUi8HS5F9nkooKuDJsuD5BM","dynamics":["c2aa737661","2b790eda92","b0f84f53ff","a9bb46feb3"],"chunks":["OpenApiReferenceProvider-rfhihCWU.js","utils-BmH1XFxk.js","cloneDeep-izs3Hzxb.js","_Uint8Array-BVIqJ90l.js","isObjectLike-C8vmzPEN.js","isArray-Dcu1dQ5t.js","utils-BcNsxPKB.js","toString-BX-iyh8G.js","isSymbol-CSH9U2Gm.js","addUniqueKeysToSchema-BAES3tkd.js","snippetPresets-DCMQBKLP.js","style-to-object-BY3JEAdk.js","v4-DIgz8zy6.js","ApiExamples-D6l_bzE9.js","isEqual-BfaiBbcl.js","usePlaygroundInputsStore-BOktbnNh.js","shallow-BCs8SgM7.js","getApiPlaygroundDisplay-DEmW5bJB.js","CodeSnippet-CpZOpB9C.js","CodeSnippets-BOBDqibl.js","Page-D5fEM6aW.js","getPastedJson-DH2JBvmr.js","icon-BBJH-kKh.js","MethodPill-D2Sd5NLC.js","DuplicateIcon-CGgfL2qN.js","createIcon-BKudBBzi.js","DynamicMarkdown-85clUA0i.js","SectionHeading-D0JiMgDx.js","axios-vUo_bRtp.js","Markdown-Cfiy0xZO.js","clsx-rL8ZCCw4.js","lib--scc4DXi.js","lib-B8HbPgcC.js","html-void-elements-mCSPHezU.js","dist-aeztFa9U.js","katex-YMM-FMeD.js","marked.esm-CZWythHk.js","AssistantPageLink-BywkCr5C.js"]}