Payezydevelopers
Sandbox

API reference / Webhooks and integrations

Rotate a signing secret

POST/v1/orgs/{orgId}/webhooks/{webhookId}/rotate

Mint a new signing secret. The previous secret keeps verifying for 24 hours (webhooks:manage, AAL2).

When to use it

Rotate periodically or after a leak. For 24 hours deliveries carry signatures for both secrets.

Before you call it

  • Permissionwebhooks:manage
  • Second factorRequired for browser sessions. An API key with the scope replaces it.

Parameters

ParameterWhat it does
orgIdpath, uuidrequiredThe organization the call acts on. For platform calls, your platform's id; for customer calls, the customer's organization id. Get them from getMe or the customer list.
webhookIdpath, uuidrequiredA webhook endpoint id.

Response 200

The new signing secret

FieldWhat it does
signing_secretstringrequiredNo description in the spec yet.