v1
Webhooks

List the available events

GET/api/v1/webhooks/events

Returns the event names this company can subscribe to. Use them in the events field when creating or updating a webhook.

The API key needs the scopeManage webhooks and resend deliverieswebhooks.manage

Responses

200The event names.
application/json
[
  "MessageReceived",
  "MessageSent",
  "MessageDelivered",
  "MessageRead",
  "MessageFailed",
  "TemplateApproved",
  "TemplateRejected",
  "NumberConnected",
  "NumberDisconnected",
  "AccountUpdate",
  "AccountRestricted",
  "AccountBanned",
  "QualityChanged",
  "MmLiteTermsSigned",
  "NameStatusChanged",
  "InsufficientBalance",
  "PaymentConfirmed",
  "PaymentOverdue",
  "PaymentFailed",
  "PaymentRefunded",
  "PaymentCreated",
  "PaymentUpdated"
]
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."
}
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."
}
curl -X GET "https://api.guria.io/api/v1/webhooks/events" \
  -H "X-API-KEY: $GURIA_API_KEY" \
  -H "X-API-SECRET: $GURIA_API_SECRET"
Response · 200
[
  "MessageReceived",
  "MessageSent",
  "MessageDelivered",
  "MessageRead",
  "MessageFailed",
  "TemplateApproved",
  "TemplateRejected",
  "NumberConnected",
  "NumberDisconnected",
  "AccountUpdate",
  "AccountRestricted",
  "AccountBanned",
  "QualityChanged",
  "MmLiteTermsSigned",
  "NameStatusChanged",
  "InsufficientBalance",
  "PaymentConfirmed",
  "PaymentOverdue",
  "PaymentFailed",
  "PaymentRefunded",
  "PaymentCreated",
  "PaymentUpdated"
]