Receba notificações quando uma visita ou reunião é criada, atualizada ou cancelada.
Visão geral
O webhook de Agendamento é disparado pela Morada.ai sempre que uma visita ou reunião é criada, atualizada ou cancelada para um deal. Inclui dados completos do agendamento, deal, contato e um resumo da conversa gerado por IA.Ative Novo agendamento, Atualização de agendamento e Agendamento removido na aba Eventos da integração para receber este payload.Por padrão, o envio espera o deal ter produto vinculado. Enquanto não tem, a Morada tenta o envio de novo pelo mesmo prazo das novas tentativas de entrega. Se o produto for vinculado nesse prazo, o agendamento pode chegar com atraso; depois dele, vincular o produto não dispara o envio daquele agendamento.Se a sua integração foi configurada para receber também deals sem produto (peça ao suporte), o envio não espera o produto e o objeto product não vem nesses envios.O cancelamento chega neste mesmo formato, com appointment.status igual a canceled, por appointment.deleted (no menu, Agendamento removido) ou por appointment.updated (no menu, Atualização de agendamento), conforme o fluxo em que o agendamento foi cancelado. Identifique o cancelamento pelo status.
Payload
{ "deal": { "id": "a1b2c3d4-5678-90ab-cdef-1234567890ab", "status": "open", "stageCode": "visit_scheduled", "title": "Maria Oliveira - Residencial Parque Verde", "conversationId": "f1e2d3c4-5678-90ab-cdef-1234567890ab", "partnerId": "b2c3d4e5-6789-01ab-cdef-2345678901bc" }, "person": { "id": "c3d4e5f6-7890-12ab-cdef-3456789012cd", "name": "Maria Oliveira", "email": "maria@email.com", "phone": "5521988888888" }, "product": { "id": "d4e5f6a7-8901-23ab-cdef-4567890123de", "name": "Residencial Parque Verde" }, "source": { "source": "Campaign", "media": "WhatsApp", "campaign": "Retomada de atendimento" }, "conversationReport": "A lead solicitou visita ao decorado no sábado. Tem interesse em unidades de 3 quartos no andar alto. Informou que trabalha na região e busca proximidade com metrô.", "appointmentDate": "17-05-2026 10:00", "appointment": { "id": "1a2b3c4d-5678-90ab-cdef-1234567890ab", "dealId": "a1b2c3d4-5678-90ab-cdef-1234567890ab", "personId": "c3d4e5f6-7890-12ab-cdef-3456789012cd", "propertyId": "2b3c4d5e-6789-01ab-cdef-2345678901bc", "scheduledAt": "2026-05-17T13:00:00.000Z", "status": "scheduled" }, "metadata": { "timestamp": "2026-05-13T18:30:00.000Z", "eventType": "appointment" }}
Data formatada do agendamento: dd-MM-yyyy HH:mm (horário de Brasília)
metadata.timestamp
string
Data/hora do envio do webhook (ISO 8601, UTC)
metadata.eventType
string
Sempre "appointment"
O campo appointmentDate é a mesma data de appointment.scheduledAt, mas já convertida para o horário de Brasília e formatada para exibição. Use scheduledAt para cálculos e appointmentDate para exibição.
@app.route("/webhook/morada", methods=["POST"])def handle_webhook(): data = request.json appointment = data["appointment"] person = data["person"] print(f"Agendamento {appointment['status']} para {person['name']}") print(f"Data: {data.get('appointmentDate')}") return jsonify({"received": True}), 200
Resposta esperada
Retorne um status HTTP 200 para confirmar o recebimento:
{ "received": true}
Entrega e deduplicação
A entrega segue o modelo de pelo menos uma vez. O mesmo envio pode chegar mais de uma vez, inclusive depois de uma resposta HTTP 200. Em falha, como resposta diferente de 2xx ou nenhuma resposta, há novas tentativas por cerca de 36 minutos; depois disso, deixa de ser reenviado automaticamente.
appointment.id se repete a cada atualização do mesmo agendamento. Use esse ID para atualizar o registro que você já tem, inclusive nos reenvios.No reagendamento, conforme o fluxo, você recebe o cancelamento do agendamento anterior e a criação de um novo, ou o mesmo appointment.id passando por canceled e voltando a scheduled com a nova data, por Atualização de agendamento. Trate appointment.status como o estado atual do agendamento, que ainda pode mudar.
Para reconciliar, consulte o status atual pelo deal.id em Buscar Deals (parâmetro dealId). A etapa não vem nessa consulta.
Was this page helpful?
{"docsConfig":{"theme":"mint","$schema":"https://mintlify.com/docs.json","name":"Morada.ai","colors":{"primary":"#0073ff","light":"#02cfff","dark":"#1d1d1b"},"logo":{"light":"https://mintcdn.com/moradaai-f7bfc739/kSx9mjFnvPicQ3xe/logo/light.svg?fit=max\u0026auto=format\u0026n=kSx9mjFnvPicQ3xe\u0026q=85\u0026s=ba3db46c822d66036587e355c450ddbe","dark":"https://mintcdn.com/moradaai-f7bfc739/kSx9mjFnvPicQ3xe/logo/dark.svg?fit=max\u0026auto=format\u0026n=kSx9mjFnvPicQ3xe\u0026q=85\u0026s=607c27c9e40db5af1845941882ccede0"},"favicon":"https://mintcdn.com/moradaai-f7bfc739/xv5y-UVamBHFwGv5/favicon.svg?fit=max\u0026auto=format\u0026n=xv5y-UVamBHFwGv5\u0026q=85\u0026s=b436321629bc98e062060418fda730dd","api":{},"navbar":{"links":[{"href":"https://support.morada.ai","label":"Suporte"},{"href":"https://status.morada.ai","label":"Status"}],"primary":{"type":"button","label":"Plataforma","href":"https://app.morada.ai"}},"footer":{"socials":{"linkedin":"https://www.linkedin.com/company/morada-ai"}},"fonts":{"heading":{"family":"Outfit"},"body":{"family":"Lato"}},"integrations":{"gtm":{"tagId":"GTM-WKLLFZGF"}},"styling":{"latex":false},"navigation":{"pages":[]}},"deployment":{"deploymentMetadataValue":{"subdomain":"moradaai-f7bfc739","hasAudioNarration":false,"actualSubdomain":"moradaai-f7bfc739","customDomains":["docs.morada.ai"],"gitSource":{"type":"github","owner":"morada-ai","repo":"docs","deployBranch":"main","contentDirectory":"","isPrivate":true,"mountPath":"","label":""},"feedback":{"thumbs":true},"entitlements":{"AI_CHAT":{"status":"DISABLED"},"WEB_MCP":{"status":"DISABLED"},"NARRATION":{"status":"DISABLED"}},"buildId":"6b0736ecc32b16d17726f768","clientVersion":"0.0.4330","searchFilterCounts":[{"language":"default","tag":"Plataforma Morada.ai","count":136},{"language":"default","tag":"Manuais de uso","count":91},{"language":"pt-BR","tag":"Morada OS","count":52},{"language":"en","tag":"Morada OS","count":52},{"language":"default","tag":"API","count":28},{"language":"pt-BR","tag":"Guias","count":28},{"language":"en","tag":"Guides","count":28},{"language":"pt-BR","tag":"Casos de uso","count":23},{"language":"en","tag":"Use cases","count":23},{"language":"default","tag":"WhatsApp","count":17},{"language":"default","tag":"MIA - Agentes de IA","count":13},{"language":"pt-BR","tag":"Integrações","count":13},{"language":"en","tag":"Integrations","count":13},{"language":"default","tag":"Data","count":12},{"language":"default","tag":"Playbooks","count":12},{"language":"default","tag":"Integrações","count":11},{"language":"default","tag":"Talk - Atendimento Humano","count":11},{"language":"default","tag":"Outros Canais","count":10},{"language":"pt-BR","tag":"Crie experiências visuais","count":6},{"language":"en","tag":"Create visual experiences","count":6},{"language":"pt-BR","tag":"Comunicação","count":5},{"language":"en","tag":"Communication","count":5},{"language":"pt-BR","tag":"Canais","count":4},{"language":"pt-BR","tag":"Pesquisa de mercado","count":4},{"language":"en","tag":"Channels","count":4},{"language":"en","tag":"Market research","count":4},{"language":"pt-BR","tag":"Projetos e desenhos","count":3},{"language":"pt-BR","tag":"Planilhas e documentos","count":3},{"language":"en","tag":"Getting started","count":3},{"language":"en","tag":"Security and legal","count":3}]},"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":"custom-rbac-roles","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":"site-roles","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":"sso-setup-deadline-banner","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":"treatment","enabled":true,"payload":{"type":"string","value":"treatment"},"feature_enabled":true},"impressionData":false},{"name":"llms-txt-v2","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"wildcard-email-auth","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false}],"starterQuestions":[],"googleFontsInlined":true},"customCss":[]}
{"page":{"pagePath":"api-reference/webhooks/agendamento","slug":"/api-reference/webhooks/agendamento","pageMetadata":{"title":"Agendamento","description":"Receba notificações quando uma visita ou reunião é criada, atualizada ou cancelada.","icon":"webhook","href":"/api-reference/webhooks/agendamento"},"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: \"Receba notificações quando uma visita ou reunião é criada, atualizada ou cancelada.\"\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];const WebhookSource=({prefix=`source`})=>_jsxs(`table`,{children:[_jsx(`thead`,{children:_jsxs(`tr`,{children:[_jsx(`th`,{children:`Campo`}),_jsx(`th`,{children:`Tipo`}),_jsx(`th`,{children:`Descrição`})]})}),_jsxs(`tbody`,{children:[_jsxs(`tr`,{children:[_jsx(`td`,{children:_jsxs(`code`,{children:[prefix,`.source`]})}),_jsx(`td`,{children:`string`}),_jsxs(`td`,{children:[`Origem da captação, por exemplo `,_jsx(`code`,{children:`Campaign`})]})]}),_jsxs(`tr`,{children:[_jsx(`td`,{children:_jsxs(`code`,{children:[prefix,`.media`]})}),_jsx(`td`,{children:`string`}),_jsxs(`td`,{children:[`Meio de captação, por exemplo `,_jsx(`code`,{children:`WhatsApp`})]})]}),_jsxs(`tr`,{children:[_jsx(`td`,{children:_jsxs(`code`,{children:[prefix,`.campaign`]})}),_jsx(`td`,{children:`string`}),_jsx(`td`,{children:`Nome da campanha, quando disponível`})]}),_jsxs(`tr`,{children:[_jsx(`td`,{children:_jsxs(`code`,{children:[prefix,`.utm`]})}),_jsx(`td`,{children:`object`}),_jsx(`td`,{children:`Metadados de captação, quando disponíveis`})]}),_jsxs(`tr`,{children:[_jsx(`td`,{children:_jsxs(`code`,{children:[prefix,`.utm.form.leadgen_id`]})}),_jsx(`td`,{children:`string`}),_jsx(`td`,{children:`ID do lead no formulário da Meta, quando houver`})]}),_jsxs(`tr`,{children:[_jsx(`td`,{children:_jsxs(`code`,{children:[prefix,`.utm.ctwa_clid`]})}),_jsx(`td`,{children:`string`}),_jsx(`td`,{children:`ID do clique no anúncio para WhatsApp, quando houver`})]}),_jsxs(`tr`,{children:[_jsx(`td`,{children:_jsxs(`code`,{children:[prefix,`.utm.source_id`]})}),_jsx(`td`,{children:`string`}),_jsx(`td`,{children:`ID do anúncio de clique para WhatsApp, quando houver`})]}),_jsxs(`tr`,{children:[_jsx(`td`,{children:_jsxs(`code`,{children:[prefix,`.conversion`]})}),_jsx(`td`,{children:`string`}),_jsx(`td`,{children:`Descrição da conversão, quando disponível`})]})]})]});function _createMdxContent(props){const _components={a:`a`,code:`code`,p:`p`,pre:`pre`,span:`span`,strong:`strong`,tbody:`tbody`,td:`td`,th:`th`,thead:`thead`,tr:`tr`,..._provideComponents(),...props.components},{CodeBlock,CodeGroup,Heading,Table,Tip,Warning,_MdxComponentBoundary}=_components;if(!CodeBlock)_missingMdxReference(`CodeBlock`,true);if(!CodeGroup)_missingMdxReference(`CodeGroup`,true);if(!Heading)_missingMdxReference(`Heading`,true);if(!Table)_missingMdxReference(`Table`,true);if(!Tip)_missingMdxReference(`Tip`,true);if(!Warning)_missingMdxReference(`Warning`,true);if(!_MdxComponentBoundary)_missingMdxReference(`_MdxComponentBoundary`,true);return _jsxs(_Fragment,{children:[_jsx(Heading,{level:`2`,id:`visão-geral`,children:`Visão geral`}),`\n`,_jsxs(_components.p,{children:[`O webhook de `,_jsx(_components.strong,{children:`Agendamento`}),` é disparado pela Morada.ai sempre que uma visita ou reunião é criada, atualizada ou cancelada para um deal. Inclui dados completos do agendamento, deal, contato e um resumo da conversa gerado por IA.`]}),`\n`,_jsxs(_components.p,{children:[`Ative `,_jsx(_components.strong,{children:`Novo agendamento`}),`, `,_jsx(_components.strong,{children:`Atualização de agendamento`}),` e `,_jsx(_components.strong,{children:`Agendamento removido`}),` na aba `,_jsx(_components.strong,{children:`Eventos`}),` da `,_jsx(_components.a,{href:`/api-reference/webhooks/visao-geral#configura%C3%A7%C3%A3o`,children:`integração`}),` para receber este payload.`]}),`\n`,_jsxs(_components.p,{children:[`Por padrão, o envio espera o deal ter produto vinculado. Enquanto não tem, a Morada tenta o envio de novo pelo mesmo prazo das `,_jsx(_components.a,{href:`#entrega-e-deduplica%C3%A7%C3%A3o`,children:`novas tentativas de entrega`}),`. Se o produto for vinculado nesse prazo, o agendamento pode chegar com atraso; depois dele, vincular o produto não dispara o envio daquele agendamento.`]}),`\n`,_jsxs(_components.p,{children:[`Se a sua integração foi configurada para receber também deals sem produto (peça ao suporte), o envio não espera o produto e o objeto `,_jsx(_components.code,{children:`product`}),` não vem nesses envios.`]}),`\n`,_jsxs(_components.p,{children:[`O cancelamento chega neste mesmo formato, com `,_jsx(_components.code,{children:`appointment.status`}),` igual a `,_jsx(_components.code,{children:`canceled`}),`, por `,_jsx(_components.code,{children:`appointment.deleted`}),` (no menu, `,_jsx(_components.strong,{children:`Agendamento removido`}),`) ou por `,_jsx(_components.code,{children:`appointment.updated`}),` (no menu, `,_jsx(_components.strong,{children:`Atualização de agendamento`}),`), conforme o fluxo em que o agendamento foi cancelado. Identifique o cancelamento pelo status.`]}),`\n`,_jsx(Heading,{level:`2`,id:`payload`,children:`Payload`}),`\n`,_jsx(CodeBlock,{filename:``,numberOfLines:`39`,language:`json`,children:_jsx(_components.pre,{className:`shiki shiki-themes github-light-default dark-plus`,style:{backgroundColor:`#ffffff`,\"--shiki-dark-bg\":`#0B0C0E`,color:`#1f2328`,\"--shiki-dark\":`#D4D4D4`},language:`json`,children:_jsxs(_components.code,{language:`json`,numberOfLines:`39`,children:[_jsx(_components.span,{className:`line`,children:_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`{`})}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#116329`,\"--shiki-dark\":`#9CDCFE`},children:` \"deal\"`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`: {`})]}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#116329`,\"--shiki-dark\":`#9CDCFE`},children:` \"id\"`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`: `}),_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:`\"a1b2c3d4-5678-90ab-cdef-1234567890ab\"`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`,`})]}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#116329`,\"--shiki-dark\":`#9CDCFE`},children:` \"status\"`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`: `}),_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:`\"open\"`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`,`})]}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#116329`,\"--shiki-dark\":`#9CDCFE`},children:` \"stageCode\"`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`: `}),_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:`\"visit_scheduled\"`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`,`})]}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#116329`,\"--shiki-dark\":`#9CDCFE`},children:` \"title\"`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`: `}),_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:`\"Maria Oliveira - Residencial Parque Verde\"`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`,`})]}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#116329`,\"--shiki-dark\":`#9CDCFE`},children:` \"conversationId\"`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`: `}),_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:`\"f1e2d3c4-5678-90ab-cdef-1234567890ab\"`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`,`})]}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#116329`,\"--shiki-dark\":`#9CDCFE`},children:` \"partnerId\"`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`: `}),_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:`\"b2c3d4e5-6789-01ab-cdef-2345678901bc\"`})]}),`\n`,_jsx(_components.span,{className:`line`,children:_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:` },`})}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#116329`,\"--shiki-dark\":`#9CDCFE`},children:` \"person\"`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`: {`})]}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#116329`,\"--shiki-dark\":`#9CDCFE`},children:` \"id\"`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`: `}),_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:`\"c3d4e5f6-7890-12ab-cdef-3456789012cd\"`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`,`})]}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#116329`,\"--shiki-dark\":`#9CDCFE`},children:` \"name\"`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`: `}),_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:`\"Maria Oliveira\"`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`,`})]}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#116329`,\"--shiki-dark\":`#9CDCFE`},children:` \"email\"`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`: `}),_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:`\"maria@email.com\"`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`,`})]}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#116329`,\"--shiki-dark\":`#9CDCFE`},children:` \"phone\"`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`: `}),_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:`\"5521988888888\"`})]}),`\n`,_jsx(_components.span,{className:`line`,children:_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:` },`})}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#116329`,\"--shiki-dark\":`#9CDCFE`},children:` \"product\"`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`: {`})]}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#116329`,\"--shiki-dark\":`#9CDCFE`},children:` \"id\"`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`: `}),_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:`\"d4e5f6a7-8901-23ab-cdef-4567890123de\"`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`,`})]}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#116329`,\"--shiki-dark\":`#9CDCFE`},children:` \"name\"`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`: `}),_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:`\"Residencial Parque Verde\"`})]}),`\n`,_jsx(_components.span,{className:`line`,children:_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:` },`})}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#116329`,\"--shiki-dark\":`#9CDCFE`},children:` \"source\"`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`: {`})]}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#116329`,\"--shiki-dark\":`#9CDCFE`},children:` \"source\"`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`: `}),_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:`\"Campaign\"`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`,`})]}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#116329`,\"--shiki-dark\":`#9CDCFE`},children:` \"media\"`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`: `}),_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:`\"WhatsApp\"`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`,`})]}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#116329`,\"--shiki-dark\":`#9CDCFE`},children:` \"campaign\"`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`: `}),_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:`\"Retomada de atendimento\"`})]}),`\n`,_jsx(_components.span,{className:`line`,children:_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:` },`})}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#116329`,\"--shiki-dark\":`#9CDCFE`},children:` \"conversationReport\"`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`: `}),_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:`\"A lead solicitou visita ao decorado no sábado. Tem interesse em unidades de 3 quartos no andar alto. Informou que trabalha na região e busca proximidade com metrô.\"`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`,`})]}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#116329`,\"--shiki-dark\":`#9CDCFE`},children:` \"appointmentDate\"`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`: `}),_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:`\"17-05-2026 10:00\"`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`,`})]}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#116329`,\"--shiki-dark\":`#9CDCFE`},children:` \"appointment\"`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`: {`})]}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#116329`,\"--shiki-dark\":`#9CDCFE`},children:` \"id\"`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`: `}),_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:`\"1a2b3c4d-5678-90ab-cdef-1234567890ab\"`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`,`})]}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#116329`,\"--shiki-dark\":`#9CDCFE`},children:` \"dealId\"`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`: `}),_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:`\"a1b2c3d4-5678-90ab-cdef-1234567890ab\"`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`,`})]}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#116329`,\"--shiki-dark\":`#9CDCFE`},children:` \"personId\"`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`: `}),_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:`\"c3d4e5f6-7890-12ab-cdef-3456789012cd\"`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`,`})]}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#116329`,\"--shiki-dark\":`#9CDCFE`},children:` \"propertyId\"`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`: `}),_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:`\"2b3c4d5e-6789-01ab-cdef-2345678901bc\"`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`,`})]}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#116329`,\"--shiki-dark\":`#9CDCFE`},children:` \"scheduledAt\"`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`: `}),_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:`\"2026-05-17T13:00:00.000Z\"`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`,`})]}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#116329`,\"--shiki-dark\":`#9CDCFE`},children:` \"status\"`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`: `}),_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:`\"scheduled\"`})]}),`\n`,_jsx(_components.span,{className:`line`,children:_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:` },`})}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#116329`,\"--shiki-dark\":`#9CDCFE`},children:` \"metadata\"`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`: {`})]}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#116329`,\"--shiki-dark\":`#9CDCFE`},children:` \"timestamp\"`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`: `}),_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:`\"2026-05-13T18:30:00.000Z\"`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`,`})]}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#116329`,\"--shiki-dark\":`#9CDCFE`},children:` \"eventType\"`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`: `}),_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:`\"appointment\"`})]}),`\n`,_jsx(_components.span,{className:`line`,children:_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:` }`})}),`\n`,_jsx(_components.span,{className:`line`,children:_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`}`})}),`\n`]})})}),`\n`,_jsx(Heading,{level:`2`,id:`campos`,children:`Campos`}),`\n`,_jsx(Heading,{level:`3`,id:`deal`,children:`deal`}),`\n`,_jsxs(Table,{children:[_jsx(_components.thead,{children:_jsxs(_components.tr,{children:[_jsx(_components.th,{children:`Campo`}),_jsx(_components.th,{children:`Tipo`}),_jsx(_components.th,{children:`Descrição`})]})}),_jsxs(_components.tbody,{children:[_jsxs(_components.tr,{children:[_jsx(_components.td,{children:_jsx(_components.code,{children:`deal.id`})}),_jsx(_components.td,{children:`string`}),_jsx(_components.td,{children:`ID único do deal`})]}),_jsxs(_components.tr,{children:[_jsx(_components.td,{children:_jsx(_components.code,{children:`deal.status`})}),_jsx(_components.td,{children:`string`}),_jsxs(_components.td,{children:[`Status atual do deal. Veja `,_jsx(_components.a,{href:`/api-reference/webhooks/mudanca-etapa#status-do-deal`,children:`status do deal`})]})]}),_jsxs(_components.tr,{children:[_jsx(_components.td,{children:_jsx(_components.code,{children:`deal.stageCode`})}),_jsx(_components.td,{children:`string | null`}),_jsxs(_components.td,{children:[`Código da etapa atual no funil. Veja `,_jsx(_components.a,{href:`/api-reference/webhooks/mudanca-etapa#etapas-e-status-do-deal`,children:`etapas e status do deal`})]})]}),_jsxs(_components.tr,{children:[_jsx(_components.td,{children:_jsx(_components.code,{children:`deal.title`})}),_jsx(_components.td,{children:`string | null`}),_jsx(_components.td,{children:`Título do deal`})]}),_jsxs(_components.tr,{children:[_jsx(_components.td,{children:_jsx(_components.code,{children:`deal.conversationId`})}),_jsx(_components.td,{children:`string | null`}),_jsx(_components.td,{children:`ID da conversa associada`})]}),_jsxs(_components.tr,{children:[_jsx(_components.td,{children:_jsx(_components.code,{children:`deal.partnerId`})}),_jsx(_components.td,{children:`string`}),_jsx(_components.td,{children:`ID do parceiro`})]})]})]}),`\n`,_jsx(Heading,{level:`3`,id:`person`,children:`person`}),`\n`,_jsxs(Table,{children:[_jsx(_components.thead,{children:_jsxs(_components.tr,{children:[_jsx(_components.th,{children:`Campo`}),_jsx(_components.th,{children:`Tipo`}),_jsx(_components.th,{children:`Descrição`})]})}),_jsxs(_components.tbody,{children:[_jsxs(_components.tr,{children:[_jsx(_components.td,{children:_jsx(_components.code,{children:`person.id`})}),_jsx(_components.td,{children:`string`}),_jsx(_components.td,{children:`ID único do contato`})]}),_jsxs(_components.tr,{children:[_jsx(_components.td,{children:_jsx(_components.code,{children:`person.name`})}),_jsx(_components.td,{children:`string | null`}),_jsx(_components.td,{children:`Nome completo`})]}),_jsxs(_components.tr,{children:[_jsx(_components.td,{children:_jsx(_components.code,{children:`person.email`})}),_jsx(_components.td,{children:`string | null`}),_jsx(_components.td,{children:`E-mail`})]}),_jsxs(_components.tr,{children:[_jsx(_components.td,{children:_jsx(_components.code,{children:`person.phone`})}),_jsx(_components.td,{children:`string | null`}),_jsxs(_components.td,{children:[`Telefone com DDI (ex: `,_jsx(_components.code,{children:`5521988888888`}),`)`]})]})]})]}),`\n`,_jsx(Heading,{level:`3`,id:`product`,children:`product`}),`\n`,_jsxs(Table,{children:[_jsx(_components.thead,{children:_jsxs(_components.tr,{children:[_jsx(_components.th,{children:`Campo`}),_jsx(_components.th,{children:`Tipo`}),_jsx(_components.th,{children:`Descrição`})]})}),_jsxs(_components.tbody,{children:[_jsxs(_components.tr,{children:[_jsx(_components.td,{children:_jsx(_components.code,{children:`product.id`})}),_jsx(_components.td,{children:`string`}),_jsx(_components.td,{children:`ID do produto/empreendimento`})]}),_jsxs(_components.tr,{children:[_jsx(_components.td,{children:_jsx(_components.code,{children:`product.name`})}),_jsx(_components.td,{children:`string`}),_jsx(_components.td,{children:`Nome do produto/empreendimento`})]})]})]}),`\n`,_jsx(Heading,{level:`3`,id:`source`,children:`source`}),`\n`,_jsx(_MdxComponentBoundary,{name:`WebhookSource`,children:_jsx(WebhookSource,{})}),`\n`,_jsx(Heading,{level:`3`,id:`appointment`,children:`appointment`}),`\n`,_jsxs(Table,{children:[_jsx(_components.thead,{children:_jsxs(_components.tr,{children:[_jsx(_components.th,{children:`Campo`}),_jsx(_components.th,{children:`Tipo`}),_jsx(_components.th,{children:`Descrição`})]})}),_jsxs(_components.tbody,{children:[_jsxs(_components.tr,{children:[_jsx(_components.td,{children:_jsx(_components.code,{children:`appointment.id`})}),_jsx(_components.td,{children:`string`}),_jsx(_components.td,{children:`ID único do agendamento`})]}),_jsxs(_components.tr,{children:[_jsx(_components.td,{children:_jsx(_components.code,{children:`appointment.dealId`})}),_jsx(_components.td,{children:`string`}),_jsx(_components.td,{children:`ID do deal associado`})]}),_jsxs(_components.tr,{children:[_jsx(_components.td,{children:_jsx(_components.code,{children:`appointment.personId`})}),_jsx(_components.td,{children:`string`}),_jsx(_components.td,{children:`ID do contato`})]}),_jsxs(_components.tr,{children:[_jsx(_components.td,{children:_jsx(_components.code,{children:`appointment.propertyId`})}),_jsx(_components.td,{children:`string | null`}),_jsx(_components.td,{children:`ID do imóvel/empreendimento da visita`})]}),_jsxs(_components.tr,{children:[_jsx(_components.td,{children:_jsx(_components.code,{children:`appointment.scheduledAt`})}),_jsx(_components.td,{children:`string`}),_jsx(_components.td,{children:`Data/hora agendada (ISO 8601, UTC)`})]}),_jsxs(_components.tr,{children:[_jsx(_components.td,{children:_jsx(_components.code,{children:`appointment.status`})}),_jsx(_components.td,{children:`string`}),_jsxs(_components.td,{children:[`Status: `,_jsx(_components.code,{children:`scheduled`}),` (agendado), `,_jsx(_components.code,{children:`completed`}),` (concluído), `,_jsx(_components.code,{children:`canceled`}),` (cancelado) ou `,_jsx(_components.code,{children:`no_show`}),` (não compareceu)`]})]})]})]}),`\n`,_jsx(Heading,{level:`3`,id:`outros-campos`,children:`Outros campos`}),`\n`,_jsxs(Table,{children:[_jsx(_components.thead,{children:_jsxs(_components.tr,{children:[_jsx(_components.th,{children:`Campo`}),_jsx(_components.th,{children:`Tipo`}),_jsx(_components.th,{children:`Descrição`})]})}),_jsxs(_components.tbody,{children:[_jsxs(_components.tr,{children:[_jsx(_components.td,{children:_jsx(_components.code,{children:`conversationReport`})}),_jsx(_components.td,{children:`string | null`}),_jsx(_components.td,{children:`Resumo da conversa gerado por IA`})]}),_jsxs(_components.tr,{children:[_jsx(_components.td,{children:_jsx(_components.code,{children:`appointmentDate`})}),_jsx(_components.td,{children:`string | null`}),_jsxs(_components.td,{children:[`Data formatada do agendamento: `,_jsx(_components.code,{children:`dd-MM-yyyy HH:mm`}),` (horário de Brasília)`]})]}),_jsxs(_components.tr,{children:[_jsx(_components.td,{children:_jsx(_components.code,{children:`metadata.timestamp`})}),_jsx(_components.td,{children:`string`}),_jsx(_components.td,{children:`Data/hora do envio do webhook (ISO 8601, UTC)`})]}),_jsxs(_components.tr,{children:[_jsx(_components.td,{children:_jsx(_components.code,{children:`metadata.eventType`})}),_jsx(_components.td,{children:`string`}),_jsxs(_components.td,{children:[`Sempre `,_jsx(_components.code,{children:`\"appointment\"`})]})]})]})]}),`\n`,_jsx(Tip,{children:_jsxs(_components.p,{children:[`O campo `,_jsx(_components.code,{children:`appointmentDate`}),` é a mesma data de `,_jsx(_components.code,{children:`appointment.scheduledAt`}),`, mas já convertida para o horário de Brasília e formatada para exibição. Use `,_jsx(_components.code,{children:`scheduledAt`}),` para cálculos e `,_jsx(_components.code,{children:`appointmentDate`}),` para exibição.`]})}),`\n`,_jsx(Heading,{level:`2`,id:`exemplo-de-uso`,children:`Exemplo de uso`}),`\n`,_jsxs(CodeGroup,{children:[_jsx(CodeBlock,{filename:`Node.js`,numberOfLines:`11`,language:`javascript`,children:_jsx(_components.pre,{className:`shiki shiki-themes github-light-default dark-plus`,style:{backgroundColor:`#ffffff`,\"--shiki-dark-bg\":`#0B0C0E`,color:`#1f2328`,\"--shiki-dark\":`#D4D4D4`},language:`javascript`,children:_jsxs(_components.code,{language:`javascript`,numberOfLines:`11`,children:[_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#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:`\"/webhook/morada\"`}),_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:`#CF222E`,\"--shiki-dark\":`#569CD6`},children:` const`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:` { `}),_jsx(_components.span,{style:{color:`#0550AE`,\"--shiki-dark\":`#4FC1FF`},children:`appointment`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`, `}),_jsx(_components.span,{style:{color:`#0550AE`,\"--shiki-dark\":`#4FC1FF`},children:`person`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`, `}),_jsx(_components.span,{style:{color:`#0550AE`,\"--shiki-dark\":`#4FC1FF`},children:`deal`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`, `}),_jsx(_components.span,{style:{color:`#0550AE`,\"--shiki-dark\":`#4FC1FF`},children:`appointmentDate`}),_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:` 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`}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#9CDCFE`},children:` console`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`.`}),_jsx(_components.span,{style:{color:`#8250DF`,\"--shiki-dark\":`#DCDCAA`},children:`log`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`(`}),_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:\"`Agendamento \"}),_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#569CD6`},children:\"${\"}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#9CDCFE`},children:`appointment`}),_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#D4D4D4`},children:`.`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#9CDCFE`},children:`status`}),_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#569CD6`},children:`}`}),_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:` para `}),_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#569CD6`},children:\"${\"}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#9CDCFE`},children:`person`}),_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#D4D4D4`},children:`.`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#9CDCFE`},children:`name`}),_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#569CD6`},children:`}`}),_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},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:` console`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`.`}),_jsx(_components.span,{style:{color:`#8250DF`,\"--shiki-dark\":`#DCDCAA`},children:`log`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`(`}),_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:\"`Data: \"}),_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#569CD6`},children:\"${\"}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#9CDCFE`},children:`appointmentDate`}),_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#569CD6`},children:`}`}),_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},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:` console`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`.`}),_jsx(_components.span,{style:{color:`#8250DF`,\"--shiki-dark\":`#DCDCAA`},children:`log`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`(`}),_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:\"`Imóvel: \"}),_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#569CD6`},children:\"${\"}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#9CDCFE`},children:`appointment`}),_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#D4D4D4`},children:`.`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#9CDCFE`},children:`propertyId`}),_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#569CD6`},children:`}`}),_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:\"`\"}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`);`})]}),`\n`,_jsx(_components.span,{className:`line`}),`\n`,_jsx(_components.span,{className:`line`,children:_jsx(_components.span,{style:{color:`#6E7781`,\"--shiki-dark\":`#6A9955`},children:` // Criar evento no calendário, notificar corretor, etc.`})}),`\n`,_jsx(_components.span,{className:`line`}),`\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:`json`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`({ `}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#9CDCFE`},children:`received:`}),_jsx(_components.span,{style:{color:`#0550AE`,\"--shiki-dark\":`#569CD6`},children:` true`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:` });`})]}),`\n`,_jsx(_components.span,{className:`line`,children:_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`});`})}),`\n`]})})}),_jsx(CodeBlock,{filename:`Python`,numberOfLines:`10`,language:`python`,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:`python`,children:_jsxs(_components.code,{language:`python`,numberOfLines:`10`,children:[_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#8250DF`,\"--shiki-dark\":`#DCDCAA`},children:`@app.route`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`(`}),_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:`\"/webhook/morada\"`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`, `}),_jsx(_components.span,{style:{color:`#953800`,\"--shiki-dark\":`#9CDCFE`},children:`methods`}),_jsx(_components.span,{style:{color:`#CF222E`,\"--shiki-dark\":`#D4D4D4`},children:`=`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`[`}),_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:`\"POST\"`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`])`})]}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#CF222E`,\"--shiki-dark\":`#569CD6`},children:`def`}),_jsx(_components.span,{style:{color:`#8250DF`,\"--shiki-dark\":`#DCDCAA`},children:` handle_webhook`}),_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\":`#D4D4D4`},children:` data `}),_jsx(_components.span,{style:{color:`#CF222E`,\"--shiki-dark\":`#D4D4D4`},children:`=`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:` request.json`})]}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:` appointment `}),_jsx(_components.span,{style:{color:`#CF222E`,\"--shiki-dark\":`#D4D4D4`},children:`=`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:` data[`}),_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:`\"appointment\"`}),_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\":`#D4D4D4`},children:` person `}),_jsx(_components.span,{style:{color:`#CF222E`,\"--shiki-dark\":`#D4D4D4`},children:`=`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:` data[`}),_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:`\"person\"`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`]`})]}),`\n`,_jsx(_components.span,{className:`line`}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#0550AE`,\"--shiki-dark\":`#DCDCAA`},children:` print`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`(`}),_jsx(_components.span,{style:{color:`#CF222E`,\"--shiki-dark\":`#569CD6`},children:`f`}),_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:`\"Agendamento `}),_jsx(_components.span,{style:{color:`#CF222E`,\"--shiki-dark\":`#569CD6`},children:`{`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`appointment[`}),_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:`'status'`}),_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:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:` para `}),_jsx(_components.span,{style:{color:`#CF222E`,\"--shiki-dark\":`#569CD6`},children:`{`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`person[`}),_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:`'name'`}),_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:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:`\"`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`)`})]}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#0550AE`,\"--shiki-dark\":`#DCDCAA`},children:` print`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`(`}),_jsx(_components.span,{style:{color:`#CF222E`,\"--shiki-dark\":`#569CD6`},children:`f`}),_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:`\"Data: `}),_jsx(_components.span,{style:{color:`#CF222E`,\"--shiki-dark\":`#569CD6`},children:`{`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`data.get(`}),_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:`'appointmentDate'`}),_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:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:`\"`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`)`})]}),`\n`,_jsx(_components.span,{className:`line`}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#CF222E`,\"--shiki-dark\":`#C586C0`},children:` return`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:` jsonify({`}),_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:`\"received\"`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`: `}),_jsx(_components.span,{style:{color:`#0550AE`,\"--shiki-dark\":`#569CD6`},children:`True`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`}), `}),_jsx(_components.span,{style:{color:`#0550AE`,\"--shiki-dark\":`#B5CEA8`},children:`200`})]}),`\n`]})})})]}),`\n`,_jsx(Heading,{level:`2`,id:`resposta-esperada`,children:`Resposta esperada`}),`\n`,_jsxs(_components.p,{children:[`Retorne um status HTTP `,_jsx(_components.code,{children:`200`}),` para confirmar o recebimento:`]}),`\n`,_jsx(CodeBlock,{filename:``,numberOfLines:`3`,language:`json`,children:_jsx(_components.pre,{className:`shiki shiki-themes github-light-default dark-plus`,style:{backgroundColor:`#ffffff`,\"--shiki-dark-bg\":`#0B0C0E`,color:`#1f2328`,\"--shiki-dark\":`#D4D4D4`},language:`json`,children:_jsxs(_components.code,{language:`json`,numberOfLines:`3`,children:[_jsx(_components.span,{className:`line`,children:_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`{`})}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#116329`,\"--shiki-dark\":`#9CDCFE`},children:` \"received\"`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`: `}),_jsx(_components.span,{style:{color:`#0550AE`,\"--shiki-dark\":`#569CD6`},children:`true`})]}),`\n`,_jsx(_components.span,{className:`line`,children:_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`}`})}),`\n`]})})}),`\n`,_jsx(Heading,{level:`2`,id:`entrega-e-deduplicação`,children:`Entrega e deduplicação`}),`\n`,_jsx(Warning,{children:_jsxs(_components.p,{children:[`A entrega segue o modelo de pelo menos uma vez. O mesmo envio pode chegar mais de uma vez, inclusive depois de uma resposta HTTP `,_jsx(_components.code,{children:`200`}),`. Em falha, como resposta diferente de `,_jsx(_components.code,{children:`2xx`}),` ou nenhuma resposta, há novas tentativas por cerca de 36 minutos; depois disso, deixa de ser reenviado automaticamente.`]})}),`\n`,_jsxs(Tip,{children:[_jsxs(_components.p,{children:[_jsx(_components.code,{children:`appointment.id`}),` se repete a cada atualização do mesmo agendamento. Use esse ID para atualizar o registro que você já tem, inclusive nos reenvios.`]}),_jsxs(_components.p,{children:[`No reagendamento, conforme o fluxo, você recebe o cancelamento do agendamento anterior e a criação de um novo, ou o mesmo `,_jsx(_components.code,{children:`appointment.id`}),` passando por `,_jsx(_components.code,{children:`canceled`}),` e voltando a `,_jsx(_components.code,{children:`scheduled`}),` com a nova data, por `,_jsx(_components.strong,{children:`Atualização de agendamento`}),`. Trate `,_jsx(_components.code,{children:`appointment.status`}),` como o estado atual do agendamento, que ainda pode mudar.`]})]}),`\n`,_jsxs(_components.p,{children:[`Para reconciliar, consulte o status atual pelo `,_jsx(_components.code,{children:`deal.id`}),` em `,_jsx(_components.a,{href:`/api-reference/endpoint/buscar-deals`,children:`Buscar Deals`}),` (parâmetro `,_jsx(_components.code,{children:`dealId`}),`). A etapa não vem nessa consulta.`]})]})}function MDXContent(props={}){const{wrapper:MDXLayout}={..._provideComponents(),...props.components};return MDXLayout?_jsx(MDXLayout,{...props,children:_jsx(_createMdxContent,{...props})}):_createMdxContent(props)}return{WebhookSource,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":"Agendamento","description":"Receba notificações quando uma visita ou reunião é criada, atualizada ou cancelada.","icon":"webhook","href":"/api-reference/webhooks/agendamento"}}},"mdxSourceWithNoJs":null,"noJsSplices":[[149,1991,")=>null;function _cr"]]},"mdxExtracts":{"tableOfContents":[{"title":"Visão geral","slug":"visão-geral","depth":2,"children":[]},{"title":"Payload","slug":"payload","depth":2,"children":[]},{"title":"Campos","slug":"campos","depth":2,"children":[{"title":"deal","slug":"deal","depth":3,"children":[]},{"title":"person","slug":"person","depth":3,"children":[]},{"title":"product","slug":"product","depth":3,"children":[]},{"title":"source","slug":"source","depth":3,"children":[]},{"title":"appointment","slug":"appointment","depth":3,"children":[]},{"title":"Outros campos","slug":"outros-campos","depth":3,"children":[]}]},{"title":"Exemplo de uso","slug":"exemplo-de-uso","depth":2,"children":[]},{"title":"Resposta esperada","slug":"resposta-esperada","depth":2,"children":[]},{"title":"Entrega e deduplicação","slug":"entrega-e-deduplicação","depth":2,"children":[]}],"codeExamples":{}},"jsLinks":[],"subdomain":"moradaai-f7bfc739","siteName":"Morada.ai","title":"Agendamento - Morada.ai","contextualStarterQuestions":[],"navMaps":{"firstHrefInVersion":{},"firstHrefInLanguage":{}},"lastModified":"2026-11-13T21:38:36.725Z","originalFileLocation":"api-reference/webhooks/agendamento.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=\"Receba notificações quando uma visita ou reunião é criada, atualizada ou cancelada.\">\u003cmeta data-mint-head name=\"application-name\" content=\"Morada.ai\">\u003cmeta data-mint-head name=\"generator\" content=\"Mintlify\">\u003clink data-mint-head rel=\"icon\" type=\"image/png\" sizes=\"192x192\" href=\"/mintlify-assets/_mintlify/favicons/moradaai-f7bfc739/n5xqm8Au97oaI6I5/_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/moradaai-f7bfc739/n5xqm8Au97oaI6I5/_generated/favicon/apple-touch-icon.png\">\u003clink data-mint-head rel=\"icon\" type=\"image/png\" sizes=\"16x16\" href=\"/mintlify-assets/_mintlify/favicons/moradaai-f7bfc739/n5xqm8Au97oaI6I5/_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/moradaai-f7bfc739/n5xqm8Au97oaI6I5/_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/moradaai-f7bfc739/n5xqm8Au97oaI6I5/_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/moradaai-f7bfc739/n5xqm8Au97oaI6I5/_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/moradaai-f7bfc739/n5xqm8Au97oaI6I5/_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/moradaai-f7bfc739/n5xqm8Au97oaI6I5/_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/moradaai-f7bfc739/n5xqm8Au97oaI6I5/_generated/favicon-dark/favicon.ico\" media=\"(prefers-color-scheme: dark)\">\u003cmeta data-mint-head property=\"og:title\" content=\"Agendamento - Morada.ai\">\u003cmeta data-mint-head property=\"og:description\" content=\"Receba notificações quando uma visita ou reunião é criada, atualizada ou cancelada.\">\u003cmeta data-mint-head property=\"og:site_name\" content=\"Morada.ai\">\u003cmeta data-mint-head property=\"og:url\" content=\"https://docs.morada.ai/api-reference/webhooks/agendamento\">\u003cmeta data-mint-head property=\"og:type\" content=\"website\">\u003cmeta data-mint-head property=\"og:image\" content=\"https://moradaai-f7bfc739.mintlify.site/_mintlify/api/og/v2?division=Webhooks\u0026amp;title=Agendamento\u0026amp;description=Receba+notifica%C3%A7%C3%B5es+quando+uma+visita+ou+reuni%C3%A3o+%C3%A9+criada%2C+atualizada+ou+cancelada.\u0026amp;theme=34e790dbe76c3d4039e1f9d8\u0026amp;signature=f619bb2a7bab215537e0ff56f694a138c050d905d675406a15dc2353c98396aa\">\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=\"Agendamento - Morada.ai\">\u003cmeta data-mint-head name=\"twitter:description\" content=\"Receba notificações quando uma visita ou reunião é criada, atualizada ou cancelada.\">\u003cmeta data-mint-head name=\"twitter:image\" content=\"https://moradaai-f7bfc739.mintlify.site/_mintlify/api/og/v2?division=Webhooks\u0026amp;title=Agendamento\u0026amp;description=Receba+notifica%C3%A7%C3%B5es+quando+uma+visita+ou+reuni%C3%A3o+%C3%A9+criada%2C+atualizada+ou+cancelada.\u0026amp;theme=34e790dbe76c3d4039e1f9d8\u0026amp;signature=f619bb2a7bab215537e0ff56f694a138c050d905d675406a15dc2353c98396aa\">\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/moradaai-f7bfc739/n5xqm8Au97oaI6I5/_generated/favicon/browserconfig.xml\">\u003cmeta data-mint-head name=\"apple-mobile-web-app-title\" content=\"Morada.ai\">\u003cmeta data-mint-head name=\"msapplication-TileColor\" content=\"#0073ff\">\u003clink data-mint-head rel=\"canonical\" href=\"https://docs.morada.ai/api-reference/webhooks/agendamento\">\u003clink data-mint-head rel=\"alternate\" type=\"application/xml\" href=\"/sitemap.xml\">\u003clink data-mint-head rel=\"alternate\" type=\"text/markdown\" href=\"/api-reference/webhooks/agendamento.md\">\u003cscript data-mint-head type=\"application/ld+json\">{\"@context\":\"https://schema.org\",\"@graph\":[{\"@type\":\"Organization\",\"@id\":\"https://docs.morada.ai/#organization\",\"name\":\"Morada.ai\",\"url\":\"https://docs.morada.ai\",\"logo\":{\"@type\":\"ImageObject\",\"url\":\"https://mintcdn.com/moradaai-f7bfc739/kSx9mjFnvPicQ3xe/logo/light.svg?fit=max\u0026auto=format\u0026n=kSx9mjFnvPicQ3xe\u0026q=85\u0026s=ba3db46c822d66036587e355c450ddbe\"}},{\"@type\":\"WebSite\",\"@id\":\"https://docs.morada.ai#website\",\"name\":\"Morada.ai\",\"url\":\"https://docs.morada.ai\",\"publisher\":{\"@id\":\"https://docs.morada.ai/#organization\"}},{\"@type\":\"WebPage\",\"@id\":\"https://docs.morada.ai/api-reference/webhooks/agendamento#webpage\",\"url\":\"https://docs.morada.ai/api-reference/webhooks/agendamento\",\"name\":\"Agendamento\",\"description\":\"Receba notificações quando uma visita ou reunião é criada, atualizada ou cancelada.\",\"dateModified\":\"2026-11-13T21:38:36.725Z\",\"isPartOf\":{\"@id\":\"https://docs.morada.ai#website\"},\"breadcrumb\":{\"@id\":\"https://docs.morada.ai/api-reference/webhooks/agendamento#breadcrumb\"}},{\"@type\":\"BreadcrumbList\",\"@id\":\"https://docs.morada.ai/api-reference/webhooks/agendamento#breadcrumb\",\"itemListElement\":[{\"@type\":\"ListItem\",\"position\":1,\"name\":\"Webhooks\",\"item\":\"https://docs.morada.ai/api-reference/webhooks/visao-geral\"},{\"@type\":\"ListItem\",\"position\":2,\"name\":\"Agendamento\",\"item\":\"https://docs.morada.ai/api-reference/webhooks/agendamento\"}]},{\"@type\":[\"Article\",\"TechArticle\"],\"@id\":\"https://docs.morada.ai/api-reference/webhooks/agendamento#article\",\"headline\":\"Agendamento\",\"name\":\"Agendamento\",\"description\":\"Receba notificações quando uma visita ou reunião é criada, atualizada ou cancelada.\",\"url\":\"https://docs.morada.ai/api-reference/webhooks/agendamento\",\"mainEntityOfPage\":{\"@id\":\"https://docs.morada.ai/api-reference/webhooks/agendamento#webpage\"},\"dateModified\":\"2026-11-13T21:38:36.725Z\",\"publisher\":{\"@id\":\"https://docs.morada.ai/#organization\"},\"isPartOf\":{\"@id\":\"https://docs.morada.ai#website\"}}]}\u003c/script>\u003cscript data-mint-head type=\"application/ld+json\">{\"@context\":\"https://schema.org\",\"@type\":\"WebSite\",\"name\":\"Morada.ai\",\"publisher\":{\"@type\":\"Organization\",\"name\":\"Morada.ai\"},\"provider\":{\"@type\":\"Organization\",\"name\":\"Mintlify\",\"url\":\"https://mintlify.com\"}}\u003c/script>","agentPointerHref":"/api-reference/webhooks/agendamento.md","siteName":"Morada.ai","nav":{"global":null,"products":[{"product":"Plataforma Morada.ai","tabs":[{"tab":"Manuais de uso","icon":"book-open","pages":[{"title":"Manuais de uso","href":""}]},{"tab":"API","icon":"code","groups":[{"group":"Visão Geral","pages":[{"title":"Introdução à API","icon":"key","href":"/api-reference/introducao"}]},{"group":"Deals","pages":[{"title":"Criar Deal","openapi":"POST /{partnerId}/deal","href":"/api-reference/endpoint/criar-deal"},{"title":"Buscar Deals","openapi":"GET /deal","href":"/api-reference/endpoint/buscar-deals"},{"title":"Atualizar Deal","openapi":"PATCH /deal/{dealId}","href":"/api-reference/endpoint/atualizar-deal"},{"title":"Registrar Log de Deal","openapi":"POST /api/v1/deals/{dealId}/log","href":"/api-reference/endpoint/registrar-log"}]},{"group":"Leads","pages":[{"title":"Ingerir Lead","openapi":"POST /ingest-lead/{partnerConnectionId}","href":"/api-reference/endpoint/ingerir-lead"}]},{"group":"Notificações","pages":[{"title":"Enviar Notificação","openapi":"POST /send-notification","href":"/api-reference/endpoint/enviar-notificacao"}]},{"group":"Produtos","pages":[{"title":"Listar Produtos","openapi":"GET /products","href":"/api-reference/endpoint/listar-produtos"},{"title":"Buscar Produto por Nome","openapi":"GET /products-by-name","href":"/api-reference/endpoint/buscar-produto-nome"},{"title":"Detalhes do Produto","openapi":"GET /products/{productId}","href":"/api-reference/endpoint/detalhes-produto"}]},{"group":"Data","pages":[{"title":"Exportação de dados","icon":"database","href":"/api-reference/export/visao-geral"},{"title":"Exportar conversas","openapi":"GET /v1/export/conversations","href":"/api-reference/export/exportar-conversas"},{"title":"Exportar mensagens","openapi":"GET /v1/export/messages","href":"/api-reference/export/exportar-mensagens"},{"title":"Exportar contatos","openapi":"GET /v1/export/contacts","href":"/api-reference/export/exportar-contatos"},{"title":"Exportar deals","openapi":"GET /v1/export/deals","href":"/api-reference/export/exportar-deals"},{"title":"Identificar workspace","openapi":"GET /v1/whoami","href":"/api-reference/export/whoami"},{"title":"Relatórios operacionais","icon":"file-lines","href":"/api-reference/export/relatorios"},{"title":"Falhas de mensagens","openapi":"GET /v1/reports/{report}","href":"/api-reference/export/message-errors"},{"title":"Analytics agregado","icon":"chart-column","href":"/api-reference/export/analytics"},{"title":"Analytics de conversas","openapi":"GET /v1/analytics/conversations/{granularity}","href":"/api-reference/export/analytics-conversations"},{"title":"Analytics de tickets","openapi":"GET /v1/analytics/tickets/{granularity}","href":"/api-reference/export/analytics-tickets"},{"title":"Frescor dos dados","openapi":"GET /v1/analytics/freshness","href":"/api-reference/export/analytics-freshness"}]},{"group":"Webhooks","pages":[{"title":"Webhooks","icon":"webhook","href":"/api-reference/webhooks/visao-geral"},{"title":"Mudança de etapa","description":"Receba notificações quando um deal muda de etapa no funil de vendas.","icon":"webhook","href":"/api-reference/webhooks/mudanca-etapa"},{"title":"Agendamento","icon":"webhook","href":"/api-reference/webhooks/agendamento"},{"title":"Nova mensagem","description":"Receba notificações quando uma nova mensagem é enviada ou recebida em uma conversa.","icon":"webhook","href":"/api-reference/webhooks/nova-mensagem"},{"title":"Enriquecimento de imóvel","icon":"webhook","href":"/api-reference/webhooks/enriquecimento"},{"title":"Eventos genéricos","icon":"webhook","href":"/api-reference/webhooks/eventos-genericos"}]}]},{"tab":"MCP","icon":"plug","pages":[{"title":"MCP","href":"/mcp/visao-geral"}]},{"tab":"Novidades de Produto","icon":"clock-rotate-left","pages":[{"title":"Novidades de Produto","href":"/changelog"}]},{"tab":"Playbooks","icon":"sparkles","pages":[{"title":"Playbooks","href":"/playbooks"}]}]},{"product":"Morada OS","pages":[{"title":"Morada OS","href":"/morada-os"}]}]},"basePath":"","title":"Agendamento - Morada.ai","deploymentId":"dpl_GvkCDNzSMF8rzjWibcqz4RHGyof6","buildId":"dpl_GvkCDNzSMF8rzjWibcqz4RHGyof6","dynamics":[],"chunks":[]}