secret used to verify the HMAC-SHA256 signature on every delivery — save it immediately, as it cannot be retrieved again. This endpoint requires the webhooks:write permission.
Request
Headers
Bearer token using your API key. Format:
Bearer cs_live_your_keyMust be
application/json.Request body
The HTTPS URL that will receive webhook event payloads. HTTP is accepted in development environments only.
One or more event types to subscribe to. The array must not be empty. Available values:
| Event | Triggered when |
|---|---|
donation.created | A new donation is received |
donation.updated | A donation’s status changes |
subscription.created | A new recurring subscription starts |
subscription.updated | A subscription is modified |
subscription.cancelled | A subscription is cancelled |
subscription.payment_method_updated | A subscription payment method is updated through a hosted update link |
contact.created | A new contact is added |
contact.updated | A contact’s information is updated |
form.created | A new donation form is created |
form.updated | A form’s configuration changes |
Optional human-readable label to help identify this webhook. Useful when you manage multiple endpoints.
Response
201 — created
Unique identifier assigned to the new webhook.
The destination URL you provided.
The event types you subscribed to.
Initial status of the webhook. Always
ACTIVE on creation.The description you provided, or an empty string if omitted.
Unix timestamp (seconds) when the webhook was registered.
null on a newly created webhook — no deliveries have occurred yet.0 on creation.0 on creation.HMAC-SHA256 signing secret for verifying webhook payloads. Shown only once. Use this value to validate the
X-Webhook-Signature header on incoming deliveries.A reminder message confirming that the secret will not be shown again.
400 — bad request
Returned when required fields are missing, theurl is not a valid HTTPS URL, or events is empty.
401 — unauthorized
Returned when your API key is missing, invalid, or lacks thewebhooks:write permission.
Example
Sample response (201)