Delete a webhook
DELETE /v1/webhooks/{webhook_id}
Read as Markdown ↗DELETE /v1/webhooks/{webhook_id}
Requires an API key: Authorization: Bearer YOUR_CREDENTIAL.
Deletes the webhook and stops its deliveries. Past attempts stay visible in the event view, with a null webhook_id.
Parameters
| Parameter | Location | Required | Type | Meaning |
|---|---|---|---|---|
webhook_id | path | Yes | string | Cherami resource ID returned by the API. |
curl example
Supply CHERAMI_API_KEY privately.
curl --silent --show-error --include --request DELETE \
"https://cherami.to/v1/webhooks/WEBHOOK_ID" \
--header "Authorization: Bearer $CHERAMI_API_KEY"Responses
HTTP 200
Success.
X-Request-ID: Identifies this request; include it when reporting a problem.
Content type: application/json.
{
"id": "11111111-1111-4111-8111-111111111111",
"status": "deleted"
}HTTP 401
unauthorized: Send a valid API key as Authorization: Bearer <key>. If the key stopped working, get a new one through recovery.
X-Request-ID: Identifies this request; include it when reporting a problem.WWW-Authenticate:"Bearer"
Content type: application/json.
HTTP 404
not_found: The resource does not exist or does not belong to this account. A reply or forward source must also be in the sending inbox.
X-Request-ID: Identifies this request; include it when reporting a problem.
Content type: application/json.
HTTP 409
webhook_operation_in_progress: Another change to this webhook is in progress. Retry in a minute.
X-Request-ID: Identifies this request; include it when reporting a problem.
Content type: application/json.
HTTP 503
webhooks_unavailable: Webhook management failed. If it was a change, it may have been applied: list or read the webhooks before repeating it.
X-Request-ID: Identifies this request; include it when reporting a problem.
Content type: application/json.
Schema: WebhookDeletion
deleted: the webhook is gone. pending: removal finishes in the background; repeating the delete is safe.
| Field | Required | Type | Meaning and constraints |
|---|---|---|---|
id | Yes | string | Cherami resource ID. |
status | Yes | "deleted" or "pending" |
Schema: Error
| Field | Required | Type | Meaning and constraints |
|---|---|---|---|
error | Yes | object |
error fields
| Field | Required | Type | Meaning and constraints |
|---|---|---|---|
code | Yes | string | Code to handle. Handle a code you don't recognize by its HTTP status. |
message | Yes | string | Explanation of this case; its wording can change. |