Update a webhook
PUT
/api/v1/webhooks/{id}Changes the address, the subscribed events, or turns the webhook on and off.
All three fields are stored as sent: send the full list of events, not only the new ones.
The API key needs the scopeManage webhooks and resend deliveries
webhooks.manageParameters
| Name | In | Description |
|---|---|---|
idrequiredstring (uuid) | path | Webhook id. |
Request body
| Field | Description |
|---|---|
urlrequiredstring | The https address in your system that receives the events. |
eventsrequiredstring[] | The subscribed events. The names come from List the available events; an unknown name is ignored. |
enabledboolean | false pauses deliveries without deleting the webhook. |
Responses
200The webhook after the change.
application/json
{
"id": "b2d6f0a4-8c1e-4b7a-9d3f-6e2a0c4b8d15",
"businessId": "2ea7ad0d-8e13-4008-9fd8-7c92fe8677f2",
"url": "https://api.exemplo.com.br/webhooks/guria",
"events": "[\"MessageReceived\",\"MessageDelivered\",\"MessageRead\",\"MessageFailed\"]",
"hasSecret": true,
"secretLast4": "0000",
"enabled": true,
"createdAt": "2026-11-25T17:20:14.337145Z",
"updatedAt": null
}400Invalid request: a body that is not JSON, a missing required field or a value in the wrong format.
application/json
{
"error": "validation_failed",
"message": "O campo name é obrigatório."
}401Missing or invalid credentials. The response is the same for a key that does not exist and for a wrong secret; without the X-API-KEY header, it comes with no body.
application/json
{
"error": "unauthorized",
"message": "Credenciais de API inválidas."
}403The key authenticated, but it lacks the scope the route requires, or the plan does not include the feature.
application/json
{
"error": "forbidden",
"message": "A chave de API não tem acesso a esta rota: falta o escopo exigido, ou a rota não aceita chave de API."
}404The record does not exist in this company.
application/json
{
"error": "not_found",
"message": "Registro não encontrado."
}429The requests-per-minute limit was reached. Wait for the time given in the Retry-After header.
application/json
{
"error": "too_many_requests",
"message": "Muitas requisições com esta chave de API. Aguarde o fim da janela e tente novamente."
}