Webhooks
11 operations in the WP Waterfall API.
- getGet a delivery with its attempts
- postRedeliver an event
- getList webhook endpoints
- postCreate a webhook endpoint
- getThe event catalog
- getGet a webhook endpoint
- patchChange a webhook endpoint
- deleteDelete a webhook endpoint
- getThe delivery log of an endpoint
- postRotate the signing secret
- postSend a test event
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
| Name | In | Type | Description |
|---|---|---|---|
id required | path | string (uuid) | The id of the webhook delivery. |
Responses
| Status | Body | Description |
|---|---|---|
200 | WebhookDeliveryDetail | Delivery, event body, and every attempt |
400 | Problem | The request could not be read: bad JSON, a bad header, or a malformed value. |
401 | Problem | The credentials are missing, expired, or revoked. The WWW-Authenticate header names the Bearer scheme. |
403 | Problem | The credentials are valid but may not do this: the role, the API key scope, or a required confirmation is missing. |
404 | Problem | The thing in the path does not exist, or it belongs to another company. The answer is the same for both. |
422 | Problem | The request was read but a value is not valid, or a required confirmation or Idempotency-Key is missing. The errors list names each field. |
429 | Problem | A rate limit was reached. Wait Retry-After seconds. Limits are per caller, per company, and per address. |
4XX | Problem | Problem Details (RFC 9457) |
200 response fields
| Name | Type | Description |
|---|---|---|
id required | string (uuid) | UUIDv7 |
endpoint_id required | string (uuid) | UUIDv7 |
event_id required | string (uuid) | UUIDv7 |
event_type required | string | An event type from the catalog. A string, so a retired event still shows in the log. |
status required | string | One of: pending, delivering, succeeded, failed, dead. |
attempts required | integer | Range: 0 to any. |
last_status_code required | integer or null | |
next_attempt_at required | string or null (date-time) | |
test required | boolean | |
created_at required | string (date-time) | |
updated_at required | string (date-time) | |
event required | WebhookEnvelope | The body of every delivery. |
event.id required | string (uuid) | The event id. The same id arrives on every retry and redelivery of the event. |
event.type required | string | An event type from the catalog. Read as a string so an event retired later still parses. |
event.version required | number | |
event.created_at required | string (date-time) | |
event.company_id required | string | |
event.data required | object | |
attempts_log required | array of object | |
attempts_log[].id required | string (uuid) | UUIDv7 |
attempts_log[].number required | integer | 1 for the first try. Redeliveries keep counting. |
attempts_log[].manual required | boolean | True when a person asked for this attempt. |
attempts_log[].status_code required | integer or null | |
attempts_log[].request required | object | The 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
| Name | In | Type | Description |
|---|---|---|---|
id required | path | string (uuid) | The id of the webhook delivery. |
Idempotency-Key required | header | string | Send 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
| Status | Body | Description |
|---|---|---|
202 | WebhookDelivery | The delivery, queued again |
400 | Problem | The request could not be read: bad JSON, a bad header, or a malformed value. |
401 | Problem | The credentials are missing, expired, or revoked. The WWW-Authenticate header names the Bearer scheme. |
403 | Problem | The credentials are valid but may not do this: the role, the API key scope, or a required confirmation is missing. |
404 | Problem | The thing in the path does not exist, or it belongs to another company. The answer is the same for both. |
409 | Problem | The current state does not allow this: the same change is already running, or another change got there first. |
422 | Problem | The request was read but a value is not valid, or a required confirmation or Idempotency-Key is missing. The errors list names each field. |
429 | Problem | A rate limit was reached. Wait Retry-After seconds. Limits are per caller, per company, and per address. |
4XX | Problem | Problem Details (RFC 9457) |
202 response fields
| Name | Type | Description |
|---|---|---|
id required | string (uuid) | UUIDv7 |
endpoint_id required | string (uuid) | UUIDv7 |
event_id required | string (uuid) | UUIDv7 |
event_type required | string | An event type from the catalog. A string, so a retired event still shows in the log. |
status required | string | One of: pending, delivering, succeeded, failed, dead. |
attempts required | integer | Range: 0 to any. |
last_status_code required | integer or null | |
next_attempt_at required | string or null (date-time) | |
test required | boolean | |
created_at required | string (date-time) | |
updated_at required | string (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
| Name | In | Type | Description |
|---|---|---|---|
limit | query | integer | How many rows to return in one page: 1 to 200, and 50 when left out. Default: 50. Range: 1 to 200. |
cursor | query | string | The next_cursor of the page before. Leave it out for the first page. |
Responses
| Status | Body | Description |
|---|---|---|
200 | WebhookEndpointList | Endpoints |
400 | Problem | The request could not be read: bad JSON, a bad header, or a malformed value. |
401 | Problem | The credentials are missing, expired, or revoked. The WWW-Authenticate header names the Bearer scheme. |
403 | Problem | The credentials are valid but may not do this: the role, the API key scope, or a required confirmation is missing. |
422 | Problem | The request was read but a value is not valid, or a required confirmation or Idempotency-Key is missing. The errors list names each field. |
429 | Problem | A rate limit was reached. Wait Retry-After seconds. Limits are per caller, per company, and per address. |
4XX | Problem | Problem Details (RFC 9457) |
200 response fields
| Name | Type | Description |
|---|---|---|
data required | array of WebhookEndpoint | The rows of this page. |
data[].id required | string (uuid) | UUIDv7 |
data[].url required | string (uri) | |
data[].company_ids required | array or null | The 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 required | string | How the message is written. json is signed. The chat formats are not. One of: json, slack, discord, teams. |
data[].description required | string | |
data[].events required | array of string | Event 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 required | string | One of: enabled, disabled. |
data[].disabled_reason required | string or null | Why WP Waterfall turned the endpoint off, or null. |
data[].last_delivery_at required | string or null (date-time) | |
data[].last_success_at required | string or null (date-time) | |
data[].consecutive_failures required | integer | Dead deliveries in a row. WP Waterfall disables the endpoint after five. Range: 0 to any. |
data[].previous_secret_expires_at required | string or null (date-time) | True while a rotated secret still verifies. |
data[].created_at required | string (date-time) | |
data[].updated_at required | string (date-time) | |
next_cursor required | string or null | Send 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
| Name | In | Type | Description |
|---|---|---|---|
Idempotency-Key required | header | string | Send 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
| Name | Type | Description |
|---|---|---|
url required | string (uri) | |
company_ids | array of string | The 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. |
format | string | Where the messages go: json (default, signed), slack, discord, or teams. One of: json, slack, discord, teams. Default: json. |
description | string | Default: . |
events | array of one of string, string | |
enabled | boolean | Default: true. |
Responses
| Status | Body | Description |
|---|---|---|
201 | CreatedWebhookEndpoint | Endpoint with its secret |
400 | Problem | The request could not be read: bad JSON, a bad header, or a malformed value. |
401 | Problem | The credentials are missing, expired, or revoked. The WWW-Authenticate header names the Bearer scheme. |
403 | Problem | The credentials are valid but may not do this: the role, the API key scope, or a required confirmation is missing. |
409 | Problem | The current state does not allow this: the same change is already running, or another change got there first. |
422 | Problem | The request was read but a value is not valid, or a required confirmation or Idempotency-Key is missing. The errors list names each field. |
429 | Problem | A rate limit was reached. Wait Retry-After seconds. Limits are per caller, per company, and per address. |
4XX | Problem | Problem Details (RFC 9457) |
201 response fields
| Name | Type | Description |
|---|---|---|
id required | string (uuid) | UUIDv7 |
url required | string (uri) | |
company_ids required | array or null | The 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 required | string | How the message is written. json is signed. The chat formats are not. One of: json, slack, discord, teams. |
description required | string | |
events required | array of string | Event types from the catalog, or ["*"]. Read as strings so an endpoint that still names an event retired later does not break the list. |
status required | string | One of: enabled, disabled. |
disabled_reason required | string or null | Why WP Waterfall turned the endpoint off, or null. |
last_delivery_at required | string or null (date-time) | |
last_success_at required | string or null (date-time) | |
consecutive_failures required | integer | Dead deliveries in a row. WP Waterfall disables the endpoint after five. Range: 0 to any. |
previous_secret_expires_at required | string or null (date-time) | True while a rotated secret still verifies. |
created_at required | string (date-time) | |
updated_at required | string (date-time) | |
secret required | string |
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
| Name | In | Type | Description |
|---|---|---|---|
limit | query | integer | How many rows to return in one page: at most 200, and 200 when left out. Default: 200. Range: 1 to 200. |
cursor | query | string | The next_cursor of the page before. Leave it out for the first page. |
Responses
| Status | Body | Description |
|---|---|---|
200 | WebhookEventCatalog | Event catalog |
400 | Problem | The request could not be read: bad JSON, a bad header, or a malformed value. |
401 | Problem | The credentials are missing, expired, or revoked. The WWW-Authenticate header names the Bearer scheme. |
403 | Problem | The credentials are valid but may not do this: the role, the API key scope, or a required confirmation is missing. |
422 | Problem | The request was read but a value is not valid, or a required confirmation or Idempotency-Key is missing. The errors list names each field. |
429 | Problem | A rate limit was reached. Wait Retry-After seconds. Limits are per caller, per company, and per address. |
4XX | Problem | Problem Details (RFC 9457) |
200 response fields
| Name | Type | Description |
|---|---|---|
data required | array of object | |
data[].type required | string | 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. |
data[].group required | string | |
data[].description required | string | |
data[].kind required | string | failure is something that went wrong or needs attention. The dashboard's "Failures only" ticks these. One of: failure, success, info. |
data[].version required | integer | |
next_cursor | string 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
| Name | In | Type | Description |
|---|---|---|---|
id required | path | string (uuid) | The id of the webhook endpoint. |
Responses
| Status | Body | Description |
|---|---|---|
200 | WebhookEndpoint | Endpoint |
400 | Problem | The request could not be read: bad JSON, a bad header, or a malformed value. |
401 | Problem | The credentials are missing, expired, or revoked. The WWW-Authenticate header names the Bearer scheme. |
403 | Problem | The credentials are valid but may not do this: the role, the API key scope, or a required confirmation is missing. |
404 | Problem | The thing in the path does not exist, or it belongs to another company. The answer is the same for both. |
422 | Problem | The request was read but a value is not valid, or a required confirmation or Idempotency-Key is missing. The errors list names each field. |
429 | Problem | A rate limit was reached. Wait Retry-After seconds. Limits are per caller, per company, and per address. |
4XX | Problem | Problem Details (RFC 9457) |
200 response fields
| Name | Type | Description |
|---|---|---|
id required | string (uuid) | UUIDv7 |
url required | string (uri) | |
company_ids required | array or null | The 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 required | string | How the message is written. json is signed. The chat formats are not. One of: json, slack, discord, teams. |
description required | string | |
events required | array of string | Event types from the catalog, or ["*"]. Read as strings so an endpoint that still names an event retired later does not break the list. |
status required | string | One of: enabled, disabled. |
disabled_reason required | string or null | Why WP Waterfall turned the endpoint off, or null. |
last_delivery_at required | string or null (date-time) | |
last_success_at required | string or null (date-time) | |
consecutive_failures required | integer | Dead deliveries in a row. WP Waterfall disables the endpoint after five. Range: 0 to any. |
previous_secret_expires_at required | string or null (date-time) | True while a rotated secret still verifies. |
created_at required | string (date-time) | |
updated_at required | string (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
| Name | In | Type | Description |
|---|---|---|---|
id required | path | string (uuid) | The id of the webhook endpoint. |
Idempotency-Key | header | string | Optional 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
| Name | Type | Description |
|---|---|---|
url | string (uri) | |
company_ids | array or null | Replaces 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. |
format | string | One of: json, slack, discord, teams. |
description | string | |
events | array of one of string, string | |
enabled | boolean |
Responses
| Status | Body | Description |
|---|---|---|
200 | WebhookEndpoint | Endpoint |
400 | Problem | The request could not be read: bad JSON, a bad header, or a malformed value. |
401 | Problem | The credentials are missing, expired, or revoked. The WWW-Authenticate header names the Bearer scheme. |
403 | Problem | The credentials are valid but may not do this: the role, the API key scope, or a required confirmation is missing. |
404 | Problem | The thing in the path does not exist, or it belongs to another company. The answer is the same for both. |
409 | Problem | The current state does not allow this: the same change is already running, or another change got there first. |
422 | Problem | The request was read but a value is not valid, or a required confirmation or Idempotency-Key is missing. The errors list names each field. |
429 | Problem | A rate limit was reached. Wait Retry-After seconds. Limits are per caller, per company, and per address. |
4XX | Problem | Problem Details (RFC 9457) |
200 response fields
| Name | Type | Description |
|---|---|---|
id required | string (uuid) | UUIDv7 |
url required | string (uri) | |
company_ids required | array or null | The 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 required | string | How the message is written. json is signed. The chat formats are not. One of: json, slack, discord, teams. |
description required | string | |
events required | array of string | Event types from the catalog, or ["*"]. Read as strings so an endpoint that still names an event retired later does not break the list. |
status required | string | One of: enabled, disabled. |
disabled_reason required | string or null | Why WP Waterfall turned the endpoint off, or null. |
last_delivery_at required | string or null (date-time) | |
last_success_at required | string or null (date-time) | |
consecutive_failures required | integer | Dead deliveries in a row. WP Waterfall disables the endpoint after five. Range: 0 to any. |
previous_secret_expires_at required | string or null (date-time) | True while a rotated secret still verifies. |
created_at required | string (date-time) | |
updated_at required | string (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
| Name | In | Type | Description |
|---|---|---|---|
id required | path | string (uuid) | The id of the webhook endpoint. |
confirm | query | string | An 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
| Status | Body | Description |
|---|---|---|
204 | Deleted | |
400 | Problem | The request could not be read: bad JSON, a bad header, or a malformed value. |
401 | Problem | The credentials are missing, expired, or revoked. The WWW-Authenticate header names the Bearer scheme. |
403 | Problem | The credentials are valid but may not do this: the role, the API key scope, or a required confirmation is missing. |
404 | Problem | The thing in the path does not exist, or it belongs to another company. The answer is the same for both. |
409 | Problem | The current state does not allow this: the same change is already running, or another change got there first. |
422 | Problem | The request was read but a value is not valid, or a required confirmation or Idempotency-Key is missing. The errors list names each field. |
429 | Problem | A rate limit was reached. Wait Retry-After seconds. Limits are per caller, per company, and per address. |
4XX | Problem | Problem 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
| Name | In | Type | Description |
|---|---|---|---|
id required | path | string (uuid) | The id of the webhook endpoint. |
limit | query | integer | How many rows to return in one page: 1 to 200, and 50 when left out. Default: 50. Range: 1 to 200. |
cursor | query | string | The next_cursor of the page before. Leave it out for the first page. |
status | query | string | One of: pending, delivering, succeeded, failed, dead. |
event_type | query | string | 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. |
Responses
| Status | Body | Description |
|---|---|---|
200 | WebhookDeliveryList | Deliveries |
400 | Problem | The request could not be read: bad JSON, a bad header, or a malformed value. |
401 | Problem | The credentials are missing, expired, or revoked. The WWW-Authenticate header names the Bearer scheme. |
403 | Problem | The credentials are valid but may not do this: the role, the API key scope, or a required confirmation is missing. |
404 | Problem | The thing in the path does not exist, or it belongs to another company. The answer is the same for both. |
422 | Problem | The request was read but a value is not valid, or a required confirmation or Idempotency-Key is missing. The errors list names each field. |
429 | Problem | A rate limit was reached. Wait Retry-After seconds. Limits are per caller, per company, and per address. |
4XX | Problem | Problem Details (RFC 9457) |
200 response fields
| Name | Type | Description |
|---|---|---|
data required | array of WebhookDelivery | The rows of this page. |
data[].id required | string (uuid) | UUIDv7 |
data[].endpoint_id required | string (uuid) | UUIDv7 |
data[].event_id required | string (uuid) | UUIDv7 |
data[].event_type required | string | An event type from the catalog. A string, so a retired event still shows in the log. |
data[].status required | string | One of: pending, delivering, succeeded, failed, dead. |
data[].attempts required | integer | Range: 0 to any. |
data[].last_status_code required | integer or null | |
data[].next_attempt_at required | string or null (date-time) | |
data[].test required | boolean | |
data[].created_at required | string (date-time) | |
data[].updated_at required | string (date-time) | |
next_cursor required | string or null | Send 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
| Name | In | Type | Description |
|---|---|---|---|
id required | path | string (uuid) | The id of the webhook endpoint. |
Idempotency-Key required | header | string | Send 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. |
confirm | query | string | An 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
| Status | Body | Description |
|---|---|---|
200 | CreatedWebhookEndpoint | Endpoint with the new secret |
400 | Problem | The request could not be read: bad JSON, a bad header, or a malformed value. |
401 | Problem | The credentials are missing, expired, or revoked. The WWW-Authenticate header names the Bearer scheme. |
403 | Problem | The credentials are valid but may not do this: the role, the API key scope, or a required confirmation is missing. |
404 | Problem | The thing in the path does not exist, or it belongs to another company. The answer is the same for both. |
409 | Problem | The current state does not allow this: the same change is already running, or another change got there first. |
422 | Problem | The request was read but a value is not valid, or a required confirmation or Idempotency-Key is missing. The errors list names each field. |
429 | Problem | A rate limit was reached. Wait Retry-After seconds. Limits are per caller, per company, and per address. |
4XX | Problem | Problem Details (RFC 9457) |
200 response fields
| Name | Type | Description |
|---|---|---|
id required | string (uuid) | UUIDv7 |
url required | string (uri) | |
company_ids required | array or null | The 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 required | string | How the message is written. json is signed. The chat formats are not. One of: json, slack, discord, teams. |
description required | string | |
events required | array of string | Event types from the catalog, or ["*"]. Read as strings so an endpoint that still names an event retired later does not break the list. |
status required | string | One of: enabled, disabled. |
disabled_reason required | string or null | Why WP Waterfall turned the endpoint off, or null. |
last_delivery_at required | string or null (date-time) | |
last_success_at required | string or null (date-time) | |
consecutive_failures required | integer | Dead deliveries in a row. WP Waterfall disables the endpoint after five. Range: 0 to any. |
previous_secret_expires_at required | string or null (date-time) | True while a rotated secret still verifies. |
created_at required | string (date-time) | |
updated_at required | string (date-time) | |
secret required | string |
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
| Name | In | Type | Description |
|---|---|---|---|
id required | path | string (uuid) | The id of the webhook endpoint. |
Idempotency-Key required | header | string | Send 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
| Name | Type | Description |
|---|---|---|
event_type | string | Defaults 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
| Status | Body | Description |
|---|---|---|
202 | WebhookDelivery | The queued delivery |
400 | Problem | The request could not be read: bad JSON, a bad header, or a malformed value. |
401 | Problem | The credentials are missing, expired, or revoked. The WWW-Authenticate header names the Bearer scheme. |
403 | Problem | The credentials are valid but may not do this: the role, the API key scope, or a required confirmation is missing. |
404 | Problem | The thing in the path does not exist, or it belongs to another company. The answer is the same for both. |
409 | Problem | The current state does not allow this: the same change is already running, or another change got there first. |
422 | Problem | The request was read but a value is not valid, or a required confirmation or Idempotency-Key is missing. The errors list names each field. |
429 | Problem | A rate limit was reached. Wait Retry-After seconds. Limits are per caller, per company, and per address. |
4XX | Problem | Problem Details (RFC 9457) |
202 response fields
| Name | Type | Description |
|---|---|---|
id required | string (uuid) | UUIDv7 |
endpoint_id required | string (uuid) | UUIDv7 |
event_id required | string (uuid) | UUIDv7 |
event_type required | string | An event type from the catalog. A string, so a retired event still shows in the log. |
status required | string | One of: pending, delivering, succeeded, failed, dead. |
attempts required | integer | Range: 0 to any. |
last_status_code required | integer or null | |
next_attempt_at required | string or null (date-time) | |
test required | boolean | |
created_at required | string (date-time) | |
updated_at required | string (date-time) |