{
"statusCode": 401,
"message": "Token inválido ou não encontrado."
}
Envia uma mensagem com até três botões para o cliente responder com um toque, como Confirmar, Remarcar e Cancelar. É a forma mais simples de coletar uma escolha sem depender de o cliente digitar. A janela de 24 horas precisa estar aberta.
O destinatário pode ser informado pelo número de telefone (to) ou pelo ID do usuário (recipient). Se os dois forem enviados, vale o to; para enviar pelo ID do usuário, deixe o to em branco. Veja a diferença em Destinatário.
No Testar, a mensagem já vem preenchida com um cabeçalho de texto, o texto, o rodapé e três botões. Para testar um cabeçalho com mídia, troque o type do cabeçalho e preencha o link da mídia.
Quando o cliente toca em um botão, chega pelo webhook uma mensagem do tipo interactive, com interactive.type igual a button_reply. O button_reply.id é o reply.id do botão tocado, e o context.id aponta para a mensagem com os botões:
ID do usuário no WhatsApp (BSUID), recebido nos webhooks em from_user_id e contacts[].user_id, como BR.13491208655302741918. Usado quando to não é informado.
Responde citando uma mensagem anterior da conversa.
Show child attributes
Resposta
Envio aceito pela Meta. Não confirma a entrega.
{"docsConfig":{"theme":"mint","$schema":"https://mintlify.com/docs.json","name":"Datafy API","colors":{"primary":"#25d366","light":"#25d366","dark":"#1fbf5a"},"logo":{"light":"https://mintcdn.com/datafy/q5EgWQ3VyWRmoApU/logo/light.svg?fit=max\u0026auto=format\u0026n=q5EgWQ3VyWRmoApU\u0026q=85\u0026s=3661d9e5deccd66d923760d0935cdb8a","dark":"https://mintcdn.com/datafy/q5EgWQ3VyWRmoApU/logo/dark.svg?fit=max\u0026auto=format\u0026n=q5EgWQ3VyWRmoApU\u0026q=85\u0026s=fdc634e59652b4c8cead22c408309cba"},"favicon":"https://mintcdn.com/datafy/q5EgWQ3VyWRmoApU/favicon.jpg?fit=max\u0026auto=format\u0026n=q5EgWQ3VyWRmoApU\u0026q=85\u0026s=45d89e34fc229c98c0b7814e9e47fb16","api":{"playground":{"proxy":false},"examples":{"languages":["curl","javascript","python"],"prefill":true},"mdx":{"auth":{"method":"bearer"},"server":"https://cloud.datafyapi.com.br"}},"background":{"color":{"light":"#fbfbfa","dark":"#0a0a0a"}},"navbar":{"primary":{"type":"button","label":"Acessar painel","href":"https://app.datafyapi.com.br"}},"footer":{"links":[{"header":"Datafy API","items":[{"label":"Site","href":"https://datafyapi.com.br"},{"label":"Painel","href":"https://app.datafyapi.com.br"}]}]},"fonts":{"family":"Geist"},"contextual":{"options":["copy","view","chatgpt","claude","download-spec","download-pdf"],"display":"header"},"styling":{"latex":false},"navigation":{"languages":[{"language":"pt-BR","href":""}]}},"deployment":{"deploymentMetadataValue":{"subdomain":"datafy","hasAudioNarration":false,"actualSubdomain":"datafy","customDomains":["developers.datafyapi.com.br"],"gitSource":{"type":"github","owner":"israelhenriquee","repo":"docdatafyapi","deployBranch":"main","contentDirectory":"","isPrivate":false,"mountPath":"","label":""},"chroma":{"latestBuiltDeploymentHistoryId":"6ae28cc733caf2974503f0e9","collectionId":"e978dc55-7355-4f8d-a104-2950bcd8af90","liveDeploymentHistoryId":"6ae28cc733caf2974503f0e9","schemaVersion":"v3"},"entitlements":{"AI_CHAT":{"status":"DISABLED"},"WEB_MCP":{"status":"DISABLED"},"NARRATION":{"status":"DISABLED"}},"buildId":"6ae28cc733caf2974503f0e9","clientVersion":"0.0.4074","searchFilterCounts":[{"language":"pt-BR","tag":"API WhatsApp","count":68},{"language":"pt-BR","tag":"API Instagram","count":38},{"language":"pt-BR","tag":"Mensagens","count":25},{"language":"pt-BR","tag":"Guias","count":24},{"language":"pt-BR","tag":"Administração","count":21},{"language":"pt-BR","tag":"Webhooks","count":19},{"language":"pt-BR","tag":"Eventos","count":14},{"language":"pt-BR","tag":"Canais","count":8},{"language":"pt-BR","tag":"Comentários","count":8},{"language":"pt-BR","tag":"Começar","count":8}]},"assistantConfig":{"enableAskAiButton":false,"enableStarterQuestions":false,"enableContextualStarterQuestions":false,"enableAskAiSearchBar":true},"basePath":"","hasChatPermissions":false,"hasWebMcpPermissions":false,"toggles":[],"googleFontsInlined":true},"customCss":[{"filePath":"style.css","content":"/* cyrillic-ext */\n@font-face {\n font-family: 'Geist Mono';\n font-style: normal;\n font-weight: 400;\n font-display: swap;\n src: url(/_mintlify/assets/fonts/google/s/geistmono/v6/or3nQ6H-1_WfwkMZI_qYFrodmgPn.woff2) format('woff2');\n unicode-range: U+0460-052F, U+1C80-1C8A, U+20B4, U+2DE0-2DFF, U+A640-A69F, U+FE2E-FE2F;\n}\n/* cyrillic */\n@font-face {\n font-family: 'Geist Mono';\n font-style: normal;\n font-weight: 400;\n font-display: swap;\n src: url(/_mintlify/assets/fonts/google/s/geistmono/v6/or3nQ6H-1_WfwkMZI_qYFrMdmgPn.woff2) format('woff2');\n unicode-range: U+0301, U+0400-045F, U+0490-0491, U+04B0-04B1, U+2116;\n}\n/* symbols2 */\n@font-face {\n font-family: 'Geist Mono';\n font-style: normal;\n font-weight: 400;\n font-display: swap;\n src: url(/_mintlify/assets/fonts/google/s/geistmono/v6/or3nQ6H-1_WfwkMZI_qYFg08vz7ehw.woff2) format('woff2');\n unicode-range: U+2000-2001, U+2004-2008, U+200A, U+23B8-23BD, U+2500-259F;\n}\n/* vietnamese */\n@font-face {\n font-family: 'Geist Mono';\n font-style: normal;\n font-weight: 400;\n font-display: swap;\n src: url(/_mintlify/assets/fonts/google/s/geistmono/v6/or3nQ6H-1_WfwkMZI_qYFrgdmgPn.woff2) format('woff2');\n unicode-range: U+0102-0103, U+0110-0111, U+0128-0129, U+0168-0169, U+01A0-01A1, U+01AF-01B0, U+0300-0301, U+0303-0304, U+0308-0309, U+0323, U+0329, U+1EA0-1EF9, U+20AB;\n}\n/* latin-ext */\n@font-face {\n font-family: 'Geist Mono';\n font-style: normal;\n font-weight: 400;\n font-display: swap;\n src: url(/_mintlify/assets/fonts/google/s/geistmono/v6/or3nQ6H-1_WfwkMZI_qYFrkdmgPn.woff2) format('woff2');\n unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C4, U+2113, U+2C60-2C7F, U+A720-A7FF;\n}\n/* latin */\n@font-face {\n font-family: 'Geist Mono';\n font-style: normal;\n font-weight: 400;\n font-display: swap;\n src: url(/_mintlify/assets/fonts/google/s/geistmono/v6/or3nQ6H-1_WfwkMZI_qYFrcdmg.woff2) format('woff2');\n unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;\n}\n/* cyrillic-ext */\n@font-face {\n font-family: 'Geist Mono';\n font-style: normal;\n font-weight: 500;\n font-display: swap;\n src: url(/_mintlify/assets/fonts/google/s/geistmono/v6/or3nQ6H-1_WfwkMZI_qYFrodmgPn.woff2) format('woff2');\n unicode-range: U+0460-052F, U+1C80-1C8A, U+20B4, U+2DE0-2DFF, U+A640-A69F, U+FE2E-FE2F;\n}\n/* cyrillic */\n@font-face {\n font-family: 'Geist Mono';\n font-style: normal;\n font-weight: 500;\n font-display: swap;\n src: url(/_mintlify/assets/fonts/google/s/geistmono/v6/or3nQ6H-1_WfwkMZI_qYFrMdmgPn.woff2) format('woff2');\n unicode-range: U+0301, U+0400-045F, U+0490-0491, U+04B0-04B1, U+2116;\n}\n/* symbols2 */\n@font-face {\n font-family: 'Geist Mono';\n font-style: normal;\n font-weight: 500;\n font-display: swap;\n src: url(/_mintlify/assets/fonts/google/s/geistmono/v6/or3nQ6H-1_WfwkMZI_qYFg08vz7ehw.woff2) format('woff2');\n unicode-range: U+2000-2001, U+2004-2008, U+200A, U+23B8-23BD, U+2500-259F;\n}\n/* vietnamese */\n@font-face {\n font-family: 'Geist Mono';\n font-style: normal;\n font-weight: 500;\n font-display: swap;\n src: url(/_mintlify/assets/fonts/google/s/geistmono/v6/or3nQ6H-1_WfwkMZI_qYFrgdmgPn.woff2) format('woff2');\n unicode-range: U+0102-0103, U+0110-0111, U+0128-0129, U+0168-0169, U+01A0-01A1, U+01AF-01B0, U+0300-0301, U+0303-0304, U+0308-0309, U+0323, U+0329, U+1EA0-1EF9, U+20AB;\n}\n/* latin-ext */\n@font-face {\n font-family: 'Geist Mono';\n font-style: normal;\n font-weight: 500;\n font-display: swap;\n src: url(/_mintlify/assets/fonts/google/s/geistmono/v6/or3nQ6H-1_WfwkMZI_qYFrkdmgPn.woff2) format('woff2');\n unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C4, U+2113, U+2C60-2C7F, U+A720-A7FF;\n}\n/* latin */\n@font-face {\n font-family: 'Geist Mono';\n font-style: normal;\n font-weight: 500;\n font-display: swap;\n src: url(/_mintlify/assets/fonts/google/s/geistmono/v6/or3nQ6H-1_WfwkMZI_qYFrcdmg.woff2) format('woff2');\n unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;\n}\n/* cyrillic-ext */\n@font-face {\n font-family: 'Geist Mono';\n font-style: normal;\n font-weight: 600;\n font-display: swap;\n src: url(/_mintlify/assets/fonts/google/s/geistmono/v6/or3nQ6H-1_WfwkMZI_qYFrodmgPn.woff2) format('woff2');\n unicode-range: U+0460-052F, U+1C80-1C8A, U+20B4, U+2DE0-2DFF, U+A640-A69F, U+FE2E-FE2F;\n}\n/* cyrillic */\n@font-face {\n font-family: 'Geist Mono';\n font-style: normal;\n font-weight: 600;\n font-display: swap;\n src: url(/_mintlify/assets/fonts/google/s/geistmono/v6/or3nQ6H-1_WfwkMZI_qYFrMdmgPn.woff2) format('woff2');\n unicode-range: U+0301, U+0400-045F, U+0490-0491, U+04B0-04B1, U+2116;\n}\n/* symbols2 */\n@font-face {\n font-family: 'Geist Mono';\n font-style: normal;\n font-weight: 600;\n font-display: swap;\n src: url(/_mintlify/assets/fonts/google/s/geistmono/v6/or3nQ6H-1_WfwkMZI_qYFg08vz7ehw.woff2) format('woff2');\n unicode-range: U+2000-2001, U+2004-2008, U+200A, U+23B8-23BD, U+2500-259F;\n}\n/* vietnamese */\n@font-face {\n font-family: 'Geist Mono';\n font-style: normal;\n font-weight: 600;\n font-display: swap;\n src: url(/_mintlify/assets/fonts/google/s/geistmono/v6/or3nQ6H-1_WfwkMZI_qYFrgdmgPn.woff2) format('woff2');\n unicode-range: U+0102-0103, U+0110-0111, U+0128-0129, U+0168-0169, U+01A0-01A1, U+01AF-01B0, U+0300-0301, U+0303-0304, U+0308-0309, U+0323, U+0329, U+1EA0-1EF9, U+20AB;\n}\n/* latin-ext */\n@font-face {\n font-family: 'Geist Mono';\n font-style: normal;\n font-weight: 600;\n font-display: swap;\n src: url(/_mintlify/assets/fonts/google/s/geistmono/v6/or3nQ6H-1_WfwkMZI_qYFrkdmgPn.woff2) format('woff2');\n unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C4, U+2113, U+2C60-2C7F, U+A720-A7FF;\n}\n/* latin */\n@font-face {\n font-family: 'Geist Mono';\n font-style: normal;\n font-weight: 600;\n font-display: swap;\n src: url(/_mintlify/assets/fonts/google/s/geistmono/v6/or3nQ6H-1_WfwkMZI_qYFrcdmg.woff2) format('woff2');\n unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;\n}\n:root{--font-mono: \"Geist Mono\", ui-monospace, \"JetBrains Mono\", monospace}html,body{font-feature-settings:\"cv11\", \"ss01\", \"ss03\";-webkit-font-smoothing:antialiased;-moz-osx-font-smoothing:grayscale}code,pre,kbd,samp,.font-mono{font-family:var(--font-mono);font-feature-settings:\"zero\", \"ss01\"}:root{--datafy-text: #0a0a0a;--datafy-text-muted: #545454;--datafy-border: #e8e8e3;--datafy-accent-soft: rgba(37, 211, 102, 0.1)}:root.dark{--datafy-text: #f5f5f6;--datafy-text-muted: #a1a1a6;--datafy-border: #232326;--datafy-accent-soft: rgba(37, 211, 102, 0.12)}body{color:var(--datafy-text)}.prose{--tw-prose-body: var(--datafy-text-muted);--tw-prose-headings: var(--datafy-text);--tw-prose-bold: var(--datafy-text);--tw-prose-quotes: var(--datafy-text);--tw-prose-hr: var(--datafy-border);--tw-prose-th-borders: var(--datafy-border);--tw-prose-td-borders: var(--datafy-border);--tw-prose-invert-body: var(--datafy-text-muted);--tw-prose-invert-headings: var(--datafy-text);--tw-prose-invert-bold: var(--datafy-text);--tw-prose-invert-quotes: var(--datafy-text);--tw-prose-invert-hr: var(--datafy-border);--tw-prose-invert-th-borders: var(--datafy-border);--tw-prose-invert-td-borders: var(--datafy-border)}::selection{background:var(--datafy-accent-soft);color:var(--datafy-text)}#content{font-size:16px;line-height:1.65}#page-title{font-size:32px;line-height:1.25;letter-spacing:-0.025em}#content h2{font-size:24px;line-height:1.35}#content h3{font-size:20px;line-height:1.4}#navigation-items{font-size:15px;line-height:1.5}#navigation-items a[aria-current=\"page\"]{color:var(--datafy-text);background-color:var(--datafy-accent-soft);font-weight:600;text-shadow:none}[data-component-part=\"localization-select-trigger\"]{display:none!important}[data-testid=\"try-it-button\"]>span{display:none}[data-testid=\"try-it-button\"]::before{content:\"Testar\"}#navigation-items [class*=\"text-[0.55rem]\"],#navigation-items span[class*=\"rounded-md\"][class*=\"font-bold\"]{white-space:nowrap}"}],"page":{"pagePath":"api-reference/whatsapp/mensagens/enviar-botoes","slug":"/api-reference/whatsapp/mensagens/enviar-botoes","pageMetadata":{"title":"Enviar botões","description":"Envie uma mensagem com até três botões de resposta rápida.","openapi":"api-reference/whatsapp/specs/botoes.json POST /v1/{phone_number_id}/messages","href":"/api-reference/whatsapp/mensagens/enviar-botoes"},"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: \"Envie uma mensagem com até três botões de resposta rápida.\"\n });\n}\nfunction MDXContent(props = {}) {\n const {wrapper: MDXLayout} = {\n ..._provideComponents(),\n ...props.components\n };\n return MDXLayout ? _jsx(MDXLayout, {\n ...props,\n children: _jsx(_createMdxContent, {\n ...props\n })\n }) : _createMdxContent(props);\n}\nreturn {\n default: MDXContent\n};\n","frontmatter":{},"scope":{}},"pageType":"default","mdx":{"mdxSource":{"compiledSource":"\"use strict\";const{Fragment:_Fragment,jsx:_jsx,jsxs:_jsxs}=arguments[0];const{useMDXComponents:_provideComponents}=arguments[0];function _createMdxContent(props){const _components={a:`a`,code:`code`,p:`p`,pre:`pre`,span:`span`,strong:`strong`,tbody:`tbody`,td:`td`,th:`th`,thead:`thead`,tr:`tr`,..._provideComponents(),...props.components},{CodeBlock,Heading,Note,Table,Tip}=_components;if(!CodeBlock)_missingMdxReference(`CodeBlock`,true);if(!Heading)_missingMdxReference(`Heading`,true);if(!Note)_missingMdxReference(`Note`,true);if(!Table)_missingMdxReference(`Table`,true);if(!Tip)_missingMdxReference(`Tip`,true);return _jsxs(_Fragment,{children:[_jsxs(_components.p,{children:[`Envia uma mensagem com `,_jsx(_components.strong,{children:`até três botões`}),` para o cliente responder com um toque, como `,_jsx(_components.strong,{children:`Confirmar`}),`, `,_jsx(_components.strong,{children:`Remarcar`}),` e `,_jsx(_components.strong,{children:`Cancelar`}),`. É a forma mais simples de coletar uma escolha sem depender de o cliente digitar. A `,_jsx(_components.a,{href:`/api-reference/whatsapp/mensagens/introducao#janela-de-24-horas`,children:`janela de 24 horas`}),` precisa estar aberta.`]}),`\n`,_jsx(Note,{children:_jsxs(_components.p,{children:[`O destinatário pode ser informado pelo `,_jsx(_components.strong,{children:`número de telefone`}),` (`,_jsx(_components.code,{children:`to`}),`) ou pelo `,_jsx(_components.strong,{children:`ID do usuário`}),` (`,_jsx(_components.code,{children:`recipient`}),`). Se os dois forem enviados, vale o `,_jsx(_components.code,{children:`to`}),`; para enviar pelo ID do usuário, deixe o `,_jsx(_components.code,{children:`to`}),` em branco. Veja a diferença em `,_jsx(_components.a,{href:`/api-reference/whatsapp/mensagens/introducao#destinat%C3%A1rio`,children:`Destinatário`}),`.`]})}),`\n`,_jsx(Heading,{level:`2`,id:`estrutura-da-mensagem`,children:`Estrutura da mensagem`}),`\n`,_jsxs(_components.p,{children:[`A mensagem é do tipo `,_jsx(_components.code,{children:`interactive`}),`, com `,_jsx(_components.code,{children:`interactive.type`}),` igual a `,_jsx(_components.code,{children:`button`}),`. Ela tem quatro partes:`]}),`\n`,_jsxs(Table,{children:[_jsx(_components.thead,{children:_jsxs(_components.tr,{children:[_jsx(_components.th,{children:`Parte`}),_jsx(_components.th,{children:`Campo`}),_jsx(_components.th,{children:`Obrigatório`}),_jsx(_components.th,{children:`Limite`})]})}),_jsxs(_components.tbody,{children:[_jsxs(_components.tr,{children:[_jsx(_components.td,{children:`Cabeçalho`}),_jsx(_components.td,{children:_jsx(_components.code,{children:`interactive.header`})}),_jsx(_components.td,{children:`Não`}),_jsx(_components.td,{children:`Texto com até 60 caracteres, ou imagem, vídeo ou documento.`})]}),_jsxs(_components.tr,{children:[_jsx(_components.td,{children:`Texto`}),_jsx(_components.td,{children:_jsx(_components.code,{children:`interactive.body.text`})}),_jsx(_components.td,{children:_jsx(_components.strong,{children:`Sim`})}),_jsx(_components.td,{children:`1.024 caracteres.`})]}),_jsxs(_components.tr,{children:[_jsx(_components.td,{children:`Rodapé`}),_jsx(_components.td,{children:_jsx(_components.code,{children:`interactive.footer.text`})}),_jsx(_components.td,{children:`Não`}),_jsx(_components.td,{children:`60 caracteres.`})]}),_jsxs(_components.tr,{children:[_jsx(_components.td,{children:`Botões`}),_jsx(_components.td,{children:_jsx(_components.code,{children:`interactive.action.buttons`})}),_jsx(_components.td,{children:_jsx(_components.strong,{children:`Sim`})}),_jsx(_components.td,{children:`De 1 a 3 botões.`})]})]})]}),`\n`,_jsx(Heading,{level:`2`,id:`botões`,children:`Botões`}),`\n`,_jsxs(_components.p,{children:[`Cada botão tem `,_jsx(_components.code,{children:`type`}),` igual a `,_jsx(_components.code,{children:`reply`}),` e um objeto `,_jsx(_components.code,{children:`reply`}),` com dois campos:`]}),`\n`,_jsxs(Table,{children:[_jsx(_components.thead,{children:_jsxs(_components.tr,{children:[_jsx(_components.th,{children:`Campo`}),_jsx(_components.th,{children:`Limite`}),_jsx(_components.th,{children:`Para que serve`})]})}),_jsxs(_components.tbody,{children:[_jsxs(_components.tr,{children:[_jsx(_components.td,{children:_jsx(_components.code,{children:`reply.id`})}),_jsx(_components.td,{children:`256 caracteres`}),_jsxs(_components.td,{children:[`Identificador que `,_jsx(_components.strong,{children:`volta no webhook`}),` quando o cliente toca no botão. Use um valor que o seu sistema reconheça, como `,_jsx(_components.code,{children:`confirmar`}),` ou `,_jsx(_components.code,{children:`pedido-7539-cancelar`}),`.`]})]}),_jsxs(_components.tr,{children:[_jsx(_components.td,{children:_jsx(_components.code,{children:`reply.title`})}),_jsx(_components.td,{children:`20 caracteres`}),_jsxs(_components.td,{children:[`Texto exibido no botão. `,_jsx(_components.strong,{children:`Não pode se repetir`}),` entre os botões da mesma mensagem.`]})]})]})]}),`\n`,_jsx(CodeBlock,{filename:``,numberOfLines:`7`,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:`7`,children:[_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:`\"action\"`}),_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:` \"buttons\"`}),_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:` { `}),_jsx(_components.span,{style:{color:`#116329`,\"--shiki-dark\":`#9CDCFE`},children:`\"type\"`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`: `}),_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:`\"reply\"`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`, `}),_jsx(_components.span,{style:{color:`#116329`,\"--shiki-dark\":`#9CDCFE`},children:`\"reply\"`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},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:`\"confirmar\"`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},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:`\"Confirmar\"`}),_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:` { `}),_jsx(_components.span,{style:{color:`#116329`,\"--shiki-dark\":`#9CDCFE`},children:`\"type\"`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`: `}),_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:`\"reply\"`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`, `}),_jsx(_components.span,{style:{color:`#116329`,\"--shiki-dark\":`#9CDCFE`},children:`\"reply\"`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},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:`\"remarcar\"`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},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:`\"Remarcar\"`}),_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:` { `}),_jsx(_components.span,{style:{color:`#116329`,\"--shiki-dark\":`#9CDCFE`},children:`\"type\"`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`: `}),_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:`\"reply\"`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`, `}),_jsx(_components.span,{style:{color:`#116329`,\"--shiki-dark\":`#9CDCFE`},children:`\"reply\"`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},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:`\"cancelar\"`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},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:`\"Cancelar\"`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:` } }`})]}),`\n`,_jsx(_components.span,{className:`line`,children:_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:` ]`})}),`\n`,_jsx(_components.span,{className:`line`,children:_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`}`})}),`\n`]})})}),`\n`,_jsx(Heading,{level:`2`,id:`cabeçalho`,children:`Cabeçalho`}),`\n`,_jsx(_components.p,{children:`O cabeçalho é opcional e aceita um texto ou uma mídia:`}),`\n`,_jsxs(Table,{children:[_jsx(_components.thead,{children:_jsxs(_components.tr,{children:[_jsx(_components.th,{children:_jsx(_components.code,{children:`header.type`})}),_jsx(_components.th,{children:`Conteúdo`})]})}),_jsxs(_components.tbody,{children:[_jsxs(_components.tr,{children:[_jsx(_components.td,{children:_jsx(_components.code,{children:`text`})}),_jsxs(_components.td,{children:[_jsx(_components.code,{children:`header.text`}),`, com até 60 caracteres.`]})]}),_jsxs(_components.tr,{children:[_jsx(_components.td,{children:_jsx(_components.code,{children:`image`})}),_jsxs(_components.td,{children:[_jsx(_components.code,{children:`header.image`}),`, com `,_jsx(_components.code,{children:`link`}),` ou `,_jsx(_components.code,{children:`id`}),`.`]})]}),_jsxs(_components.tr,{children:[_jsx(_components.td,{children:_jsx(_components.code,{children:`video`})}),_jsxs(_components.td,{children:[_jsx(_components.code,{children:`header.video`}),`, com `,_jsx(_components.code,{children:`link`}),` ou `,_jsx(_components.code,{children:`id`}),`.`]})]}),_jsxs(_components.tr,{children:[_jsx(_components.td,{children:_jsx(_components.code,{children:`document`})}),_jsxs(_components.td,{children:[_jsx(_components.code,{children:`header.document`}),`, com `,_jsx(_components.code,{children:`link`}),` ou `,_jsx(_components.code,{children:`id`}),`.`]})]})]})]}),`\n`,_jsxs(_components.p,{children:[`A mídia do cabeçalho segue as mesmas regras e formatos de `,_jsx(_components.a,{href:`/api-reference/whatsapp/mensagens/enviar-imagem`,children:`Enviar imagem`}),`, `,_jsx(_components.a,{href:`/api-reference/whatsapp/mensagens/enviar-video`,children:`Enviar vídeo`}),` e `,_jsx(_components.a,{href:`/api-reference/whatsapp/mensagens/enviar-documento`,children:`Enviar documento`}),`: informe `,_jsx(_components.code,{children:`link`}),` `,_jsx(_components.strong,{children:`ou`}),` `,_jsx(_components.code,{children:`id`}),`, nunca os dois.`]}),`\n`,_jsx(CodeBlock,{filename:``,numberOfLines:`4`,language:`json`,children:_jsx(_components.pre,{className:`shiki shiki-themes github-light-default dark-plus`,style:{backgroundColor:`#ffffff`,\"--shiki-dark-bg\":`#0B0C0E`,color:`#1f2328`,\"--shiki-dark\":`#D4D4D4`},language:`json`,children:_jsxs(_components.code,{language:`json`,numberOfLines:`4`,children:[_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:`\"header\"`}),_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:` \"type\"`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`: `}),_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:`\"image\"`}),_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:` \"image\"`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`: { `}),_jsx(_components.span,{style:{color:`#116329`,\"--shiki-dark\":`#9CDCFE`},children:`\"link\"`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`: `}),_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:`\"https://exemplo.com/agenda.jpg\"`}),_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:[`No `,_jsx(_components.strong,{children:`Testar`}),`, a mensagem já vem preenchida com um cabeçalho de texto, o texto, o rodapé e três botões. Para testar um cabeçalho com mídia, troque o `,_jsx(_components.code,{children:`type`}),` do cabeçalho e preencha o `,_jsx(_components.code,{children:`link`}),` da mídia.`]}),`\n`,_jsx(Heading,{level:`2`,id:`resposta-do-cliente`,children:`Resposta do cliente`}),`\n`,_jsxs(_components.p,{children:[`Quando o cliente toca em um botão, chega pelo `,_jsx(_components.a,{href:`/api-reference/whatsapp/webhooks/eventos/mensagens`,children:`webhook`}),` uma mensagem do tipo `,_jsx(_components.code,{children:`interactive`}),`, com `,_jsx(_components.code,{children:`interactive.type`}),` igual a `,_jsx(_components.code,{children:`button_reply`}),`. O `,_jsx(_components.code,{children:`button_reply.id`}),` é o `,_jsx(_components.code,{children:`reply.id`}),` do botão tocado, e o `,_jsx(_components.code,{children:`context.id`}),` aponta para a mensagem com os botões:`]}),`\n`,_jsx(CodeBlock,{filename:``,numberOfLines:`49`,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:`49`,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:` \"object\"`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`: `}),_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:`\"whatsapp_business_account\"`}),_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:` \"entry\"`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`: [`})]}),`\n`,_jsx(_components.span,{className:`line`,children:_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:` {`})}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#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:`\"234567890123456\"`}),_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:` \"changes\"`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`: [`})]}),`\n`,_jsx(_components.span,{className:`line`,children:_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:` {`})}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#116329`,\"--shiki-dark\":`#9CDCFE`},children:` \"value\"`}),_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:` \"messaging_product\"`}),_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:` \"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:` \"display_phone_number\"`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`: `}),_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:`\"5541999999999\"`}),_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_number_id\"`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`: `}),_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:`\"123456789012345\"`})]}),`\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:` \"contacts\"`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`: [`})]}),`\n`,_jsx(_components.span,{className:`line`,children:_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:` {`})}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#116329`,\"--shiki-dark\":`#9CDCFE`},children:` \"profile\"`}),_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:`\"Camila Souza\"`})]}),`\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:` \"wa_id\"`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`: `}),_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:`\"5511999999999\"`}),_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:` \"user_id\"`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`: `}),_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:`\"BR.13491208655302741918\"`})]}),`\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`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#116329`,\"--shiki-dark\":`#9CDCFE`},children:` \"messages\"`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`: [`})]}),`\n`,_jsx(_components.span,{className:`line`,children:_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:` {`})}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#116329`,\"--shiki-dark\":`#9CDCFE`},children:` \"context\"`}),_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:` \"from\"`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`: `}),_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:`\"5541999999999\"`}),_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:`\"wamid.HBgNNTUxMTk5OTk5OTk5ORUCABIYFjNFQjA=\"`})]}),`\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:` \"from\"`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`: `}),_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:`\"5511999999999\"`}),_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:` \"from_user_id\"`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`: `}),_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:`\"BR.13491208655302741918\"`}),_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:`\"wamid.HBgNNTUxMTk5OTk5OTk5ORUCABIYFjVBQjI=\"`}),_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:`\"1757956200\"`}),_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:` \"type\"`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`: `}),_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:`\"interactive\"`}),_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:` \"interactive\"`}),_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:` \"type\"`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`: `}),_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:`\"button_reply\"`}),_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:` \"button_reply\"`}),_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:`\"confirmar\"`}),_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:`\"Confirmar\"`})]}),`\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`,_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`,_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:` \"field\"`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`: `}),_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:`\"messages\"`})]}),`\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`,_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`,_jsx(_components.span,{className:`line`,children:_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`}`})}),`\n`]})})}),`\n`,_jsx(Tip,{children:_jsxs(_components.p,{children:[`Use o `,_jsx(_components.code,{children:`button_reply.id`}),` para decidir o que fazer com a resposta. O `,_jsx(_components.code,{children:`title`}),` pode mudar se você ajustar o texto do botão; o `,_jsx(_components.code,{children:`id`}),` continua o mesmo.`]})}),`\n`,_jsxs(_components.p,{children:[`A resposta do cliente é uma mensagem nova, então `,_jsx(_components.strong,{children:`renova a janela de 24 horas`}),`.`]}),`\n`,_jsxs(_components.p,{children:[`Veja mais detalhes na `,_jsx(_components.a,{href:`https://developers.facebook.com/documentation/business-messaging/whatsapp/messages/interactive-reply-buttons-messages`,children:`documentação de botões de resposta da Meta`}),`.`]})]})}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":"Enviar botões","description":"Envie uma mensagem com até três botões de resposta rápida.","openapi":"api-reference/whatsapp/specs/botoes.json POST /v1/{phone_number_id}/messages","href":"/api-reference/whatsapp/mensagens/enviar-botoes"}}},"mdxSourceWithNoJs":null},"mdxExtracts":{"tableOfContents":[{"title":"Estrutura da mensagem","slug":"estrutura-da-mensagem","depth":2,"children":[]},{"title":"Botões","slug":"botões","depth":2,"children":[]},{"title":"Cabeçalho","slug":"cabeçalho","depth":2,"children":[]},{"title":"Resposta do cliente","slug":"resposta-do-cliente","depth":2,"children":[]}],"codeExamples":{}},"jsLinks":["/_mintlify/custom/datafy/105cadfd9286f76d/playground.js"],"openApiReferenceData":{"operation":{"summary":"Enviar botões","operationId":"enviarBotoes","parameters":["82e88a11-9d3a-489f-82c0-963f1c6297bc"],"requestBody":"55d9e815-caab-43d3-83f7-65bcad51d655","responses":{"200":"fcb52f1f-7a88-431b-8554-a8a694a35c2a","400":"ed39e9f0-9ff8-48ea-b5f0-b012b2a82adb","401":"6758d8fb-f91f-468c-9731-dda43cb230d8"},"method":"post","type":"path","servers":["52f27ff2-3792-41c7-ad19-717e88500ddf"],"security":["d9b63b71-1166-4a2e-a72e-ba242ab5205a"],"path":"/v1/{phone_number_id}/messages","baseUrlOptions":["https://cloud.datafyapi.com.br"],"title":"Enviar botões","description":"Envie uma mensagem com até três botões de resposta rápida.","codeSamples":[],"requestExampleLanguages":["bash","javascript","python"],"requiredOnlyExamples":false,"requestExampleType":"generated","responseExampleType":"generated","prefillPlaygroundWithExample":true,"prefillPlaygroundExamples":[{"body.messaging_product":"whatsapp","body.to":"5511999999999","body.type":"interactive","body.interactive.type":"button","body.interactive.body.text":"Olá, Camila! Seu atendimento está marcado para segunda-feira, às 9h. Deseja confirmar?","body.interactive.action.buttons.items.0.type":"reply","body.interactive.action.buttons.items.0.reply.id":"confirmar","body.interactive.action.buttons.items.0.reply.title":"Confirmar","body.interactive.action.buttons.items.1.type":"reply","body.interactive.action.buttons.items.1.reply.id":"remarcar","body.interactive.action.buttons.items.1.reply.title":"Remarcar","body.interactive.action.buttons.items.2.type":"reply","body.interactive.action.buttons.items.2.reply.id":"cancelar","body.interactive.action.buttons.items.2.reply.title":"Cancelar","body.interactive.header.type":"text","body.interactive.header.text":"Confirmação de agendamento","body.interactive.footer.text":"Clínica Exemplo","body.recipient_type":"individual"}],"disableProxy":true},"dependencies":{"parameters":{"82e88a11-9d3a-489f-82c0-963f1c6297bc":{"name":"phone_number_id","in":"path","required":true,"schema":{"type":"string","isRequired":true,"description":"ID do número que envia a mensagem. Descubra com `GET /me`.","uniqueKey":"","typeLabel":"string"},"description":"ID do número que envia a mensagem. Descubra com `GET /me`."}},"requestBody":{"required":true,"content":{"application/json":{"schema":{"type":"object","required":["messaging_product","to","type","interactive"],"properties":{"messaging_product":{"type":"string","enum":["whatsapp"],"default":"whatsapp","example":"whatsapp","description":"Sempre `whatsapp`.","isRequired":true,"uniqueKey":"messaging_product","typeLabel":"enum\u003cstring>"},"to":{"type":"string","example":"5511999999999","description":"Número do destinatário com código do país e DDD, como `5511999999999`. Tem prioridade sobre `recipient`: para enviar pelo ID do usuário, deixe em branco.","isRequired":true,"uniqueKey":"to","typeLabel":"string"},"type":{"type":"string","enum":["interactive"],"default":"interactive","example":"interactive","description":"Sempre `interactive`.","isRequired":true,"uniqueKey":"type","typeLabel":"enum\u003cstring>"},"interactive":{"type":"object","required":["type","body","action"],"description":"Mensagem com até três botões de resposta rápida.","properties":{"type":{"type":"string","enum":["button"],"default":"button","example":"button","description":"Sempre `button`.","isRequired":true,"uniqueKey":"interactive.type","typeLabel":"enum\u003cstring>"},"body":{"type":"object","required":["text"],"description":"Texto principal da mensagem.","properties":{"text":{"type":"string","maxLength":1024,"example":"Olá, Camila! Seu atendimento está marcado para segunda-feira, às 9h. Deseja confirmar?","description":"Texto da mensagem, com até 1.024 caracteres. URLs viram links clicáveis.","isRequired":true,"uniqueKey":"interactive.body.text","typeLabel":"string"}},"isRequired":true,"uniqueKey":"interactive.body","typeLabel":"object"},"action":{"type":"object","required":["buttons"],"properties":{"buttons":{"type":"array","minItems":1,"maxItems":3,"description":"De 1 a 3 botões de resposta.","items":{"type":"object","required":["type","reply"],"properties":{"type":{"type":"string","enum":["reply"],"default":"reply","example":"reply","description":"Sempre `reply`.","isRequired":true,"uniqueKey":"interactive.action.buttons.items.[INDEX].type","typeLabel":"enum\u003cstring>"},"reply":{"type":"object","required":["id","title"],"properties":{"id":{"type":"string","maxLength":256,"example":"confirmar","description":"Identificador do botão, com até 256 caracteres. Volta no webhook quando o cliente toca no botão.","isRequired":true,"uniqueKey":"interactive.action.buttons.items.[INDEX].reply.id","typeLabel":"string"},"title":{"type":"string","maxLength":20,"example":"Confirmar","description":"Texto do botão, com até 20 caracteres. Não pode se repetir entre os botões.","isRequired":true,"uniqueKey":"interactive.action.buttons.items.[INDEX].reply.title","typeLabel":"string"}},"isRequired":true,"uniqueKey":"interactive.action.buttons.items.[INDEX].reply","typeLabel":"object"}},"uniqueKey":"interactive.action.buttons.items.[INDEX]","typeLabel":"object"},"isRequired":true,"uniqueKey":"interactive.action.buttons","typeLabel":"object[]"}},"isRequired":true,"uniqueKey":"interactive.action","typeLabel":"object"},"header":{"type":"object","required":["type"],"description":"Cabeçalho opcional. Use um texto ou uma mídia: imagem, vídeo ou documento.","properties":{"type":{"type":"string","enum":["text","image","video","document"],"example":"text","description":"Tipo do cabeçalho.","isRequired":true,"uniqueKey":"interactive.header.type","typeLabel":"enum\u003cstring>"},"text":{"type":"string","maxLength":60,"example":"Confirmação de agendamento","description":"Texto do cabeçalho, com até 60 caracteres. Usado quando `type` é `text`.","uniqueKey":"interactive.header.text","typeLabel":"string"},"image":{"type":"object","description":"Mídia do cabeçalho, usada quando `type` é `image`, `video` ou `document`. Informe `link` ou `id`, nunca os dois.","properties":{"link":{"type":"string","description":"URL pública da mídia. Você pode gerar um link na aba **Mídias** do número, no painel da Datafy.","uniqueKey":"interactive.header.image.link","typeLabel":"string"},"id":{"type":"string","description":"ID da mídia retornado pelo endpoint **Upload de mídia**.","uniqueKey":"interactive.header.image.id","typeLabel":"string"}},"uniqueKey":"interactive.header.image","typeLabel":"object"},"video":{"type":"object","description":"Mídia do cabeçalho, usada quando `type` é `image`, `video` ou `document`. Informe `link` ou `id`, nunca os dois.","properties":{"link":{"type":"string","description":"URL pública da mídia. Você pode gerar um link na aba **Mídias** do número, no painel da Datafy.","uniqueKey":"interactive.header.video.link","typeLabel":"string"},"id":{"type":"string","description":"ID da mídia retornado pelo endpoint **Upload de mídia**.","uniqueKey":"interactive.header.video.id","typeLabel":"string"}},"uniqueKey":"interactive.header.video","typeLabel":"object"},"document":{"type":"object","description":"Mídia do cabeçalho, usada quando `type` é `image`, `video` ou `document`. Informe `link` ou `id`, nunca os dois.","properties":{"link":{"type":"string","description":"URL pública da mídia. Você pode gerar um link na aba **Mídias** do número, no painel da Datafy.","uniqueKey":"interactive.header.document.link","typeLabel":"string"},"id":{"type":"string","description":"ID da mídia retornado pelo endpoint **Upload de mídia**.","uniqueKey":"interactive.header.document.id","typeLabel":"string"}},"uniqueKey":"interactive.header.document","typeLabel":"object"}},"uniqueKey":"interactive.header","typeLabel":"object"},"footer":{"type":"object","description":"Rodapé opcional, exibido abaixo do texto em cinza.","properties":{"text":{"type":"string","maxLength":60,"example":"Clínica Exemplo","description":"Texto do rodapé, com até 60 caracteres.","uniqueKey":"interactive.footer.text","typeLabel":"string"}},"uniqueKey":"interactive.footer","typeLabel":"object"}},"isRequired":true,"uniqueKey":"interactive","typeLabel":"object"},"recipient_type":{"type":"string","enum":["individual"],"default":"individual","example":"individual","description":"Sempre `individual`.","uniqueKey":"recipient_type","typeLabel":"enum\u003cstring>"},"recipient":{"type":"string","description":"ID do usuário no WhatsApp (BSUID), recebido nos webhooks em `from_user_id` e `contacts[].user_id`, como `BR.13491208655302741918`. Usado quando `to` não é informado.","uniqueKey":"recipient","typeLabel":"string"},"context":{"type":"object","description":"Responde citando uma mensagem anterior da conversa.","properties":{"message_id":{"type":"string","description":"ID (`wamid`) da mensagem que será citada.","uniqueKey":"context.message_id","typeLabel":"string"}},"uniqueKey":"context","typeLabel":"object"}},"uniqueKey":"","typeLabel":"object"},"example":{"messaging_product":"whatsapp","recipient_type":"individual","to":"5511999999999","type":"interactive","interactive":{"type":"button","header":{"type":"text","text":"Confirmação de agendamento"},"body":{"text":"Olá, Camila! Seu atendimento está marcado para segunda-feira, às 9h. Deseja confirmar?"},"footer":{"text":"Clínica Exemplo"},"action":{"buttons":[{"type":"reply","reply":{"id":"confirmar","title":"Confirmar"}},{"type":"reply","reply":{"id":"remarcar","title":"Remarcar"}},{"type":"reply","reply":{"id":"cancelar","title":"Cancelar"}}]}}},"examples":{"Example":{"title":"Example","value":{"messaging_product":"whatsapp","recipient_type":"individual","to":"5511999999999","type":"interactive","interactive":{"type":"button","header":{"type":"text","text":"Confirmação de agendamento"},"body":{"text":"Olá, Camila! Seu atendimento está marcado para segunda-feira, às 9h. Deseja confirmar?"},"footer":{"text":"Clínica Exemplo"},"action":{"buttons":[{"type":"reply","reply":{"id":"confirmar","title":"Confirmar"}},{"type":"reply","reply":{"id":"remarcar","title":"Remarcar"}},{"type":"reply","reply":{"id":"cancelar","title":"Cancelar"}}]}}}}},"exampleType":"examples"}},"exampleType":"examples"},"responses":{"fcb52f1f-7a88-431b-8554-a8a694a35c2a":{"description":"Envio aceito pela Meta. Não confirma a entrega.","content":{"application/json":{"example":{"messaging_product":"whatsapp","contacts":[{"input":"5511999999999","wa_id":"5511999999999"}],"messages":[{"id":"wamid.HBgNNTUxMTk5OTk5OTk5ORUCABIYFjNFQjA="}]},"examples":{"Example":{"title":"Example","value":{"messaging_product":"whatsapp","contacts":[{"input":"5511999999999","wa_id":"5511999999999"}],"messages":[{"id":"wamid.HBgNNTUxMTk5OTk5OTk5ORUCABIYFjNFQjA="}]}}},"exampleType":"examples"}},"exampleType":"examples"},"ed39e9f0-9ff8-48ea-b5f0-b012b2a82adb":{"description":"Erro retornado pela Meta.","content":{"application/json":{"example":{"error":{"message":"(#100) Invalid parameter","type":"OAuthException","code":100,"fbtrace_id":"AbCdEfGhIjK"}},"examples":{"Example":{"title":"Example","value":{"error":{"message":"(#100) Invalid parameter","type":"OAuthException","code":100,"fbtrace_id":"AbCdEfGhIjK"}}}},"exampleType":"examples"}},"exampleType":"examples"},"6758d8fb-f91f-468c-9731-dda43cb230d8":{"description":"Token ausente ou inválido.","content":{"application/json":{"example":{"statusCode":401,"message":"Token inválido ou não encontrado."},"examples":{"Example":{"title":"Example","value":{"statusCode":401,"message":"Token inválido ou não encontrado."}}},"exampleType":"examples"}},"exampleType":"examples"}},"security":{"d9b63b71-1166-4a2e-a72e-ba242ab5205a":{"bearerAuth":{"type":"http","scheme":"bearer","description":"Token gerado no painel da Datafy ao criar o canal. Formato: `sk_live_xxx`.","scopes":[]}}},"servers":{"52f27ff2-3792-41c7-ad19-717e88500ddf":{"url":"https://cloud.datafyapi.com.br","description":"Produção"}},"processedSecurityOptions":[{"schemes":[{"scheme":{"type":"http","scheme":"bearer","description":"Token gerado no painel da Datafy ao criar o canal. Formato: `sk_live_xxx`.","scopes":[]},"schema":{"title":"Bearer Auth","type":"string","isRequired":true,"description":"Token gerado no painel da Datafy ao criar o canal. Formato: `sk_live_xxx`.","format":"bearer","typeLabel":"string\u003cbearer>","deprecated":false},"schemeName":"bearerAuth","name":"Authorization"}],"title":"bearerAuth"}]},"originalFileLocation":"api-reference/whatsapp/specs/botoes.json"},"subdomain":"datafy","siteName":"Datafy API","title":"Enviar botões - Datafy API","navMaps":{"firstHrefInVersion":{},"firstHrefInLanguage":{"pt-BR":{"href":"/api-reference/whatsapp/mensagens/enviar-botoes","matchLevel":0}}},"lastModified":"2026-09-16T04:09:04.759Z","originalFileLocation":"api-reference/whatsapp/mensagens/enviar-botoes.mdx","locale":"pt-BR"},"headHtml":"\u003cscript data-mint-head>(function(){var d=document.documentElement,p=null;if(!p){try{p=localStorage.getItem(\"isDarkMode\")}catch(e){}if(p==='true')p='dark';else if(p==='false')p='light';if(p!=='light'\u0026\u0026p!=='dark'\u0026\u0026p!=='system')p=\"system\"}var r=p==='system'?(matchMedia(\"(prefers-color-scheme: dark)\").matches?'dark':'light'):p;d.classList.remove(r==='dark'?'light':'dark');d.classList.add(r);d.setAttribute(\"data-theme-preference\",p)})();\u003c/script>\u003cmeta data-mint-head name=\"description\" content=\"Envie uma mensagem com até três botões de resposta rápida.\">\u003cmeta data-mint-head name=\"application-name\" content=\"Datafy 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/datafy/tSg_16cLRIOW9GyE/_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/datafy/tSg_16cLRIOW9GyE/_generated/favicon/apple-touch-icon.png\">\u003clink data-mint-head rel=\"icon\" type=\"image/png\" sizes=\"16x16\" href=\"/mintlify-assets/_mintlify/favicons/datafy/tSg_16cLRIOW9GyE/_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/datafy/tSg_16cLRIOW9GyE/_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/datafy/tSg_16cLRIOW9GyE/_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/datafy/tSg_16cLRIOW9GyE/_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/datafy/tSg_16cLRIOW9GyE/_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/datafy/tSg_16cLRIOW9GyE/_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/datafy/tSg_16cLRIOW9GyE/_generated/favicon-dark/favicon.ico\" media=\"(prefers-color-scheme: dark)\">\u003cmeta data-mint-head property=\"og:title\" content=\"Enviar botões - Datafy API\">\u003cmeta data-mint-head property=\"og:description\" content=\"Envie uma mensagem com até três botões de resposta rápida.\">\u003cmeta data-mint-head property=\"og:site_name\" content=\"Datafy API\">\u003cmeta data-mint-head property=\"og:url\" content=\"https://developers.datafyapi.com.br/api-reference/whatsapp/mensagens/enviar-botoes\">\u003cmeta data-mint-head property=\"og:type\" content=\"website\">\u003cmeta data-mint-head property=\"og:image\" content=\"https://datafy.mintlify.site/_mintlify/api/og/v2?division=Mensagens\u0026amp;title=Enviar+bot%C3%B5es\u0026amp;description=Envie+uma+mensagem+com+at%C3%A9+tr%C3%AAs+bot%C3%B5es+de+resposta+r%C3%A1pida.\u0026amp;theme=c935610a3c0106206a2e3495\u0026amp;signature=43999f97fc800e29d20196aab930727e0724cc2f2bf7d5da2b6a34d49ed65d07\">\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=\"Enviar botões - Datafy API\">\u003cmeta data-mint-head name=\"twitter:description\" content=\"Envie uma mensagem com até três botões de resposta rápida.\">\u003cmeta data-mint-head name=\"twitter:image\" content=\"https://datafy.mintlify.site/_mintlify/api/og/v2?division=Mensagens\u0026amp;title=Enviar+bot%C3%B5es\u0026amp;description=Envie+uma+mensagem+com+at%C3%A9+tr%C3%AAs+bot%C3%B5es+de+resposta+r%C3%A1pida.\u0026amp;theme=c935610a3c0106206a2e3495\u0026amp;signature=43999f97fc800e29d20196aab930727e0724cc2f2bf7d5da2b6a34d49ed65d07\">\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/datafy/tSg_16cLRIOW9GyE/_generated/favicon/browserconfig.xml\">\u003cmeta data-mint-head name=\"apple-mobile-web-app-title\" content=\"Datafy API\">\u003cmeta data-mint-head name=\"msapplication-TileColor\" content=\"#25d366\">\u003clink data-mint-head rel=\"canonical\" href=\"https://developers.datafyapi.com.br/api-reference/whatsapp/mensagens/enviar-botoes\">\u003clink data-mint-head rel=\"alternate\" type=\"application/xml\" href=\"/sitemap.xml\">\u003clink data-mint-head rel=\"alternate\" type=\"text/markdown\" href=\"/api-reference/whatsapp/mensagens/enviar-botoes.md\">\u003cscript data-mint-head type=\"application/ld+json\">{\"@context\":\"https://schema.org\",\"@graph\":[{\"@type\":\"Organization\",\"@id\":\"https://developers.datafyapi.com.br/#organization\",\"name\":\"Datafy API\",\"url\":\"https://developers.datafyapi.com.br\",\"logo\":{\"@type\":\"ImageObject\",\"url\":\"https://mintcdn.com/datafy/q5EgWQ3VyWRmoApU/logo/light.svg?fit=max\u0026auto=format\u0026n=q5EgWQ3VyWRmoApU\u0026q=85\u0026s=3661d9e5deccd66d923760d0935cdb8a\"}},{\"@type\":\"WebSite\",\"@id\":\"https://developers.datafyapi.com.br#website\",\"name\":\"Datafy API\",\"url\":\"https://developers.datafyapi.com.br\",\"publisher\":{\"@id\":\"https://developers.datafyapi.com.br/#organization\"}},{\"@type\":\"WebPage\",\"@id\":\"https://developers.datafyapi.com.br/api-reference/whatsapp/mensagens/enviar-botoes#webpage\",\"url\":\"https://developers.datafyapi.com.br/api-reference/whatsapp/mensagens/enviar-botoes\",\"name\":\"Enviar botões\",\"description\":\"Envie uma mensagem com até três botões de resposta rápida.\",\"dateModified\":\"2026-09-16T04:09:04.759Z\",\"isPartOf\":{\"@id\":\"https://developers.datafyapi.com.br#website\"},\"breadcrumb\":{\"@id\":\"https://developers.datafyapi.com.br/api-reference/whatsapp/mensagens/enviar-botoes#breadcrumb\"}},{\"@type\":\"BreadcrumbList\",\"@id\":\"https://developers.datafyapi.com.br/api-reference/whatsapp/mensagens/enviar-botoes#breadcrumb\",\"itemListElement\":[{\"@type\":\"ListItem\",\"position\":1,\"name\":\"Mensagens\",\"item\":\"https://developers.datafyapi.com.br/api-reference/whatsapp/mensagens/introducao\"},{\"@type\":\"ListItem\",\"position\":2,\"name\":\"Enviar botões\",\"item\":\"https://developers.datafyapi.com.br/api-reference/whatsapp/mensagens/enviar-botoes\"}]},{\"@type\":[\"TechArticle\",\"APIReference\"],\"@id\":\"https://developers.datafyapi.com.br/api-reference/whatsapp/mensagens/enviar-botoes#apireference\",\"headline\":\"Enviar botões\",\"name\":\"Enviar botões\",\"description\":\"Envie uma mensagem com até três botões de resposta rápida.\",\"url\":\"https://developers.datafyapi.com.br/api-reference/whatsapp/mensagens/enviar-botoes\",\"mainEntityOfPage\":{\"@id\":\"https://developers.datafyapi.com.br/api-reference/whatsapp/mensagens/enviar-botoes#webpage\"},\"dateModified\":\"2026-09-16T04:09:04.759Z\",\"publisher\":{\"@id\":\"https://developers.datafyapi.com.br/#organization\"},\"isPartOf\":{\"@id\":\"https://developers.datafyapi.com.br#website\"}}]}\u003c/script>\u003cscript data-mint-head type=\"application/ld+json\">{\"@context\":\"https://schema.org\",\"@type\":\"WebSite\",\"name\":\"Datafy API\",\"creator\":{\"@type\":\"Organization\",\"name\":\"Mintlify\",\"url\":\"https://mintlify.com\"}}\u003c/script>","siteName":"Datafy API","nav":{"global":null,"languages":[{"language":"pt-BR","tabs":[{"tab":"Guias","icon":{"style":"regular","name":"book-open"},"pages":[{"title":"Guias","href":""}]},{"tab":"API WhatsApp","icon":{"style":"brands","name":"whatsapp"},"groups":[{"group":"Começar","icon":{"style":"regular","name":"rocket"},"pages":[{"title":"Visão geral","sidebarTitle":"Introdução","href":"/api-reference/whatsapp/introducao"},{"title":"Autenticação","href":"/api-reference/whatsapp/visao-geral/autenticacao"},{"title":"Requisições e limites","href":"/api-reference/whatsapp/visao-geral/requisicoes"}]},{"group":"Administração","icon":{"style":"regular","name":"user-gear"},"pages":[{"title":"Introdução","href":"/api-reference/administracao/introducao"},{"group":"Canais","pages":[{"title":"Listar canais","openapi":"api-reference/administracao/specs/canais.json GET /channels/whatsapp","href":"/api-reference/administracao/listar-canais"},{"title":"Criar canal","openapi":"api-reference/administracao/specs/canais.json POST /channels/whatsapp","href":"/api-reference/administracao/criar-canal"},{"title":"Consultar canal","openapi":"api-reference/administracao/specs/canais.json GET /channels/whatsapp/{id}","href":"/api-reference/administracao/consultar-canal"},{"title":"Editar canal","openapi":"api-reference/administracao/specs/canais.json PATCH /channels/whatsapp/{id}","href":"/api-reference/administracao/editar-canal"},{"title":"Rotacionar token","sidebarTitle":"Rotacionar token","openapi":"api-reference/administracao/specs/canais.json POST /channels/whatsapp/{id}/token","href":"/api-reference/administracao/rotacionar-token"},{"title":"Assinar canal","openapi":"api-reference/administracao/specs/canais.json POST /channels/whatsapp/{id}/subscribe","href":"/api-reference/administracao/assinar-canal"},{"title":"Cancelar assinatura do canal","sidebarTitle":"Cancelar assinatura","openapi":"api-reference/administracao/specs/canais.json POST /channels/whatsapp/{id}/cancel","href":"/api-reference/administracao/cancelar-canal"},{"title":"Deletar canal","openapi":"api-reference/administracao/specs/canais.json DELETE /channels/whatsapp/{id}","href":"/api-reference/administracao/deletar-canal"}]},{"group":"Conexão","pages":[{"title":"Gerar link de conexão","sidebarTitle":"Gerar link","openapi":"api-reference/administracao/specs/canais.json POST /channels/whatsapp/{id}/connect-link","href":"/api-reference/administracao/gerar-link-de-conexao"},{"title":"Pausar canal","sidebarTitle":"Pausar","openapi":"api-reference/administracao/specs/canais.json POST /channels/whatsapp/{id}/pause","href":"/api-reference/administracao/pausar-canal"},{"title":"Retomar canal","sidebarTitle":"Retomar","openapi":"api-reference/administracao/specs/canais.json POST /channels/whatsapp/{id}/resume","href":"/api-reference/administracao/retomar-canal"}]},{"group":"Webhooks do canal","pages":[{"title":"Listar webhooks","openapi":"api-reference/administracao/specs/canais.json GET /channels/whatsapp/{id}/webhooks","href":"/api-reference/administracao/listar-webhooks"},{"title":"Criar webhook","openapi":"api-reference/administracao/specs/canais.json POST /channels/whatsapp/{id}/webhooks","href":"/api-reference/administracao/criar-webhook"},{"title":"Editar webhook","openapi":"api-reference/administracao/specs/canais.json PATCH /channels/whatsapp/{id}/webhooks/{webhookId}","href":"/api-reference/administracao/editar-webhook"},{"title":"Remover webhook","openapi":"api-reference/administracao/specs/canais.json DELETE /channels/whatsapp/{id}/webhooks/{webhookId}","href":"/api-reference/administracao/remover-webhook"},{"title":"Rotacionar webhook secret","sidebarTitle":"Rotacionar secret","openapi":"api-reference/administracao/specs/canais.json POST /channels/whatsapp/{id}/webhook-secret","href":"/api-reference/administracao/rotacionar-webhook-secret"}]},{"group":"Webhook global","pages":[{"title":"Consultar webhook global","sidebarTitle":"Consultar","openapi":"api-reference/administracao/specs/canais.json GET /channels/whatsapp/global-webhook","href":"/api-reference/administracao/consultar-webhook-global"},{"title":"Configurar webhook global","sidebarTitle":"Configurar","openapi":"api-reference/administracao/specs/canais.json PUT /channels/whatsapp/global-webhook","href":"/api-reference/administracao/configurar-webhook-global"},{"title":"Remover webhook global","sidebarTitle":"Remover","openapi":"api-reference/administracao/specs/canais.json DELETE /channels/whatsapp/global-webhook","href":"/api-reference/administracao/remover-webhook-global"},{"title":"Rotacionar secret global","sidebarTitle":"Rotacionar secret","openapi":"api-reference/administracao/specs/canais.json POST /channels/whatsapp/global-webhook/rotate-secret","href":"/api-reference/administracao/rotacionar-secret-global"}]}]},{"group":"Mensagens","icon":{"style":"regular","name":"paper-plane"},"pages":[{"title":"Introdução","href":"/api-reference/whatsapp/mensagens/introducao"},{"title":"Enviar texto","openapi":"api-reference/whatsapp/specs/texto.json POST /v1/{phone_number_id}/messages","href":"/api-reference/whatsapp/mensagens/enviar-texto"},{"title":"Enviar imagem","openapi":"api-reference/whatsapp/specs/imagem.json POST /v1/{phone_number_id}/messages","href":"/api-reference/whatsapp/mensagens/enviar-imagem"},{"title":"Enviar áudio","openapi":"api-reference/whatsapp/specs/audio.json POST /v1/{phone_number_id}/messages","href":"/api-reference/whatsapp/mensagens/enviar-audio"},{"title":"Enviar vídeo","openapi":"api-reference/whatsapp/specs/video.json POST /v1/{phone_number_id}/messages","href":"/api-reference/whatsapp/mensagens/enviar-video"},{"title":"Enviar documento","openapi":"api-reference/whatsapp/specs/documento.json POST /v1/{phone_number_id}/messages","href":"/api-reference/whatsapp/mensagens/enviar-documento"},{"title":"Enviar sticker","openapi":"api-reference/whatsapp/specs/sticker.json POST /v1/{phone_number_id}/messages","href":"/api-reference/whatsapp/mensagens/enviar-sticker"},{"title":"Enviar localização","openapi":"api-reference/whatsapp/specs/localizacao.json POST /v1/{phone_number_id}/messages","href":"/api-reference/whatsapp/mensagens/enviar-localizacao"},{"title":"Solicitar localização","openapi":"api-reference/whatsapp/specs/solicitar-localizacao.json POST /v1/{phone_number_id}/messages","href":"/api-reference/whatsapp/mensagens/solicitar-localizacao"},{"title":"Enviar contato","openapi":"api-reference/whatsapp/specs/contato.json POST /v1/{phone_number_id}/messages","href":"/api-reference/whatsapp/mensagens/enviar-contato"},{"title":"Enviar reação","description":"Reaja a uma mensagem da conversa com um emoji.","openapi":"api-reference/whatsapp/specs/reacao.json POST /v1/{phone_number_id}/messages","href":"/api-reference/whatsapp/mensagens/enviar-reacao"},{"title":"Enviar botões","openapi":"api-reference/whatsapp/specs/botoes.json POST /v1/{phone_number_id}/messages","href":"/api-reference/whatsapp/mensagens/enviar-botoes"},{"title":"Enviar lista","description":"Envie uma mensagem com um menu de opções em lista.","openapi":"api-reference/whatsapp/specs/lista.json POST /v1/{phone_number_id}/messages","href":"/api-reference/whatsapp/mensagens/enviar-lista"},{"title":"Enviar botão com link","openapi":"api-reference/whatsapp/specs/botao-link.json POST /v1/{phone_number_id}/messages","href":"/api-reference/whatsapp/mensagens/enviar-botao-link"},{"title":"Enviar carrossel","openapi":"api-reference/whatsapp/specs/carrossel.json POST /v1/{phone_number_id}/messages","href":"/api-reference/whatsapp/mensagens/enviar-carrossel"}]},{"group":"Recursos de mensagens","icon":{"style":"regular","name":"comment-dots"},"pages":[{"title":"Marcar como lida","openapi":"api-reference/whatsapp/specs/marcar-como-lida.json POST /v1/{phone_number_id}/messages","href":"/api-reference/whatsapp/recursos/marcar-como-lida"},{"title":"Indicador de digitação","openapi":"api-reference/whatsapp/specs/indicador-de-digitacao.json POST /v1/{phone_number_id}/messages","href":"/api-reference/whatsapp/recursos/indicador-de-digitacao"},{"title":"Respostas contextuais","href":"/api-reference/whatsapp/recursos/respostas-contextuais"}]},{"group":"Mídias","icon":{"style":"regular","name":"image"},"pages":[{"title":"Upload de mídia","openapi":"api-reference/whatsapp/openapi.json POST /v1/{phone_number_id}/media","href":"/api-reference/whatsapp/recursos/midia/upload-de-midia"},{"title":"Obter URL da mídia","openapi":"api-reference/whatsapp/specs/obter-url-midia.json GET /v1/{media_id}","href":"/api-reference/whatsapp/recursos/midia/obter-url-da-midia"},{"title":"Deletar mídia","openapi":"api-reference/whatsapp/specs/deletar-midia.json DELETE /v1/{media_id}","href":"/api-reference/whatsapp/recursos/midia/deletar-midia"}]},{"group":"Templates","icon":{"style":"regular","name":"file-lines"},"pages":[{"title":"Criar template","openapi":"api-reference/whatsapp/openapi.json POST /v1/{waba_id}/message_templates","href":"/api-reference/whatsapp/templates/criar-template"},{"title":"Editar template","openapi":"api-reference/whatsapp/openapi.json POST /v1/{template_id}","href":"/api-reference/whatsapp/templates/editar-template"},{"title":"Listar templates","openapi":"api-reference/whatsapp/openapi.json GET /v1/{waba_id}/message_templates","href":"/api-reference/whatsapp/templates/listar-templates"},{"title":"Deletar template","openapi":"api-reference/whatsapp/openapi.json DELETE /v1/{waba_id}/message_templates","href":"/api-reference/whatsapp/templates/deletar-template"},{"title":"Enviar template","openapi":"api-reference/whatsapp/specs/enviar-template.json POST /v1/{phone_number_id}/messages","href":"/api-reference/whatsapp/templates/enviar-template"}]},{"group":"Conta e número","icon":{"style":"regular","name":"address-card"},"pages":[{"title":"Status do número","openapi":"api-reference/whatsapp/openapi.json GET /v1/{waba_id}/phone_numbers","href":"/api-reference/whatsapp/numero/status-e-limites"},{"title":"Sincronizar histórico","openapi":"api-reference/whatsapp/specs/sincronizar-historico.json POST /v1/{phone_number_id}/smb_app_data","href":"/api-reference/whatsapp/sincronizacao/sincronizar-historico"},{"title":"Sincronizar contatos","openapi":"api-reference/whatsapp/specs/sincronizar-contatos.json POST /v1/{phone_number_id}/smb_app_data","href":"/api-reference/whatsapp/sincronizacao/sincronizar-contatos"},{"title":"Outros endpoints da Meta","href":"/api-reference/whatsapp/proxy/outros-endpoints"}]},{"group":"Endpoints Datafy","icon":{"style":"regular","name":"bolt"},"pages":[{"title":"Dados da conta","openapi":"api-reference/whatsapp/openapi.json GET /me","href":"/api-reference/whatsapp/datafy/me"},{"title":"Baixar mídia recebida","openapi":"api-reference/whatsapp/openapi.json GET /media/{id}","href":"/api-reference/whatsapp/datafy/baixar-midia"},{"title":"Baixar o arquivo da mídia","openapi":"api-reference/whatsapp/openapi.json GET /media/{id}/download","href":"/api-reference/whatsapp/datafy/baixar-arquivo-midia"},{"title":"Gerar handle de arquivo","openapi":"api-reference/whatsapp/openapi.json POST /uploads","href":"/api-reference/whatsapp/datafy/gerar-handle-de-arquivo"}]},{"group":"Webhooks","icon":{"style":"regular","name":"webhook"},"pages":[{"title":"Introdução","href":"/api-reference/whatsapp/webhooks/receber-eventos"},{"title":"Assinatura","href":"/api-reference/whatsapp/webhooks/validar-assinatura"},{"group":"Eventos","pages":[{"title":"Mensagens recebidas","href":"/api-reference/whatsapp/webhooks/eventos/mensagens"},{"title":"Status de mensagem","href":"/api-reference/whatsapp/webhooks/eventos/status-de-mensagem"},{"title":"Mensagens do app","href":"/api-reference/whatsapp/webhooks/eventos/mensagens-do-celular"},{"title":"Histórico de conversas","href":"/api-reference/whatsapp/webhooks/eventos/historico"},{"title":"Contatos sincronizados","href":"/api-reference/whatsapp/webhooks/eventos/contatos-sincronizados"},{"title":"Templates","href":"/api-reference/whatsapp/webhooks/eventos/templates"},{"title":"Qualidade do número","href":"/api-reference/whatsapp/webhooks/eventos/qualidade-do-numero"},{"title":"Conta","href":"/api-reference/whatsapp/webhooks/eventos/conta"}]}]}]},{"tab":"API Instagram","icon":{"style":"brands","name":"instagram"},"pages":[{"title":"API Instagram","href":"/api-reference/instagram/introducao"}]}]}]},"basePath":"","title":"Enviar botões - Datafy API","buildId":"dpl_BLQvU86QFwq3AhPofSTw6q8dGWKm","deploymentId":"dpl_BLQvU86QFwq3AhPofSTw6q8dGWKm","dynamics":["c2aa737661","2b790eda92","b0f84f53ff","a9bb46feb3"],"chunks":["OpenApiReferenceProvider-Myd8dsju.js","utils-C2HkQgW0.js","cloneDeep-izs3Hzxb.js","_Uint8Array-BVIqJ90l.js","isObjectLike-C8vmzPEN.js","isArray-Dcu1dQ5t.js","utils-8rSppmTv.js","toString-BX-iyh8G.js","isSymbol-CSH9U2Gm.js","addUniqueKeysToSchema-B6MjiCFm.js","snippetPresets-DwrSAONL.js","style-to-object-BY3JEAdk.js","v4-DIgz8zy6.js","ApiExamples-1-a5UQKQ.js","isEqual-BfaiBbcl.js","usePlaygroundInputsStore-C541m7wZ.js","shallow-CWELCZ77.js","getApiPlaygroundDisplay-CTo5Zn03.js","CodeSnippet-D--dzvnl.js","CodeSnippets-DM3cXEDh.js","Page-CxAy5y67.js","getPastedJson-C-VECgcL.js","icon-BPq2-Mg3.js","MethodPill-D9J5cUHd.js","DuplicateIcon-BqHaxUnD.js","createIcon-CIbcZHp9.js","DynamicMarkdown-BKiHAm_d.js","SectionHeading-DstQXt3H.js","axios-vUo_bRtp.js","Markdown-CpxgzsKA.js","clsx-C5EfhVm0.js","lib-DuNMoZ05.js","lib-B8HbPgcC.js","html-void-elements-mCSPHezU.js","dist-CJ9Oly2E.js","katex-YMM-FMeD.js","marked.esm-CZWythHk.js","AssistantPageLink-Mk6P3qvh.js"]}