Register Webhook
Registers a webhook subscription: the action to be notified about, the destination URL, and the token that is sent as the Authorization header on delivery.
POST
/api/webhooksAuth: RequiredRequest Body
actionstringRequiredThe event class to be notified about. One of deposit, withdrawal, order,
trade or market.
tokenstringRequiredToken used as Authorization header in webhook calls
urlstringRequiredWebhook destination URL
In progress
The response fields for this endpoint are still being written up. Until then, the Swagger UI lets you run the call and see the actual response.
Errors
Beyond the shared errors:
| Code | Meaning |
|---|---|
1001 | action is not one of deposit, withdrawal, order, trade, market |