Receber toda mensagem que entra e sai, em tempo real, sem perder nada.
Para levar as conversas do SocialSell para um data warehouse, um helpdesk ou um sistema próprio.Escopos necessários:read:conversations, write:webhooks.
1. Assine os dois lados
Espelhar só o que entra produz metade da conversa. Assine os três eventos de mensagem:
Guarde o secret da resposta — ele só aparece na criação.
message.sent cobre também o que o vendedor manda do próprio celular em números conectados por QR
Code. Sem ele, essas mensagens ficariam fora do espelho.
2. Valide a assinatura
Obrigatório. O detalhe e exemplos em quatro linguagens estão em Segurança. O resumo:
A entrega é at-least-once: o mesmo evento pode chegar duas vezes em falha de rede ou reenvio manual.
async function processar(evento) { const novo = await db.eventos.insertIfAbsent(evento.id); if (!novo) return; // já processado await espelhar(evento);}
Guarde os ids em armazenamento persistente. Um Set em memória some no restart, e a deduplicação vai junto.
4. Responda rápido
Você tem 10 segundos. Responda 200 e processe em background — é a causa número um de timeout em integração de webhook.
Depois de 5 tentativas sem sucesso a entrega é marcada como falha; após 10 falhas consecutivas o endpoint é pausado automaticamente.
5. Não confie na ordem
A ordem de chegada não é garantida — retentativas e concorrência reordenam. Reconstrua a linha do tempo pelo created_at do evento e descarte atualizações mais velhas que o estado que você já tem.
6. Preencha os buracos
Se o seu endpoint ficou fora por mais de ~15 minutos, a recuperação automática já se esgotou. Duas saídas:Reenvio manual — o log guarda 15 dias:
E depois, por conversa, GET /v1/conversations/:id/messages.
7. Monitore a saúde
O objeto da assinatura traz status, consecutive_failures, last_delivery_at e last_failure_at. Vale um alerta quando consecutive_failures passar de 3 — a pausa automática vem aos 10.
Assine também channel.disconnected. Enquanto um canal está fora, nenhuma mensagem entra ou sai por ele — e o espelho fica silenciosamente vazio, sem erro nenhum.
Checklist
message.received, message.sent e message.edited assinados
Assinatura HMAC validada com o corpo bruto
Deduplicação por evento.id em armazenamento persistente
Resposta 200 antes do processamento
Linha do tempo reconstruída por created_at
Varredura de recuperação implementada
channel.disconnected assinado
Alerta em consecutive_failures
{"docsConfig":{"theme":"mint","$schema":"https://mintlify.com/docs.json","name":"SocialSell API","colors":{"primary":"#286bfe","light":"#5b93ff","dark":"#1a52d4"},"logo":{"light":"https://mintcdn.com/socialsell/d13wqbYELTipL_-j/logo/light.png?fit=max\u0026auto=format\u0026n=d13wqbYELTipL_-j\u0026q=85\u0026s=3d79411c7a7384c60decd006dc1b417e","dark":"https://mintcdn.com/socialsell/d13wqbYELTipL_-j/logo/dark.png?fit=max\u0026auto=format\u0026n=d13wqbYELTipL_-j\u0026q=85\u0026s=cba2d9951f201be25bad29945c18645d"},"favicon":"https://mintcdn.com/socialsell/d13wqbYELTipL_-j/favicon.svg?fit=max\u0026auto=format\u0026n=d13wqbYELTipL_-j\u0026q=85\u0026s=7b2a0748b561997725127cbb872b839b","navbar":{"links":[{"href":"https://wa.me/5514959762223","label":"Suporte"}],"primary":{"type":"button","label":"Acessar Painel","href":"https://socialsell.ai/login"}},"footer":{"socials":{"instagram":"https://instagram.com/socialsell.ai"}},"contextual":{"options":["copy","view","chatgpt","claude"],"display":"header"},"styling":{"latex":false},"navigation":{"global":{"anchors":[{"anchor":"App","icon":"arrow-up-right-from-square","href":"https://socialsell.ai/login"},{"anchor":"Status","icon":"signal","href":"https://status.socialsell.ai"},{"anchor":"Suporte","icon":"whatsapp","href":"https://wa.me/5514959762223"}]},"pages":[]}},"deployment":{"deploymentMetadataValue":{"subdomain":"socialsell","hasAudioNarration":false,"actualSubdomain":"socialsell","customDomains":["docs.socialsell.ai"],"gitSource":{"type":"github","owner":"guimilreu","repo":"mintlify-docs","deployBranch":"main","isPrivate":false,"contentDirectory":"","mountPath":"","label":"","_id":"6b10e7739ffae5051c413db8"},"entitlements":{"AI_CHAT":{"status":"DISABLED"}},"buildId":"6b100cca48655a78602c4a07","clientVersion":"0.0.4448","searchFilterCounts":[{"language":"default","tag":"Referência da API","count":80},{"language":"default","tag":"Agentes de IA","count":14},{"language":"default","tag":"Comece aqui","count":14},{"language":"default","tag":"Disparos","count":14},{"language":"default","tag":"Webhooks","count":13},{"language":"default","tag":"Negócios","count":11},{"language":"default","tag":"Gerenciar assinaturas","count":9},{"language":"default","tag":"Fundamentos","count":7},{"language":"default","tag":"Contatos","count":7},{"language":"default","tag":"Empresas","count":6}]},"assistantConfig":{"enableAskAiButton":false,"enableStarterQuestions":false,"enableContextualStarterQuestions":false,"enableAskAiSearchBar":true},"basePath":"","hasChatPermissions":false,"hasWebMcpPermissions":false,"toggles":[{"name":"kill-isr","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"agent-mintlify-slack","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"agent-integrations-settings","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"rbac-expansion","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"automations-pr-grouping","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"custom-prefix","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"analytics-v7","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"user-flows-analytics","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"no-publish-flow","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"snapshot-serving-live","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"stripTemperatureMiddleware","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"support-platform-pylon-zendesk","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"snapshot-serving","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"instant-rollback","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"granular-notifications-server","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"granular-notifications","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"automations-fable","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"fixed-ai-action-pricing","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"automation-resolve-merge-conflict","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"scoped-publishing","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"mintql","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"page-level-analytics","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"editor-version-history-v2","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"billing-page-v2","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"full-page-search","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"workspace-projects","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"fork-pr-previews","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"revalidation-jwt","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"hobby-abuse-scan","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"dashboard-inbox","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"turbopuffer-dual-write","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"approve-review-flow","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"editor-metadata","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"turbopuffer-serve","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"live-agents","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"starter-pricing","enabled":true,"variant":{"name":"control","enabled":true,"payload":{"type":"string","value":"control"},"feature_enabled":true},"impressionData":false},{"name":"llms-txt-v2","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"auth-vite-origin","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false}],"starterQuestions":[],"googleFontsInlined":false},"customCss":[]}
{"page":{"pagePath":"api-reference/guias/espelhar-inbox","slug":"/api-reference/guias/espelhar-inbox","pageMetadata":{"title":"Espelhar o inbox em um sistema externo","description":"Receber toda mensagem que entra e sai, em tempo real, sem perder nada.","href":"/api-reference/guias/espelhar-inbox"},"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: \"Receber toda mensagem que entra e sai, em tempo real, sem perder nada.\"\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`,input:`input`,li:`li`,p:`p`,pre:`pre`,span:`span`,strong:`strong`,ul:`ul`,..._provideComponents(),...props.components},{CodeBlock,Heading,Note,Tip,Warning}=_components;if(!CodeBlock)_missingMdxReference(`CodeBlock`,true);if(!Heading)_missingMdxReference(`Heading`,true);if(!Note)_missingMdxReference(`Note`,true);if(!Tip)_missingMdxReference(`Tip`,true);if(!Warning)_missingMdxReference(`Warning`,true);return _jsxs(_Fragment,{children:[_jsx(_components.p,{children:`Para levar as conversas do SocialSell para um data warehouse, um helpdesk ou um sistema próprio.`}),`\n`,_jsxs(_components.p,{children:[_jsx(_components.strong,{children:`Escopos necessários:`}),` `,_jsx(_components.code,{children:`read:conversations`}),`, `,_jsx(_components.code,{children:`write:webhooks`}),`.`]}),`\n`,_jsx(Heading,{level:`2`,id:`1-assine-os-dois-lados`,children:`1. Assine os dois lados`}),`\n`,_jsxs(_components.p,{children:[`Espelhar só o que `,_jsx(_components.strong,{children:`entra`}),` produz metade da conversa. Assine os três eventos de mensagem:`]}),`\n`,_jsx(CodeBlock,{filename:``,numberOfLines:`8`,language:`shellscript`,children:_jsx(_components.pre,{className:`shiki shiki-themes github-light-default dark-plus`,style:{backgroundColor:`#ffffff`,\"--shiki-dark-bg\":`#0B0C0E`,color:`#1f2328`,\"--shiki-dark\":`#D4D4D4`},language:`shellscript`,children:_jsxs(_components.code,{language:`shellscript`,numberOfLines:`8`,children:[_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#953800`,\"--shiki-dark\":`#DCDCAA`},children:`curl`}),_jsx(_components.span,{style:{color:`#0550AE`,\"--shiki-dark\":`#569CD6`},children:` -X`}),_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:` POST`}),_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:` https://api.socialsell.ai/v1/webhooks`}),_jsx(_components.span,{style:{color:`#CF222E`,\"--shiki-dark\":`#D7BA7D`},children:` \\\\`})]}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#0550AE`,\"--shiki-dark\":`#569CD6`},children:` -H`}),_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:` \"Authorization: Bearer sk_live_...\"`}),_jsx(_components.span,{style:{color:`#CF222E`,\"--shiki-dark\":`#D7BA7D`},children:` \\\\`})]}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#0550AE`,\"--shiki-dark\":`#569CD6`},children:` -H`}),_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:` \"Content-Type: application/json\"`}),_jsx(_components.span,{style:{color:`#CF222E`,\"--shiki-dark\":`#D7BA7D`},children:` \\\\`})]}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#0550AE`,\"--shiki-dark\":`#569CD6`},children:` -d`}),_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:` '{`})]}),`\n`,_jsx(_components.span,{className:`line`,children:_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:` \"name\": \"Espelho do inbox\",`})}),`\n`,_jsx(_components.span,{className:`line`,children:_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:` \"url\": \"https://meusistema.com/webhooks/socialsell\",`})}),`\n`,_jsx(_components.span,{className:`line`,children:_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:` \"events\": [\"message.received\", \"message.sent\", \"message.edited\"]`})}),`\n`,_jsx(_components.span,{className:`line`,children:_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:` }'`})}),`\n`]})})}),`\n`,_jsxs(_components.p,{children:[`Guarde o `,_jsx(_components.code,{children:`secret`}),` da resposta — ele só aparece na criação.`]}),`\n`,_jsx(Note,{children:_jsxs(_components.p,{children:[_jsx(_components.code,{children:`message.sent`}),` cobre também o que o vendedor manda `,_jsx(_components.strong,{children:`do próprio celular`}),` em números conectados por QR\nCode. Sem ele, essas mensagens ficariam fora do espelho.`]})}),`\n`,_jsx(Heading,{level:`2`,id:`2-valide-a-assinatura`,children:`2. Valide a assinatura`}),`\n`,_jsxs(_components.p,{children:[`Obrigatório. O detalhe e exemplos em quatro linguagens estão em `,_jsx(_components.a,{href:`/webhooks/security`,children:`Segurança`}),`. O resumo:`]}),`\n`,_jsx(CodeBlock,{numberOfLines:`2`,language:`text`,children:_jsx(_components.pre,{className:`shiki shiki-themes github-light-default dark-plus`,style:{backgroundColor:`#ffffff`,\"--shiki-dark-bg\":`#0B0C0E`,color:`#1f2328`,\"--shiki-dark\":`#D4D4D4`},language:`text`,children:_jsxs(_components.code,{language:`text`,numberOfLines:`2`,children:[_jsx(_components.span,{className:`line`,children:_jsx(_components.span,{children:`assinatura = \"sha256=\" + HMAC_SHA256(secret, \"{timestamp}.{corpo_bruto}\")`})}),`\n`,_jsx(_components.span,{className:`line`,children:_jsx(_components.span,{})})]})})}),`\n`,_jsxs(_components.p,{children:[`Use o corpo `,_jsx(_components.strong,{children:`bruto`}),`, nunca o JSON reserializado.`]}),`\n`,_jsxs(Heading,{level:`2`,id:`3-deduplique-pelo-id-do-evento`,children:[`3. Deduplique pelo `,_jsx(_components.code,{children:`id`}),` do evento`]}),`\n`,_jsxs(_components.p,{children:[`A entrega é `,_jsx(_components.strong,{children:`at-least-once`}),`: o mesmo evento pode chegar duas vezes em falha de rede ou reenvio manual.`]}),`\n`,_jsx(CodeBlock,{filename:``,numberOfLines:`5`,language:`javascript`,children:_jsx(_components.pre,{className:`shiki shiki-themes github-light-default dark-plus`,style:{backgroundColor:`#ffffff`,\"--shiki-dark-bg\":`#0B0C0E`,color:`#1f2328`,\"--shiki-dark\":`#D4D4D4`},language:`javascript`,children:_jsxs(_components.code,{language:`javascript`,numberOfLines:`5`,children:[_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#CF222E`,\"--shiki-dark\":`#569CD6`},children:`async`}),_jsx(_components.span,{style:{color:`#CF222E`,\"--shiki-dark\":`#569CD6`},children:` function`}),_jsx(_components.span,{style:{color:`#8250DF`,\"--shiki-dark\":`#DCDCAA`},children:` processar`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`(`}),_jsx(_components.span,{style:{color:`#953800`,\"--shiki-dark\":`#9CDCFE`},children:`evento`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`) {`})]}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#CF222E`,\"--shiki-dark\":`#569CD6`},children:` const`}),_jsx(_components.span,{style:{color:`#0550AE`,\"--shiki-dark\":`#4FC1FF`},children:` novo`}),_jsx(_components.span,{style:{color:`#CF222E`,\"--shiki-dark\":`#D4D4D4`},children:` =`}),_jsx(_components.span,{style:{color:`#CF222E`,\"--shiki-dark\":`#C586C0`},children:` await`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#9CDCFE`},children:` db`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`.`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#9CDCFE`},children:`eventos`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`.`}),_jsx(_components.span,{style:{color:`#8250DF`,\"--shiki-dark\":`#DCDCAA`},children:`insertIfAbsent`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`(`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#9CDCFE`},children:`evento`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`.`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#9CDCFE`},children:`id`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`);`})]}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#CF222E`,\"--shiki-dark\":`#C586C0`},children:` if`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:` (`}),_jsx(_components.span,{style:{color:`#CF222E`,\"--shiki-dark\":`#D4D4D4`},children:`!`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#9CDCFE`},children:`novo`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`) `}),_jsx(_components.span,{style:{color:`#CF222E`,\"--shiki-dark\":`#C586C0`},children:`return`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`; `}),_jsx(_components.span,{style:{color:`#6E7781`,\"--shiki-dark\":`#6A9955`},children:`// já processado`})]}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#CF222E`,\"--shiki-dark\":`#C586C0`},children:` await`}),_jsx(_components.span,{style:{color:`#8250DF`,\"--shiki-dark\":`#DCDCAA`},children:` espelhar`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`(`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#9CDCFE`},children:`evento`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`);`})]}),`\n`,_jsx(_components.span,{className:`line`,children:_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`}`})}),`\n`]})})}),`\n`,_jsx(Warning,{children:_jsxs(_components.p,{children:[`Guarde os ids em armazenamento persistente. Um `,_jsx(_components.code,{children:`Set`}),` em memória some no restart, e a deduplicação vai junto.`]})}),`\n`,_jsx(Heading,{level:`2`,id:`4-responda-rápido`,children:`4. Responda rápido`}),`\n`,_jsxs(_components.p,{children:[`Você tem `,_jsx(_components.strong,{children:`10 segundos`}),`. Responda `,_jsx(_components.code,{children:`200`}),` e processe em background — é a causa número um de timeout em integração de webhook.`]}),`\n`,_jsx(CodeBlock,{filename:``,numberOfLines:`4`,language:`javascript`,children:_jsx(_components.pre,{className:`shiki shiki-themes github-light-default dark-plus`,style:{backgroundColor:`#ffffff`,\"--shiki-dark-bg\":`#0B0C0E`,color:`#1f2328`,\"--shiki-dark\":`#D4D4D4`},language:`javascript`,children:_jsxs(_components.code,{language:`javascript`,numberOfLines:`4`,children:[_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#9CDCFE`},children:`app`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`.`}),_jsx(_components.span,{style:{color:`#8250DF`,\"--shiki-dark\":`#DCDCAA`},children:`post`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`(`}),_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:`'/webhooks/socialsell'`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`, (`}),_jsx(_components.span,{style:{color:`#953800`,\"--shiki-dark\":`#9CDCFE`},children:`req`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`, `}),_jsx(_components.span,{style:{color:`#953800`,\"--shiki-dark\":`#9CDCFE`},children:`res`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`) `}),_jsx(_components.span,{style:{color:`#CF222E`,\"--shiki-dark\":`#569CD6`},children:`=>`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:` {`})]}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#9CDCFE`},children:` res`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`.`}),_jsx(_components.span,{style:{color:`#8250DF`,\"--shiki-dark\":`#DCDCAA`},children:`status`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`(`}),_jsx(_components.span,{style:{color:`#0550AE`,\"--shiki-dark\":`#B5CEA8`},children:`200`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`).`}),_jsx(_components.span,{style:{color:`#8250DF`,\"--shiki-dark\":`#DCDCAA`},children:`send`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`(`}),_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:`'OK'`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`);`})]}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#9CDCFE`},children:` fila`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`.`}),_jsx(_components.span,{style:{color:`#8250DF`,\"--shiki-dark\":`#DCDCAA`},children:`add`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`(`}),_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:`'espelhar'`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`, `}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#9CDCFE`},children:`req`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`.`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#9CDCFE`},children:`body`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`);`})]}),`\n`,_jsx(_components.span,{className:`line`,children:_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`});`})}),`\n`]})})}),`\n`,_jsxs(_components.p,{children:[`Depois de 5 tentativas sem sucesso a entrega é marcada como falha; após 10 falhas consecutivas o endpoint é `,_jsx(_components.strong,{children:`pausado automaticamente`}),`.`]}),`\n`,_jsx(Heading,{level:`2`,id:`5-não-confie-na-ordem`,children:`5. Não confie na ordem`}),`\n`,_jsxs(_components.p,{children:[`A ordem de chegada `,_jsx(_components.strong,{children:`não é garantida`}),` — retentativas e concorrência reordenam. Reconstrua a linha do tempo pelo `,_jsx(_components.code,{children:`created_at`}),` do evento e descarte atualizações mais velhas que o estado que você já tem.`]}),`\n`,_jsx(Heading,{level:`2`,id:`6-preencha-os-buracos`,children:`6. Preencha os buracos`}),`\n`,_jsx(_components.p,{children:`Se o seu endpoint ficou fora por mais de ~15 minutos, a recuperação automática já se esgotou. Duas saídas:`}),`\n`,_jsxs(_components.p,{children:[_jsx(_components.strong,{children:`Reenvio manual`}),` — o log guarda 15 dias:`]}),`\n`,_jsx(CodeBlock,{filename:``,numberOfLines:`5`,language:`shellscript`,children:_jsx(_components.pre,{className:`shiki shiki-themes github-light-default dark-plus`,style:{backgroundColor:`#ffffff`,\"--shiki-dark-bg\":`#0B0C0E`,color:`#1f2328`,\"--shiki-dark\":`#D4D4D4`},language:`shellscript`,children:_jsxs(_components.code,{language:`shellscript`,numberOfLines:`5`,children:[_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#953800`,\"--shiki-dark\":`#DCDCAA`},children:`curl`}),_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:` \"https://api.socialsell.ai/v1/webhooks/664f.../deliveries?limit=200\"`}),_jsx(_components.span,{style:{color:`#CF222E`,\"--shiki-dark\":`#D7BA7D`},children:` \\\\`})]}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#0550AE`,\"--shiki-dark\":`#569CD6`},children:` -H`}),_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:` \"Authorization: Bearer sk_live_...\"`})]}),`\n`,_jsx(_components.span,{className:`line`}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#953800`,\"--shiki-dark\":`#DCDCAA`},children:`curl`}),_jsx(_components.span,{style:{color:`#0550AE`,\"--shiki-dark\":`#569CD6`},children:` -X`}),_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:` POST`}),_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:` https://api.socialsell.ai/v1/webhooks/deliveries/664e.../redeliver`}),_jsx(_components.span,{style:{color:`#CF222E`,\"--shiki-dark\":`#D7BA7D`},children:` \\\\`})]}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#0550AE`,\"--shiki-dark\":`#569CD6`},children:` -H`}),_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:` \"Authorization: Bearer sk_live_...\"`})]}),`\n`]})})}),`\n`,_jsxs(_components.p,{children:[_jsx(_components.strong,{children:`Varredura por API`}),` — mais confiável para janelas longas:`]}),`\n`,_jsx(CodeBlock,{filename:``,numberOfLines:`2`,language:`shellscript`,children:_jsx(_components.pre,{className:`shiki shiki-themes github-light-default dark-plus`,style:{backgroundColor:`#ffffff`,\"--shiki-dark-bg\":`#0B0C0E`,color:`#1f2328`,\"--shiki-dark\":`#D4D4D4`},language:`shellscript`,children:_jsxs(_components.code,{language:`shellscript`,numberOfLines:`2`,children:[_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#953800`,\"--shiki-dark\":`#DCDCAA`},children:`curl`}),_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:` \"https://api.socialsell.ai/v1/conversations?updated_after=2026-08-25T00:00:00.000Z\"`}),_jsx(_components.span,{style:{color:`#CF222E`,\"--shiki-dark\":`#D7BA7D`},children:` \\\\`})]}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#0550AE`,\"--shiki-dark\":`#569CD6`},children:` -H`}),_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:` \"Authorization: Bearer sk_live_...\"`})]}),`\n`]})})}),`\n`,_jsxs(_components.p,{children:[`E depois, por conversa, `,_jsx(_components.code,{children:`GET /v1/conversations/:id/messages`}),`.`]}),`\n`,_jsx(Heading,{level:`2`,id:`7-monitore-a-saúde`,children:`7. Monitore a saúde`}),`\n`,_jsxs(_components.p,{children:[`O objeto da assinatura traz `,_jsx(_components.code,{children:`status`}),`, `,_jsx(_components.code,{children:`consecutive_failures`}),`, `,_jsx(_components.code,{children:`last_delivery_at`}),` e `,_jsx(_components.code,{children:`last_failure_at`}),`. Vale um alerta quando `,_jsx(_components.code,{children:`consecutive_failures`}),` passar de 3 — a pausa automática vem aos 10.`]}),`\n`,_jsx(Tip,{children:_jsxs(_components.p,{children:[`Assine também `,_jsx(_components.code,{children:`channel.disconnected`}),`. Enquanto um canal está fora, `,_jsx(_components.strong,{children:`nenhuma mensagem entra ou sai`}),` por ele — e o espelho fica silenciosamente vazio, sem erro nenhum.`]})}),`\n`,_jsx(Heading,{level:`2`,id:`checklist`,children:`Checklist`}),`\n`,_jsxs(_components.ul,{className:`contains-task-list`,children:[`\n`,_jsxs(_components.li,{className:`task-list-item`,children:[_jsx(_components.input,{type:`checkbox`,disabled:true}),` `,_jsx(_components.code,{children:`message.received`}),`, `,_jsx(_components.code,{children:`message.sent`}),` e `,_jsx(_components.code,{children:`message.edited`}),` assinados`]}),`\n`,_jsxs(_components.li,{className:`task-list-item`,children:[_jsx(_components.input,{type:`checkbox`,disabled:true}),` `,`Assinatura HMAC validada com o corpo bruto`]}),`\n`,_jsxs(_components.li,{className:`task-list-item`,children:[_jsx(_components.input,{type:`checkbox`,disabled:true}),` `,`Deduplicação por `,_jsx(_components.code,{children:`evento.id`}),` em armazenamento persistente`]}),`\n`,_jsxs(_components.li,{className:`task-list-item`,children:[_jsx(_components.input,{type:`checkbox`,disabled:true}),` `,`Resposta `,_jsx(_components.code,{children:`200`}),` antes do processamento`]}),`\n`,_jsxs(_components.li,{className:`task-list-item`,children:[_jsx(_components.input,{type:`checkbox`,disabled:true}),` `,`Linha do tempo reconstruída por `,_jsx(_components.code,{children:`created_at`})]}),`\n`,_jsxs(_components.li,{className:`task-list-item`,children:[_jsx(_components.input,{type:`checkbox`,disabled:true}),` `,`Varredura de recuperação implementada`]}),`\n`,_jsxs(_components.li,{className:`task-list-item`,children:[_jsx(_components.input,{type:`checkbox`,disabled:true}),` `,_jsx(_components.code,{children:`channel.disconnected`}),` assinado`]}),`\n`,_jsxs(_components.li,{className:`task-list-item`,children:[_jsx(_components.input,{type:`checkbox`,disabled:true}),` `,`Alerta em `,_jsx(_components.code,{children:`consecutive_failures`})]}),`\n`]})]})}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":"Espelhar o inbox em um sistema externo","description":"Receber toda mensagem que entra e sai, em tempo real, sem perder nada.","href":"/api-reference/guias/espelhar-inbox"}}},"mdxSourceWithNoJs":null},"mdxExtracts":{"tableOfContents":[{"title":"1. Assine os dois lados","slug":"1-assine-os-dois-lados","depth":2,"children":[]},{"title":"2. Valide a assinatura","slug":"2-valide-a-assinatura","depth":2,"children":[]},{"title":"3. Deduplique pelo id do evento","slug":"3-deduplique-pelo-id-do-evento","depth":2,"children":[]},{"title":"4. Responda rápido","slug":"4-responda-rápido","depth":2,"children":[]},{"title":"5. Não confie na ordem","slug":"5-não-confie-na-ordem","depth":2,"children":[]},{"title":"6. Preencha os buracos","slug":"6-preencha-os-buracos","depth":2,"children":[]},{"title":"7. Monitore a saúde","slug":"7-monitore-a-saúde","depth":2,"children":[]},{"title":"Checklist","slug":"checklist","depth":2,"children":[]}],"codeExamples":{}},"jsLinks":[],"subdomain":"socialsell","siteName":"SocialSell API","title":"Espelhar o inbox em um sistema externo - SocialSell API","contextualStarterQuestions":[],"navMaps":{"firstHrefInVersion":{},"firstHrefInLanguage":{}},"lastModified":"2026-12-02T12:19:26.478Z","originalFileLocation":"api-reference/guias/espelhar-inbox.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=\"Receber toda mensagem que entra e sai, em tempo real, sem perder nada.\">\u003cmeta data-mint-head name=\"application-name\" content=\"SocialSell 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/socialsell/LXHDMo4tLB5q63Bg/_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/socialsell/LXHDMo4tLB5q63Bg/_generated/favicon/apple-touch-icon.png\">\u003clink data-mint-head rel=\"icon\" type=\"image/png\" sizes=\"16x16\" href=\"/mintlify-assets/_mintlify/favicons/socialsell/LXHDMo4tLB5q63Bg/_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/socialsell/LXHDMo4tLB5q63Bg/_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/socialsell/LXHDMo4tLB5q63Bg/_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/socialsell/LXHDMo4tLB5q63Bg/_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/socialsell/LXHDMo4tLB5q63Bg/_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/socialsell/LXHDMo4tLB5q63Bg/_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/socialsell/LXHDMo4tLB5q63Bg/_generated/favicon-dark/favicon.ico\" media=\"(prefers-color-scheme: dark)\">\u003cmeta data-mint-head property=\"og:title\" content=\"Espelhar o inbox em um sistema externo - SocialSell API\">\u003cmeta data-mint-head property=\"og:description\" content=\"Receber toda mensagem que entra e sai, em tempo real, sem perder nada.\">\u003cmeta data-mint-head property=\"og:site_name\" content=\"SocialSell API\">\u003cmeta data-mint-head property=\"og:url\" content=\"https://docs.socialsell.ai/api-reference/guias/espelhar-inbox\">\u003cmeta data-mint-head property=\"og:type\" content=\"website\">\u003cmeta data-mint-head property=\"og:image\" content=\"https://socialsell.mintlify.site/_mintlify/api/og/v2?division=Guias\u0026amp;title=Espelhar+o+inbox+em+um+sistema+externo\u0026amp;description=Receber+toda+mensagem+que+entra+e+sai%2C+em+tempo+real%2C+sem+perder+nada.\u0026amp;theme=e62b503620d2f4a3ca889b24\u0026amp;signature=f851eedf6651512789ef329721c0d2a3ca80d3aa86f0aae6f52751eecf36728c\">\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=\"Espelhar o inbox em um sistema externo - SocialSell API\">\u003cmeta data-mint-head name=\"twitter:description\" content=\"Receber toda mensagem que entra e sai, em tempo real, sem perder nada.\">\u003cmeta data-mint-head name=\"twitter:image\" content=\"https://socialsell.mintlify.site/_mintlify/api/og/v2?division=Guias\u0026amp;title=Espelhar+o+inbox+em+um+sistema+externo\u0026amp;description=Receber+toda+mensagem+que+entra+e+sai%2C+em+tempo+real%2C+sem+perder+nada.\u0026amp;theme=e62b503620d2f4a3ca889b24\u0026amp;signature=f851eedf6651512789ef329721c0d2a3ca80d3aa86f0aae6f52751eecf36728c\">\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/socialsell/LXHDMo4tLB5q63Bg/_generated/favicon/browserconfig.xml\">\u003cmeta data-mint-head name=\"apple-mobile-web-app-title\" content=\"SocialSell API\">\u003cmeta data-mint-head name=\"msapplication-TileColor\" content=\"#286bfe\">\u003clink data-mint-head rel=\"canonical\" href=\"https://docs.socialsell.ai/api-reference/guias/espelhar-inbox\">\u003clink data-mint-head rel=\"alternate\" type=\"application/xml\" href=\"/sitemap.xml\">\u003clink data-mint-head rel=\"alternate\" type=\"text/markdown\" href=\"/api-reference/guias/espelhar-inbox.md\">\u003cscript data-mint-head type=\"application/ld+json\">{\"@context\":\"https://schema.org\",\"@graph\":[{\"@type\":\"Organization\",\"@id\":\"https://docs.socialsell.ai/#organization\",\"name\":\"SocialSell API\",\"url\":\"https://docs.socialsell.ai\",\"logo\":{\"@type\":\"ImageObject\",\"url\":\"https://mintcdn.com/socialsell/d13wqbYELTipL_-j/logo/light.png?fit=max\u0026auto=format\u0026n=d13wqbYELTipL_-j\u0026q=85\u0026s=3d79411c7a7384c60decd006dc1b417e\"}},{\"@type\":\"WebSite\",\"@id\":\"https://docs.socialsell.ai#website\",\"name\":\"SocialSell API\",\"url\":\"https://docs.socialsell.ai\",\"publisher\":{\"@id\":\"https://docs.socialsell.ai/#organization\"}},{\"@type\":\"WebPage\",\"@id\":\"https://docs.socialsell.ai/api-reference/guias/espelhar-inbox#webpage\",\"url\":\"https://docs.socialsell.ai/api-reference/guias/espelhar-inbox\",\"name\":\"Espelhar o inbox em um sistema externo\",\"description\":\"Receber toda mensagem que entra e sai, em tempo real, sem perder nada.\",\"dateModified\":\"2026-12-02T12:19:26.478Z\",\"isPartOf\":{\"@id\":\"https://docs.socialsell.ai#website\"},\"breadcrumb\":{\"@id\":\"https://docs.socialsell.ai/api-reference/guias/espelhar-inbox#breadcrumb\"}},{\"@type\":\"BreadcrumbList\",\"@id\":\"https://docs.socialsell.ai/api-reference/guias/espelhar-inbox#breadcrumb\",\"itemListElement\":[{\"@type\":\"ListItem\",\"position\":1,\"name\":\"Guias\",\"item\":\"https://docs.socialsell.ai/api-reference/guias/sincronizar-contatos\"},{\"@type\":\"ListItem\",\"position\":2,\"name\":\"Espelhar o inbox em um sistema externo\",\"item\":\"https://docs.socialsell.ai/api-reference/guias/espelhar-inbox\"}]},{\"@type\":[\"Article\",\"TechArticle\"],\"@id\":\"https://docs.socialsell.ai/api-reference/guias/espelhar-inbox#article\",\"headline\":\"Espelhar o inbox em um sistema externo\",\"name\":\"Espelhar o inbox em um sistema externo\",\"description\":\"Receber toda mensagem que entra e sai, em tempo real, sem perder nada.\",\"url\":\"https://docs.socialsell.ai/api-reference/guias/espelhar-inbox\",\"mainEntityOfPage\":{\"@id\":\"https://docs.socialsell.ai/api-reference/guias/espelhar-inbox#webpage\"},\"dateModified\":\"2026-12-02T12:19:26.478Z\",\"publisher\":{\"@id\":\"https://docs.socialsell.ai/#organization\"},\"isPartOf\":{\"@id\":\"https://docs.socialsell.ai#website\"}}]}\u003c/script>\u003cscript data-mint-head type=\"application/ld+json\">{\"@context\":\"https://schema.org\",\"@type\":\"WebSite\",\"name\":\"SocialSell API\",\"publisher\":{\"@type\":\"Organization\",\"name\":\"SocialSell API\"},\"provider\":{\"@type\":\"Organization\",\"name\":\"Mintlify\",\"url\":\"https://mintlify.com\"}}\u003c/script>","agentPointerHref":"/api-reference/guias/espelhar-inbox.md","siteName":"SocialSell API","nav":{"global":{"anchors":[{"anchor":"App","icon":"arrow-up-right-from-square","href":"https://socialsell.ai/login"},{"anchor":"Status","icon":"signal","href":"https://status.socialsell.ai"},{"anchor":"Suporte","icon":"whatsapp","href":"https://wa.me/5514959762223"}]},"tabs":[{"tab":"Comece aqui","groups":[{"group":"Introdução","pages":[{"title":"Bem-vindo à API SocialSell","href":""},{"title":"Início Rápido","href":"/api-reference/quickstart"}]},{"group":"Fundamentos","pages":[{"title":"Autenticação","href":"/api-reference/authentication"},{"title":"Permissões","href":"/api-reference/scopes"},{"title":"Erros","href":"/api-reference/errors"},{"title":"Paginação","href":"/api-reference/pagination"},{"title":"Idempotência","href":"/api-reference/idempotency"},{"title":"Limites de requisição","href":"/api-reference/rate-limits"},{"title":"Limites e cotas","href":"/api-reference/limits"}]},{"group":"Guias","pages":[{"title":"Sincronizar contatos com um sistema externo","href":"/api-reference/guias/sincronizar-contatos"},{"title":"Disparar uma campanha ponta a ponta","description":"Do rascunho ao relatório, com os pontos onde uma campanha costuma sair errada.","href":"/api-reference/guias/disparo-ponta-a-ponta"},{"title":"Espelhar o inbox em um sistema externo","href":"/api-reference/guias/espelhar-inbox"}]},{"group":"Plataforma","pages":[{"title":"Versionamento","description":"O que pode mudar na API sem aviso, o que exige uma versão nova, e como avisamos.","href":"/api-reference/versioning"},{"title":"Changelog","href":"/api-reference/changelog"}]}]},{"tab":"Webhooks","pages":[{"title":"Webhooks","href":"/webhooks/introduction"}]},{"tab":"Referência da API","pages":[{"title":"Referência da API","href":"/api-reference/contacts/list"}]}]},"basePath":"","title":"Espelhar o inbox em um sistema externo - SocialSell API","deploymentId":"dpl_XLevHnGPjzxq9mbREha5Faad63Sp","buildId":"dpl_XLevHnGPjzxq9mbREha5Faad63Sp","dynamics":[],"chunks":[]}