post

POST /v2/webhooks/{webhook}/actions/revertSecret — Undo secret rotation

Recent Requests
Log in to see full request history
TimeStatusUser Agent
Retrieving recent requests…
LoadingLoading…

Restores the signing secret that was active before the most recent rotateSecret call. Only available while the 24-hour grace window is still open (previousCredentialsExpiresAt is in the future).

The reverted secret value is not returned — it was shown at the time of original creation or the previous rotation.

Required role

affiliate_super_admin

Response 200

{
  "id": "webhook::abc123",
  "webhookId": "webhook::abc123",
  "reverted": true,
  "previousCredentialsExpiresAt": null,
  "lastRotatedAt": "2026-05-30T12:00:00.000Z"
}

Errors

StatusDescription
400No previous secret available (never rotated)
400Grace period has expired (> 24 h since rotation)
400Webhook signing is not enabled
404Webhook not found
Language
LoadingLoading…
Response
Click Try It! to start a request and see the response here!