Skip to main content
POST
/
webhooks
Create Webhook
curl --request POST \
  --url https://api.{your-broker}.slate-labs.com/webhooks \
  --header 'Content-Type: application/json' \
  --data '
{
  "affiliate_id": "<string>",
  "endpoint_url": "<string>",
  "secret": "<string>",
  "batch_size_max": 500
}
'
{
  "id": "3c90c3cc-0d44-4b50-8888-8dd25736052a",
  "affiliate_id": "<string>",
  "endpoint_url": "<string>",
  "is_active": true,
  "batch_size_max": 123,
  "created_at": "2023-11-07T05:31:56Z",
  "updated_at": "2023-11-07T05:31:56Z"
}

Body

application/json
affiliate_id
string
required
endpoint_url
string
required
secret
string
required
batch_size_max
integer
default:500

Response

Successful Response

id
string<uuid>
required
affiliate_id
string
required
endpoint_url
string
required
is_active
boolean
required
batch_size_max
integer
required
created_at
string<date-time>
required
updated_at
string<date-time>
required