Parameters

webhook
dictionary
url
string
events
array
description
string
Description
url required string URL of the webhook endpoint events required array The list of events to enable for this endpoint description optional string description of the webhook
POST/v1/webhooks
curl https://api.tradly.app/v1/webhooks \
  -H "Authorization: Bearer YOUR_PUBLISHABLE_OR_SECRET_KEY" \
  -H "Content-Type: application/json" \
  -X POST \
  -d '{
  "webhook": {
    "url": "https://yourdomain.com",
    "events": [
      "user.created",
      "user.updated"
    ],
    "description": "notify about user events"
  }
}'
RESPONSE
{
  "status": true,
  "data": {
    "webhook": {
      "id": 1
    }
  }
}