Skip to main content
Registers an endpoint that Blockra will POST events to. Requires the webhooks:write scope. See Webhooks for the payload shape and signature verification.
The signing secret (whsec_…) is returned once, in this response, and never again. Store it securely — you need it to verify webhook signatures.

Request

POST https://api.blockra.io/webhooks

Body parameters

url
string
required
The HTTPS endpoint to deliver events to.
events
array
required
The events to subscribe to. One or more of payment.created, payment.confirming, payment.completed, payment.expired, payment.refunded, payout.completed.

Response

id
string
The endpoint ID, prefixed whk_.
url
string
The delivery URL.
events
array
The subscribed events.
secret
string
The signing secret (whsec_…). Returned only here, on creation.
is_active
boolean
Whether the endpoint is receiving events.
created_at
string
ISO-8601 creation time.