POST
/
api
/
webhooks
/
{type}
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="
}

Authorizations

x-api-key
string
header
required

Path Parameters

type
enum<string>
required

Type of webhook to be created.

Available options:
orders,
bank-accounts,
users

Body

application/json
url
string
required

URL to send the webhook to

userId
string

The user ID of the user that the webhook is being created for

Response

201 - application/json
Created
id
string

Id of the created webhook

secret
string

Webhook secret