Skip to main content
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)
See Webhook Events for the event envelope and payload details.

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 null
string
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 null
string
Identifier of the actor that last updated the endpoint, or null
string
Timestamp of the most recent successful delivery, or null if no delivery has been recorded
string
Deletion timestamp. This is null for a newly created endpoint.

Response Example