> 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/get-webhook-api.md). Agents can also search and read this documentation through its [MCP server](https://docs.channex.io/~gitbook/mcp).

# Get Webhook API

## Retrieve a webhook

> Retrieve a webhook by its identifier.

```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"},"Webhooks.WebhookResource":{"type":"object","required":["type","id","attributes","relationships"],"properties":{"type":{"type":"string","enum":["webhook"]},"id":{"$ref":"#/components/schemas/Common.Scalars.id"},"attributes":{"$ref":"#/components/schemas/Webhooks.Webhook"},"relationships":{"$ref":"#/components/schemas/Webhooks.WebhookRelationships"}},"description":"A webhook resource: the subscription attributes plus the property and account it belongs to."},"Webhooks.Webhook":{"type":"object","required":["id","protected","callback_url","event_mask","request_params","headers","is_active","send_data","is_global","is_signed","signing_key_id"],"properties":{"id":{"allOf":[{"$ref":"#/components/schemas/Common.Scalars.id"}],"description":"Unique webhook identifier. Mirrors the top-level resource `id`."},"activity":{"allOf":[{"$ref":"#/components/schemas/Webhooks.WebhookActivity"}],"description":"Delivery activity statistics, test deliveries not counted. Returned by the list endpoint only, and only for some authentication types."},"protected":{"type":"boolean","description":"Whether the webhook is managed by Channex. Set on the webhooks created for you when you\ninstall an integration app; a protected webhook cannot be updated or deleted through\nthis API. `false` for a webhook you create yourself."},"callback_url":{"type":"string","format":"uri","description":"URL called via POST when a subscribed trigger event occurs. Must carry a scheme and a resolvable host."},"event_mask":{"$ref":"#/components/schemas/Webhooks.EventMask"},"request_params":{"anyOf":[{"type":"object","unevaluatedProperties":{"type":"string"}},{"type":"null"}],"description":"Additional GET query parameters appended to the callback request, or null when none are set."},"headers":{"anyOf":[{"type":"object","unevaluatedProperties":{"type":"string"}},{"type":"null"}],"description":"Custom request headers for the callback request, or null when none are set. Use this\nto authenticate against a protected endpoint, e.g.\n`{ \"Authorization\": \"Basic user:password\" }`."},"is_active":{"type":"boolean","description":"Whether the webhook is active. Only active webhooks receive notifications. `false` by default."},"send_data":{"type":"boolean","description":"Whether to include event payload data in the callback. When `false`, the delivery\ncarries `event`, `property_id`, `user_id` and `timestamp` and no `payload`. `false`\nby default."},"is_global":{"type":"boolean","description":"Whether the webhook receives events from every property of the billing account rather\nthan from one. `false` by default, and fixed after creation: a property-level webhook\ncannot be converted to a global one.\n\nA global and a property-level webhook can cover the same event. When they point at\ndifferent callback URLs both are delivered; when they point at the same one the\ndelivery is made once, with the property-level webhook's settings."},"is_signed":{"type":"boolean","description":"Whether deliveries are signed. When `true`, every callback request carries the\n`x-hmac-timestamp`, `x-hmac-signature-256` and `x-hmac-keys-256` headers, computed\nwith the key referenced by `signing_key_id`. The Webhook Signing Keys resource\ndescribes the signed string and how to verify a delivery. `false` by default."},"signing_key_id":{"anyOf":[{"$ref":"#/components/schemas/Common.Scalars.id"},{"type":"null"}],"description":"UUID of the signing key deliveries are signed with, or null when none is assigned.\nRequired whenever `is_signed` is true; the key must belong to a billing account the\ncaller is a member of. Responses also expose the key, with its masked versions,\nthrough the `signing_key` relationship."}},"description":"A webhook subscription: a callback URL notified when subscribed events occur."},"Webhooks.WebhookActivity":{"type":"object","required":["deliveries","last_attempt","series"],"properties":{"deliveries":{"type":"object","properties":{"response_time":{"type":"object","properties":{"p95_ms":{"anyOf":[{"type":"number","format":"double"},{"type":"null"}],"description":"95th percentile response time in milliseconds. Null when no deliveries have been recorded."}},"required":["p95_ms"]},"success_count":{"allOf":[{"$ref":"#/components/schemas/Common.Scalars.nonNegativeInt"}],"description":"Number of successful deliveries."},"failed_count":{"allOf":[{"$ref":"#/components/schemas/Common.Scalars.nonNegativeInt"}],"description":"Number of failed deliveries."}},"required":["response_time","success_count","failed_count"],"description":"Aggregated delivery counters and response-time statistics."},"last_attempt":{"anyOf":[{"$ref":"#/components/schemas/Webhooks.WebhookLastAttempt"},{"type":"null"}],"description":"Details of the last delivery attempt. Null when no attempts have been made."},"series":{"type":"object","properties":{"timestamp":{"type":"array","items":{"type":"integer","format":"int64"},"description":"Unix epoch timestamps (seconds) for each data point in the series."},"success":{"type":"array","items":{"$ref":"#/components/schemas/Common.Scalars.nonNegativeInt"},"description":"Successful delivery counts per timestamp."},"failed":{"type":"array","items":{"$ref":"#/components/schemas/Common.Scalars.nonNegativeInt"},"description":"Failed delivery counts per timestamp."}},"required":["timestamp","success","failed"],"description":"Time series of delivery counts. The three arrays are parallel and indexed by `timestamp`."}},"description":"Delivery activity statistics for a webhook."},"Common.Scalars.nonNegativeInt":{"type":"integer","format":"int32","minimum":0},"Webhooks.WebhookLastAttempt":{"type":"object","required":["error","success","status_code","attempted_at"],"properties":{"error":{"anyOf":[{"type":"string"},{"type":"null"}],"description":"Error reason when the attempt failed (e.g. `timeout`, `proxy_error`), or null on success."},"success":{"type":"boolean","description":"Whether the delivery attempt succeeded."},"status_code":{"anyOf":[{"type":"integer","format":"int32"},{"type":"null"}],"description":"HTTP status code returned by the callback URL. Null when the request failed before a response was received (e.g. timeout or proxy error)."},"attempted_at":{"type":"string","format":"date-time","description":"When the attempt was made (ISO 8601, no timezone offset)."}},"description":"Details of the most recent webhook delivery attempt."},"Webhooks.EventMask":{"type":"string","description":"Event mask. Use `*` for every event, or a semicolon-separated list of event names,\ne.g. `booking_new;booking_modification;booking_cancellation`. An unknown name\nrejects the request, naming it."},"Webhooks.WebhookRelationships":{"type":"object","required":["billing_account","organization"],"properties":{"property":{"type":"object","properties":{"data":{"$ref":"#/components/schemas/Webhooks.EmbeddedWebhookProperty"}},"required":["data"],"description":"The property the webhook watches. Absent for a global webhook."},"billing_account":{"type":"object","properties":{"data":{"$ref":"#/components/schemas/Webhooks.EmbeddedWebhookBillingAccount"}},"required":["data"],"description":"The billing account the webhook belongs to."},"organization":{"type":"object","properties":{"data":{"$ref":"#/components/schemas/Webhooks.EmbeddedWebhookOrganization"}},"required":["data"],"description":"The organization the webhook belongs to."},"signing_key":{"type":"object","properties":{"data":{"$ref":"#/components/schemas/SigningKeys.SigningKeyResource"}},"required":["data"],"description":"The signing key deliveries are signed with, with its versions masked. Absent when no key is assigned."}},"description":"Relationships of a webhook: the property it watches, and the account it belongs to."},"Webhooks.EmbeddedWebhookProperty":{"type":"object","required":["id","type"],"properties":{"id":{"$ref":"#/components/schemas/Common.Scalars.id"},"type":{"type":"string","enum":["property"]}},"description":"The property a webhook belongs to."},"Webhooks.EmbeddedWebhookBillingAccount":{"type":"object","required":["id","type"],"properties":{"id":{"$ref":"#/components/schemas/Common.Scalars.id"},"type":{"type":"string","enum":["billing_account"]}},"description":"The billing account a webhook belongs to."},"Webhooks.EmbeddedWebhookOrganization":{"type":"object","required":["id","type"],"properties":{"id":{"$ref":"#/components/schemas/Common.Scalars.id"},"type":{"type":"string","enum":["organization"]}},"description":"The organization a webhook belongs to."},"SigningKeys.SigningKeyResource":{"type":"object","required":["type","id","attributes","relationships"],"properties":{"type":{"type":"string","enum":["signing_key"]},"id":{"$ref":"#/components/schemas/Common.Scalars.id"},"attributes":{"$ref":"#/components/schemas/SigningKeys.SigningKey"},"relationships":{"$ref":"#/components/schemas/SigningKeys.SigningKeyRelationships"}},"description":"A signing key resource with its masked versions."},"SigningKeys.SigningKey":{"type":"object","required":["id","inserted_at","updated_at","rotated_at","title"],"properties":{"id":{"allOf":[{"$ref":"#/components/schemas/Common.Scalars.id"}],"description":"Unique signing key identifier. Mirrors the top-level resource `id`."},"inserted_at":{"type":"string","format":"date-time","description":"When the key was created (ISO 8601, no timezone offset)."},"updated_at":{"type":"string","format":"date-time","description":"When the key was last updated (ISO 8601, no timezone offset)."},"rotated_at":{"anyOf":[{"type":"string"},{"type":"null"}],"format":"date-time","description":"When the key was last rotated (ISO 8601, no timezone offset). Null until the first rotation."},"title":{"type":"string","description":"Human-readable name of the key."}},"description":"An HMAC signing key for webhook deliveries. The secrets live in the key's\nversions and are masked to `...` + last 6 everywhere except the create\nand generate responses."},"SigningKeys.SigningKeyRelationships":{"type":"object","required":["signing_key_versions","webhooks"],"properties":{"signing_key_versions":{"type":"object","properties":{"data":{"type":"array","items":{"$ref":"#/components/schemas/SigningKeys.SigningKeyVersionResource"}}},"required":["data"],"description":"The key's secret versions — the current one first, then oldest first. Secrets are masked to `...` plus their last 6 characters."},"webhooks":{"type":"object","properties":{"data":{"type":"array","items":{"$ref":"#/components/schemas/SigningKeys.SigningKeyWebhookResource"}}},"required":["data"],"description":"The webhooks that sign their deliveries with the key, oldest first. Empty when no webhook uses it."}},"description":"Relationships of a signing key: its secret versions and the webhooks using it."},"SigningKeys.SigningKeyVersionResource":{"type":"object","required":["type","id","attributes"],"properties":{"type":{"type":"string","enum":["signing_key_version"]},"id":{"$ref":"#/components/schemas/Common.Scalars.id"},"attributes":{"$ref":"#/components/schemas/SigningKeys.SigningKeyVersion"}},"description":"A secret version of a signing key. Carries no relationships."},"SigningKeys.SigningKeyVersion":{"type":"object","required":["id","is_current","secret","inserted_at"],"properties":{"id":{"allOf":[{"$ref":"#/components/schemas/Common.Scalars.id"}],"description":"Unique version identifier. Mirrors the resource `id`."},"is_current":{"type":"boolean","description":"Whether this is the key's current version. A key has one current version and at most\none pending version awaiting rotation."},"secret":{"type":"string","description":"The version's secret masked to `...` plus its last 6 characters — the label\nidentifying the version in the `x-hmac-keys-256` delivery header and in API\nresponses. The full secret is never rendered here."},"inserted_at":{"type":"string","format":"date-time","description":"When the version was created (ISO 8601, no timezone offset)."}},"description":"A secret version of a signing key."},"SigningKeys.SigningKeyWebhookResource":{"type":"object","required":["type","id","attributes"],"properties":{"type":{"type":"string","enum":["webhook"]},"id":{"$ref":"#/components/schemas/Common.Scalars.id"},"attributes":{"$ref":"#/components/schemas/SigningKeys.SigningKeyWebhook"}},"description":"A webhook that signs its deliveries with the key."},"SigningKeys.SigningKeyWebhook":{"type":"object","required":["id","callback_url","event_mask","is_global"],"properties":{"id":{"allOf":[{"$ref":"#/components/schemas/Common.Scalars.id"}],"description":"Unique webhook identifier. Mirrors the resource `id`."},"callback_url":{"type":"string","format":"uri","description":"URL the webhook delivers to."},"event_mask":{"type":"string","description":"Events the webhook subscribes to: `*` for every event, or a semicolon-separated list of event names."},"is_global":{"type":"boolean","description":"Whether the webhook covers every property of its billing account rather than one."}},"description":"A webhook using the signing key, reduced to its identifying attributes."},"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."}}},"paths":{"/webhooks/{id}":{"get":{"operationId":"Webhooks_read","summary":"Retrieve a webhook","description":"Retrieve a webhook by its identifier.","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":{"type":"object","required":["data"],"properties":{"data":{"$ref":"#/components/schemas/Webhooks.WebhookResource"}},"description":"JSON:API document wrapping a single resource."}}}},"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":{"$ref":"#/components/schemas/Common.Errors.InvalidArguments"}}}}},"tags":["Webhooks"]}}}}
```
