Register Webhook
Registers a webhook subscription: the action to be notified about, the destination
URL, and the token that is sent in the Webhook-Token and Authorization headers
on delivery.
/api/webhooksAuth: RequiredRequest Body
actionstringRequiredThe event class to be notified about. One of deposit, withdrawal, order,
trade or market.
tokenstringRequiredA value you choose. It is sent back on every delivery, in both the
Webhook-Token and Authorization headers. See Webhook Deliveries.
urlstringRequiredWebhook destination URL
Response
The subscription.
idnumberRequiredThe subscription id.
actionstringRequiredThe event the subscription is for — see Webhook Deliveries.
tokenstringRequiredThe value sent back on every delivery, in both the Webhook-Token and
Authorization headers, so you can tell that a call came from us. See Webhook Deliveries.
urlstringRequiredThe endpoint deliveries are sent to.
updated_atstringRequiredWhen the record last changed.
created_atstringRequiredWhen the record was created.
Errors
Beyond the shared errors:
| Code | Meaning |
|---|---|
1001 | action is not one of deposit, withdrawal, order, trade, market |