Skip to content

Webhooks

11 operations in the WP Waterfall API.

Get a delivery with its attempts

get/webhook-deliveries/{id}Permalink to Get a delivery with its attempts

  • Scope: webhooks:read
  • Permission: webhooks.manage

Returns one delivery with the event body it carried and every attempt in attempts_log, oldest first. Answers 404 when the delivery is not on one of the caller's endpoints.

Parameters

NameInTypeDescription
id requiredpathstring (uuid)The id of the webhook delivery.

Responses

StatusBodyDescription
200WebhookDeliveryDetailDelivery, event body, and every attempt
400ProblemThe request could not be read: bad JSON, a bad header, or a malformed value.
401ProblemThe credentials are missing, expired, or revoked. The WWW-Authenticate header names the Bearer scheme.
403ProblemThe credentials are valid but may not do this: the role, the API key scope, or a required confirmation is missing.
404ProblemThe thing in the path does not exist, or it belongs to another company. The answer is the same for both.
422ProblemThe request was read but a value is not valid, or a required confirmation or Idempotency-Key is missing. The errors list names each field.
429ProblemA rate limit was reached. Wait Retry-After seconds. Limits are per caller, per company, and per address.
4XXProblemProblem Details (RFC 9457)

200 response fields

NameTypeDescription
id requiredstring (uuid)UUIDv7
endpoint_id requiredstring (uuid)UUIDv7
event_id requiredstring (uuid)UUIDv7
event_type requiredstringAn event type from the catalog. A string, so a retired event still shows in the log.
status requiredstringOne of: pending, delivering, succeeded, failed, dead.
attempts requiredintegerRange: 0 to any.
last_status_code requiredinteger or null
next_attempt_at requiredstring or null (date-time)
test requiredboolean
created_at requiredstring (date-time)
updated_at requiredstring (date-time)
event requiredWebhookEnvelopeThe body of every delivery.
event.id requiredstring (uuid)The event id. The same id arrives on every retry and redelivery of the event.
event.type requiredstringAn event type from the catalog. Read as a string so an event retired later still parses.
event.version requirednumber
event.created_at requiredstring (date-time)
event.company_id requiredstring
event.data requiredobject
attempts_log requiredarray of object
attempts_log[].id requiredstring (uuid)UUIDv7
attempts_log[].number requiredinteger1 for the first try. Redeliveries keep counting.
attempts_log[].manual requiredbooleanTrue when a person asked for this attempt.
attempts_log[].status_code requiredinteger or null
attempts_log[].request requiredobjectThe request headers WP Waterfall sent, with the body length. The body is the event envelope. url holds the host the request went to, such as hooks.slack.com, and never the rest of the address: the path of a chat webhook is a credential.

Redeliver an event

post/webhook-deliveries/{id}/redeliverPermalink to Redeliver an event

  • Scope: webhooks:write
  • Permission: webhooks.manage

Queues a new attempt of the same event to the same endpoint.

Parameters

NameInTypeDescription
id requiredpathstring (uuid)The id of the webhook delivery.
Idempotency-Key requiredheaderstringSend a fresh unique value on every POST: a POST without it answers 422. The answer is stored for 24 hours, so a retry with the same key and body returns the first answer, and the same key with a different body returns 422.

Responses

StatusBodyDescription
202WebhookDeliveryThe delivery, queued again
400ProblemThe request could not be read: bad JSON, a bad header, or a malformed value.
401ProblemThe credentials are missing, expired, or revoked. The WWW-Authenticate header names the Bearer scheme.
403ProblemThe credentials are valid but may not do this: the role, the API key scope, or a required confirmation is missing.
404ProblemThe thing in the path does not exist, or it belongs to another company. The answer is the same for both.
409ProblemThe current state does not allow this: the same change is already running, or another change got there first.
422ProblemThe request was read but a value is not valid, or a required confirmation or Idempotency-Key is missing. The errors list names each field.
429ProblemA rate limit was reached. Wait Retry-After seconds. Limits are per caller, per company, and per address.
4XXProblemProblem Details (RFC 9457)

202 response fields

NameTypeDescription
id requiredstring (uuid)UUIDv7
endpoint_id requiredstring (uuid)UUIDv7
event_id requiredstring (uuid)UUIDv7
event_type requiredstringAn event type from the catalog. A string, so a retired event still shows in the log.
status requiredstringOne of: pending, delivering, succeeded, failed, dead.
attempts requiredintegerRange: 0 to any.
last_status_code requiredinteger or null
next_attempt_at requiredstring or null (date-time)
test requiredboolean
created_at requiredstring (date-time)
updated_at requiredstring (date-time)

List webhook endpoints

get/webhooksPermalink to List webhook endpoints

  • Scope: webhooks:read
  • Permission: webhooks.manage

The signed-in person's own endpoints, whatever workspace is selected.

Parameters

NameInTypeDescription
limitqueryintegerHow many rows to return in one page: 1 to 200, and 50 when left out. Default: 50. Range: 1 to 200.
cursorquerystringThe next_cursor of the page before. Leave it out for the first page.

Responses

StatusBodyDescription
200WebhookEndpointListEndpoints
400ProblemThe request could not be read: bad JSON, a bad header, or a malformed value.
401ProblemThe credentials are missing, expired, or revoked. The WWW-Authenticate header names the Bearer scheme.
403ProblemThe credentials are valid but may not do this: the role, the API key scope, or a required confirmation is missing.
422ProblemThe request was read but a value is not valid, or a required confirmation or Idempotency-Key is missing. The errors list names each field.
429ProblemA rate limit was reached. Wait Retry-After seconds. Limits are per caller, per company, and per address.
4XXProblemProblem Details (RFC 9457)

200 response fields

NameTypeDescription
data requiredarray of WebhookEndpointThe rows of this page.
data[].id requiredstring (uuid)UUIDv7
data[].url requiredstring (uri)
data[].company_ids requiredarray or nullThe companies the endpoint reaches. Null means every company the person belongs to, now and later. The endpoint belongs to the person, whatever workspace is selected.
data[].format requiredstringHow the message is written. json is signed. The chat formats are not. One of: json, slack, discord, teams.
data[].description requiredstring
data[].events requiredarray of stringEvent types from the catalog, or ["*"]. Read as strings so an endpoint that still names an event retired later does not break the list.
data[].status requiredstringOne of: enabled, disabled.
data[].disabled_reason requiredstring or nullWhy WP Waterfall turned the endpoint off, or null.
data[].last_delivery_at requiredstring or null (date-time)
data[].last_success_at requiredstring or null (date-time)
data[].consecutive_failures requiredintegerDead deliveries in a row. WP Waterfall disables the endpoint after five. Range: 0 to any.
data[].previous_secret_expires_at requiredstring or null (date-time)True while a rotated secret still verifies.
data[].created_at requiredstring (date-time)
data[].updated_at requiredstring (date-time)
next_cursor requiredstring or nullSend it as cursor to get the next page. Null on the last page.

Create a webhook endpoint

post/webhooksPermalink to Create a webhook endpoint

  • Scope: webhooks:write
  • Permission: webhooks.manage

Registers a receiver URL with an event filter for the signed-in person, whatever workspace is selected. company_ids names the companies it reaches (left out: every company the person belongs to). The endpoint receives a company's events only while the person is a member with a role that holds webhooks.manage there. The answer carries the signing secret once. Private, loopback, and link-local targets are refused.

Parameters

NameInTypeDescription
Idempotency-Key requiredheaderstringSend a fresh unique value on every POST: a POST without it answers 422. The answer is stored for 24 hours, so a retry with the same key and body returns the first answer, and the same key with a different body returns 422.

Request body application/json, required, CreateWebhookEndpointRequest

Fields

NameTypeDescription
url requiredstring (uri)
company_idsarray of stringThe companies the endpoint reaches. Left out, it reaches every company the person belongs to, now and later. Each id must be a company the person belongs to. At most 100.
formatstringWhere the messages go: json (default, signed), slack, discord, or teams. One of: json, slack, discord, teams. Default: json.
descriptionstringDefault: .
eventsarray of one of string, string
enabledbooleanDefault: true.

Responses

StatusBodyDescription
201CreatedWebhookEndpointEndpoint with its secret
400ProblemThe request could not be read: bad JSON, a bad header, or a malformed value.
401ProblemThe credentials are missing, expired, or revoked. The WWW-Authenticate header names the Bearer scheme.
403ProblemThe credentials are valid but may not do this: the role, the API key scope, or a required confirmation is missing.
409ProblemThe current state does not allow this: the same change is already running, or another change got there first.
422ProblemThe request was read but a value is not valid, or a required confirmation or Idempotency-Key is missing. The errors list names each field.
429ProblemA rate limit was reached. Wait Retry-After seconds. Limits are per caller, per company, and per address.
4XXProblemProblem Details (RFC 9457)

201 response fields

NameTypeDescription
id requiredstring (uuid)UUIDv7
url requiredstring (uri)
company_ids requiredarray or nullThe companies the endpoint reaches. Null means every company the person belongs to, now and later. The endpoint belongs to the person, whatever workspace is selected.
format requiredstringHow the message is written. json is signed. The chat formats are not. One of: json, slack, discord, teams.
description requiredstring
events requiredarray of stringEvent types from the catalog, or ["*"]. Read as strings so an endpoint that still names an event retired later does not break the list.
status requiredstringOne of: enabled, disabled.
disabled_reason requiredstring or nullWhy WP Waterfall turned the endpoint off, or null.
last_delivery_at requiredstring or null (date-time)
last_success_at requiredstring or null (date-time)
consecutive_failures requiredintegerDead deliveries in a row. WP Waterfall disables the endpoint after five. Range: 0 to any.
previous_secret_expires_at requiredstring or null (date-time)True while a rotated secret still verifies.
created_at requiredstring (date-time)
updated_at requiredstring (date-time)
secret requiredstring

The event catalog

get/webhooks/eventsPermalink to The event catalog

  • Scope: webhooks:read
  • Permission: webhooks.manage

Every event type WP Waterfall can send, with its group, description, and payload version.

Parameters

NameInTypeDescription
limitqueryintegerHow many rows to return in one page: at most 200, and 200 when left out. Default: 200. Range: 1 to 200.
cursorquerystringThe next_cursor of the page before. Leave it out for the first page.

Responses

StatusBodyDescription
200WebhookEventCatalogEvent catalog
400ProblemThe request could not be read: bad JSON, a bad header, or a malformed value.
401ProblemThe credentials are missing, expired, or revoked. The WWW-Authenticate header names the Bearer scheme.
403ProblemThe credentials are valid but may not do this: the role, the API key scope, or a required confirmation is missing.
422ProblemThe request was read but a value is not valid, or a required confirmation or Idempotency-Key is missing. The errors list names each field.
429ProblemA rate limit was reached. Wait Retry-After seconds. Limits are per caller, per company, and per address.
4XXProblemProblem Details (RFC 9457)

200 response fields

NameTypeDescription
data requiredarray of object
data[].type requiredstringOne of: job.succeeded, job.failed, job.cancelled, site.created, site.updated, site.deleted, site.status_changed, environment.created, environment.provisioned, environment.deleted, environment.cloned, environment.pushed, environment.promoted, git.push_received, build.succeeded, build.failed, deployment.succeeded, deployment.failed, backup.completed, backup.failed, backup.restored, domain.added, domain.attached, domain.error, domain.removed, domain.primary_changed, ssl.issued, ssl.failed, ssl.expiring, dns.zone.created, dns.zone.active, dns.zone.deleted, dns.records.changed, php.version_changed, plugin.updated, theme.updated, security.bot_protection_changed, security.ip_rules_changed, security.sftp_user_changed, security.ssh_changed, security.two_factor_changed, subscription.created, subscription.updated, subscription.cancelled, invoice.paid, invoice.payment_failed, billing.state_changed, usage.threshold, addon.enabled, addon.disabled, auto_update.completed, auto_update.failed, auto_update.run.started, auto_update.run.completed, auto_update.run.failed, auto_update.run.needs_confirmation, auto_update.run.approved, auto_update.run.rejected, auto_update.run.expired, migration.status_changed, integrity.issue_found, integrity.clean, site.down, site.up, node.created, node.deleted, webhook.test.
data[].group requiredstring
data[].description requiredstring
data[].kind requiredstringfailure is something that went wrong or needs attention. The dashboard's "Failures only" ticks these. One of: failure, success, info.
data[].version requiredinteger
next_cursorstring or null

Get a webhook endpoint

get/webhooks/{id}Permalink to Get a webhook endpoint

  • Scope: webhooks:read
  • Permission: webhooks.manage

Returns one webhook endpoint: its URL, format, events, status, the times of its last delivery and last success, and company_ids, the companies it reaches (null for every company the person belongs to). An endpoint belongs to a person, and an API key acts as the person who made it. Another person's endpoint answers 404.

Parameters

NameInTypeDescription
id requiredpathstring (uuid)The id of the webhook endpoint.

Responses

StatusBodyDescription
200WebhookEndpointEndpoint
400ProblemThe request could not be read: bad JSON, a bad header, or a malformed value.
401ProblemThe credentials are missing, expired, or revoked. The WWW-Authenticate header names the Bearer scheme.
403ProblemThe credentials are valid but may not do this: the role, the API key scope, or a required confirmation is missing.
404ProblemThe thing in the path does not exist, or it belongs to another company. The answer is the same for both.
422ProblemThe request was read but a value is not valid, or a required confirmation or Idempotency-Key is missing. The errors list names each field.
429ProblemA rate limit was reached. Wait Retry-After seconds. Limits are per caller, per company, and per address.
4XXProblemProblem Details (RFC 9457)

200 response fields

NameTypeDescription
id requiredstring (uuid)UUIDv7
url requiredstring (uri)
company_ids requiredarray or nullThe companies the endpoint reaches. Null means every company the person belongs to, now and later. The endpoint belongs to the person, whatever workspace is selected.
format requiredstringHow the message is written. json is signed. The chat formats are not. One of: json, slack, discord, teams.
description requiredstring
events requiredarray of stringEvent types from the catalog, or ["*"]. Read as strings so an endpoint that still names an event retired later does not break the list.
status requiredstringOne of: enabled, disabled.
disabled_reason requiredstring or nullWhy WP Waterfall turned the endpoint off, or null.
last_delivery_at requiredstring or null (date-time)
last_success_at requiredstring or null (date-time)
consecutive_failures requiredintegerDead deliveries in a row. WP Waterfall disables the endpoint after five. Range: 0 to any.
previous_secret_expires_at requiredstring or null (date-time)True while a rotated secret still verifies.
created_at requiredstring (date-time)
updated_at requiredstring (date-time)

Change a webhook endpoint

patch/webhooks/{id}Permalink to Change a webhook endpoint

  • Scope: webhooks:write
  • Permission: webhooks.manage

Change the URL, the companies it reaches, the description, or the event filter, or enable and disable it.

Parameters

NameInTypeDescription
id requiredpathstring (uuid)The id of the webhook endpoint.
Idempotency-KeyheaderstringOptional on PUT and PATCH. When the call starts a job, a retry with the same key, path, and body within 24 hours returns that job instead of starting another. A different path or body starts a new job.

Request body application/json, required, PatchWebhookEndpointRequest

Fields

NameTypeDescription
urlstring (uri)
company_idsarray or nullReplaces the companies the endpoint reaches. Each must be a company the person belongs to. Null reaches every company the person belongs to, now and later.
formatstringOne of: json, slack, discord, teams.
descriptionstring
eventsarray of one of string, string
enabledboolean

Responses

StatusBodyDescription
200WebhookEndpointEndpoint
400ProblemThe request could not be read: bad JSON, a bad header, or a malformed value.
401ProblemThe credentials are missing, expired, or revoked. The WWW-Authenticate header names the Bearer scheme.
403ProblemThe credentials are valid but may not do this: the role, the API key scope, or a required confirmation is missing.
404ProblemThe thing in the path does not exist, or it belongs to another company. The answer is the same for both.
409ProblemThe current state does not allow this: the same change is already running, or another change got there first.
422ProblemThe request was read but a value is not valid, or a required confirmation or Idempotency-Key is missing. The errors list names each field.
429ProblemA rate limit was reached. Wait Retry-After seconds. Limits are per caller, per company, and per address.
4XXProblemProblem Details (RFC 9457)

200 response fields

NameTypeDescription
id requiredstring (uuid)UUIDv7
url requiredstring (uri)
company_ids requiredarray or nullThe companies the endpoint reaches. Null means every company the person belongs to, now and later. The endpoint belongs to the person, whatever workspace is selected.
format requiredstringHow the message is written. json is signed. The chat formats are not. One of: json, slack, discord, teams.
description requiredstring
events requiredarray of stringEvent types from the catalog, or ["*"]. Read as strings so an endpoint that still names an event retired later does not break the list.
status requiredstringOne of: enabled, disabled.
disabled_reason requiredstring or nullWhy WP Waterfall turned the endpoint off, or null.
last_delivery_at requiredstring or null (date-time)
last_success_at requiredstring or null (date-time)
consecutive_failures requiredintegerDead deliveries in a row. WP Waterfall disables the endpoint after five. Range: 0 to any.
previous_secret_expires_at requiredstring or null (date-time)True while a rotated secret still verifies.
created_at requiredstring (date-time)
updated_at requiredstring (date-time)

Delete a webhook endpoint

delete/webhooks/{id}Permalink to Delete a webhook endpoint

  • Scope: webhooks:write
  • Permission: webhooks.manage
  • Needs a confirmation

Removes the endpoint and its delivery log. Needs confirm=true.

Parameters

NameInTypeDescription
id requiredpathstring (uuid)The id of the webhook endpoint.
confirmquerystringAn API key must say yes to this change: confirm=true here, or confirm: true in the JSON body. Without it the call answers 422 and changes nothing. One of: true.

Responses

StatusBodyDescription
204Deleted
400ProblemThe request could not be read: bad JSON, a bad header, or a malformed value.
401ProblemThe credentials are missing, expired, or revoked. The WWW-Authenticate header names the Bearer scheme.
403ProblemThe credentials are valid but may not do this: the role, the API key scope, or a required confirmation is missing.
404ProblemThe thing in the path does not exist, or it belongs to another company. The answer is the same for both.
409ProblemThe current state does not allow this: the same change is already running, or another change got there first.
422ProblemThe request was read but a value is not valid, or a required confirmation or Idempotency-Key is missing. The errors list names each field.
429ProblemA rate limit was reached. Wait Retry-After seconds. Limits are per caller, per company, and per address.
4XXProblemProblem Details (RFC 9457)

The delivery log of an endpoint

get/webhooks/{id}/deliveriesPermalink to The delivery log of an endpoint

  • Scope: webhooks:read
  • Permission: webhooks.manage

Newest first, with the status, attempt count, and last response code. Kept 30 days.

Parameters

NameInTypeDescription
id requiredpathstring (uuid)The id of the webhook endpoint.
limitqueryintegerHow many rows to return in one page: 1 to 200, and 50 when left out. Default: 50. Range: 1 to 200.
cursorquerystringThe next_cursor of the page before. Leave it out for the first page.
statusquerystringOne of: pending, delivering, succeeded, failed, dead.
event_typequerystringOne of: job.succeeded, job.failed, job.cancelled, site.created, site.updated, site.deleted, site.status_changed, environment.created, environment.provisioned, environment.deleted, environment.cloned, environment.pushed, environment.promoted, git.push_received, build.succeeded, build.failed, deployment.succeeded, deployment.failed, backup.completed, backup.failed, backup.restored, domain.added, domain.attached, domain.error, domain.removed, domain.primary_changed, ssl.issued, ssl.failed, ssl.expiring, dns.zone.created, dns.zone.active, dns.zone.deleted, dns.records.changed, php.version_changed, plugin.updated, theme.updated, security.bot_protection_changed, security.ip_rules_changed, security.sftp_user_changed, security.ssh_changed, security.two_factor_changed, subscription.created, subscription.updated, subscription.cancelled, invoice.paid, invoice.payment_failed, billing.state_changed, usage.threshold, addon.enabled, addon.disabled, auto_update.completed, auto_update.failed, auto_update.run.started, auto_update.run.completed, auto_update.run.failed, auto_update.run.needs_confirmation, auto_update.run.approved, auto_update.run.rejected, auto_update.run.expired, migration.status_changed, integrity.issue_found, integrity.clean, site.down, site.up, node.created, node.deleted, webhook.test.

Responses

StatusBodyDescription
200WebhookDeliveryListDeliveries
400ProblemThe request could not be read: bad JSON, a bad header, or a malformed value.
401ProblemThe credentials are missing, expired, or revoked. The WWW-Authenticate header names the Bearer scheme.
403ProblemThe credentials are valid but may not do this: the role, the API key scope, or a required confirmation is missing.
404ProblemThe thing in the path does not exist, or it belongs to another company. The answer is the same for both.
422ProblemThe request was read but a value is not valid, or a required confirmation or Idempotency-Key is missing. The errors list names each field.
429ProblemA rate limit was reached. Wait Retry-After seconds. Limits are per caller, per company, and per address.
4XXProblemProblem Details (RFC 9457)

200 response fields

NameTypeDescription
data requiredarray of WebhookDeliveryThe rows of this page.
data[].id requiredstring (uuid)UUIDv7
data[].endpoint_id requiredstring (uuid)UUIDv7
data[].event_id requiredstring (uuid)UUIDv7
data[].event_type requiredstringAn event type from the catalog. A string, so a retired event still shows in the log.
data[].status requiredstringOne of: pending, delivering, succeeded, failed, dead.
data[].attempts requiredintegerRange: 0 to any.
data[].last_status_code requiredinteger or null
data[].next_attempt_at requiredstring or null (date-time)
data[].test requiredboolean
data[].created_at requiredstring (date-time)
data[].updated_at requiredstring (date-time)
next_cursor requiredstring or nullSend it as cursor to get the next page. Null on the last page.

Rotate the signing secret

post/webhooks/{id}/rotate-secretPermalink to Rotate the signing secret

  • Scope: webhooks:write
  • Permission: webhooks.manage
  • Needs a confirmation

Issues a new secret, shown once. Deliveries carry signatures for both secrets for 24 hours. Needs confirm=true.

Parameters

NameInTypeDescription
id requiredpathstring (uuid)The id of the webhook endpoint.
Idempotency-Key requiredheaderstringSend a fresh unique value on every POST: a POST without it answers 422. The answer is stored for 24 hours, so a retry with the same key and body returns the first answer, and the same key with a different body returns 422.
confirmquerystringAn API key must say yes to this change: confirm=true here, or confirm: true in the JSON body. Without it the call answers 422 and changes nothing. One of: true.

Responses

StatusBodyDescription
200CreatedWebhookEndpointEndpoint with the new secret
400ProblemThe request could not be read: bad JSON, a bad header, or a malformed value.
401ProblemThe credentials are missing, expired, or revoked. The WWW-Authenticate header names the Bearer scheme.
403ProblemThe credentials are valid but may not do this: the role, the API key scope, or a required confirmation is missing.
404ProblemThe thing in the path does not exist, or it belongs to another company. The answer is the same for both.
409ProblemThe current state does not allow this: the same change is already running, or another change got there first.
422ProblemThe request was read but a value is not valid, or a required confirmation or Idempotency-Key is missing. The errors list names each field.
429ProblemA rate limit was reached. Wait Retry-After seconds. Limits are per caller, per company, and per address.
4XXProblemProblem Details (RFC 9457)

200 response fields

NameTypeDescription
id requiredstring (uuid)UUIDv7
url requiredstring (uri)
company_ids requiredarray or nullThe companies the endpoint reaches. Null means every company the person belongs to, now and later. The endpoint belongs to the person, whatever workspace is selected.
format requiredstringHow the message is written. json is signed. The chat formats are not. One of: json, slack, discord, teams.
description requiredstring
events requiredarray of stringEvent types from the catalog, or ["*"]. Read as strings so an endpoint that still names an event retired later does not break the list.
status requiredstringOne of: enabled, disabled.
disabled_reason requiredstring or nullWhy WP Waterfall turned the endpoint off, or null.
last_delivery_at requiredstring or null (date-time)
last_success_at requiredstring or null (date-time)
consecutive_failures requiredintegerDead deliveries in a row. WP Waterfall disables the endpoint after five. Range: 0 to any.
previous_secret_expires_at requiredstring or null (date-time)True while a rotated secret still verifies.
created_at requiredstring (date-time)
updated_at requiredstring (date-time)
secret requiredstring

Send a test event

post/webhooks/{id}/testPermalink to Send a test event

  • Scope: webhooks:write
  • Permission: webhooks.manage

Queues one delivery of a sample event to this endpoint only.

Parameters

NameInTypeDescription
id requiredpathstring (uuid)The id of the webhook endpoint.
Idempotency-Key requiredheaderstringSend a fresh unique value on every POST: a POST without it answers 422. The answer is stored for 24 hours, so a retry with the same key and body returns the first answer, and the same key with a different body returns 422.

Request body application/json, required, SendTestWebhookRequest

Fields

NameTypeDescription
event_typestringDefaults to webhook.test. Any catalog event sends its sample payload. One of: job.succeeded, job.failed, job.cancelled, site.created, site.updated, site.deleted, site.status_changed, environment.created, environment.provisioned, environment.deleted, environment.cloned, environment.pushed, environment.promoted, git.push_received, build.succeeded, build.failed, deployment.succeeded, deployment.failed, backup.completed, backup.failed, backup.restored, domain.added, domain.attached, domain.error, domain.removed, domain.primary_changed, ssl.issued, ssl.failed, ssl.expiring, dns.zone.created, dns.zone.active, dns.zone.deleted, dns.records.changed, php.version_changed, plugin.updated, theme.updated, security.bot_protection_changed, security.ip_rules_changed, security.sftp_user_changed, security.ssh_changed, security.two_factor_changed, subscription.created, subscription.updated, subscription.cancelled, invoice.paid, invoice.payment_failed, billing.state_changed, usage.threshold, addon.enabled, addon.disabled, auto_update.completed, auto_update.failed, auto_update.run.started, auto_update.run.completed, auto_update.run.failed, auto_update.run.needs_confirmation, auto_update.run.approved, auto_update.run.rejected, auto_update.run.expired, migration.status_changed, integrity.issue_found, integrity.clean, site.down, site.up, node.created, node.deleted, webhook.test. Default: webhook.test.

Responses

StatusBodyDescription
202WebhookDeliveryThe queued delivery
400ProblemThe request could not be read: bad JSON, a bad header, or a malformed value.
401ProblemThe credentials are missing, expired, or revoked. The WWW-Authenticate header names the Bearer scheme.
403ProblemThe credentials are valid but may not do this: the role, the API key scope, or a required confirmation is missing.
404ProblemThe thing in the path does not exist, or it belongs to another company. The answer is the same for both.
409ProblemThe current state does not allow this: the same change is already running, or another change got there first.
422ProblemThe request was read but a value is not valid, or a required confirmation or Idempotency-Key is missing. The errors list names each field.
429ProblemA rate limit was reached. Wait Retry-After seconds. Limits are per caller, per company, and per address.
4XXProblemProblem Details (RFC 9457)

202 response fields

NameTypeDescription
id requiredstring (uuid)UUIDv7
endpoint_id requiredstring (uuid)UUIDv7
event_id requiredstring (uuid)UUIDv7
event_type requiredstringAn event type from the catalog. A string, so a retired event still shows in the log.
status requiredstringOne of: pending, delivering, succeeded, failed, dead.
attempts requiredintegerRange: 0 to any.
last_status_code requiredinteger or null
next_attempt_at requiredstring or null (date-time)
test requiredboolean
created_at requiredstring (date-time)
updated_at requiredstring (date-time)