Help centre
العربية Back to sayvara.com

List REST hooks

Returns the REST hooks made with the key or OAuth client you are calling with, with their delivery health.

Updated

GET /v1/automation/hooks

Returns the REST hooks made with the key or OAuth client you are calling with, with their delivery health. After you rotate a key, hooks made with the old key keep delivering but are not listed for the new key. Admins see every hook of the organisation under Settings > API access.

Property Value
Authentication API key or OAuth access token: Authorization: Bearer ...
Scope responses.read
Success 200 OK

Response

200 OK

Field Type Description
items array of object The REST hooks.
items[].id string (uuid) Hook id.
items[].event enum The webhook event. One of response.completed, detractor.flagged, ticket.opened, ticket.updated, ticket.closed.
items[].platform string Tag set when the hook was created.
items[].targetUrl string Your HTTPS URL that receives the events. A public host name: no IP address, no user name or password in the URL.
items[].status enum The hook state. One of active, disabled.
items[].disabledReason enum or null failing when Sayvara switched the hook off after repeated failed deliveries, off when an admin switched it off. One of failing, off.
items[].consecutiveFailures integer Deliveries in a row that failed after all their tries. At least 0.
items[].createdAt string (date-time) When the hook was made.
items[].lastSuccessAt string (date-time) or null The last delivery your URL accepted.
{
  "items": [
    {
      "id": "3f6c1a2e-8b4d-4c7a-9e21-5d0b7f3a9c10",
      "event": "response.completed",
      "platform": "other",
      "targetUrl": "https://example.com/webhooks/sayvara",
      "status": "active",
      "disabledReason": null,
      "consecutiveFailures": 0,
      "createdAt": "2026-11-01T09:30:00.000Z",
      "lastSuccessAt": "2026-11-01T09:31:02.000Z"
    }
  ]
}

Errors

Errors have the body { "code": "...", "message": "...", "requestId": "..." }. See Errors.

Status Code Meaning
401 INVALID_API_KEY The API key or access token is missing, wrong, revoked or expired.
403 API_KEY_SCOPE The key or token does not hold the scope this operation needs.
403 IP_NOT_ALLOWED An OAuth access token was used from an address outside its client's allow-list.
403 ENTITLEMENT_REQUIRED Your plan does not include API access.
429 RATE_LIMITED Too many requests. Wait for the number of seconds in the Retry-After header.

Example request

curl -X GET "https://api.sayvara.com/v1/automation/hooks" \
  -H "Authorization: Bearer $SAYVARA_API_KEY"