Skip to main content
POST
Rotate a webhook endpoint's signing secret
Minimum role required: Admin

Authorizations

X-Axilio-Api-Key
string
header
required

Customer API key (axl_ prefix).

Path Parameters

endpoint_id
string
required

Endpoint identifier.

Minimum string length: 1

Body

application/json

Optional body for rotating a signing secret: how the previous secret is retired.

mode
enum<string>

graceful: the previous secret keeps verifying for 24 hours so the new one can be rolled out across a deploy. immediate: the previous secret stops verifying at once, for a secret that may be compromised. Omit for graceful.

Available options:
graceful,
immediate

Response

OK

A rotated signing secret, shown once, with the grace window during which the old secret still verifies.

id
string
required

Endpoint identifier.

secret
string
required

New Standard Webhooks signing secret (whsec_...). Shown once and never returned again.

previous_secret_invalid_at
string<date-time>

When the previous signing secret stops verifying: 24 hours out for a graceful rotation, already past for an immediate one. Until then both the old and new secret verify.