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 is shown only once. Store it securely and treat it as an opaque value.
Path Parameters
string
required
The customer’s external ID (starts with
cus_)Request Body
string
required
The HTTPS URL where webhook events will be sent
array
required
Event types to subscribe to. At least one event is required.Supported HOP events are
deposit.received, deposit.returned, withdraw.created,
withdraw.completed, withdraw.failed, withdraw.cancelled, account.created, and account.updated.string
Optional description for the webhook endpoint (maximum 255 characters)
Response
string
Webhook endpoint identifier (starts with
wh_)string
Always returns
"webhook_endpoint"string
The webhook delivery URL
array
Subscribed event types
string
The webhook description, or
nullstring
Webhook signing secret. This field is returned only when the endpoint is created.
string
Security warning about storing the secret
string
ISO 8601 creation timestamp
string
ISO 8601 last-update timestamp
string
Identifier of the actor that created the endpoint, or
nullstring
Identifier of the actor that last updated the endpoint, or
nullstring
Timestamp of the most recent successful delivery, or
null if no delivery has been recordedstring
Deletion timestamp. This is
null for a newly created endpoint.