Rotate a webhook signing secretMenu

Rotate a webhook signing secret

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

Requires an API key with the webhooks:write scope. About keys and scopes

Works with integration and partner keys, not agent keys.

A repeat without a key does it again; send Idempotency-Key and a retry within 24 hours replays the first response. About idempotency

Returns a new secret. Only this answer carries it, and a retry with the same Idempotency-Key within 24 hours, which replays it instead of rotating again; reads never return it. For 24 hours requests carry signatures from both the new and the old secret, so the receiver can switch without dropping events. Rotating again within those 24 hours stops the secret the first rotation issued at once; the original keeps signing until the first overlap ends.

Path parameters

idstringrequired

The webhook's id.

uuid

Header parameters

Kirora-Workspacestringoptional

Partner keys only: the child workspace to act in, by the external id the partner gave it. Without it, a partner key acts in its own workspace. Any other key that sends it is refused with 403, and an unknown workspace is 404.

pattern ^[A-Za-z0-9._:-]{1,128}$

Idempotency-Keystringoptional

Makes a retry safe: a repeat with the same key and body within 24 hours gets the first response again, with Idempotency-Replay: true. The same key with another request is 409 IDEMPOTENCY_KEY_REUSED; while the first is still running, 409 IDEMPOTENCY_KEY_IN_USE; after an unsafe first request failed or never returned, 409 IDEMPOTENCY_KEY_OUTCOME_UNKNOWN. Use a new key, such as a UUID, for each new request.

8–255 characters

Returns

Returns 200 OK with a CreatedWebhook in data. It can also return 409 Conflict; see the statuses below. Otherwise returns an error; Errors lists every code and which to retry.

  • 200 OKThe subscription and its new signing secret.
  • 409 ConflictThe request conflicts with current state — a duplicate unique value, or a resource whose status does not allow this operation.
idstringrequired

uuid

urlstringrequired

uri

eventsstring[]required

The event types it receives.

sourcestring | nullrequired

The integration that created it; null when created directly.

one of zapier, n8n

statusstringrequired

disabled is set only by the platform; active re-enables it.

one of active, paused, disabled

previousSecretExpiresAtstring | nullrequired

Until when the replaced secret still signs requests after a rotation.

date-time

createdAtstringrequired

date-time

secretstringrequired

Signs every delivery; shown once, here.

starts_with · pattern ^whsec_.*

Headers on 200 OK

Idempotency-Replaystringoptional

true when this is the stored response to an earlier request with the same key.

one of true