Excluir um webhook de um telefone
curl --request DELETE \
--url https://cloud.watahub.dev/v1/phones/{phoneNumberId}/webhooks/{webhookId} \
--header 'Authorization: Bearer <token>'const options = {method: 'DELETE', headers: {Authorization: 'Bearer <token>'}};
fetch('https://cloud.watahub.dev/v1/phones/{phoneNumberId}/webhooks/{webhookId}', options)
.then(res => res.json())
.then(res => console.log(res))
.catch(err => console.error(err));import requests
url = "https://cloud.watahub.dev/v1/phones/{phoneNumberId}/webhooks/{webhookId}"
headers = {"Authorization": "Bearer <token>"}
response = requests.delete(url, headers=headers)
print(response.text){
"success": true
}{
"error": "<string>"
}{
"error": "<string>"
}{
"error": "<string>"
}{
"error": "<string>"
}{
"error": "<string>"
}Referência da API
Excluir um webhook de um telefone
Excluir um webhook de um telefone
DELETE
/
v1
/
phones
/
{phoneNumberId}
/
webhooks
/
{webhookId}
Excluir um webhook de um telefone
curl --request DELETE \
--url https://cloud.watahub.dev/v1/phones/{phoneNumberId}/webhooks/{webhookId} \
--header 'Authorization: Bearer <token>'const options = {method: 'DELETE', headers: {Authorization: 'Bearer <token>'}};
fetch('https://cloud.watahub.dev/v1/phones/{phoneNumberId}/webhooks/{webhookId}', options)
.then(res => res.json())
.then(res => console.log(res))
.catch(err => console.error(err));import requests
url = "https://cloud.watahub.dev/v1/phones/{phoneNumberId}/webhooks/{webhookId}"
headers = {"Authorization": "Bearer <token>"}
response = requests.delete(url, headers=headers)
print(response.text){
"success": true
}{
"error": "<string>"
}{
"error": "<string>"
}{
"error": "<string>"
}{
"error": "<string>"
}{
"error": "<string>"
}Esta página foi útil?