Skip to main content

Rotate an API key

POST 

/api/v1/api-keys/rotate

Creates a new API key with identical properties (scopes, metadata) and sets an expiration on the old key after a configurable grace period. Both keys are valid during the grace period, enabling zero-downtime rotation. Publishable keys cannot be rotated via this endpoint.

Request

Responses

New API key created, old key set to expire after grace period