Create webhook endpoint
Creates a developer-managed webhook endpoint. The signing secret is returned once in the response and cannot be retrieved again.
Authorizations
Store-scoped API key. Prefix with sk_live_.
Example: Authorization: Bearer sk_live_EXAMPLE_DO_NOT_USE
Body
Required. HTTPS URL on your server that accepts POST requests. Must respond with HTTP 2xx when delivery succeeds.
Optional. Label for this endpoint in your dashboard. Defaults to "Default" if omitted.
1Optional. Which events to send (e.g. invoice.paid, invoice.expired).
Defaults to standard invoice lifecycle events if omitted.
Response
Webhook endpoint created
Response immediately after creating a webhook endpoint. The signing secret is shown only once.
Webhook endpoint ID (wh_...).
^(inv_|txn_|plink_|wh_|whd_|evt_|int_)[0-9a-z]{20,32}$Endpoint display name.
Destination URL for webhook deliveries.
Signing secret. Store this securely; it is shown only at creation.
"0123456789abcdef0123456789abcdef0123456789abcdef0123456789abcdef"
Prefix of the secret for later identification.
"01234567"
Subscribed event types.
Reminder to save the secret before leaving the creation flow.
"Save this secret now. It will not be shown again."