curl -X POST "https://api.trusset.org/stocks/api/webhooks/register" \ -H "Content-Type: application/json" \ -H "X-API-Key: trusset_abc123xy_secret..." \ -d '{ "name": "Settlement System", "webhookUrl": "https://api.example.com/webhooks/trusset" }'
{ "success": true, "data": { "id": "wh_abc123", "name": "Settlement System", "apiKey": "whk_live_...", "webhookSecret": "whs_live_...", "webhookUrl": "https://api.example.com/webhooks/trusset" }, "metadata": { "requestId": "550e8400-e29b-41d4-a716-446655440000", "timestamp": "2025-06-15T12:00:00.000Z", "instanceId": "inst_abc123" } }
Register a new webhook endpoint to receive stock token events
Show child attributes
apiKey
webhookSecret