Skip to main content

Rotate a key (keys:admin)

POST 

/api/v1/keys/:id/rotate

Required scope: keys:admin. Mints a replacement key carrying the old key's scopes, IP allow-list and mode BYTE-FOR-BYTE (rotation takes no parameters — an empty JSON body only), revokes the old key in the same transaction, and stamps lastRotatedAt. Reveal-once response, replayed for 1 hour under the same Idempotency-Key.

Request

Responses

The replacement key (reveal-once).