cURL
curl --request POST \ --url https://app.sandbox.rio.trade/api/webhooks/{type} \ --header 'Content-Type: application/json' \ --header 'x-api-key: <api-key>' \ --data '{ "userId": "66290ac8bd3903485989f82e", "url": "<string>" }'
{ "id": "66733d33222710ab2785dc62", "secret": "IgAeeIIorKQ86gAGItsmY0slzhxRY1Gvj/VIJz8DtIs=" }
Type of webhook to be created.
orders
bank-accounts
users
URL to send the webhook to
The user ID of the user that the webhook is being created for
"66290ac8bd3903485989f82e"
Created
Id of the created webhook
"66733d33222710ab2785dc62"
Webhook secret
"IgAeeIIorKQ86gAGItsmY0slzhxRY1Gvj/VIJz8DtIs="