After creating a channel of type META_WHATSAPP, you need to connect it to a WhatsApp Business number. There are two ways:
Via dashboard — Guided flow directly in the Dashboard
Via SDK + API — Integrate the connection flow into your system
Connection via dashboard
The simplest way. Go to the Dashboard, select the created channel and follow the guided connection flow.
Connection via SDK + API
Use this flow when you want your user to connect the channel from within your system, without needing to access the Hub Message dashboard.The flow has 3 steps:
1
Frontend — Start connection with SDK
In your application’s frontend, use the SDK to start the connection flow. The SDK will open the WhatsApp authentication process and return the necessary information.
import HubMessage from '@hubmessage/connect';const client = HubMessage.newClient({ publicKey: 'YOUR_PUBLIC_KEY'});const response = await client.connect({ channelId: 'CHANNEL_ID'});// Send the response to your backend
The publicKey can be exposed in the frontend. See more at Authentication.
2
Frontend → Backend — Send data
The SDK returns an object with the connection information. Send this data to your application’s backend:
This call must be made in the backend, as it uses the Secret Key which should never be exposed in the frontend.
Flow summary
Frontend (SDK) → Backend (API)1. client.connect()2. User authenticates3. SDK returns data -----→ 4. POST /v1/channels/{id}/connect with wabaId, phoneId, code, coexistence 5. Channel connected ✓
After connection, the channel is ready to send and receive messages. Use the channelId in the free messages and templates endpoints.
Authorizations
Authorization
string
header
required
Secret Key generated in the Hub Message Security panel
Path Parameters
channelId
string
required
Channel ID (obtained via Create channel)
Example:
"a1b2c3d4-e5f6-7890-abcd-ef1234567890"
Body
application/json
wabaId
string
required
WhatsApp Business Account ID
phoneId
string
required
Phone number ID
code
string
required
Authorization code generated by WhatsApp
coexistence
boolean
required
Whether the number is in coexistence mode
Response
Channel connected successfully
success
boolean
Indicates whether the operation was successful
{"docsConfig":{"theme":"mint","$schema":"https://mintlify.com/docs.json","name":"Hub Message","colors":{"primary":"#465FFF","light":"#6B7FFF","dark":"#3347CC"},"logo":{"light":"https://mintcdn.com/hubmessage-2b5e33d5/YCG0Gj5XDVsZLarW/logo/light.svg?fit=max\u0026auto=format\u0026n=YCG0Gj5XDVsZLarW\u0026q=85\u0026s=bf52c251a1e4946b63341a133c637df5","dark":"https://mintcdn.com/hubmessage-2b5e33d5/YCG0Gj5XDVsZLarW/logo/dark.svg?fit=max\u0026auto=format\u0026n=YCG0Gj5XDVsZLarW\u0026q=85\u0026s=4a1f8994640bafa86947bf4909f0d700"},"favicon":"https://mintcdn.com/hubmessage-2b5e33d5/YCG0Gj5XDVsZLarW/favicon.svg?fit=max\u0026auto=format\u0026n=YCG0Gj5XDVsZLarW\u0026q=85\u0026s=cb949a27979b67b78095680984ba0489","navbar":{"links":[{"href":"https://api.whatsapp.com/send?phone=5544999300032\u0026text=Ol%C3%A1!%20Gostaria%20de%20falar%20com%20o%20suporte%20do%20HubMessage.","label":"Suporte"}],"primary":{"type":"button","label":"Dashboard","href":"https://app.hubmessage.io"}},"footer":{"socials":{"website":"https://www.hubmessage.io"}},"contextual":{"options":["copy","view","chatgpt","claude","perplexity","mcp","cursor","vscode"],"display":"header"},"styling":{"latex":false},"navigation":{"global":{"anchors":[]},"languages":[{"language":"pt-BR","href":""},{"language":"en","href":"en"}]}},"deployment":{"deploymentMetadataValue":{"subdomain":"hubmessage-2b5e33d5","hasAudioNarration":false,"actualSubdomain":"hubmessage-2b5e33d5","customDomains":["developer.hubmessage.io"],"gitSource":{"type":"github","owner":"hubmessage-oficial","repo":"docs","deployBranch":"main","contentDirectory":"","isPrivate":false,"mountPath":"","label":""},"entitlements":{},"buildId":"6a99bac6fead8126294a43c6","clientVersion":"0.0.4143","searchFilterCounts":[{"language":"pt-BR","tag":"Hub Message","count":54},{"language":"en","tag":"Hub Message","count":54},{"language":"pt-BR","tag":"Templates","count":15},{"language":"pt-BR","tag":"Webhooks","count":15},{"language":"en","tag":"Templates","count":15},{"language":"en","tag":"Webhooks","count":15},{"language":"pt-BR","tag":"Canais","count":14},{"language":"en","tag":"Channels","count":14},{"language":"pt-BR","tag":"WhatsApp Oficial","count":12},{"language":"en","tag":"WhatsApp Official","count":12},{"language":"pt-BR","tag":"Mensagens livres","count":10},{"language":"en","tag":"Free messages","count":10},{"language":"pt-BR","tag":"Recursos e Configurações","count":3},{"language":"pt-BR","tag":"Conexão","count":3},{"language":"pt-BR","tag":"Portfólio Empresarial (Meta Business Manager)","count":3},{"language":"en","tag":"Resources and Settings","count":3},{"language":"en","tag":"Connection","count":3},{"language":"en","tag":"Business Portfolio (Meta Business Manager)","count":3},{"language":"pt-BR","tag":"Introdução","count":2},{"language":"en","tag":"Introduction","count":2}]},"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":"workos-onboarding","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"snapshot-serving-live","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"stripTemperatureMiddleware","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"support-platform-pylon-zendesk","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"snapshot-serving","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"instant-rollback","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"granular-notifications-server","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"granular-notifications","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"automations-fable","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"fixed-ai-action-pricing","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"automation-resolve-merge-conflict","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"scoped-publishing","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"mintql","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"page-level-analytics","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"editor-version-history-v2","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"billing-page-v2","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"full-page-search","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"workspace-projects","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"assistant-v5","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":"workos-sso-scim","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"hobby-abuse-scan","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"dashboard-inbox","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"workos-signup","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"turbopuffer-dual-write","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"workos-enabled","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"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":"llms-txt-v2","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false}],"googleFontsInlined":false},"customCss":[],"page":{"pagePath":"en/channels/connect-channel","slug":"/en/channels/connect-channel","pageMetadata":{"title":"Connect Meta WhatsApp channel","description":"Complete flow to connect a META_WHATSAPP channel to the WhatsApp Official API","openapi":"en/channels/openapi-connect.json POST /v1/channels/{channelId}/connect","href":"/en/channels/connect-channel"},"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: \"Complete flow to connect a META_WHATSAPP channel to the WhatsApp Official API\"\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 frontendUrl=`https://app.hubmessage.io`;const projectName=`Hub Message`;function _createMdxContent(props){const _components={a:`a`,code:`code`,li:`li`,p:`p`,pre:`pre`,span:`span`,strong:`strong`,tbody:`tbody`,td:`td`,th:`th`,thead:`thead`,tr:`tr`,ul:`ul`,..._provideComponents(),...props.components},{CodeBlock,Heading,Note,Step,Steps,Table,Tip,Warning}=_components;if(!CodeBlock)_missingMdxReference(`CodeBlock`,true);if(!Heading)_missingMdxReference(`Heading`,true);if(!Note)_missingMdxReference(`Note`,true);if(!Step)_missingMdxReference(`Step`,true);if(!Steps)_missingMdxReference(`Steps`,true);if(!Table)_missingMdxReference(`Table`,true);if(!Tip)_missingMdxReference(`Tip`,true);if(!Warning)_missingMdxReference(`Warning`,true);return _jsxs(_Fragment,{children:[_jsx(Heading,{level:`2`,id:`overview`,children:`Overview`}),`\n`,_jsxs(_components.p,{children:[`After `,_jsx(_components.a,{href:`/en/channels/create-channel`,children:`creating a channel`}),` of type `,_jsx(_components.code,{children:`META_WHATSAPP`}),`, you need to `,_jsx(_components.strong,{children:`connect it`}),` to a WhatsApp Business number. There are two ways:`]}),`\n`,_jsxs(_components.ul,{children:[`\n`,_jsxs(_components.li,{children:[_jsx(_components.strong,{children:`Via dashboard`}),` — Guided flow directly in the `,_jsx(_components.a,{href:`%7BfrontendUrl%7D`,children:`Dashboard`})]}),`\n`,_jsxs(_components.li,{children:[_jsx(_components.strong,{children:`Via SDK + API`}),` — Integrate the connection flow into your system`]}),`\n`]}),`\n`,_jsx(Heading,{level:`2`,id:`connection-via-dashboard`,children:`Connection via dashboard`}),`\n`,_jsxs(_components.p,{children:[`The simplest way. Go to the `,_jsx(_components.a,{href:`%7BfrontendUrl%7D`,children:`Dashboard`}),`, select the created channel and follow the guided connection flow.`]}),`\n`,_jsx(Heading,{level:`2`,id:`connection-via-sdk-+-api`,children:`Connection via SDK + API`}),`\n`,_jsxs(_components.p,{children:[`Use this flow when you want `,_jsx(_components.strong,{children:`your user`}),` to connect the channel from within `,_jsx(_components.strong,{children:`your system`}),`, without needing to access the `,projectName,` dashboard.`]}),`\n`,_jsx(_components.p,{children:`The flow has 3 steps:`}),`\n`,_jsxs(Steps,{children:[_jsxs(Step,{title:`Frontend — Start connection with SDK`,children:[_jsxs(_components.p,{children:[`In your application’s `,_jsx(_components.strong,{children:`frontend`}),`, use the SDK to start the connection flow. The SDK will open the WhatsApp authentication process and return the necessary information.`]}),_jsx(CodeBlock,{filename:``,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:`#CF222E`,\"--shiki-dark\":`#C586C0`},children:`import`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#9CDCFE`},children:` HubMessage`}),_jsx(_components.span,{style:{color:`#CF222E`,\"--shiki-dark\":`#C586C0`},children:` from`}),_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:` '@hubmessage/connect'`}),_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\":`#569CD6`},children:`const`}),_jsx(_components.span,{style:{color:`#0550AE`,\"--shiki-dark\":`#4FC1FF`},children:` client`}),_jsx(_components.span,{style:{color:`#CF222E`,\"--shiki-dark\":`#D4D4D4`},children:` =`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#9CDCFE`},children:` HubMessage`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`.`}),_jsx(_components.span,{style:{color:`#8250DF`,\"--shiki-dark\":`#DCDCAA`},children:`newClient`}),_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:` publicKey:`}),_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:` 'YOUR_PUBLIC_KEY'`})]}),`\n`,_jsx(_components.span,{className:`line`,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\":`#569CD6`},children:`const`}),_jsx(_components.span,{style:{color:`#0550AE`,\"--shiki-dark\":`#4FC1FF`},children:` response`}),_jsx(_components.span,{style:{color:`#CF222E`,\"--shiki-dark\":`#D4D4D4`},children:` =`}),_jsx(_components.span,{style:{color:`#CF222E`,\"--shiki-dark\":`#C586C0`},children:` await`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#9CDCFE`},children:` client`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`.`}),_jsx(_components.span,{style:{color:`#8250DF`,\"--shiki-dark\":`#DCDCAA`},children:`connect`}),_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:` channelId:`}),_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:` 'CHANNEL_ID'`})]}),`\n`,_jsx(_components.span,{className:`line`,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:`// Send the response to your backend`})}),`\n`]})})}),_jsx(Tip,{children:_jsxs(_components.p,{children:[`The `,_jsx(_components.code,{children:`publicKey`}),` can be exposed in the frontend. See more at `,_jsx(_components.a,{href:`/en/authentication`,children:`Authentication`}),`.`]})})]}),_jsxs(Step,{title:`Frontend → Backend — Send data`,children:[_jsxs(_components.p,{children:[`The SDK returns an object with the connection information. Send this data to your application’s `,_jsx(_components.strong,{children:`backend`}),`:`]}),_jsx(CodeBlock,{filename:``,numberOfLines:`6`,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:`6`,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:` \"wabaId\"`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`: `}),_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:`\"428083093730937\"`}),_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:` \"phoneId\"`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`: `}),_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:`\"123456789012345\"`}),_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:` \"code\"`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`: `}),_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:`\"ABC123DEF456\"`}),_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:` \"coexistence\"`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`: `}),_jsx(_components.span,{style:{color:`#0550AE`,\"--shiki-dark\":`#569CD6`},children:`false`})]}),`\n`,_jsx(_components.span,{className:`line`,children:_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`}`})}),`\n`]})})}),_jsxs(Table,{children:[_jsx(_components.thead,{children:_jsxs(_components.tr,{children:[_jsx(_components.th,{children:`Field`}),_jsx(_components.th,{children:`Type`}),_jsx(_components.th,{children:`Description`})]})}),_jsxs(_components.tbody,{children:[_jsxs(_components.tr,{children:[_jsx(_components.td,{children:_jsx(_components.code,{children:`wabaId`})}),_jsx(_components.td,{children:`string`}),_jsx(_components.td,{children:`Selected WhatsApp Business Account ID`})]}),_jsxs(_components.tr,{children:[_jsx(_components.td,{children:_jsx(_components.code,{children:`phoneId`})}),_jsx(_components.td,{children:`string`}),_jsx(_components.td,{children:`Selected phone number ID`})]}),_jsxs(_components.tr,{children:[_jsx(_components.td,{children:_jsx(_components.code,{children:`code`})}),_jsx(_components.td,{children:`string`}),_jsx(_components.td,{children:`Authorization code generated by WhatsApp`})]}),_jsxs(_components.tr,{children:[_jsx(_components.td,{children:_jsx(_components.code,{children:`coexistence`})}),_jsx(_components.td,{children:`boolean`}),_jsx(_components.td,{children:`Whether the number is in coexistence mode`})]})]})]})]}),_jsxs(Step,{title:`Backend — Finalize connection via API`,children:[_jsxs(_components.p,{children:[`In the `,_jsx(_components.strong,{children:`backend`}),`, call the connection API passing the data received from the frontend:`]}),_jsx(_components.p,{children:_jsx(_components.code,{children:`POST /v1/channels/{channelId}/connect`})}),_jsx(CodeBlock,{filename:``,numberOfLines:`9`,language:`shellscript`,children:_jsx(_components.pre,{className:`shiki shiki-themes github-light-default dark-plus`,style:{backgroundColor:`#ffffff`,\"--shiki-dark-bg\":`#0B0C0E`,color:`#1f2328`,\"--shiki-dark\":`#D4D4D4`},language:`shellscript`,children:_jsxs(_components.code,{language:`shellscript`,numberOfLines:`9`,children:[_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#953800`,\"--shiki-dark\":`#DCDCAA`},children:`curl`}),_jsx(_components.span,{style:{color:`#0550AE`,\"--shiki-dark\":`#569CD6`},children:` -X`}),_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:` POST`}),_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:` https://api.hubmessage.io/v1/channels/CHANNEL_ID/connect`}),_jsx(_components.span,{style:{color:`#CF222E`,\"--shiki-dark\":`#D7BA7D`},children:` \\\\`})]}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#0550AE`,\"--shiki-dark\":`#569CD6`},children:` -H`}),_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:` \"Content-Type: application/json\"`}),_jsx(_components.span,{style:{color:`#CF222E`,\"--shiki-dark\":`#D7BA7D`},children:` \\\\`})]}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#0550AE`,\"--shiki-dark\":`#569CD6`},children:` -H`}),_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:` \"Authorization: Bearer YOUR_SECRET_KEY\"`}),_jsx(_components.span,{style:{color:`#CF222E`,\"--shiki-dark\":`#D7BA7D`},children:` \\\\`})]}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#0550AE`,\"--shiki-dark\":`#569CD6`},children:` -d`}),_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:` '{`})]}),`\n`,_jsx(_components.span,{className:`line`,children:_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:` \"wabaId\": \"428083093730937\",`})}),`\n`,_jsx(_components.span,{className:`line`,children:_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:` \"phoneId\": \"123456789012345\",`})}),`\n`,_jsx(_components.span,{className:`line`,children:_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:` \"code\": \"ABC123DEF456\",`})}),`\n`,_jsx(_components.span,{className:`line`,children:_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:` \"coexistence\": false`})}),`\n`,_jsx(_components.span,{className:`line`,children:_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:` }'`})}),`\n`]})})}),_jsx(Warning,{children:_jsxs(_components.p,{children:[`This call must be made in the `,_jsx(_components.strong,{children:`backend`}),`, as it uses the Secret Key which should never be exposed in the frontend.`]})})]})]}),`\n`,_jsx(Heading,{level:`2`,id:`flow-summary`,children:`Flow summary`}),`\n`,_jsx(CodeBlock,{numberOfLines:`8`,language:`text`,children:_jsx(_components.pre,{className:`shiki shiki-themes github-light-default dark-plus`,style:{backgroundColor:`#ffffff`,\"--shiki-dark-bg\":`#0B0C0E`,color:`#1f2328`,\"--shiki-dark\":`#D4D4D4`},language:`text`,children:_jsxs(_components.code,{language:`text`,numberOfLines:`8`,children:[_jsx(_components.span,{className:`line`,children:_jsx(_components.span,{children:`Frontend (SDK) → Backend (API)`})}),`\n`,_jsx(_components.span,{className:`line`,children:_jsx(_components.span,{})}),`\n`,_jsx(_components.span,{className:`line`,children:_jsx(_components.span,{children:`1. client.connect()`})}),`\n`,_jsx(_components.span,{className:`line`,children:_jsx(_components.span,{children:`2. User authenticates`})}),`\n`,_jsx(_components.span,{className:`line`,children:_jsx(_components.span,{children:`3. SDK returns data -----→ 4. POST /v1/channels/{id}/connect`})}),`\n`,_jsx(_components.span,{className:`line`,children:_jsx(_components.span,{children:` with wabaId, phoneId, code, coexistence`})}),`\n`,_jsx(_components.span,{className:`line`,children:_jsx(_components.span,{children:` 5. Channel connected ✓`})}),`\n`,_jsx(_components.span,{className:`line`,children:_jsx(_components.span,{})})]})})}),`\n`,_jsx(Note,{children:_jsxs(_components.p,{children:[`After connection, the channel is ready to send and receive messages. Use the `,_jsx(_components.code,{children:`channelId`}),` in the `,_jsx(_components.a,{href:`/en/messages/introduction`,children:`free messages`}),` and `,_jsx(_components.a,{href:`/en/templates/introduction`,children:`templates`}),` endpoints.`]})})]})}function MDXContent(props={}){const{wrapper:MDXLayout}={..._provideComponents(),...props.components};return MDXLayout?_jsx(MDXLayout,{...props,children:_jsx(_createMdxContent,{...props})}):_createMdxContent(props)}return{frontendUrl,projectName,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":"Connect Meta WhatsApp channel","description":"Complete flow to connect a META_WHATSAPP channel to the WhatsApp Official API","openapi":"en/channels/openapi-connect.json POST /v1/channels/{channelId}/connect","href":"/en/channels/connect-channel"}}},"mdxSourceWithNoJs":null,"noJsSplices":[[2294,2312,"`Hub Message`,` dash"]]},"mdxExtracts":{"tableOfContents":[{"title":"Overview","slug":"overview","depth":2,"children":[]},{"title":"Connection via dashboard","slug":"connection-via-dashboard","depth":2,"children":[]},{"title":"Connection via SDK + API","slug":"connection-via-sdk-+-api","depth":2,"children":[]},{"title":"Flow summary","slug":"flow-summary","depth":2,"children":[]}],"codeExamples":{}},"jsLinks":["/_mintlify/custom/hubmessage-2b5e33d5/81add35b00a03b20/gpt-maker.js"],"openApiReferenceData":{"operation":{"summary":"Connect Meta WhatsApp channel","description":"Complete flow to connect a META_WHATSAPP channel to the WhatsApp Official API","operationId":"connectMetaChannel","tags":["Channels"],"parameters":["0e582653-274c-4431-a04d-939735b95f92"],"requestBody":"544d108b-9851-4a73-98f6-97394168354c","responses":{"200":"fab85c5f-87be-4d6a-8cdd-7576c24a1c80","401":"6498b109-d1ce-4cd5-aeb9-c52132ddf91d"},"method":"post","type":"path","servers":["14832a71-0fe3-47a0-ac6a-4d0e743337fe"],"security":["3502e6dc-69bd-4f12-8e21-4593b2e5d3d2"],"path":"/v1/channels/{channelId}/connect","baseUrlOptions":["https://api.hubmessage.io"],"title":"Connect Meta WhatsApp channel","codeSamples":[],"requiredOnlyExamples":false,"requestExampleType":"generated","responseExampleType":"generated"},"dependencies":{"parameters":{"0e582653-274c-4431-a04d-939735b95f92":{"name":"channelId","in":"path","required":true,"description":"Channel ID (obtained via Create channel)","schema":{"type":"string","example":"a1b2c3d4-e5f6-7890-abcd-ef1234567890","isRequired":true,"description":"Channel ID (obtained via Create channel)","uniqueKey":"","typeLabel":"string"}}},"requestBody":{"required":true,"content":{"application/json":{"schema":{"type":"object","required":["wabaId","phoneId","code","coexistence"],"properties":{"wabaId":{"type":"string","description":"WhatsApp Business Account ID","isRequired":true,"uniqueKey":"wabaId","typeLabel":"string"},"phoneId":{"type":"string","description":"Phone number ID","isRequired":true,"uniqueKey":"phoneId","typeLabel":"string"},"code":{"type":"string","description":"Authorization code generated by WhatsApp","isRequired":true,"uniqueKey":"code","typeLabel":"string"},"coexistence":{"type":"boolean","description":"Whether the number is in coexistence mode","isRequired":true,"uniqueKey":"coexistence","typeLabel":"boolean"}},"uniqueKey":"","typeLabel":"object"},"example":{"wabaId":"428083093730937","phoneId":"123456789012345","code":"ABC123DEF456","coexistence":false},"examples":{"Example":{"title":"Example","value":{"wabaId":"428083093730937","phoneId":"123456789012345","code":"ABC123DEF456","coexistence":false}}},"exampleType":"examples"}},"exampleType":"examples"},"responses":{"fab85c5f-87be-4d6a-8cdd-7576c24a1c80":{"description":"Channel connected successfully","content":{"application/json":{"schema":{"type":"object","properties":{"success":{"type":"boolean","description":"Indicates whether the operation was successful","uniqueKey":"success","typeLabel":"boolean"}},"uniqueKey":"","typeLabel":"object"},"example":{"success":true},"examples":{"Example":{"title":"Example","value":{"success":true}}},"exampleType":"examples"}},"exampleType":"examples"},"6498b109-d1ce-4cd5-aeb9-c52132ddf91d":{"description":"Invalid or missing token.","content":{"application/json":{"schema":{"type":"object","properties":{"error":{"type":"integer","uniqueKey":"error","typeLabel":"integer"},"message":{"type":"string","uniqueKey":"message","typeLabel":"string"}},"uniqueKey":"","typeLabel":"object"},"example":{"error":401,"message":"Unauthorized"},"examples":{"Example":{"title":"Example","value":{"error":401,"message":"Unauthorized"}}},"exampleType":"examples"}},"exampleType":"examples"}},"security":{"3502e6dc-69bd-4f12-8e21-4593b2e5d3d2":{"bearerAuth":{"type":"http","scheme":"bearer","description":"Secret Key generated in the Hub Message Security panel","scopes":[]}}},"servers":{"14832a71-0fe3-47a0-ac6a-4d0e743337fe":{"url":"https://api.hubmessage.io"}},"processedSecurityOptions":[{"schemes":[{"scheme":{"type":"http","scheme":"bearer","description":"Secret Key generated in the Hub Message Security panel","scopes":[]},"schema":{"title":"Bearer Auth","type":"string","isRequired":true,"description":"Secret Key generated in the Hub Message Security panel","format":"bearer","typeLabel":"string\u003cbearer>","deprecated":false},"schemeName":"bearerAuth","name":"Authorization"}],"title":"bearerAuth"}]},"originalFileLocation":"en/channels/openapi-connect.json"},"subdomain":"hubmessage-2b5e33d5","siteName":"Hub Message","title":"Connect Meta WhatsApp channel - Hub Message","navMaps":{"firstHrefInVersion":{},"firstHrefInLanguage":{"pt-BR":{"href":"/channels/connect-channel","matchLevel":1},"en":{"href":"/en/channels/connect-channel","matchLevel":0}}},"lastModified":"2026-06-01T18:01:42.971Z","originalFileLocation":"en/channels/connect-channel.mdx","locale":"en"},"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=\"Complete flow to connect a META_WHATSAPP channel to the WhatsApp Official API\">\u003cmeta data-mint-head name=\"application-name\" content=\"Hub Message\">\u003cmeta data-mint-head name=\"generator\" content=\"Mintlify\">\u003clink data-mint-head rel=\"icon\" type=\"image/png\" sizes=\"192x192\" href=\"/mintlify-assets/_mintlify/favicons/hubmessage-2b5e33d5/PaSwUi25TFnB3J2F/_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/hubmessage-2b5e33d5/PaSwUi25TFnB3J2F/_generated/favicon/apple-touch-icon.png\">\u003clink data-mint-head rel=\"icon\" type=\"image/png\" sizes=\"16x16\" href=\"/mintlify-assets/_mintlify/favicons/hubmessage-2b5e33d5/PaSwUi25TFnB3J2F/_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/hubmessage-2b5e33d5/PaSwUi25TFnB3J2F/_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/hubmessage-2b5e33d5/PaSwUi25TFnB3J2F/_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/hubmessage-2b5e33d5/PaSwUi25TFnB3J2F/_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/hubmessage-2b5e33d5/PaSwUi25TFnB3J2F/_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/hubmessage-2b5e33d5/PaSwUi25TFnB3J2F/_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/hubmessage-2b5e33d5/PaSwUi25TFnB3J2F/_generated/favicon-dark/favicon.ico\" media=\"(prefers-color-scheme: dark)\">\u003cmeta data-mint-head property=\"og:title\" content=\"Connect Meta WhatsApp channel - Hub Message\">\u003cmeta data-mint-head property=\"og:description\" content=\"Complete flow to connect a META_WHATSAPP channel to the WhatsApp Official API\">\u003cmeta data-mint-head property=\"og:site_name\" content=\"Hub Message\">\u003cmeta data-mint-head property=\"og:url\" content=\"https://developer.hubmessage.io/en/channels/connect-channel\">\u003cmeta data-mint-head property=\"og:type\" content=\"website\">\u003cmeta data-mint-head property=\"og:image\" content=\"https://hubmessage-2b5e33d5.mintlify.site/_mintlify/api/og/v2?division=Channels\u0026amp;title=Connect+Meta+WhatsApp+channel\u0026amp;description=Complete+flow+to+connect+a+META_WHATSAPP+channel+to+the+WhatsApp+Official+API\u0026amp;theme=d58ff11160f362d15c7ac8a6\u0026amp;signature=46a2b3beb866a0021f33d89b3083b6929d6a4aa942ce2fb47ae5ac3561902fe9\">\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=\"Connect Meta WhatsApp channel - Hub Message\">\u003cmeta data-mint-head name=\"twitter:description\" content=\"Complete flow to connect a META_WHATSAPP channel to the WhatsApp Official API\">\u003cmeta data-mint-head name=\"twitter:image\" content=\"https://hubmessage-2b5e33d5.mintlify.site/_mintlify/api/og/v2?division=Channels\u0026amp;title=Connect+Meta+WhatsApp+channel\u0026amp;description=Complete+flow+to+connect+a+META_WHATSAPP+channel+to+the+WhatsApp+Official+API\u0026amp;theme=d58ff11160f362d15c7ac8a6\u0026amp;signature=46a2b3beb866a0021f33d89b3083b6929d6a4aa942ce2fb47ae5ac3561902fe9\">\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/hubmessage-2b5e33d5/PaSwUi25TFnB3J2F/_generated/favicon/browserconfig.xml\">\u003cmeta data-mint-head name=\"apple-mobile-web-app-title\" content=\"Hub Message\">\u003cmeta data-mint-head name=\"msapplication-TileColor\" content=\"#465FFF\">\u003clink data-mint-head rel=\"canonical\" href=\"https://developer.hubmessage.io/en/channels/connect-channel\">\u003clink data-mint-head rel=\"alternate\" type=\"application/xml\" href=\"/sitemap.xml\">\u003clink data-mint-head rel=\"alternate\" type=\"text/markdown\" href=\"/en/channels/connect-channel.md\">\u003clink data-mint-head rel=\"alternate\" hreflang=\"en\" href=\"https://developer.hubmessage.io/en/channels/connect-channel\">\u003clink data-mint-head rel=\"alternate\" hreflang=\"pt-BR\" href=\"https://developer.hubmessage.io/channels/connect-channel\">\u003clink data-mint-head rel=\"alternate\" hreflang=\"x-default\" href=\"https://developer.hubmessage.io/channels/connect-channel\">\u003cscript data-mint-head type=\"application/ld+json\">{\"@context\":\"https://schema.org\",\"@graph\":[{\"@type\":\"Organization\",\"@id\":\"https://developer.hubmessage.io/#organization\",\"name\":\"Hub Message\",\"url\":\"https://developer.hubmessage.io\",\"logo\":{\"@type\":\"ImageObject\",\"url\":\"https://mintcdn.com/hubmessage-2b5e33d5/YCG0Gj5XDVsZLarW/logo/light.svg?fit=max\u0026auto=format\u0026n=YCG0Gj5XDVsZLarW\u0026q=85\u0026s=bf52c251a1e4946b63341a133c637df5\"}},{\"@type\":\"WebSite\",\"@id\":\"https://developer.hubmessage.io#website\",\"name\":\"Hub Message\",\"url\":\"https://developer.hubmessage.io\",\"publisher\":{\"@id\":\"https://developer.hubmessage.io/#organization\"}},{\"@type\":\"WebPage\",\"@id\":\"https://developer.hubmessage.io/en/channels/connect-channel#webpage\",\"url\":\"https://developer.hubmessage.io/en/channels/connect-channel\",\"name\":\"Connect Meta WhatsApp channel\",\"description\":\"Complete flow to connect a META_WHATSAPP channel to the WhatsApp Official API\",\"dateModified\":\"2026-06-01T18:01:42.971Z\",\"isPartOf\":{\"@id\":\"https://developer.hubmessage.io#website\"},\"breadcrumb\":{\"@id\":\"https://developer.hubmessage.io/en/channels/connect-channel#breadcrumb\"}},{\"@type\":\"BreadcrumbList\",\"@id\":\"https://developer.hubmessage.io/en/channels/connect-channel#breadcrumb\",\"itemListElement\":[{\"@type\":\"ListItem\",\"position\":1,\"name\":\"Channels\",\"item\":\"https://developer.hubmessage.io/en/channels/introduction\"},{\"@type\":\"ListItem\",\"position\":2,\"name\":\"Connect Meta WhatsApp channel\",\"item\":\"https://developer.hubmessage.io/en/channels/connect-channel\"}]},{\"@type\":[\"TechArticle\",\"APIReference\"],\"@id\":\"https://developer.hubmessage.io/en/channels/connect-channel#apireference\",\"headline\":\"Connect Meta WhatsApp channel\",\"name\":\"Connect Meta WhatsApp channel\",\"description\":\"Complete flow to connect a META_WHATSAPP channel to the WhatsApp Official API\",\"url\":\"https://developer.hubmessage.io/en/channels/connect-channel\",\"mainEntityOfPage\":{\"@id\":\"https://developer.hubmessage.io/en/channels/connect-channel#webpage\"},\"dateModified\":\"2026-06-01T18:01:42.971Z\",\"publisher\":{\"@id\":\"https://developer.hubmessage.io/#organization\"},\"isPartOf\":{\"@id\":\"https://developer.hubmessage.io#website\"}}]}\u003c/script>\u003cscript data-mint-head type=\"application/ld+json\">{\"@context\":\"https://schema.org\",\"@type\":\"WebSite\",\"name\":\"Hub Message\",\"publisher\":{\"@type\":\"Organization\",\"name\":\"Hub Message\"},\"provider\":{\"@type\":\"Organization\",\"name\":\"Mintlify\",\"url\":\"https://mintlify.com\"}}\u003c/script>","agentPointerHref":"/en/channels/connect-channel.md","siteName":"Hub Message","nav":{"global":{"anchors":[]},"languages":[{"language":"pt-BR","pages":[{"title":"pt-BR","href":"/channels/connect-channel"}]},{"language":"en","tabs":[{"tab":"Hub Message","groups":[{"group":"Introduction","pages":[{"title":"Introduction","href":"/en"},{"title":"Authentication","href":"/en/authentication"}]},{"group":"WhatsApp Official","pages":[{"title":"Introduction","href":"/en/whatsapp-official/introduction"},{"group":"Business Portfolio (Meta Business Manager)","pages":[{"title":"Introduction","href":"/en/whatsapp-official/portfolio/introduction"},{"title":"How to create a portfolio","href":"/en/whatsapp-official/portfolio/how-to-create"},{"title":"Verify portfolio","href":"/en/whatsapp-official/portfolio/verify-portfolio"}]},{"group":"Connection","pages":[{"title":"Introduction","href":"/en/whatsapp-official/connection/introduction"},{"title":"Cloud API","href":"/en/whatsapp-official/connection/cloud-api"},{"title":"Coexistence","href":"/en/whatsapp-official/connection/coexistence"}]},{"group":"Payments and Billing","pages":[{"title":"Payment","href":"/en/whatsapp-official/payment"},{"title":"Billing","href":"/en/whatsapp-official/billing"}]},{"group":"Resources and Settings","pages":[{"title":"Number migration","href":"/en/whatsapp-official/migrate-number"},{"title":"24-hour window","href":"/en/whatsapp-official/24h-window"},{"title":"Message templates","href":"/en/whatsapp-official/message-template"}]}]},{"group":"Channels","pages":[{"title":"Introduction","href":"/en/channels/introduction"},{"title":"Create channel","description":"Create a new channel via API","openapi":"en/channels/openapi-create.json POST /v1/channels","href":"/en/channels/create-channel"},{"title":"Connect Meta WhatsApp channel","openapi":"en/channels/openapi-connect.json POST /v1/channels/{channelId}/connect","href":"/en/channels/connect-channel"},{"title":"Disconnect Meta WhatsApp channel","description":"Disconnect a META_WHATSAPP channel from the WhatsApp Official API","openapi":"en/channels/openapi-disconnect.json PUT /v1/channels/{channelId}/disconnect","href":"/en/channels/disconnect"},{"title":"Subscribe channel","openapi":"en/channels/openapi-subscribe.json GET /v1/channels/{channelId}/subscribe","href":"/en/channels/subscribe-channel"},{"title":"Cancel subscription","openapi":"en/channels/openapi-cancel.json DELETE /v1/channels/{channelId}/cancel","href":"/en/channels/cancel-subscription"},{"title":"Delete channel","openapi":"en/channels/openapi-delete.json DELETE /v1/channels/{channelId}","href":"/en/channels/delete-channel"}]},{"group":"Templates","pages":[{"title":"Introduction","href":"/en/templates/introduction"},{"title":"List WABAs","openapi":"en/templates/openapi.json GET /whatsapp/businesses","href":"/en/templates/list-businesses"},{"title":"List templates","openapi":"en/templates/openapi.json GET /whatsapp/businesses/{wabaId}/templates","href":"/en/templates/list-templates"},{"title":"Sync templates","openapi":"en/templates/openapi.json POST /whatsapp/businesses/{wabaId}/templates/sync","href":"/en/templates/sync-templates"},{"title":"Create template","openapi":"en/templates/openapi.json POST /whatsapp/businesses/{wabaId}/templates","href":"/en/templates/create-template"},{"title":"Update template","openapi":"en/templates/openapi.json PUT /whatsapp/businesses/{wabaId}/templates/{templateId}","href":"/en/templates/update-template"},{"title":"Delete template","openapi":"en/templates/openapi.json DELETE /whatsapp/businesses/{wabaId}/templates/{templateId}","href":"/en/templates/delete-template"},{"title":"Send template","openapi":"en/messages/openapi-template.json POST /v1/channels/{channelId}/messages","href":"/en/messages/send-template"}]},{"group":"Free messages","pages":[{"title":"Introduction","href":"/en/messages/introduction"},{"title":"Send text","openapi":"en/messages/openapi.json POST /v1/channels/{channelId}/messages","href":"/en/messages/send-text"},{"title":"Send image","openapi":"en/messages/openapi-image.json POST /v1/channels/{channelId}/messages","href":"/en/messages/send-image"},{"title":"Send audio","openapi":"en/messages/openapi-audio.json POST /v1/channels/{channelId}/messages","href":"/en/messages/send-audio"},{"title":"Send video","openapi":"en/messages/openapi-video.json POST /v1/channels/{channelId}/messages","href":"/en/messages/send-video"},{"title":"Send contact","openapi":"en/messages/openapi-contact.json POST /v1/channels/{channelId}/messages","href":"/en/messages/send-contact"},{"title":"Send sticker","openapi":"en/messages/openapi-sticker.json POST /v1/channels/{channelId}/messages","href":"/en/messages/send-sticker"},{"title":"Send action buttons","openapi":"en/messages/openapi-interactive-action.json POST /v1/channels/{channelId}/messages","href":"/en/messages/send-interactive-action"},{"title":"Send text with buttons","openapi":"en/messages/openapi-interactive-button.json POST /v1/channels/{channelId}/messages","href":"/en/messages/send-interactive-button"},{"title":"Send location","openapi":"en/messages/openapi-location.json POST /v1/channels/{channelId}/messages","href":"/en/messages/send-location"}]},{"group":"Webhooks","pages":[{"title":"Introduction","href":"/en/webhooks/introduction"},{"group":"Channels","pages":[{"title":"Channel webhooks","href":"/en/webhooks/channel-webhooks"},{"title":"Payload structure","href":"/en/webhooks/payloads"},{"title":"Create webhook","openapi":"en/webhooks/openapi.json POST /v1/channels/{channelId}/webhooks","href":"/en/webhooks/create-webhook"},{"title":"List webhooks","openapi":"en/webhooks/openapi.json GET /v1/channels/{channelId}/webhooks","href":"/en/webhooks/list-webhooks"},{"title":"Get webhook","openapi":"en/webhooks/openapi.json GET /v1/channels/{channelId}/webhooks/{webhookId}","href":"/en/webhooks/get-webhook"},{"title":"Update webhook","openapi":"en/webhooks/openapi.json PATCH /v1/channels/{channelId}/webhooks/{webhookId}","href":"/en/webhooks/update-webhook"},{"title":"Delete webhook","openapi":"en/webhooks/openapi.json DELETE /v1/channels/{channelId}/webhooks/{webhookId}","href":"/en/webhooks/delete-webhook"}]},{"group":"Templates","pages":[{"title":"Template webhooks","href":"/en/webhooks/template-webhooks"},{"title":"Payload structure","href":"/en/webhooks/template-payloads"},{"title":"Create template webhook","openapi":"en/webhooks/openapi-template.json POST /v1/webhooks","href":"/en/webhooks/create-template-webhook"},{"title":"List template webhooks","openapi":"en/webhooks/openapi-template.json GET /v1/webhooks","href":"/en/webhooks/list-template-webhooks"},{"title":"Get template webhook","openapi":"en/webhooks/openapi-template.json GET /v1/webhooks/{webhookId}","href":"/en/webhooks/get-template-webhook"},{"title":"Update template webhook","openapi":"en/webhooks/openapi-template.json PATCH /v1/webhooks/{webhookId}","href":"/en/webhooks/update-template-webhook"},{"title":"Delete template webhook","openapi":"en/webhooks/openapi-template.json DELETE /v1/webhooks/{webhookId}","href":"/en/webhooks/delete-template-webhook"}]}]}]}]}]},"basePath":"","title":"Connect Meta WhatsApp channel - Hub Message","buildId":"dpl_Fyv1NbzwP68g2bEH2Roy98uY1zmE","deploymentId":"dpl_Fyv1NbzwP68g2bEH2Roy98uY1zmE","dynamics":["c2aa737661","2b790eda92","b0f84f53ff","a9bb46feb3"],"chunks":["OpenApiReferenceProvider-DdEMm2kG.js","utils-BMo572L7.js","cloneDeep-izs3Hzxb.js","_Uint8Array-BVIqJ90l.js","isObjectLike-C8vmzPEN.js","isArray-Dcu1dQ5t.js","utils-C-4m9KAx.js","toString-BX-iyh8G.js","isSymbol-CSH9U2Gm.js","addUniqueKeysToSchema-DPLK2Oq9.js","snippetPresets-BKjfJMC9.js","style-to-object-BY3JEAdk.js","v4-DIgz8zy6.js","conditional-requirements-CFM0id0Q.js","ApiExamples-DTsgtCEj.js","isEqual-BfaiBbcl.js","usePlaygroundInputsStore-C8vmhyQM.js","shallow-r9w8LQGS.js","getApiPlaygroundDisplay-DjPI64HQ.js","CodeSnippet-C8Bvhl16.js","CodeSnippets-BtWUwcMy.js","Page-BIYvYBgk.js","getPastedJson-Dcm_3Pgl.js","icon-BXwrTpjc.js","MethodPill-CcjfVmmy.js","DuplicateIcon-BuKIbXAQ.js","createIcon-DaL9yXsO.js","DynamicMarkdown-Co5nikxh.js","SectionHeading-P4UNTsMZ.js","axios-vUo_bRtp.js","Markdown-CEfymfIH.js","clsx-Dq9TQuNi.js","lib-DuNMoZ05.js","lib-B8HbPgcC.js","html-void-elements-mCSPHezU.js","dist-D2J8knkn.js","katex-YMM-FMeD.js","marked.esm-CZWythHk.js","AssistantPageLink-BgZ2ThuU.js"]}