Create Webhook Endpoint
Webhooks
Create Webhook Endpoint
Create a new webhook endpoint to receive event notifications
POST
Create Webhook Endpoint
The response includes a signing secret that you must store securely. This secret is used to verify webhook authenticity and is only shown once.
Path Parameters
The customer’s external ID (starts with
cus_)Request Body
The HTTPS URL where webhook events will be sent
Array of event types to subscribe to (minimum 1 event)
Optional description for the webhook endpoint (max 500 characters)
Response
Webhook endpoint identifier (starts with
whep_)Always returns
"webhook_endpoint"The webhook URL
Array of subscribed event types
Whether the endpoint is active
The webhook description
Webhook signing secret - Store this securely! Only shown once.
Security warning about storing the secret
ISO 8601 timestamp when created
When the endpoint was last used