Create a webhook endpoint
Webhooks
Create a Webhook Endpoint
POST
Create a webhook endpoint
Register a webhook endpoint to receive event notifications. The signing secret is only returned once at creation.
Response
Authorizations
Use your secret API key as a Bearer token.
Keys are prefixed: sk_live_ (production) or sk_test_ (sandbox).
Body
application/json
HTTPS endpoint to receive events
Example:
"https://example.com/webhooks/billing"
Event types to subscribe to
Minimum array length:
1Available options:
checkout.created, checkout.payment_detected, checkout.confirming, checkout.completed, checkout.expired, checkout.failed Human-readable label
Maximum string length:
256Response
Webhook endpoint created
Unique identifier (prefixed we_)
Available options:
checkout.created, checkout.payment_detected, checkout.confirming, checkout.completed, checkout.expired, checkout.failed HMAC signing secret (prefixed whsec_).
Only returned on creation — store it securely.
Available options:
active, disabled