POST /v1/channels/{id}/disconnect
POST
/v1/channels/{id}/disconnect
const url = 'https://seu-endereco-da-api/v1/channels/example/disconnect';const options = {method: 'POST', headers: {Authorization: 'Bearer <token>'}};
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/example/disconnect \ --header 'Authorization: Bearer <token>'Permissão que a Chave de acesso precisa: Gerenciar canais (channels:manage).
Authorizations
Seção intitulada “Authorizations”Parameters
Seção intitulada “Parameters”Path Parameters
Seção intitulada “Path Parameters”id
required
string
Responses
Seção intitulada “Responses”Media typeapplication/json
object
coexistence
required
The channel ran in coexistence with the WhatsApp Business app
boolean
finishOnPhone
required
Pt-BR steps the owner still has to finish on the phone; null when there is nothing to do there
string
Example generated
{ "coexistence": true, "finishOnPhone": "example"}