Firsty

Search...

Search...

ManagementExperimental

Rotate a webhook endpoint's signing secret

Replaces the endpoint's signing secret and returns the new one, the only time it is shown. The new secret signs the next attempt to the endpoint, retries included, so update the consumer straight away if it verifies signatures; deliveries it rejects in the meantime are retried.

post/management/webhooks/{webhookEndpointReference}/rotate-secret

Authorization

Authorization: Bearer {token} — an OAuth2 access token from the client-credentials flow. How authentication works

Path parameters

webhookEndpointReferencestringrequired

Webhook endpoint reference, as returned by GET /management/webhooks.

Responses

200The endpoint, with its new signing secretapplication/json
Show response body
dataobject
Show properties
webhookEndpointReferencestring

Identifies the endpoint in GET /management/webhooks/{webhookEndpointReference}/deliveries.

urlstring · uri

Destination Firsty posts events to.

eventTypesarray of string

Event types delivered to this endpoint. Values this client subscribed to before an event type was retired are returned as stored, so an entry may be absent from GET /catalog/webhook-event-types.

descriptionstring | null

Free-text label for the endpoint.

activeboolean

Whether events are delivered to this endpoint.

createdAtstring · date-time
updatedAtstring · date-time
signingSecretstring

Key that signs every delivery to this endpoint: whsec_ followed by base64. The HMAC key is the base64-decoded bytes after the prefix. Returned only by create and rotate-secret.

401Unauthorized - missing or invalid API key404Resource not found429Rate limit exceeded. A `429` can also arrive without these headers or this body; handle it by its status code.500Internal server error