cURL
curl --request POST \ --url https://api.xenia.team/api/v1/mgt/workspaces/{workspaceId}/webhook-subscriptions \ --header 'Content-Type: application/json' \ --header 'x-client-key: <api-key>' \ --header 'x-client-secret: <api-key>' \ --data ' { "name": "Production Task Notifications", "url": "https://api.yourapp.com/webhooks/xenia", "events": [ "task.status_changed", "submission.submitted" ], "description": "Webhook for production environment", "rateLimit": 100 } '
{ "status": true, "code": 201, "data": { "id": "sub_abc123", "name": "Production Task Notifications", "url": "https://api.yourapp.com/webhooks/xenia", "events": [ "task.status_changed", "submission.submitted" ], "secret": "a1b2c3d4e5f6789012345678901234567890123456789012345678901234abcd", "isActive": true, "rateLimit": 100, "createdAt": "2024-12-23T10:00:00Z" } }
Workspace ID
Subscription name
255
HTTPS URL to receive webhooks
2048
Event types to subscribe to
1 - 50
Optional description
2000
Requests per minute limit
1 <= x <= 1000
Custom key-value metadata
Subscription created successfully
Show child attributes