Rotate an API key
POST/keys/:key_id/rotate
Rotates a key with a configurable grace period (1–168 hours, default 24h). Both the old and the new key authenticate during the grace window.
Request
Responses
- 200
- 400
- 403
- 404
Rotated.
Key cannot be rotated.
Signed in but lacking the admin or owner role required to manage keys.
Key not found.