> For the complete documentation index, see [llms.txt](https://docs.channex.io/llms.txt). Markdown versions of documentation pages are available by appending `.md` to page URLs; this page is available as [Markdown](https://docs.channex.io/api-v.1-documentation/webhook-collection/delete-webhook-api.md). Agents can also search and read this documentation through its [MCP server](https://docs.channex.io/~gitbook/mcp).

# Delete Webhook API

## Delete a webhook

> Delete a webhook by its identifier. Its delivery log goes with it. A protected\
> webhook cannot be deleted: the request answers \`422\` naming the flag.

```json
{"openapi":"3.1.0","info":{"title":"Channex.io — Public API","version":"0.0.0"},"tags":[{"name":"Webhooks","description":"Push notifications for what happens on an account. A webhook subscribes a callback URL\nto a set of events; when one occurs, Channex sends it a `POST` request.\n\nA webhook watches one property, or — created with `property_id: null` — every property\nof a billing account. A new webhook is inactive until `is_active` is set.\n\n## What is delivered\n\nEvery delivery is a `POST` to `callback_url` with a JSON body of five keys:\n\n- `event` — the event name, one of the values `/webhooks/events` lists.\n- `property_id` — the property the event happened on.\n- `user_id` — the user who caused it, or `null` for events the platform raises itself,\n  which is most of them. Useful for ignoring changes your own integration made.\n- `timestamp` — when the event happened, ISO 8601 UTC with microseconds, e.g.\n  `2026-09-21T13:58:55.587742Z`.\n- `payload` — the event's own data. Present only when the webhook's `send_data` is\n  true; when it is false the key is absent altogether and the other four are all the\n  delivery carries.\n\nA signed webhook carries three `x-hmac-*` headers besides. See the Webhook Signing Keys\nresource for what they hold and how to verify them — the `x-hmac-timestamp` header is\nUnix seconds, not the body's `timestamp`.\n\n## Retries\n\nA delivery is successful when the callback URL answers `2xx`. A `5xx`, a connection\nrefused, a DNS failure, a timeout (30 seconds to connect, 30 to read) or a TLS error is\nretried; a `4xx`, a redirect — which is never followed — and an expired TLS certificate\nare final and are not.\n\nThere are eleven retries after the first attempt, spaced 1 minute, 2, 4, 8, 15, 30\nminutes, then 1, 2, 4, 6 and 10 hours, so the last one lands about 24 hours after the\nevent. Those gaps are the earliest a retry is made, not the exact moment: a retry can\nrun up to a minute later.\n\nDeliveries to one host are made one at a time, so a slow endpoint delays its own queue.\nA webhook whose oldest unresolved failure is 72 hours old is deactivated — `is_active`\nbecomes false, the account is notified by email, and the pending deliveries for that\nhost are dropped. A `4xx` starts that clock as surely as a `5xx` does.\n\n## Order\n\nDeliveries are not ordered: a delivery retried after a failure arrives after ones raised\nlater, so a payload can describe a state older than the one before it. Treat a delivery\nas a signal that something changed rather than as the change itself, and read the\ncurrent state back through the API — `GET /booking_revisions/{id}` for a booking event,\nthe availability and restrictions endpoints for an `ari` one."}],"servers":[{"url":"https://app.channex.io/api/v1","description":"Production server","variables":{}},{"url":"https://staging.channex.io/api/v1","description":"Staging server","variables":{}}],"security":[{"UserApiKeyAuth":[]}],"components":{"securitySchemes":{"UserApiKeyAuth":{"type":"apiKey","in":"header","name":"user-api-key","description":"API key for programmatic access, sent in the `user-api-key` header."}},"schemas":{"Common.Scalars.id":{"type":"string","format":"uuid"},"Common.JsonApi.SuccessMessage":{"type":"object","required":["meta"],"properties":{"meta":{"type":"object","properties":{"message":{"type":"string"}},"required":["message"]}},"description":"Success response carrying only a meta message (no resource body)."},"Common.Errors.Unauthorized":{"type":"object","required":["errors"],"properties":{"errors":{"type":"object","required":["code","title"],"properties":{"code":{"type":"string","enum":["unauthorized"]},"title":{"type":"string","enum":["Unauthorized"]}},"description":"Shape of a single JSON:API error object: a stable machine code plus a human-readable title."}},"description":"Authentication credentials are missing or invalid."},"Common.Errors.NotFound":{"type":"object","required":["errors"],"properties":{"errors":{"type":"object","required":["code","title"],"properties":{"code":{"type":"string","enum":["resource_not_found"]},"title":{"type":"string","enum":["Resource Not Found"]}},"description":"Shape of a single JSON:API error object: a stable machine code plus a human-readable title."}},"description":"The requested resource does not exist."},"Common.Errors.InvalidArguments":{"type":"object","required":["errors"],"properties":{"errors":{"$ref":"#/components/schemas/Common.Errors.InvalidArgumentsObject"}},"description":"The request has missing or invalid arguments; `details` lists the messages per argument."},"Common.Errors.InvalidArgumentsObject":{"type":"object","required":["code","title","details"],"properties":{"code":{"type":"string","enum":["bad_request"]},"title":{"type":"string","enum":["Bad Request"]},"details":{"type":"object","unevaluatedProperties":{"type":"array","items":{"type":"string"}},"description":"Maps each invalid argument to the list of validation messages for that argument."}},"description":"Error object for invalid request arguments, adding per-argument messages."},"Common.Errors.ValidationError":{"type":"object","required":["errors"],"properties":{"errors":{"$ref":"#/components/schemas/Common.Errors.ValidationErrorObject"}},"description":"The request body failed validation."},"Common.Errors.ValidationErrorObject":{"type":"object","required":["code","title","details"],"properties":{"code":{"type":"string","enum":["validation_error"]},"title":{"type":"string","enum":["Validation Error"]},"details":{"type":"object","unevaluatedProperties":{"type":"array","items":{"type":"string"}},"description":"Maps each invalid field to the list of validation messages for that field."}},"description":"Error object for a failed validation, adding per-field messages."}}},"paths":{"/webhooks/{id}":{"delete":{"operationId":"Webhooks_delete","summary":"Delete a webhook","description":"Delete a webhook by its identifier. Its delivery log goes with it. A protected\nwebhook cannot be deleted: the request answers `422` naming the flag.","parameters":[{"name":"id","in":"path","required":true,"schema":{"$ref":"#/components/schemas/Common.Scalars.id"}}],"responses":{"200":{"description":"The request has succeeded.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Common.JsonApi.SuccessMessage"}}}},"401":{"description":"Authentication credentials are missing or invalid.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Common.Errors.Unauthorized"}}}},"404":{"description":"The requested resource does not exist.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Common.Errors.NotFound"}}}},"422":{"description":"The request has missing or invalid arguments; `details` lists the messages per argument.","content":{"application/json":{"schema":{"anyOf":[{"$ref":"#/components/schemas/Common.Errors.InvalidArguments"},{"$ref":"#/components/schemas/Common.Errors.ValidationError"}]}}}}},"tags":["Webhooks"]}}}}
```
