keys
Rotate Key
Rotate an API key's secret in place.
Requires master key authentication.
Generates a new secret for the same key row (id, user, name, expiry, and metadata are preserved) and returns the new raw key once, using the same response shape as key creation. The previous secret stops authenticating immediately; there is no grace window.
post/v1/keys/{key_id}/rotate
Path parameters
key_idstring required
Response
Successful Response