POST /v1/channels/embedded-signup
POST
/v1/channels/embedded-signup
const url = 'https://seu-endereco-da-api/v1/channels/embedded-signup';const options = { method: 'POST', headers: {Authorization: 'Bearer <token>', 'Content-Type': 'application/json'}, body: '{"onboarding":"cloud_api","code":"example","importHistory":true,"wabaId":"example","phoneNumberId":"example","businessId":"example","name":"example","reconnectChannelId":"2489E9AD-2EE2-8E00-8EC9-32D5F69181C0","historyReadConsentVersion":"example"}'};
try { const response = await fetch(url, options); const data = await response.json(); console.log(data);} catch (error) { console.error(error);}curl --request POST \ --url https://seu-endereco-da-api/v1/channels/embedded-signup \ --header 'Authorization: Bearer <token>' \ --header 'Content-Type: application/json' \ --data '{ "onboarding": "cloud_api", "code": "example", "importHistory": true, "wabaId": "example", "phoneNumberId": "example", "businessId": "example", "name": "example", "reconnectChannelId": "2489E9AD-2EE2-8E00-8EC9-32D5F69181C0", "historyReadConsentVersion": "example" }'Permissão que a Chave de acesso precisa: Gerenciar canais (channels:manage).
Authorizations
Seção intitulada “Authorizations”Request Bodyrequired
Seção intitulada “Request Bodyrequired”Media typeapplication/json
object
onboarding
required
Hint from the signup session event; the backend always confirms with Meta
string
code
required
string
importHistory
required
boolean
wabaId
string
phoneNumberId
string
businessId
string
name
string
reconnectChannelId
string format: uuid
historyReadConsentVersion
string
Responses
Seção intitulada “Responses”Invalid_request | code_exchange_failed | waba_required | phone_number_required
Phone_number_taken | waba_belongs_to_another_tenant
Meta_unavailable