/developers
Developer docsAtom Files ↗
← API referenceChanges & events · API access unavailable
API REFERENCE / CHANGES & EVENTS

POST /v1/webhooks/{webhook_id}/rotate-secret

Start signing-secret rotation for a webhook without losing event delivery.

Request fields

LocationFieldTypeRequiredDescription
HeaderAuthorizationstringYesCredential scoped to the authorized resource.
Pathwebhook_idstringYesWebhook owned by this integration.
HeaderIdempotency-KeystringYesStable retry identity.

Request example

Example request
POST /v1/webhooks/wh_123/rotate-secret
Authorization: Bearer <scoped token>
Idempotency-Key: rotate-8427

HTTP status codes

StatusMeaning
202 AcceptedSuccess response shown below.
401 UnauthorizedMissing, expired, or invalid credential.
403 ForbiddenCredential is valid but lacks the required scope or role.
404 Not FoundWebhook is not visible to this integration.
409 ConflictRotation already pending.
429 Too Many RequestsRate limit reached; honor Retry-After when provided.
503 Service UnavailableService temporarily unavailable; retry safely.

Response fields

FieldTypeExample
idstringwh_123
statusstringrotating
rotation_idstringrotation_123

Response example

Example response
202 Accepted
Content-Type: application/json

{
  "id": "wh_123",
  "status": "rotating",
  "rotation_id": "rotation_123"
}

How it works

The exact one-time secret handoff, old/new overlap window, and lost-acknowledgement recovery are unresolved security decisions; this example intentionally does not return a secret.