v1
latestOpenAPI 3.0.32026-07-264469137.7 KBWebhooks
Rotate an endpoint's signing secret
Generate a new signing secret for an endpoint. The old secret stops working immediately, so update your verification before rotating. Requires the webhooks:write scope.
post/v1/webhooks/endpoints/{endpoint_id}/rotate-secret
Path parameters
endpoint_idstring required
The webhook endpoint's ID.
Response
The endpoint with its secret rotated.
Example response
{
"endpoint_id": "whe_1a2b3c4d5e",
"name": "Production events",
"url": "https://api.example.com/webhooks/bachs",
"enabled": true,
"event_types": [
"collection.succeeded",
"collection.failed"
],
"created_at": "2026-04-27T12:00:00Z",
"updated_at": "2026-04-27T12:00:00Z"
}