cURL
curl --request POST \ --url https://api.usecobalt.com/v1/webhook/{id}/rotate-secret \ --header 'access_token: <api-key>' \ --header 'client_id: <api-key>' \ --header 'client_secret: <api-key>'
{ "success": true, "webhook": { "id": "<string>", "secret": "<string>" } }
Generates a new signing secret for the webhook. The previous secret will continue to work for 24 hours.
curl -X POST https://api.usecobalt.com/v1/webhook/wh_123456789/rotate-secret \ -H 'Content-Type: application/json' \ -H 'client_id: ci_live_198908HJDKJSH98789OHKJL' \ -H 'client_secret: cs_live_9827hofdsklOYYHJLJh'
{ "success": true, "webhook": { "id": "wh_123456789", "secret": "whsec_newsecrethashvalue" } }
The webhook ID
Successful response
Show child attributes