Pular para o conteúdo

POST /v1/channels/{id}/pair

POST
/v1/channels/{id}/pair
curl --request POST \
--url https://seu-endereco-da-api/v1/channels/example/pair \
--header 'Authorization: Bearer <token>' \
--header 'Content-Type: application/json' \
--data '{ "relinkDevice": true, "importHistory": true, "phoneNumber": "example" }'

Permissão que a Chave de acesso precisa: Gerenciar canais (channels:manage).

id
required
string
Media typeapplication/json
object
relinkDevice

Required with importHistory on a connected channel: the gateway unlinks the phone and pairs it again, because WhatsApp only sends the history to a freshly linked device

boolean
importHistory
required
boolean
phoneNumber
string

Example generated

{
"relinkDevice": true,
"importHistory": true,
"phoneNumber": "example"
}