Skip to main content
POST
Enable a webhook endpoint

Authorizations

Authorization
string
header
required

Server API key, scoped. pk_test_ keys hit the sandbox tenant.

Headers

Idempotency-Key
string

Optional on non-money POSTs; honoured when sent.

Required string length: 1 - 255
X-Request-Id
string

Optional client correlation id, up to 128 characters. It is not echoed: the response's X-Request-Id is always our own req_… id. We log your value with the request as client_request_id, so support can find a request by either id. A longer value is refused with 400 parameter_invalid.

Maximum string length: 128

Path Parameters

webhook_id
string
required

Webhook endpoint id.

Pattern: ^whe_[0-9A-HJKMNP-TV-Z]{26}$

Response

Enabled.

A customer URL that receives signed event POSTs. Sandbox and live endpoints are separate: an endpoint gets events of its own mode only, and the mode is the credential's.

id
string
required

Endpoint id.

Pattern: ^whe_[0-9A-HJKMNP-TV-Z]{26}$
object
string
required

Always webhook_endpoint.

Allowed value: "webhook_endpoint"
livemode
boolean
required

Mode of the events it receives.

description
string
required

Name shown in the list ("Production backend").

Required string length: 1 - 80
url
string<uri>
required

HTTPS URL.

Maximum string length: 2048
Pattern: ^https://
enabled_events
string[]
required

Event types sent here.

Minimum array length: 1

Event type, <resource>.<event> (e.g. payment.completed). The catalogue is asyncapi/webhooks.yaml and GET /event-types; clients must tolerate new types.

Pattern: ^[a-z_]+(\.[a-z_]+)+$
status
enum<string>
required

enabled or disabled (by a person; nothing is sent, nothing queues).

Available options:
enabled,
disabled
health
enum<string>
required

waiting: no deliveries yet. healthy. failing: the last 3 deliveries failed (the developer is emailed "webhook failing").

Available options:
waiting,
healthy,
failing
stats_7d
object
required

Delivery stats over the last 7 days.

secret_last4
string
required

Last four characters of the signing secret.

created_by
object
required

Who added it.

created_at
string<date-time>
required

Created.

Example:

"2026-10-27T08:41:00Z"

updated_at
string<date-time>
required

Last change.

Example:

"2026-10-27T08:41:00Z"

failing_since
string<date-time>

When health became failing.

Example:

"2026-10-27T08:41:00Z"

last_delivery_at
string<date-time>

Last attempt.

Example:

"2026-10-27T08:41:00Z"