cURL
curl --request POST \ --url https://api.usecobalt.com/v1/webhook \ --header 'Content-Type: application/json' \ --header 'access_token: <api-key>' \ --header 'client_id: <api-key>' \ --header 'client_secret: <api-key>' \ --data ' { "webhook_url": "<string>" } '
{ "success": true, "webhook": { "webhook_id": "<string>", "webhook_url": "<string>", "webhook_secret_key": "<string>" } }
Creates a new webhook endpoint for receiving event notifications.
curl -X POST https://api.usecobalt.com/v1/webhook \ -H 'Content-Type: application/json' \ -H 'client_id: ci_live_198908HJDKJSH98789OHKJL' \ -H 'client_secret: cs_live_9827hofdsklOYYHJLJh' \ -d '{ "webhook_url": "https://api.example.com/webhook" }'
{ "success": true, "webhook_id": "wh_123456789", "webhook_url": "https://api.example.com/webhook", "webhook_secret": "whsec_abcdefghijklmnopqrstuvwxyz" }
The URL where webhook events will be sent
Successful response
Show child attributes