Remover webhook global
curl --request DELETE \
--url https://cloud.datafyapi.com.br/channels/whatsapp/global-webhook \
--header 'Authorization: Bearer <token>'const options = {method: 'DELETE', headers: {Authorization: 'Bearer <token>'}};
fetch('https://cloud.datafyapi.com.br/channels/whatsapp/global-webhook', options)
.then(res => res.json())
.then(res => console.log(res))
.catch(err => console.error(err));import requests
url = "https://cloud.datafyapi.com.br/channels/whatsapp/global-webhook"
headers = {"Authorization": "Bearer <token>"}
response = requests.delete(url, headers=headers)
print(response.text){
"ok": true
}{
"statusCode": 401,
"message": "Token de conta ausente ou inválido"
}{
"statusCode": 403,
"message": "Sua assinatura precisa estar ativa para usar a API. Acesse o painel para ativá-la."
}{
"statusCode": 404,
"message": "Nenhum webhook global configurado"
}Webhook global
Remover webhook global
Remove o webhook global da conta.
DELETE
/
channels
/
whatsapp
/
global-webhook
Remover webhook global
curl --request DELETE \
--url https://cloud.datafyapi.com.br/channels/whatsapp/global-webhook \
--header 'Authorization: Bearer <token>'const options = {method: 'DELETE', headers: {Authorization: 'Bearer <token>'}};
fetch('https://cloud.datafyapi.com.br/channels/whatsapp/global-webhook', options)
.then(res => res.json())
.then(res => console.log(res))
.catch(err => console.error(err));import requests
url = "https://cloud.datafyapi.com.br/channels/whatsapp/global-webhook"
headers = {"Authorization": "Bearer <token>"}
response = requests.delete(url, headers=headers)
print(response.text){
"ok": true
}{
"statusCode": 401,
"message": "Token de conta ausente ou inválido"
}{
"statusCode": 403,
"message": "Sua assinatura precisa estar ativa para usar a API. Acesse o painel para ativá-la."
}{
"statusCode": 404,
"message": "Nenhum webhook global configurado"
}