Webhooksv2
Rotate webhook signing secret
POST
/webhooks/{webhookId}/secret/rotateGenerate a new signing secret for the webhook. The new secret is returned only once in this response - store it securely. The old secret becomes invalid immediately.
Path parameters
webhookIdRequiredstringUnique identifier of the webhook subscription, prefixed with wh_ (e.g. wh_abc123def456). Returned when you create or list webhooks.
Headers
AuthorizationRequiredstringYour API key, sent as a bearer token: Authorization: Bearer <api_key>. Editing this stays in sync with the API key box on the right.
Bearer
Returns
webhook_idoptionalstringsigning_secretoptionalstringThe new signing secret. Store this securely - it will not be shown again.
rotated_atoptionalintegerTimestamp when the secret was rotated
rotated_byoptionalstringIdentifier of who rotated the secret
rotation_countoptionalintegerTotal number of times this secret has been rotated
Response codes
200Secret rotated successfully. The new secret is shown only once.
401Authentication required or invalid
404Resource not found
Sends a live request with your values and shows the real response below. Your key is stored only in this browser.
curl -X POST https://api.blooio.com/v2/api/webhooks/wh_abc123def456/secret/rotate \ -H "Authorization: Bearer bl_live_..."{ "webhook_id": "wh_a1b2c3d4", "signing_secret": "sk_live_a1b2c3d4", "rotated_at": 0, "rotated_by": "string", "rotation_count": 3}