Unsubscribe a REST hook
Removes a REST hook of your organisation.
DELETE /v1/automation/hooks/{id}
Removes a REST hook of your organisation. Its delivery log goes with it. Revoking the key or OAuth client that made a hook also removes the hook.
| Property | Value |
|---|---|
| Authentication | API key or OAuth access token: Authorization: Bearer ... |
| Scope | responses.read |
| Success | 204 No Content |
Path parameters
| Name | Type | Required | Description |
|---|---|---|---|
id |
string (uuid) | Yes | The hook id. |
Response
204 No Content: no body.
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. |
| 404 | NOT_FOUND |
No REST hook has this id. |
| 429 | RATE_LIMITED |
Too many requests. Wait for the number of seconds in the Retry-After header. |
Example request
curl -X DELETE "https://api.sayvara.com/v1/automation/hooks/3f6c1a2e-8b4d-4c7a-9e21-5d0b7f3a9c10" \
-H "Authorization: Bearer $SAYVARA_API_KEY"Was this page helpful?
Thanks. Need more help? Email support@sayvara.com