Uma sessão é um número de WhatsApp gerenciado pela D-API. Use type: "unofficial" para o WhatsApp não oficial (via QR code) ou type: "cloud_api"
para a API Oficial.Você pode já configurar o webhookUrl na criação para receber eventos em tempo
real (mensagens, status, conexão). Veja a documentação de
webhooks.
Escolha um sessionId estável e único por número — ele é usado em
praticamente todos os outros endpoints.
Recebe as ligações feitas para o número (eventos call.offer) para atender ou recusar pela API.
Resposta
200
Resposta bem-sucedida
{"docsConfig":{"theme":"mint","$schema":"https://mintlify.com/docs.json","name":"D-API","colors":{"primary":"#00B7CD","light":"#2DD4E0","dark":"#0E8FA3"},"logo":{"light":"https://mintcdn.com/d-api/dcX-Hd4-QsKLE866/logo/dapi-horizontal.png?fit=max\u0026auto=format\u0026n=dcX-Hd4-QsKLE866\u0026q=85\u0026s=449901bb5b53e11232d03fd1fa54a4c3","dark":"https://mintcdn.com/d-api/dcX-Hd4-QsKLE866/logo/dapi-horizontal.png?fit=max\u0026auto=format\u0026n=dcX-Hd4-QsKLE866\u0026q=85\u0026s=449901bb5b53e11232d03fd1fa54a4c3"},"favicon":"https://mintcdn.com/d-api/dcX-Hd4-QsKLE866/favicon.png?fit=max\u0026auto=format\u0026n=dcX-Hd4-QsKLE866\u0026q=85\u0026s=a2b2d31d3ad7ea89d6d82db7f17b2b07","navbar":{"links":[{"href":"https://wa.me/5551920018823?text=Ol%C3%A1%2C%20preciso%20de%20ajuda%20com%20a%20documenta%C3%A7%C3%A3o%20da%20D-API","label":"Suporte"}],"primary":{"type":"button","label":"Painel","href":"https://app.d-api.cloud"}},"footer":{"links":[{"header":"D-API","items":[{"label":"Painel","href":"https://app.d-api.cloud"},{"label":"Suporte","href":"https://wa.me/5551920018823?text=Ol%C3%A1%2C%20preciso%20de%20ajuda%20com%20a%20documenta%C3%A7%C3%A3o%20da%20D-API"}]}]},"contextual":{"options":["copy","view","chatgpt","claude","mcp","cursor","vscode"],"display":"header"},"styling":{"latex":false},"navigation":{"languages":[{"language":"pt-BR","default":true,"href":"whatsapp/introducao"},{"language":"en","footer":{"links":[{"header":"D-API","items":[{"label":"Dashboard","href":"https://app.d-api.cloud"},{"label":"Support","href":"https://wa.me/5551920018823?text=Hi%2C%20I%20need%20help%20with%20the%20D-API%20documentation"}]}]},"navbar":{"links":[{"href":"https://wa.me/5551920018823?text=Hi%2C%20I%20need%20help%20with%20the%20D-API%20documentation","label":"Support"}],"primary":{"type":"button","label":"Dashboard","href":"https://app.d-api.cloud"}},"href":"en/whatsapp/introducao"}]}},"deployment":{"deploymentMetadataValue":{"subdomain":"d-api","hasAudioNarration":false,"actualSubdomain":"d-api","customDomains":["docs.d-api.cloud"],"gitSource":{"type":"github","owner":"joaoartur","repo":"docs","deployBranch":"main","contentDirectory":"","isPrivate":false,"mountPath":"","label":""},"entitlements":{},"buildId":"6aed57964eaf231f8b40248d","clientVersion":"0.0.4102","searchFilterCounts":[{"language":"pt-BR","tag":"API Reference","count":134},{"language":"en","tag":"API Reference","count":134},{"language":"pt-BR","tag":"Sessões","count":27},{"language":"en","tag":"Sessions","count":27},{"language":"pt-BR","tag":"WhatsApp","count":17},{"language":"en","tag":"WhatsApp","count":17},{"language":"pt-BR","tag":"Ligações","count":16},{"language":"en","tag":"Calls","count":16},{"language":"pt-BR","tag":"Grupos","count":15},{"language":"en","tag":"Groups","count":15},{"language":"pt-BR","tag":"Webhooks","count":14},{"language":"en","tag":"Webhooks","count":14},{"language":"pt-BR","tag":"API Oficial (Cloud API)","count":11},{"language":"pt-BR","tag":"Mensagens","count":11},{"language":"en","tag":"Official API (Cloud API)","count":11},{"language":"en","tag":"Messages","count":11},{"language":"pt-BR","tag":"Catálogo","count":9},{"language":"pt-BR","tag":"Conversas","count":9},{"language":"en","tag":"Catalog","count":9},{"language":"en","tag":"Chats","count":9}]},"assistantConfig":{"enableAskAiButton":false,"enableStarterQuestions":false,"enableAskAiSearchBar":true},"basePath":"","hasChatPermissions":false,"hasWebMcpPermissions":false,"toggles":[],"googleFontsInlined":false},"customCss":[],"page":{"pagePath":"api-reference/endpoints/criar-sessao","slug":"/api-reference/endpoints/criar-sessao","pageMetadata":{"title":"Criar uma sessão","description":"Crie ou inicie uma sessão do WhatsApp.","openapi":"api-reference/openapi.json POST /api/v1/sessions","href":"/api-reference/endpoints/criar-sessao"},"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: \"Crie ou inicie uma sessão do WhatsApp.\"\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`,p:`p`,strong:`strong`,..._provideComponents(),...props.components},{Tip}=_components;if(!Tip)_missingMdxReference(`Tip`,true);return _jsxs(_Fragment,{children:[_jsxs(_components.p,{children:[`Uma `,_jsx(_components.strong,{children:`sessão`}),` é um número de WhatsApp gerenciado pela D-API. Use `,_jsx(_components.code,{children:`type: \"unofficial\"`}),` para o WhatsApp não oficial (via QR code) ou `,_jsx(_components.code,{children:`type: \"cloud_api\"`}),`\npara a API Oficial.`]}),`\n`,_jsxs(_components.p,{children:[`Você pode já configurar o `,_jsx(_components.code,{children:`webhookUrl`}),` na criação para receber eventos em tempo\nreal (mensagens, status, conexão). Veja a `,_jsx(_components.a,{href:`/whatsapp/webhooks/visao-geral`,children:`documentação de\nwebhooks`}),`.`]}),`\n`,_jsx(Tip,{children:_jsxs(_components.p,{children:[`Escolha um `,_jsx(_components.code,{children:`sessionId`}),` estável e único por número — ele é usado em\npraticamente todos os outros endpoints.`]})})]})}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":"Criar uma sessão","description":"Crie ou inicie uma sessão do WhatsApp.","openapi":"api-reference/openapi.json POST /api/v1/sessions","href":"/api-reference/endpoints/criar-sessao"}}},"mdxSourceWithNoJs":null},"mdxExtracts":{"tableOfContents":[],"codeExamples":{}},"jsLinks":[],"openApiReferenceData":{"operation":{"parameters":[],"operationId":"postApiV1Sessions","tags":["Sessões"],"summary":"Criar ou iniciar uma sessão do WhatsApp","description":"Crie ou inicie uma sessão do WhatsApp.","requestBody":"3b58fc37-4c79-4544-ae69-996877e15231","responses":{"200":"8db355c9-b792-4c0f-a0a0-0e543ef2facd"},"method":"post","type":"path","servers":["74d5cdab-cf9c-4cb3-8ee8-6ecb7be8a3cb"],"security":["c8dc15ad-2796-46a9-8796-64231a32d144"],"path":"/api/v1/sessions","baseUrlOptions":["https://api.d-api.cloud"],"title":"Criar ou iniciar uma sessão do WhatsApp","codeSamples":[],"requiredOnlyExamples":false,"requestExampleType":"generated","responseExampleType":"generated"},"dependencies":{"parameters":{},"requestBody":{"required":true,"content":{"application/json":{"schema":{"type":"object","required":["sessionId"],"properties":{"sessionId":{"type":"string","minLength":1,"description":"Identificador da conexão, escolhido por você. Use o mesmo valor nas demais rotas.","isRequired":true,"uniqueKey":"sessionId","typeLabel":"string"},"connectionMode":{"type":"string","enum":["qr","pair"],"default":"qr","description":"Como parear o número: `qr` (QR Code) ou `pair` (código de pareamento).","uniqueKey":"connectionMode","typeLabel":"enum\u003cstring>"},"pairPhone":{"type":"string","description":"Número a parear com DDI, só dígitos. Obrigatório quando `connectionMode` é `pair`.","uniqueKey":"pairPhone","typeLabel":"string"},"webhookUrl":{"type":"string","description":"URL que recebe os eventos da conexão (mensagens, status, chamadas).","uniqueKey":"webhookUrl","typeLabel":"string"},"webhookConfig":{"type":"object","required":["enabled","type","events"],"description":"Quais eventos o webhook recebe e para qual URL. Evento ausente ou com `enabled: false` não é enviado.","properties":{"enabled":{"type":"boolean","description":"Liga o envio de eventos por webhook.","isRequired":true,"uniqueKey":"webhookConfig.enabled","typeLabel":"boolean"},"type":{"type":"string","enum":["single","per_event"],"description":"`single`: todos os eventos vão para a mesma URL. `per_event`: cada evento tem a sua `webhookUrl`.","isRequired":true,"uniqueKey":"webhookConfig.type","typeLabel":"enum\u003cstring>"},"events":{"type":"object","description":"Um item por tipo de evento.","properties":{"messages.received":{"type":"object","description":"Mensagem recebida.","required":["enabled","webhookUrl"],"properties":{"enabled":{"type":"boolean","isRequired":true,"uniqueKey":"webhookConfig.events.messages\\.received.enabled","typeLabel":"boolean"},"webhookUrl":{"type":"string","isRequired":true,"uniqueKey":"webhookConfig.events.messages\\.received.webhookUrl","typeLabel":"string"}},"uniqueKey":"webhookConfig.events.messages\\.received","typeLabel":"object"},"messages.sent":{"type":"object","description":"Mensagem enviada pela conexão (API, painel ou celular).","required":["enabled","webhookUrl"],"properties":{"enabled":{"type":"boolean","isRequired":true,"uniqueKey":"webhookConfig.events.messages\\.sent.enabled","typeLabel":"boolean"},"webhookUrl":{"type":"string","isRequired":true,"uniqueKey":"webhookConfig.events.messages\\.sent.webhookUrl","typeLabel":"string"}},"uniqueKey":"webhookConfig.events.messages\\.sent","typeLabel":"object"},"message.delivered":{"type":"object","description":"Mensagem entregue ao destinatário.","required":["enabled","webhookUrl"],"properties":{"enabled":{"type":"boolean","isRequired":true,"uniqueKey":"webhookConfig.events.message\\.delivered.enabled","typeLabel":"boolean"},"webhookUrl":{"type":"string","isRequired":true,"uniqueKey":"webhookConfig.events.message\\.delivered.webhookUrl","typeLabel":"string"}},"uniqueKey":"webhookConfig.events.message\\.delivered","typeLabel":"object"},"message.read":{"type":"object","description":"Mensagem lida pelo destinatário.","required":["enabled","webhookUrl"],"properties":{"enabled":{"type":"boolean","isRequired":true,"uniqueKey":"webhookConfig.events.message\\.read.enabled","typeLabel":"boolean"},"webhookUrl":{"type":"string","isRequired":true,"uniqueKey":"webhookConfig.events.message\\.read.webhookUrl","typeLabel":"string"}},"uniqueKey":"webhookConfig.events.message\\.read","typeLabel":"object"},"message.update":{"type":"object","description":"Mensagem editada ou com status alterado.","required":["enabled","webhookUrl"],"properties":{"enabled":{"type":"boolean","isRequired":true,"uniqueKey":"webhookConfig.events.message\\.update.enabled","typeLabel":"boolean"},"webhookUrl":{"type":"string","isRequired":true,"uniqueKey":"webhookConfig.events.message\\.update.webhookUrl","typeLabel":"string"}},"uniqueKey":"webhookConfig.events.message\\.update","typeLabel":"object"},"message.deleted":{"type":"object","description":"Mensagem apagada.","required":["enabled","webhookUrl"],"properties":{"enabled":{"type":"boolean","isRequired":true,"uniqueKey":"webhookConfig.events.message\\.deleted.enabled","typeLabel":"boolean"},"webhookUrl":{"type":"string","isRequired":true,"uniqueKey":"webhookConfig.events.message\\.deleted.webhookUrl","typeLabel":"string"}},"uniqueKey":"webhookConfig.events.message\\.deleted","typeLabel":"object"},"contacts.upsert":{"type":"object","description":"Contato novo.","required":["enabled","webhookUrl"],"properties":{"enabled":{"type":"boolean","isRequired":true,"uniqueKey":"webhookConfig.events.contacts\\.upsert.enabled","typeLabel":"boolean"},"webhookUrl":{"type":"string","isRequired":true,"uniqueKey":"webhookConfig.events.contacts\\.upsert.webhookUrl","typeLabel":"string"}},"uniqueKey":"webhookConfig.events.contacts\\.upsert","typeLabel":"object"},"contacts.update":{"type":"object","description":"Contato atualizado (nome, foto).","required":["enabled","webhookUrl"],"properties":{"enabled":{"type":"boolean","isRequired":true,"uniqueKey":"webhookConfig.events.contacts\\.update.enabled","typeLabel":"boolean"},"webhookUrl":{"type":"string","isRequired":true,"uniqueKey":"webhookConfig.events.contacts\\.update.webhookUrl","typeLabel":"string"}},"uniqueKey":"webhookConfig.events.contacts\\.update","typeLabel":"object"},"chats.upsert":{"type":"object","description":"Conversa nova.","required":["enabled","webhookUrl"],"properties":{"enabled":{"type":"boolean","isRequired":true,"uniqueKey":"webhookConfig.events.chats\\.upsert.enabled","typeLabel":"boolean"},"webhookUrl":{"type":"string","isRequired":true,"uniqueKey":"webhookConfig.events.chats\\.upsert.webhookUrl","typeLabel":"string"}},"uniqueKey":"webhookConfig.events.chats\\.upsert","typeLabel":"object"},"chats.update":{"type":"object","description":"Conversa atualizada (arquivada, fixada, silenciada).","required":["enabled","webhookUrl"],"properties":{"enabled":{"type":"boolean","isRequired":true,"uniqueKey":"webhookConfig.events.chats\\.update.enabled","typeLabel":"boolean"},"webhookUrl":{"type":"string","isRequired":true,"uniqueKey":"webhookConfig.events.chats\\.update.webhookUrl","typeLabel":"string"}},"uniqueKey":"webhookConfig.events.chats\\.update","typeLabel":"object"},"presence":{"type":"object","description":"Digitando, gravando áudio, online.","required":["enabled","webhookUrl"],"properties":{"enabled":{"type":"boolean","isRequired":true,"uniqueKey":"webhookConfig.events.presence.enabled","typeLabel":"boolean"},"webhookUrl":{"type":"string","isRequired":true,"uniqueKey":"webhookConfig.events.presence.webhookUrl","typeLabel":"string"}},"uniqueKey":"webhookConfig.events.presence","typeLabel":"object"},"groups_participants.join":{"type":"object","description":"Participante entrou no grupo.","required":["enabled","webhookUrl"],"properties":{"enabled":{"type":"boolean","isRequired":true,"uniqueKey":"webhookConfig.events.groups_participants\\.join.enabled","typeLabel":"boolean"},"webhookUrl":{"type":"string","isRequired":true,"uniqueKey":"webhookConfig.events.groups_participants\\.join.webhookUrl","typeLabel":"string"}},"uniqueKey":"webhookConfig.events.groups_participants\\.join","typeLabel":"object"},"groups_participants.leave":{"type":"object","description":"Participante saiu ou foi removido do grupo.","required":["enabled","webhookUrl"],"properties":{"enabled":{"type":"boolean","isRequired":true,"uniqueKey":"webhookConfig.events.groups_participants\\.leave.enabled","typeLabel":"boolean"},"webhookUrl":{"type":"string","isRequired":true,"uniqueKey":"webhookConfig.events.groups_participants\\.leave.webhookUrl","typeLabel":"string"}},"uniqueKey":"webhookConfig.events.groups_participants\\.leave","typeLabel":"object"},"groups_participants.promote":{"type":"object","description":"Participante virou admin.","required":["enabled","webhookUrl"],"properties":{"enabled":{"type":"boolean","isRequired":true,"uniqueKey":"webhookConfig.events.groups_participants\\.promote.enabled","typeLabel":"boolean"},"webhookUrl":{"type":"string","isRequired":true,"uniqueKey":"webhookConfig.events.groups_participants\\.promote.webhookUrl","typeLabel":"string"}},"uniqueKey":"webhookConfig.events.groups_participants\\.promote","typeLabel":"object"},"groups_participants.demote":{"type":"object","description":"Participante deixou de ser admin.","required":["enabled","webhookUrl"],"properties":{"enabled":{"type":"boolean","isRequired":true,"uniqueKey":"webhookConfig.events.groups_participants\\.demote.enabled","typeLabel":"boolean"},"webhookUrl":{"type":"string","isRequired":true,"uniqueKey":"webhookConfig.events.groups_participants\\.demote.webhookUrl","typeLabel":"string"}},"uniqueKey":"webhookConfig.events.groups_participants\\.demote","typeLabel":"object"},"group_participants.join-request":{"type":"object","description":"Pedido para entrar no grupo.","required":["enabled","webhookUrl"],"properties":{"enabled":{"type":"boolean","isRequired":true,"uniqueKey":"webhookConfig.events.group_participants\\.join-request.enabled","typeLabel":"boolean"},"webhookUrl":{"type":"string","isRequired":true,"uniqueKey":"webhookConfig.events.group_participants\\.join-request.webhookUrl","typeLabel":"string"}},"uniqueKey":"webhookConfig.events.group_participants\\.join-request","typeLabel":"object"},"group_participants.join-request.approved":{"type":"object","description":"Pedido de entrada aprovado.","required":["enabled","webhookUrl"],"properties":{"enabled":{"type":"boolean","isRequired":true,"uniqueKey":"webhookConfig.events.group_participants\\.join-request\\.approved.enabled","typeLabel":"boolean"},"webhookUrl":{"type":"string","isRequired":true,"uniqueKey":"webhookConfig.events.group_participants\\.join-request\\.approved.webhookUrl","typeLabel":"string"}},"uniqueKey":"webhookConfig.events.group_participants\\.join-request\\.approved","typeLabel":"object"},"group_participants.join-request.revoked":{"type":"object","description":"Pedido de entrada cancelado.","required":["enabled","webhookUrl"],"properties":{"enabled":{"type":"boolean","isRequired":true,"uniqueKey":"webhookConfig.events.group_participants\\.join-request\\.revoked.enabled","typeLabel":"boolean"},"webhookUrl":{"type":"string","isRequired":true,"uniqueKey":"webhookConfig.events.group_participants\\.join-request\\.revoked.webhookUrl","typeLabel":"string"}},"uniqueKey":"webhookConfig.events.group_participants\\.join-request\\.revoked","typeLabel":"object"},"labels.edit":{"type":"object","description":"Etiqueta criada, editada ou apagada.","required":["enabled","webhookUrl"],"properties":{"enabled":{"type":"boolean","isRequired":true,"uniqueKey":"webhookConfig.events.labels\\.edit.enabled","typeLabel":"boolean"},"webhookUrl":{"type":"string","isRequired":true,"uniqueKey":"webhookConfig.events.labels\\.edit.webhookUrl","typeLabel":"string"}},"uniqueKey":"webhookConfig.events.labels\\.edit","typeLabel":"object"},"labels.association.chat":{"type":"object","description":"Etiqueta aplicada ou removida de uma conversa.","required":["enabled","webhookUrl"],"properties":{"enabled":{"type":"boolean","isRequired":true,"uniqueKey":"webhookConfig.events.labels\\.association\\.chat.enabled","typeLabel":"boolean"},"webhookUrl":{"type":"string","isRequired":true,"uniqueKey":"webhookConfig.events.labels\\.association\\.chat.webhookUrl","typeLabel":"string"}},"uniqueKey":"webhookConfig.events.labels\\.association\\.chat","typeLabel":"object"},"labels.association.message":{"type":"object","description":"Etiqueta aplicada ou removida de uma mensagem.","required":["enabled","webhookUrl"],"properties":{"enabled":{"type":"boolean","isRequired":true,"uniqueKey":"webhookConfig.events.labels\\.association\\.message.enabled","typeLabel":"boolean"},"webhookUrl":{"type":"string","isRequired":true,"uniqueKey":"webhookConfig.events.labels\\.association\\.message.webhookUrl","typeLabel":"string"}},"uniqueKey":"webhookConfig.events.labels\\.association\\.message","typeLabel":"object"},"appstate.label.edit":{"type":"object","description":"Etiqueta alterada (evento bruto do WhatsApp).","required":["enabled","webhookUrl"],"properties":{"enabled":{"type":"boolean","isRequired":true,"uniqueKey":"webhookConfig.events.appstate\\.label\\.edit.enabled","typeLabel":"boolean"},"webhookUrl":{"type":"string","isRequired":true,"uniqueKey":"webhookConfig.events.appstate\\.label\\.edit.webhookUrl","typeLabel":"string"}},"uniqueKey":"webhookConfig.events.appstate\\.label\\.edit","typeLabel":"object"},"appstate.label.association.chat":{"type":"object","description":"Etiqueta em conversa (evento bruto do WhatsApp).","required":["enabled","webhookUrl"],"properties":{"enabled":{"type":"boolean","isRequired":true,"uniqueKey":"webhookConfig.events.appstate\\.label\\.association\\.chat.enabled","typeLabel":"boolean"},"webhookUrl":{"type":"string","isRequired":true,"uniqueKey":"webhookConfig.events.appstate\\.label\\.association\\.chat.webhookUrl","typeLabel":"string"}},"uniqueKey":"webhookConfig.events.appstate\\.label\\.association\\.chat","typeLabel":"object"},"appstate.label.association.message":{"type":"object","description":"Etiqueta em mensagem (evento bruto do WhatsApp).","required":["enabled","webhookUrl"],"properties":{"enabled":{"type":"boolean","isRequired":true,"uniqueKey":"webhookConfig.events.appstate\\.label\\.association\\.message.enabled","typeLabel":"boolean"},"webhookUrl":{"type":"string","isRequired":true,"uniqueKey":"webhookConfig.events.appstate\\.label\\.association\\.message.webhookUrl","typeLabel":"string"}},"uniqueKey":"webhookConfig.events.appstate\\.label\\.association\\.message","typeLabel":"object"},"appstate.agent.update":{"type":"object","description":"Agente do WhatsApp Business alterado (evento bruto).","required":["enabled","webhookUrl"],"properties":{"enabled":{"type":"boolean","isRequired":true,"uniqueKey":"webhookConfig.events.appstate\\.agent\\.update.enabled","typeLabel":"boolean"},"webhookUrl":{"type":"string","isRequired":true,"uniqueKey":"webhookConfig.events.appstate\\.agent\\.update.webhookUrl","typeLabel":"string"}},"uniqueKey":"webhookConfig.events.appstate\\.agent\\.update","typeLabel":"object"},"history_sync":{"type":"object","description":"Progresso da sincronização de histórico (exige historySync).","required":["enabled","webhookUrl"],"properties":{"enabled":{"type":"boolean","isRequired":true,"uniqueKey":"webhookConfig.events.history_sync.enabled","typeLabel":"boolean"},"webhookUrl":{"type":"string","isRequired":true,"uniqueKey":"webhookConfig.events.history_sync.webhookUrl","typeLabel":"string"}},"uniqueKey":"webhookConfig.events.history_sync","typeLabel":"object"},"history.message.upsert":{"type":"object","description":"Mensagem do histórico sincronizado.","required":["enabled","webhookUrl"],"properties":{"enabled":{"type":"boolean","isRequired":true,"uniqueKey":"webhookConfig.events.history\\.message\\.upsert.enabled","typeLabel":"boolean"},"webhookUrl":{"type":"string","isRequired":true,"uniqueKey":"webhookConfig.events.history\\.message\\.upsert.webhookUrl","typeLabel":"string"}},"uniqueKey":"webhookConfig.events.history\\.message\\.upsert","typeLabel":"object"},"history.message.received":{"type":"object","description":"Mensagem recebida vinda do histórico.","required":["enabled","webhookUrl"],"properties":{"enabled":{"type":"boolean","isRequired":true,"uniqueKey":"webhookConfig.events.history\\.message\\.received.enabled","typeLabel":"boolean"},"webhookUrl":{"type":"string","isRequired":true,"uniqueKey":"webhookConfig.events.history\\.message\\.received.webhookUrl","typeLabel":"string"}},"uniqueKey":"webhookConfig.events.history\\.message\\.received","typeLabel":"object"},"history.messages.sent":{"type":"object","description":"Mensagem enviada vinda do histórico.","required":["enabled","webhookUrl"],"properties":{"enabled":{"type":"boolean","isRequired":true,"uniqueKey":"webhookConfig.events.history\\.messages\\.sent.enabled","typeLabel":"boolean"},"webhookUrl":{"type":"string","isRequired":true,"uniqueKey":"webhookConfig.events.history\\.messages\\.sent.webhookUrl","typeLabel":"string"}},"uniqueKey":"webhookConfig.events.history\\.messages\\.sent","typeLabel":"object"},"connection.qrcode":{"type":"object","description":"Novo QR Code para parear.","required":["enabled","webhookUrl"],"properties":{"enabled":{"type":"boolean","isRequired":true,"uniqueKey":"webhookConfig.events.connection\\.qrcode.enabled","typeLabel":"boolean"},"webhookUrl":{"type":"string","isRequired":true,"uniqueKey":"webhookConfig.events.connection\\.qrcode.webhookUrl","typeLabel":"string"}},"uniqueKey":"webhookConfig.events.connection\\.qrcode","typeLabel":"object"},"connection.paircode":{"type":"object","description":"Código de pareamento (connectionMode pair).","required":["enabled","webhookUrl"],"properties":{"enabled":{"type":"boolean","isRequired":true,"uniqueKey":"webhookConfig.events.connection\\.paircode.enabled","typeLabel":"boolean"},"webhookUrl":{"type":"string","isRequired":true,"uniqueKey":"webhookConfig.events.connection\\.paircode.webhookUrl","typeLabel":"string"}},"uniqueKey":"webhookConfig.events.connection\\.paircode","typeLabel":"object"},"connection.status":{"type":"object","description":"Conexão mudou de status (conectada, desconectada).","required":["enabled","webhookUrl"],"properties":{"enabled":{"type":"boolean","isRequired":true,"uniqueKey":"webhookConfig.events.connection\\.status.enabled","typeLabel":"boolean"},"webhookUrl":{"type":"string","isRequired":true,"uniqueKey":"webhookConfig.events.connection\\.status.webhookUrl","typeLabel":"string"}},"uniqueKey":"webhookConfig.events.connection\\.status","typeLabel":"object"},"logged_out":{"type":"object","description":"O número foi desconectado do aparelho.","required":["enabled","webhookUrl"],"properties":{"enabled":{"type":"boolean","isRequired":true,"uniqueKey":"webhookConfig.events.logged_out.enabled","typeLabel":"boolean"},"webhookUrl":{"type":"string","isRequired":true,"uniqueKey":"webhookConfig.events.logged_out.webhookUrl","typeLabel":"string"}},"uniqueKey":"webhookConfig.events.logged_out","typeLabel":"object"},"call.offer":{"type":"object","description":"Ligação recebida tocando (exige receiveCalls).","required":["enabled","webhookUrl"],"properties":{"enabled":{"type":"boolean","isRequired":true,"uniqueKey":"webhookConfig.events.call\\.offer.enabled","typeLabel":"boolean"},"webhookUrl":{"type":"string","isRequired":true,"uniqueKey":"webhookConfig.events.call\\.offer.webhookUrl","typeLabel":"string"}},"uniqueKey":"webhookConfig.events.call\\.offer","typeLabel":"object"},"call.accepted":{"type":"object","description":"Ligação recebida atendida em outro aparelho.","required":["enabled","webhookUrl"],"properties":{"enabled":{"type":"boolean","isRequired":true,"uniqueKey":"webhookConfig.events.call\\.accepted.enabled","typeLabel":"boolean"},"webhookUrl":{"type":"string","isRequired":true,"uniqueKey":"webhookConfig.events.call\\.accepted.webhookUrl","typeLabel":"string"}},"uniqueKey":"webhookConfig.events.call\\.accepted","typeLabel":"object"},"call.rejected":{"type":"object","description":"Ligação recebida recusada.","required":["enabled","webhookUrl"],"properties":{"enabled":{"type":"boolean","isRequired":true,"uniqueKey":"webhookConfig.events.call\\.rejected.enabled","typeLabel":"boolean"},"webhookUrl":{"type":"string","isRequired":true,"uniqueKey":"webhookConfig.events.call\\.rejected.webhookUrl","typeLabel":"string"}},"uniqueKey":"webhookConfig.events.call\\.rejected","typeLabel":"object"},"call.ringing":{"type":"object","description":"Ligação feita está tocando no destino.","required":["enabled","webhookUrl"],"properties":{"enabled":{"type":"boolean","isRequired":true,"uniqueKey":"webhookConfig.events.call\\.ringing.enabled","typeLabel":"boolean"},"webhookUrl":{"type":"string","isRequired":true,"uniqueKey":"webhookConfig.events.call\\.ringing.webhookUrl","typeLabel":"string"}},"uniqueKey":"webhookConfig.events.call\\.ringing","typeLabel":"object"},"call.connected":{"type":"object","description":"Ligação atendida, áudio ativo.","required":["enabled","webhookUrl"],"properties":{"enabled":{"type":"boolean","isRequired":true,"uniqueKey":"webhookConfig.events.call\\.connected.enabled","typeLabel":"boolean"},"webhookUrl":{"type":"string","isRequired":true,"uniqueKey":"webhookConfig.events.call\\.connected.webhookUrl","typeLabel":"string"}},"uniqueKey":"webhookConfig.events.call\\.connected","typeLabel":"object"},"call.ended":{"type":"object","description":"Ligação encerrada.","required":["enabled","webhookUrl"],"properties":{"enabled":{"type":"boolean","isRequired":true,"uniqueKey":"webhookConfig.events.call\\.ended.enabled","typeLabel":"boolean"},"webhookUrl":{"type":"string","isRequired":true,"uniqueKey":"webhookConfig.events.call\\.ended.webhookUrl","typeLabel":"string"}},"uniqueKey":"webhookConfig.events.call\\.ended","typeLabel":"object"},"call.not_answered":{"type":"object","description":"Ligação feita não foi atendida.","required":["enabled","webhookUrl"],"properties":{"enabled":{"type":"boolean","isRequired":true,"uniqueKey":"webhookConfig.events.call\\.not_answered.enabled","typeLabel":"boolean"},"webhookUrl":{"type":"string","isRequired":true,"uniqueKey":"webhookConfig.events.call\\.not_answered.webhookUrl","typeLabel":"string"}},"uniqueKey":"webhookConfig.events.call\\.not_answered","typeLabel":"object"},"call.audio":{"type":"object","description":"Trechos de áudio da ligação (volume alto; habilite só se for gravar).","required":["enabled","webhookUrl"],"properties":{"enabled":{"type":"boolean","isRequired":true,"uniqueKey":"webhookConfig.events.call\\.audio.enabled","typeLabel":"boolean"},"webhookUrl":{"type":"string","isRequired":true,"uniqueKey":"webhookConfig.events.call\\.audio.webhookUrl","typeLabel":"string"}},"uniqueKey":"webhookConfig.events.call\\.audio","typeLabel":"object"}},"isRequired":true,"uniqueKey":"webhookConfig.events","typeLabel":"object"}},"uniqueKey":"webhookConfig","typeLabel":"object"},"ignoreGroups":{"type":"boolean","default":true,"description":"Não envia eventos de mensagens de grupos.","uniqueKey":"ignoreGroups","typeLabel":"boolean"},"ignoreStatus":{"type":"boolean","default":true,"description":"Não envia eventos de status (stories).","uniqueKey":"ignoreStatus","typeLabel":"boolean"},"historySync":{"type":"boolean","default":false,"description":"Sincroniza o histórico de conversas do aparelho ao conectar.","uniqueKey":"historySync","typeLabel":"boolean"},"receiveCalls":{"type":"boolean","default":false,"description":"Recebe as ligações feitas para o número (eventos `call.offer`) para atender ou recusar pela API.","uniqueKey":"receiveCalls","typeLabel":"boolean"}},"uniqueKey":"","typeLabel":"object"},"example":{"sessionId":"teste-12345","connectionMode":"qr","webhookUrl":"https://seu.webhook.com","webhookConfig":{"enabled":true,"type":"single","events":{"messages.received":{"enabled":true,"webhookUrl":"https://seu.webhook.com"},"messages.sent":{"enabled":true,"webhookUrl":"https://seu.webhook.com"},"message.delivered":{"enabled":true,"webhookUrl":"https://seu.webhook.com"},"message.read":{"enabled":true,"webhookUrl":"https://seu.webhook.com"},"message.update":{"enabled":true,"webhookUrl":"https://seu.webhook.com"},"message.deleted":{"enabled":true,"webhookUrl":"https://seu.webhook.com"},"contacts.upsert":{"enabled":true,"webhookUrl":"https://seu.webhook.com"},"contacts.update":{"enabled":true,"webhookUrl":"https://seu.webhook.com"},"chats.upsert":{"enabled":true,"webhookUrl":"https://seu.webhook.com"},"chats.update":{"enabled":true,"webhookUrl":"https://seu.webhook.com"},"presence":{"enabled":true,"webhookUrl":"https://seu.webhook.com"},"groups_participants.join":{"enabled":true,"webhookUrl":"https://seu.webhook.com"},"groups_participants.leave":{"enabled":true,"webhookUrl":"https://seu.webhook.com"},"groups_participants.promote":{"enabled":true,"webhookUrl":"https://seu.webhook.com"},"groups_participants.demote":{"enabled":true,"webhookUrl":"https://seu.webhook.com"},"group_participants.join-request":{"enabled":true,"webhookUrl":"https://seu.webhook.com"},"group_participants.join-request.approved":{"enabled":true,"webhookUrl":"https://seu.webhook.com"},"group_participants.join-request.revoked":{"enabled":true,"webhookUrl":"https://seu.webhook.com"},"labels.edit":{"enabled":true,"webhookUrl":"https://seu.webhook.com"},"labels.association.chat":{"enabled":true,"webhookUrl":"https://seu.webhook.com"},"labels.association.message":{"enabled":true,"webhookUrl":"https://seu.webhook.com"},"appstate.label.edit":{"enabled":false,"webhookUrl":"https://seu.webhook.com"},"appstate.label.association.chat":{"enabled":false,"webhookUrl":"https://seu.webhook.com"},"appstate.label.association.message":{"enabled":false,"webhookUrl":"https://seu.webhook.com"},"appstate.agent.update":{"enabled":false,"webhookUrl":"https://seu.webhook.com"},"history_sync":{"enabled":true,"webhookUrl":"https://seu.webhook.com"},"history.message.upsert":{"enabled":false,"webhookUrl":"https://seu.webhook.com"},"history.message.received":{"enabled":false,"webhookUrl":"https://seu.webhook.com"},"history.messages.sent":{"enabled":false,"webhookUrl":"https://seu.webhook.com"},"connection.qrcode":{"enabled":true,"webhookUrl":"https://seu.webhook.com"},"connection.paircode":{"enabled":true,"webhookUrl":"https://seu.webhook.com"},"connection.status":{"enabled":true,"webhookUrl":"https://seu.webhook.com"},"logged_out":{"enabled":true,"webhookUrl":"https://seu.webhook.com"},"call.offer":{"enabled":true,"webhookUrl":"https://seu.webhook.com"},"call.accepted":{"enabled":true,"webhookUrl":"https://seu.webhook.com"},"call.rejected":{"enabled":true,"webhookUrl":"https://seu.webhook.com"},"call.ringing":{"enabled":true,"webhookUrl":"https://seu.webhook.com"},"call.connected":{"enabled":true,"webhookUrl":"https://seu.webhook.com"},"call.ended":{"enabled":true,"webhookUrl":"https://seu.webhook.com"},"call.not_answered":{"enabled":true,"webhookUrl":"https://seu.webhook.com"},"call.audio":{"enabled":false,"webhookUrl":"https://seu.webhook.com"}}},"ignoreGroups":true,"ignoreStatus":true,"historySync":true},"examples":{"Example":{"title":"Example","value":{"sessionId":"teste-12345","connectionMode":"qr","webhookUrl":"https://seu.webhook.com","webhookConfig":{"enabled":true,"type":"single","events":{"messages.received":{"enabled":true,"webhookUrl":"https://seu.webhook.com"},"messages.sent":{"enabled":true,"webhookUrl":"https://seu.webhook.com"},"message.delivered":{"enabled":true,"webhookUrl":"https://seu.webhook.com"},"message.read":{"enabled":true,"webhookUrl":"https://seu.webhook.com"},"message.update":{"enabled":true,"webhookUrl":"https://seu.webhook.com"},"message.deleted":{"enabled":true,"webhookUrl":"https://seu.webhook.com"},"contacts.upsert":{"enabled":true,"webhookUrl":"https://seu.webhook.com"},"contacts.update":{"enabled":true,"webhookUrl":"https://seu.webhook.com"},"chats.upsert":{"enabled":true,"webhookUrl":"https://seu.webhook.com"},"chats.update":{"enabled":true,"webhookUrl":"https://seu.webhook.com"},"presence":{"enabled":true,"webhookUrl":"https://seu.webhook.com"},"groups_participants.join":{"enabled":true,"webhookUrl":"https://seu.webhook.com"},"groups_participants.leave":{"enabled":true,"webhookUrl":"https://seu.webhook.com"},"groups_participants.promote":{"enabled":true,"webhookUrl":"https://seu.webhook.com"},"groups_participants.demote":{"enabled":true,"webhookUrl":"https://seu.webhook.com"},"group_participants.join-request":{"enabled":true,"webhookUrl":"https://seu.webhook.com"},"group_participants.join-request.approved":{"enabled":true,"webhookUrl":"https://seu.webhook.com"},"group_participants.join-request.revoked":{"enabled":true,"webhookUrl":"https://seu.webhook.com"},"labels.edit":{"enabled":true,"webhookUrl":"https://seu.webhook.com"},"labels.association.chat":{"enabled":true,"webhookUrl":"https://seu.webhook.com"},"labels.association.message":{"enabled":true,"webhookUrl":"https://seu.webhook.com"},"appstate.label.edit":{"enabled":false,"webhookUrl":"https://seu.webhook.com"},"appstate.label.association.chat":{"enabled":false,"webhookUrl":"https://seu.webhook.com"},"appstate.label.association.message":{"enabled":false,"webhookUrl":"https://seu.webhook.com"},"appstate.agent.update":{"enabled":false,"webhookUrl":"https://seu.webhook.com"},"history_sync":{"enabled":true,"webhookUrl":"https://seu.webhook.com"},"history.message.upsert":{"enabled":false,"webhookUrl":"https://seu.webhook.com"},"history.message.received":{"enabled":false,"webhookUrl":"https://seu.webhook.com"},"history.messages.sent":{"enabled":false,"webhookUrl":"https://seu.webhook.com"},"connection.qrcode":{"enabled":true,"webhookUrl":"https://seu.webhook.com"},"connection.paircode":{"enabled":true,"webhookUrl":"https://seu.webhook.com"},"connection.status":{"enabled":true,"webhookUrl":"https://seu.webhook.com"},"logged_out":{"enabled":true,"webhookUrl":"https://seu.webhook.com"},"call.offer":{"enabled":true,"webhookUrl":"https://seu.webhook.com"},"call.accepted":{"enabled":true,"webhookUrl":"https://seu.webhook.com"},"call.rejected":{"enabled":true,"webhookUrl":"https://seu.webhook.com"},"call.ringing":{"enabled":true,"webhookUrl":"https://seu.webhook.com"},"call.connected":{"enabled":true,"webhookUrl":"https://seu.webhook.com"},"call.ended":{"enabled":true,"webhookUrl":"https://seu.webhook.com"},"call.not_answered":{"enabled":true,"webhookUrl":"https://seu.webhook.com"},"call.audio":{"enabled":false,"webhookUrl":"https://seu.webhook.com"}}},"ignoreGroups":true,"ignoreStatus":true,"historySync":true}}},"exampleType":"examples"}},"exampleType":"examples"},"responses":{"8db355c9-b792-4c0f-a0a0-0e543ef2facd":{"description":"Resposta bem-sucedida","content":{"_mintlify/placeholder":{"schema":{"type":"object","description":""}}}}},"security":{"c8dc15ad-2796-46a9-8796-64231a32d144":{"ApiKeyAuth":{"type":"apiKey","in":"header","name":"Authorization","description":"API Key para autenticação. Formato: \u003cAPI_KEY>","scopes":[],"schemeName":"ApiKeyAuth"}}},"servers":{"74d5cdab-cf9c-4cb3-8ee8-6ecb7be8a3cb":{"url":"https://api.d-api.cloud","description":"Produção"}},"processedSecurityOptions":[{"schemes":[{"scheme":{"type":"apiKey","in":"header","name":"Authorization","description":"API Key para autenticação. Formato: \u003cAPI_KEY>","scopes":[],"schemeName":"ApiKeyAuth"},"schema":{"title":"Authorization","type":"string","description":"API Key para autenticação. Formato: \u003cAPI_KEY>","isRequired":true,"typeLabel":"string","deprecated":false},"schemeName":"ApiKeyAuth","name":"Authorization"}],"title":"ApiKeyAuth"}]},"originalFileLocation":"api-reference/openapi.json"},"subdomain":"d-api","siteName":"D-API","title":"Criar uma sessão - D-API","navMaps":{"firstHrefInVersion":{},"firstHrefInLanguage":{"pt-BR":{"href":"/api-reference/endpoints/criar-sessao","matchLevel":0},"en":{"href":"/en/api-reference/endpoints/criar-sessao","matchLevel":1}}},"lastModified":"2026-06-14T22:48:56.667Z","originalFileLocation":"api-reference/endpoints/criar-sessao.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=\"Crie ou inicie uma sessão do WhatsApp.\">\u003cmeta data-mint-head name=\"application-name\" content=\"D-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/d-api/36SbMupri6RA-H0W/_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/d-api/36SbMupri6RA-H0W/_generated/favicon/apple-touch-icon.png\">\u003clink data-mint-head rel=\"icon\" type=\"image/png\" sizes=\"16x16\" href=\"/mintlify-assets/_mintlify/favicons/d-api/36SbMupri6RA-H0W/_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/d-api/36SbMupri6RA-H0W/_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/d-api/36SbMupri6RA-H0W/_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/d-api/36SbMupri6RA-H0W/_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/d-api/36SbMupri6RA-H0W/_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/d-api/36SbMupri6RA-H0W/_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/d-api/36SbMupri6RA-H0W/_generated/favicon-dark/favicon.ico\" media=\"(prefers-color-scheme: dark)\">\u003cmeta data-mint-head property=\"og:title\" content=\"Criar uma sessão - D-API\">\u003cmeta data-mint-head property=\"og:description\" content=\"Crie ou inicie uma sessão do WhatsApp.\">\u003cmeta data-mint-head property=\"og:site_name\" content=\"D-API\">\u003cmeta data-mint-head property=\"og:url\" content=\"https://docs.d-api.cloud/api-reference/endpoints/criar-sessao\">\u003cmeta data-mint-head property=\"og:type\" content=\"website\">\u003cmeta data-mint-head property=\"og:image\" content=\"https://d-api.mintlify.site/_mintlify/api/og/v2?division=Sess%C3%B5es\u0026amp;title=Criar+uma+sess%C3%A3o\u0026amp;description=Crie+ou+inicie+uma+sess%C3%A3o+do+WhatsApp.\u0026amp;theme=6bf39124e553ea1529d3e32e\u0026amp;signature=1b853b1ae0a1c5a96d1f4449b851816cc285507033c4312e5a0d1cd207643b66\">\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 uma sessão - D-API\">\u003cmeta data-mint-head name=\"twitter:description\" content=\"Crie ou inicie uma sessão do WhatsApp.\">\u003cmeta data-mint-head name=\"twitter:image\" content=\"https://d-api.mintlify.site/_mintlify/api/og/v2?division=Sess%C3%B5es\u0026amp;title=Criar+uma+sess%C3%A3o\u0026amp;description=Crie+ou+inicie+uma+sess%C3%A3o+do+WhatsApp.\u0026amp;theme=6bf39124e553ea1529d3e32e\u0026amp;signature=1b853b1ae0a1c5a96d1f4449b851816cc285507033c4312e5a0d1cd207643b66\">\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/d-api/36SbMupri6RA-H0W/_generated/favicon/browserconfig.xml\">\u003cmeta data-mint-head name=\"apple-mobile-web-app-title\" content=\"D-API\">\u003cmeta data-mint-head name=\"msapplication-TileColor\" content=\"#00B7CD\">\u003clink data-mint-head rel=\"canonical\" href=\"https://docs.d-api.cloud/api-reference/endpoints/criar-sessao\">\u003clink data-mint-head rel=\"alternate\" type=\"application/xml\" href=\"/sitemap.xml\">\u003clink data-mint-head rel=\"alternate\" type=\"text/markdown\" href=\"/api-reference/endpoints/criar-sessao.md\">\u003clink data-mint-head rel=\"alternate\" hreflang=\"pt-BR\" href=\"https://docs.d-api.cloud/api-reference/endpoints/criar-sessao\">\u003clink data-mint-head rel=\"alternate\" hreflang=\"en\" href=\"https://docs.d-api.cloud/en/api-reference/endpoints/criar-sessao\">\u003clink data-mint-head rel=\"alternate\" hreflang=\"x-default\" href=\"https://docs.d-api.cloud/api-reference/endpoints/criar-sessao\">\u003cscript data-mint-head type=\"application/ld+json\">{\"@context\":\"https://schema.org\",\"@graph\":[{\"@type\":\"Organization\",\"@id\":\"https://docs.d-api.cloud/#organization\",\"name\":\"D-API\",\"url\":\"https://docs.d-api.cloud\",\"logo\":{\"@type\":\"ImageObject\",\"url\":\"https://mintcdn.com/d-api/dcX-Hd4-QsKLE866/logo/dapi-horizontal.png?fit=max\u0026auto=format\u0026n=dcX-Hd4-QsKLE866\u0026q=85\u0026s=449901bb5b53e11232d03fd1fa54a4c3\"}},{\"@type\":\"WebSite\",\"@id\":\"https://docs.d-api.cloud#website\",\"name\":\"D-API\",\"url\":\"https://docs.d-api.cloud\",\"publisher\":{\"@id\":\"https://docs.d-api.cloud/#organization\"}},{\"@type\":\"WebPage\",\"@id\":\"https://docs.d-api.cloud/api-reference/endpoints/criar-sessao#webpage\",\"url\":\"https://docs.d-api.cloud/api-reference/endpoints/criar-sessao\",\"name\":\"Criar uma sessão\",\"description\":\"Crie ou inicie uma sessão do WhatsApp.\",\"dateModified\":\"2026-06-14T22:48:56.667Z\",\"isPartOf\":{\"@id\":\"https://docs.d-api.cloud#website\"},\"breadcrumb\":{\"@id\":\"https://docs.d-api.cloud/api-reference/endpoints/criar-sessao#breadcrumb\"}},{\"@type\":\"BreadcrumbList\",\"@id\":\"https://docs.d-api.cloud/api-reference/endpoints/criar-sessao#breadcrumb\",\"itemListElement\":[{\"@type\":\"ListItem\",\"position\":1,\"name\":\"D-API\",\"item\":\"https://docs.d-api.cloud\"},{\"@type\":\"ListItem\",\"position\":2,\"name\":\"Criar uma sessão\",\"item\":\"https://docs.d-api.cloud/api-reference/endpoints/criar-sessao\"}]},{\"@type\":[\"TechArticle\",\"APIReference\"],\"@id\":\"https://docs.d-api.cloud/api-reference/endpoints/criar-sessao#apireference\",\"headline\":\"Criar uma sessão\",\"name\":\"Criar uma sessão\",\"description\":\"Crie ou inicie uma sessão do WhatsApp.\",\"url\":\"https://docs.d-api.cloud/api-reference/endpoints/criar-sessao\",\"mainEntityOfPage\":{\"@id\":\"https://docs.d-api.cloud/api-reference/endpoints/criar-sessao#webpage\"},\"dateModified\":\"2026-06-14T22:48:56.667Z\",\"publisher\":{\"@id\":\"https://docs.d-api.cloud/#organization\"},\"isPartOf\":{\"@id\":\"https://docs.d-api.cloud#website\"}}]}\u003c/script>\u003cscript data-mint-head type=\"application/ld+json\">{\"@context\":\"https://schema.org\",\"@type\":\"WebSite\",\"name\":\"D-API\",\"publisher\":{\"@type\":\"Organization\",\"name\":\"D-API\"},\"provider\":{\"@type\":\"Organization\",\"name\":\"Mintlify\",\"url\":\"https://mintlify.com\"}}\u003c/script>","agentPointerHref":"/api-reference/endpoints/criar-sessao.md","siteName":"D-API","nav":{"global":null,"languages":[{"language":"pt-BR","default":true,"tabs":[{"tab":"WhatsApp","pages":[{"title":"WhatsApp","href":"/whatsapp/introducao"}]},{"tab":"API Oficial","pages":[{"title":"API Oficial","href":"/api-oficial/saas"}]},{"tab":"SMS","pages":[{"title":"SMS","href":"/sms/webhooks/visao-geral"}]},{"tab":"URA","pages":[{"title":"URA","href":"/ura/ligacoes/stream"}]},{"tab":"API Reference","groups":[{"group":"Começando","pages":[{"title":"Introdução","href":"/api-reference/introduction"},{"title":"Quickstart","href":"/api-reference/quickstart"},{"title":"Retorna informações básicas sobre a API","deprecated":null,"version":null,"openapi":"/api-reference/openapi.json get /","href":"/api-reference/início/retorna-informações-básicas-sobre-a-api"},{"title":"Retorna o status de saúde da API incluindo DB, RabbitMQ e Redis","description":null,"deprecated":null,"version":null,"openapi":"/api-reference/openapi.json get /health","href":"/api-reference/início/retorna-o-status-de-saúde-da-api-incluindo-db-rabbitmq-e-redis"}]},{"group":"Sessões","pages":[{"title":"Criar uma sessão","openapi":"api-reference/openapi.json POST /api/v1/sessions","href":"/api-reference/endpoints/criar-sessao"},{"title":"Conectar via QR code","description":"Obtenha o QR code para conectar a sessão ao WhatsApp.","openapi":"api-reference/openapi.json GET /api/v1/sessions/{sessionId}/qr","href":"/api-reference/endpoints/conectar-qr"},{"title":"Gerar código de migração (OTP)","openapi":"api-reference/openapi.json POST /api/v1/sessions/{sessionId}/migration-otp","href":"/api-reference/endpoints/gerar-otp"},{"title":"Listar todas as sessões","deprecated":null,"version":null,"openapi":"/api-reference/openapi.json get /api/v1/sessions","href":"/api-reference/sessões/listar-todas-as-sessões"},{"title":"Dados de uma sessão","deprecated":null,"version":null,"openapi":"/api-reference/openapi.json get /api/v1/sessions/{sessionId}","href":"/api-reference/sessões/dados-de-uma-sessão"},{"title":"Deletar uma sessão","deprecated":null,"version":null,"openapi":"/api-reference/openapi.json delete /api/v1/sessions/{sessionId}","href":"/api-reference/sessões/deletar-uma-sessão"},{"title":"Logs de uma sessão","deprecated":null,"version":null,"openapi":"/api-reference/openapi.json get /api/v1/sessions/{sessionId}/logs","href":"/api-reference/sessões/logs-de-uma-sessão"},{"title":"Atualizar webhook de uma sessão","deprecated":null,"version":null,"openapi":"/api-reference/openapi.json post /api/v1/sessions/{sessionId}/webhook","href":"/api-reference/sessões/atualizar-webhook-de-uma-sessão"},{"title":"Salvar configurações do RabbitMQ","deprecated":null,"version":null,"openapi":"/api-reference/openapi.json post /api/v1/sessions/{sessionId}/rabbitmq-config","href":"/api-reference/sessões/salvar-configurações-do-rabbitmq"},{"title":"Salvar configurações do Webhook","deprecated":null,"version":null,"openapi":"/api-reference/openapi.json post /api/v1/sessions/{sessionId}/webhook-config","href":"/api-reference/sessões/salvar-configurações-do-webhook"},{"title":"Atualizar filtros de mensagens","deprecated":null,"version":null,"openapi":"/api-reference/openapi.json post /api/v1/sessions/{sessionId}/ignore-settings","href":"/api-reference/sessões/atualizar-filtros-de-mensagens"},{"title":"Atualizar configurações de chamada","deprecated":null,"version":null,"openapi":"/api-reference/openapi.json post /api/v1/sessions/{sessionId}/call-settings","href":"/api-reference/sessões/atualizar-configurações-de-chamada"},{"title":"Atualizar marcação automática como lida","deprecated":null,"version":null,"openapi":"/api-reference/openapi.json post /api/v1/sessions/{sessionId}/mark-previous-as-read-settings","href":"/api-reference/sessões/atualizar-marcação-automática-como-lida"},{"title":"Atualizar uso do código do Brasil","deprecated":null,"version":null,"openapi":"/api-reference/openapi.json post /api/v1/sessions/{sessionId}/assume-br-country-code-settings","href":"/api-reference/sessões/atualizar-uso-do-código-do-brasil"},{"title":"Atualizar armazenamento de mensagens","deprecated":null,"version":null,"openapi":"/api-reference/openapi.json post /api/v1/sessions/{sessionId}/disable-message-storage-settings","href":"/api-reference/sessões/atualizar-armazenamento-de-mensagens"},{"title":"Atualizar recebimento de chamadas","deprecated":null,"version":null,"openapi":"/api-reference/openapi.json post /api/v1/sessions/{sessionId}/receive-calls-settings","href":"/api-reference/sessões/atualizar-recebimento-de-chamadas"},{"title":"Atualizar modo de entrega de comandos","deprecated":null,"version":null,"openapi":"/api-reference/openapi.json post /api/v1/sessions/{sessionId}/command-mode","href":"/api-reference/sessões/atualizar-modo-de-entrega-de-comandos"},{"title":"Reconectar uma sessão com restart do pod","deprecated":null,"version":null,"openapi":"/api-reference/openapi.json get /api/v1/sessions/{sessionId}/connect","href":"/api-reference/sessões/reconectar-uma-sessão-com-restart-do-pod"},{"title":"Desconectar uma sessão","deprecated":null,"version":null,"openapi":"/api-reference/openapi.json post /api/v1/sessions/{sessionId}/disconnect","href":"/api-reference/sessões/desconectar-uma-sessão"},{"title":"Passkey connect disponível?","deprecated":null,"version":null,"openapi":"/api-reference/openapi.json get /api/v1/sessions/passkey/available","href":"/api-reference/sessões/passkey-connect-disponível?"},{"title":"Obter o desafio WebAuthn (passkey) de uma sessão","deprecated":null,"version":null,"openapi":"/api-reference/openapi.json get /api/v1/sessions/{sessionId}/auth/passkey","href":"/api-reference/sessões/obter-o-desafio-webauthn-passkey-de-uma-sessão"},{"title":"Enviar a assinatura WebAuthn (passkey) de uma sessão","deprecated":null,"version":null,"openapi":"/api-reference/openapi.json post /api/v1/sessions/{sessionId}/auth/passkey","href":"/api-reference/sessões/enviar-a-assinatura-webauthn-passkey-de-uma-sessão"},{"title":"Gerar código de fallback para passkey (popup)","deprecated":null,"version":null,"openapi":"/api-reference/openapi.json post /api/v1/sessions/{sessionId}/auth/passkey/code","href":"/api-reference/sessões/gerar-código-de-fallback-para-passkey-popup"},{"title":"Obter o código de pareamento de uma sessão","deprecated":null,"version":null,"openapi":"/api-reference/openapi.json get /api/v1/sessions/{sessionId}/pair-code","href":"/api-reference/sessões/obter-o-código-de-pareamento-de-uma-sessão"},{"title":"Importar sessão migrada do WhatsApp Web","deprecated":null,"version":null,"openapi":"/api-reference/openapi.json post /api/v1/sessions/{sessionId}/import-web-auth","href":"/api-reference/sessões/importar-sessão-migrada-do-whatsapp-web"},{"title":"Obter o desafio de passkey por código (fallback popup)","deprecated":null,"version":null,"openapi":"/api-reference/openapi.json get /api/v1/session-passkey/{code}","href":"/api-reference/sessões/obter-o-desafio-de-passkey-por-código-fallback-popup"},{"title":"Enviar a assinatura de passkey por código (fallback popup)","deprecated":null,"version":null,"openapi":"/api-reference/openapi.json post /api/v1/session-passkey/{code}","href":"/api-reference/sessões/enviar-a-assinatura-de-passkey-por-código-fallback-popup"}]},{"group":"Migração","pages":[{"title":"Migrar sessão do WhatsApp Web com código único","deprecated":null,"version":null,"openapi":"/api-reference/openapi.json post /api/v1/session-migration/migrate","href":"/api-reference/migração/migrar-sessão-do-whatsapp-web-com-código-único"}]},{"group":"Mensagens","pages":[{"title":"Enviar mensagem de texto","openapi":"api-reference/openapi.json POST /api/v1/messages/send/text","href":"/api-reference/endpoints/enviar-texto"},{"title":"Enviar imagem","openapi":"api-reference/openapi.json POST /api/v1/messages/send/image","href":"/api-reference/endpoints/enviar-imagem"},{"title":"Enviar mensagem com vídeo","deprecated":null,"version":null,"openapi":"/api-reference/openapi.json post /api/v1/messages/send/video","href":"/api-reference/mensagens/enviar-mensagem-com-vídeo"},{"title":"Enviar mensagem com áudio","deprecated":null,"version":null,"openapi":"/api-reference/openapi.json post /api/v1/messages/send/audio","href":"/api-reference/mensagens/enviar-mensagem-com-áudio"},{"title":"Enviar mensagem com documento","deprecated":null,"version":null,"openapi":"/api-reference/openapi.json post /api/v1/messages/send/document","href":"/api-reference/mensagens/enviar-mensagem-com-documento"},{"title":"Enviar sticker","deprecated":null,"version":null,"openapi":"/api-reference/openapi.json post /api/v1/messages/send/sticker","href":"/api-reference/mensagens/enviar-sticker"},{"title":"Enviar localização","deprecated":null,"version":null,"openapi":"/api-reference/openapi.json post /api/v1/messages/send/location","href":"/api-reference/mensagens/enviar-localização"},{"title":"Enviar contato","deprecated":null,"version":null,"openapi":"/api-reference/openapi.json post /api/v1/messages/send/contact","href":"/api-reference/mensagens/enviar-contato"},{"title":"Enviar enquete","deprecated":null,"version":null,"openapi":"/api-reference/openapi.json post /api/v1/messages/send/poll","href":"/api-reference/mensagens/enviar-enquete"},{"title":"Enviar reação","deprecated":null,"version":null,"openapi":"/api-reference/openapi.json post /api/v1/messages/send/reaction","href":"/api-reference/mensagens/enviar-reação"},{"title":"Enviar álbum","deprecated":null,"version":null,"openapi":"/api-reference/openapi.json post /api/v1/messages/send/album","href":"/api-reference/mensagens/enviar-álbum"}]},{"group":"Mensagens interativas","pages":[{"title":"Enviar mensagem de lista","openapi":"api-reference/openapi.json POST /api/v1/interactive/send/list","href":"/api-reference/endpoints/enviar-lista"},{"title":"Enviar mensagem carousel","deprecated":null,"version":null,"openapi":"/api-reference/openapi.json post /api/v1/interactive/send/carousel","href":"/api-reference/mensagens-interativas/enviar-mensagem-carousel"},{"title":"Enviar mensagem template","deprecated":null,"version":null,"openapi":"/api-reference/openapi.json post /api/v1/interactive/send/template","href":"/api-reference/mensagens-interativas/enviar-mensagem-template"},{"title":"Enviar mensagem NativeFlow (Mobile apenas)","deprecated":null,"version":null,"openapi":"/api-reference/openapi.json post /api/v1/interactive/send/nativeflow","href":"/api-reference/mensagens-interativas/enviar-mensagem-nativeflow-mobile-apenas"},{"title":"Enviar mensagem com botão PIX","deprecated":null,"version":null,"openapi":"/api-reference/openapi.json post /api/v1/interactive/send/pix","href":"/api-reference/mensagens-interativas/enviar-mensagem-com-botão-pix"}]},{"group":"Conversas","pages":[{"title":"Editar mensagem","deprecated":null,"version":null,"openapi":"/api-reference/openapi.json put /api/v1/messages/{messageId}","href":"/api-reference/chat/editar-mensagem"},{"title":"Listar chats de uma sessão","deprecated":null,"version":null,"openapi":"/api-reference/openapi.json get /api/v1/chats/","href":"/api-reference/chat/listar-chats-de-uma-sessão"},{"title":"Busca avançada de chats","deprecated":null,"version":null,"openapi":"/api-reference/openapi.json post /api/v1/chats/search","href":"/api-reference/chat/busca-avançada-de-chats"},{"title":"Busca avançada de mensagens","deprecated":null,"version":null,"openapi":"/api-reference/openapi.json post /api/v1/chats/messages/search","href":"/api-reference/chat/busca-avançada-de-mensagens"},{"title":"Listar mensagens de um chat (simplificado)","deprecated":null,"version":null,"openapi":"/api-reference/openapi.json get /api/v1/chats/{chatId}/messages","href":"/api-reference/chat/listar-mensagens-de-um-chat-simplificado"},{"title":"Enviar presença","deprecated":null,"version":null,"openapi":"/api-reference/openapi.json post /api/v1/chats/presence","href":"/api-reference/chat/enviar-presença"},{"title":"Marcar como lidas","deprecated":null,"version":null,"openapi":"/api-reference/openapi.json post /api/v1/chats/read","href":"/api-reference/chat/marcar-como-lidas"},{"title":"Deletar mensagem","deprecated":null,"version":null,"openapi":"/api-reference/openapi.json delete /api/v1/chats/messages/{messageId}","href":"/api-reference/chat/deletar-mensagem"},{"title":"Obter detalhes de um chat","deprecated":null,"version":null,"openapi":"/api-reference/openapi.json get /api/v1/chats/{chatId}","href":"/api-reference/chat/obter-detalhes-de-um-chat"}]},{"group":"Contatos","pages":[{"title":"Obter blocklist","deprecated":null,"version":null,"openapi":"/api-reference/openapi.json get /api/v1/contacts/blocklist","href":"/api-reference/contacts/obter-blocklist"},{"title":"Atualizar blocklist","deprecated":null,"version":null,"openapi":"/api-reference/openapi.json post /api/v1/contacts/blocklist","href":"/api-reference/contacts/atualizar-blocklist"},{"title":"Reportar contato","deprecated":null,"version":null,"openapi":"/api-reference/openapi.json post /api/v1/contacts/report","href":"/api-reference/contacts/reportar-contato"},{"title":"Listar contatos","deprecated":null,"version":null,"openapi":"/api-reference/openapi.json get /api/v1/contacts/","href":"/api-reference/contacts/listar-contatos"},{"title":"Obter informações do contato","openapi":"api-reference/openapi.json GET /api/v1/contacts/{phone}","href":"/api-reference/endpoints/obter-contato"},{"title":"Obter avatar do usuário","deprecated":null,"version":null,"openapi":"/api-reference/openapi.json get /api/v1/contacts/{phone}/avatar","href":"/api-reference/contacts/obter-avatar-do-usuário"},{"title":"Verificar usuários","deprecated":null,"version":null,"openapi":"/api-reference/openapi.json post /api/v1/contacts/check","href":"/api-reference/contacts/verificar-usuários"},{"title":"Obter informações do usuário","deprecated":null,"version":null,"openapi":"/api-reference/openapi.json post /api/v1/contacts/getuser","href":"/api-reference/contacts/obter-informações-do-usuário"}]},{"group":"Grupos","pages":[{"title":"Criar grupo","openapi":"api-reference/openapi.json POST /api/v1/groups/create","href":"/api-reference/endpoints/criar-grupo"},{"title":"Listar grupos","deprecated":null,"version":null,"openapi":"/api-reference/openapi.json get /api/v1/groups/list","href":"/api-reference/grupos/listar-grupos"},{"title":"Obter informações do grupo","deprecated":null,"version":null,"openapi":"/api-reference/openapi.json get /api/v1/groups/{groupId}/info","href":"/api-reference/grupos/obter-informações-do-grupo"},{"title":"Gerenciar participantes do grupo","deprecated":null,"version":null,"openapi":"/api-reference/openapi.json post /api/v1/groups/{groupId}/participants","href":"/api-reference/grupos/gerenciar-participantes-do-grupo"},{"title":"Entrar no grupo","deprecated":null,"version":null,"openapi":"/api-reference/openapi.json post /api/v1/groups/{groupId}/join","href":"/api-reference/grupos/entrar-no-grupo"},{"title":"Sair do grupo","deprecated":null,"version":null,"openapi":"/api-reference/openapi.json post /api/v1/groups/{groupId}/leave","href":"/api-reference/grupos/sair-do-grupo"},{"title":"Vincular grupo a uma comunidade","deprecated":null,"version":null,"openapi":"/api-reference/openapi.json post /api/v1/groups/{groupId}/link","href":"/api-reference/grupos/vincular-grupo-a-uma-comunidade"},{"title":"Obter convite do grupo","deprecated":null,"version":null,"openapi":"/api-reference/openapi.json get /api/v1/groups/{groupId}/invite","href":"/api-reference/grupos/obter-convite-do-grupo"},{"title":"Definir descrição do grupo","deprecated":null,"version":null,"openapi":"/api-reference/openapi.json put /api/v1/groups/{groupId}/description","href":"/api-reference/grupos/definir-descrição-do-grupo"},{"title":"Definir nome do grupo","deprecated":null,"version":null,"openapi":"/api-reference/openapi.json put /api/v1/groups/{groupId}/name","href":"/api-reference/grupos/definir-nome-do-grupo"},{"title":"Definir foto do grupo","deprecated":null,"version":null,"openapi":"/api-reference/openapi.json put /api/v1/groups/{groupId}/profile-picture","href":"/api-reference/grupos/definir-foto-do-grupo"},{"title":"Definir configurações de privacidade do grupo","deprecated":null,"version":null,"openapi":"/api-reference/openapi.json put /api/v1/groups/{groupId}/settings","href":"/api-reference/grupos/definir-configurações-de-privacidade-do-grupo"},{"title":"Revogar link de convite do grupo","deprecated":null,"version":null,"openapi":"/api-reference/openapi.json post /api/v1/groups/{groupId}/invite/revoke","href":"/api-reference/grupos/revogar-link-de-convite-do-grupo"},{"title":"Aprovar solicitações de entrada no grupo","deprecated":null,"version":null,"openapi":"/api-reference/openapi.json post /api/v1/groups/{groupId}/join-requests/approve","href":"/api-reference/grupos/aprovar-solicitações-de-entrada-no-grupo"},{"title":"Reprovar solicitações de entrada no grupo","deprecated":null,"version":null,"openapi":"/api-reference/openapi.json post /api/v1/groups/{groupId}/join-requests/reject","href":"/api-reference/grupos/reprovar-solicitações-de-entrada-no-grupo"}]},{"group":"Etiquetas","pages":[{"title":"Sincronizar etiquetas","deprecated":null,"version":null,"openapi":"/api-reference/openapi.json post /api/v1/labels/sync","href":"/api-reference/etiquetas/sincronizar-etiquetas"},{"title":"Criar/editar etiqueta","deprecated":null,"version":null,"openapi":"/api-reference/openapi.json post /api/v1/labels/upsert","href":"/api-reference/etiquetas/criareditar-etiqueta"},{"title":"Associar etiqueta a chat","deprecated":null,"version":null,"openapi":"/api-reference/openapi.json post /api/v1/labels/attach","href":"/api-reference/etiquetas/associar-etiqueta-a-chat"},{"title":"Listar etiquetas","deprecated":null,"version":null,"openapi":"/api-reference/openapi.json get /api/v1/labels/list","href":"/api-reference/etiquetas/listar-etiquetas"},{"title":"Listar etiquetas de contato","deprecated":null,"version":null,"openapi":"/api-reference/openapi.json get /api/v1/labels/contact-labels","href":"/api-reference/etiquetas/listar-etiquetas-de-contato"}]},{"group":"Catálogo","pages":[{"title":"Listar produtos do catálogo","deprecated":null,"version":null,"openapi":"/api-reference/openapi.json post /api/v1/catalog/list","href":"/api-reference/catálogo/listar-produtos-do-catálogo"},{"title":"Listar coleções do catálogo","deprecated":null,"version":null,"openapi":"/api-reference/openapi.json post /api/v1/catalog/collections/list","href":"/api-reference/catálogo/listar-coleções-do-catálogo"},{"title":"Buscar produto por ID","deprecated":null,"version":null,"openapi":"/api-reference/openapi.json post /api/v1/catalog/product/get","href":"/api-reference/catálogo/buscar-produto-por-id"},{"title":"Criar produto","deprecated":null,"version":null,"openapi":"/api-reference/openapi.json post /api/v1/catalog/product/create","href":"/api-reference/catálogo/criar-produto"},{"title":"Editar produto","deprecated":null,"version":null,"openapi":"/api-reference/openapi.json post /api/v1/catalog/product/edit","href":"/api-reference/catálogo/editar-produto"},{"title":"Excluir produto","deprecated":null,"version":null,"openapi":"/api-reference/openapi.json post /api/v1/catalog/product/delete","href":"/api-reference/catálogo/excluir-produto"},{"title":"Criar coleção","deprecated":null,"version":null,"openapi":"/api-reference/openapi.json post /api/v1/catalog/collection/create","href":"/api-reference/catálogo/criar-coleção"},{"title":"Editar coleção","deprecated":null,"version":null,"openapi":"/api-reference/openapi.json post /api/v1/catalog/collection/edit","href":"/api-reference/catálogo/editar-coleção"},{"title":"Excluir coleção","deprecated":null,"version":null,"openapi":"/api-reference/openapi.json post /api/v1/catalog/collection/delete","href":"/api-reference/catálogo/excluir-coleção"}]},{"group":"Canais (Newsletters)","pages":[{"title":"Listar newsletters","deprecated":null,"version":null,"openapi":"/api-reference/openapi.json get /api/v1/newsletters/list","href":"/api-reference/newsletters/listar-newsletters"},{"title":"Criar newsletter","deprecated":null,"version":null,"openapi":"/api-reference/openapi.json post /api/v1/newsletters/create","href":"/api-reference/newsletters/criar-newsletter"}]},{"group":"Mídia","pages":[{"title":"Baixar mídia","openapi":"api-reference/openapi.json POST /api/v1/media/download","href":"/api-reference/endpoints/baixar-midia"}]},{"group":"Histórico","pages":[{"title":"Sincronizar histórico (bulk) via webhook no formato D-API","deprecated":null,"version":null,"openapi":"/api-reference/openapi.json post /api/v1/history/sync","href":"/api-reference/histórico/sincronizar-histórico-bulk-via-webhook-no-formato-d-api"},{"title":"Status do history sync (D-API) da instância","deprecated":null,"version":null,"openapi":"/api-reference/openapi.json get /api/v1/history/sync/{sessionId}/status","href":"/api-reference/histórico/status-do-history-sync-d-api-da-instância"},{"title":"Solicitar FULL HISTORY SYNC","deprecated":null,"version":null,"openapi":"/api-reference/openapi.json post /api/v1/history/full-sync","href":"/api-reference/histórico/solicitar-full-history-sync"},{"title":"Solicitar HISTORY SYNC ON DEMAND","deprecated":null,"version":null,"openapi":"/api-reference/openapi.json post /api/v1/history/on-demand","href":"/api-reference/histórico/solicitar-history-sync-on-demand"}]},{"group":"Ligações","pages":[{"title":"Listar chamadas gravadas","deprecated":null,"version":null,"openapi":"/api-reference/openapi.json get /api/v1/calls/","href":"/api-reference/calls/listar-chamadas-gravadas"},{"title":"Consultar chamada gravada por id","deprecated":null,"version":null,"openapi":"/api-reference/openapi.json get /api/v1/calls/{callId}","href":"/api-reference/calls/consultar-chamada-gravada-por-id"},{"title":"Criar link de chamada do WhatsApp","deprecated":null,"version":null,"openapi":"/api-reference/openapi.json post /api/v1/calls/create-link","href":"/api-reference/calls/criar-link-de-chamada-do-whatsapp"},{"title":"Enviar mensagem de chamada agendada","deprecated":null,"version":null,"openapi":"/api-reference/openapi.json post /api/v1/calls/send-event","href":"/api-reference/calls/enviar-mensagem-de-chamada-agendada"},{"title":"Iniciar chamada de voz","deprecated":null,"version":null,"openapi":"/api-reference/openapi.json post /api/v1/calls/place","href":"/api-reference/calls/iniciar-chamada-de-voz"},{"title":"Iniciar chamada de voz ao vivo (stream)","deprecated":null,"version":null,"openapi":"/api-reference/openapi.json post /api/v1/calls/stream","href":"/api-reference/calls/iniciar-chamada-de-voz-ao-vivo-stream"},{"title":"Atender chamada recebida","deprecated":null,"version":null,"openapi":"/api-reference/openapi.json post /api/v1/calls/accept","href":"/api-reference/calls/atender-chamada-recebida"},{"title":"Recusar chamada recebida","deprecated":null,"version":null,"openapi":"/api-reference/openapi.json post /api/v1/calls/reject","href":"/api-reference/calls/recusar-chamada-recebida"},{"title":"Encerrar chamada de voz ativa","deprecated":null,"version":null,"openapi":"/api-reference/openapi.json post /api/v1/calls/end","href":"/api-reference/calls/encerrar-chamada-de-voz-ativa"},{"title":"Silenciar ou reativar o áudio da chamada","deprecated":null,"version":null,"openapi":"/api-reference/openapi.json post /api/v1/calls/mute","href":"/api-reference/calls/silenciar-ou-reativar-o-áudio-da-chamada"},{"title":"Consultar estado da chamada","deprecated":null,"version":null,"openapi":"/api-reference/openapi.json post /api/v1/calls/state","href":"/api-reference/calls/consultar-estado-da-chamada"}]},{"group":"Comandos assíncronos","pages":[{"title":"Consultar comando assíncrono","openapi":"api-reference/openapi.json GET /api/v1/commands/{commandId}","href":"/api-reference/endpoints/consultar-comando"},{"title":"Envio assíncrono em ordem (sequential)","href":"/api-reference/endpoints/envio-sequencial"}]},{"group":"Agentes de voz","pages":[{"title":"Detalhar chamada","deprecated":null,"version":null,"openapi":"/api-reference/openapi.json get /api/v1/voice-agent-calls/{callId}","href":"/api-reference/agentes-de-voz/detalhar-chamada"},{"title":"Transcrição da chamada (paginada)","deprecated":null,"version":null,"openapi":"/api-reference/openapi.json get /api/v1/voice-agent-calls/{callId}/turns","href":"/api-reference/agentes-de-voz/transcrição-da-chamada-paginada"},{"title":"Disparar chamada do agente (URL pública do gatilho)","deprecated":null,"version":null,"openapi":"/api-reference/openapi.json post /api/v1/hooks/va/{token}","href":"/api-reference/agentes-de-voz-—-gatilhos/disparar-chamada-do-agente-url-pública-do-gatilho"}]},{"group":"Ligações URA","pages":[{"title":"Disparar ligações URA em massa (áudio ou fluxo IVR)","deprecated":null,"version":null,"openapi":"/api-reference/openapi.json post /api/v1/voice/bulk","href":"/api-reference/ligações-ura/disparar-ligações-ura-em-massa-áudio-ou-fluxo-ivr"},{"title":"Disparar uma ligação URA (áudio ou fluxo IVR)","deprecated":null,"version":null,"openapi":"/api-reference/openapi.json post /api/v1/voice/call","href":"/api-reference/ligações-ura/disparar-uma-ligação-ura-áudio-ou-fluxo-ivr"},{"title":"Iniciar uma ligação URA ao vivo (Bina Inteligente, cobrança 30/6)","deprecated":null,"version":null,"openapi":"/api-reference/openapi.json post /api/v1/voice/live/start","href":"/api-reference/ligações-ura/iniciar-uma-ligação-ura-ao-vivo-bina-inteligente-cobrança-306"}]},{"group":"SMS","pages":[{"title":"Enviar um SMS","deprecated":null,"version":null,"openapi":"/api-reference/openapi.json post /api/v1/sms/send","href":"/api-reference/sms/enviar-um-sms"},{"title":"Enviar SMS em massa (mesma mensagem para vários números)","deprecated":null,"version":null,"openapi":"/api-reference/openapi.json post /api/v1/sms/bulk","href":"/api-reference/sms/enviar-sms-em-massa-mesma-mensagem-para-vários-números"}]},{"group":"Conta","pages":[{"title":"Consultar limites da conta","deprecated":null,"version":null,"openapi":"/api-reference/openapi.json get /api/v1/limits/{sessionId}","href":"/api-reference/account/consultar-limites-da-conta"}]},{"group":"API Oficial (Cloud API)","pages":[{"group":"Conexão","pages":[{"title":"Criar conexão manualmente","openapi":"api-reference/openapi.json POST /api/v1/connections/cloud-api/manual","href":"/api-reference/cloud-api/criar-conexao-manual"},{"title":"Obter conexão","openapi":"api-reference/openapi.json GET /api/v1/connections/cloud-api/{id}","href":"/api-reference/cloud-api/obter-conexao"},{"title":"Atualizar conexão","openapi":"api-reference/openapi.json PATCH /api/v1/connections/cloud-api/{id}","href":"/api-reference/cloud-api/atualizar-conexao"},{"title":"Obter access token da Meta","openapi":"api-reference/openapi.json GET /api/v1/connections/cloud-api/{id}/access-token","href":"/api-reference/cloud-api/obter-access-token"}]},{"group":"Roteamento","pages":[{"title":"Ver parceiros e roteamento","openapi":"api-reference/openapi.json GET /api/v1/connections/cloud-api/{id}/routing","href":"/api-reference/cloud-api/ver-roteamento"},{"title":"Assumir, passar ou soltar uma conversa","openapi":"api-reference/openapi.json POST /api/v1/connections/cloud-api/{id}/thread-control","href":"/api-reference/cloud-api/controlar-conversa"}]},{"group":"Templates","pages":[{"title":"Listar templates aprovados","openapi":"api-reference/openapi.json GET /api/v1/connections/cloud-api/{id}/templates","href":"/api-reference/cloud-api/listar-templates"},{"title":"Listar todos os templates","openapi":"api-reference/openapi.json GET /api/v1/connections/cloud-api/{id}/templates/all","href":"/api-reference/cloud-api/listar-templates-todos"},{"title":"Criar template","openapi":"api-reference/openapi.json POST /api/v1/connections/cloud-api/{id}/templates","href":"/api-reference/cloud-api/criar-template"},{"title":"Excluir template","openapi":"api-reference/openapi.json DELETE /api/v1/connections/cloud-api/{id}/templates/{name}","href":"/api-reference/cloud-api/excluir-template"},{"title":"Enviar template","openapi":"api-reference/openapi.json POST /api/v1/messages/send/template","href":"/api-reference/cloud-api/enviar-template"}]}]}]}]},{"language":"en","footer":{"links":[{"header":"D-API","items":[{"label":"Dashboard","href":"https://app.d-api.cloud"},{"label":"Support","href":"https://wa.me/5551920018823?text=Hi%2C%20I%20need%20help%20with%20the%20D-API%20documentation"}]}]},"navbar":{"links":[{"href":"https://wa.me/5551920018823?text=Hi%2C%20I%20need%20help%20with%20the%20D-API%20documentation","label":"Support"}],"primary":{"type":"button","label":"Dashboard","href":"https://app.d-api.cloud"}},"pages":[{"title":"en","href":"/en/api-reference/endpoints/criar-sessao"}]}]},"basePath":"","title":"Criar uma sessão - D-API","buildId":"dpl_596ePT575z4qnAFksq1biRW97aLY","deploymentId":"dpl_596ePT575z4qnAFksq1biRW97aLY","dynamics":["c2aa737661","2b790eda92","b0f84f53ff","a9bb46feb3"],"chunks":["OpenApiReferenceProvider-C9Wu0MeN.js","utils-jWgu-6Qf.js","cloneDeep-izs3Hzxb.js","_Uint8Array-BVIqJ90l.js","isObjectLike-C8vmzPEN.js","isArray-Dcu1dQ5t.js","utils-DBD8f9qn.js","toString-BX-iyh8G.js","isSymbol-CSH9U2Gm.js","addUniqueKeysToSchema-BGuX1ui5.js","snippetPresets-Evy63nQB.js","style-to-object-BY3JEAdk.js","v4-DIgz8zy6.js","conditional-requirements-CFM0id0Q.js","ApiExamples-BQHO1lnV.js","isEqual-BfaiBbcl.js","usePlaygroundInputsStore-B6C8m-t_.js","shallow-BG4cT0fH.js","getApiPlaygroundDisplay-CgEPrE-D.js","CodeSnippet-CU8JyZ9N.js","CodeSnippets-BnxHU32T.js","Page-D6S0Yh6q.js","getPastedJson-CwiYOonh.js","icon-DYDpWmDf.js","MethodPill-C-J-l7_c.js","DuplicateIcon-B6ARwg9w.js","createIcon-Dsv4MtDq.js","DynamicMarkdown-CtasenyM.js","SectionHeading-YNcgYwjB.js","axios-vUo_bRtp.js","Markdown-CwLx6PAg.js","clsx-C3kuh_dz.js","lib-DuNMoZ05.js","lib-B8HbPgcC.js","html-void-elements-mCSPHezU.js","dist-CmKHfscc.js","katex-YMM-FMeD.js","marked.esm-CZWythHk.js","AssistantPageLink-U3mI6Ljh.js"]}