Rotate API key
Generate a new token for an API key. The old token can optionally remain valid for a transition period (up to 168 hours) to allow graceful migration. The response includes the new raw token, which is only shown once. An API key cannot rotate itself, and it cannot rotate a key that has permissions it does not have itself (403). Rotation keeps the roles and capabilities of the key. The API key that AI support manages cannot be changed through the API, so the request returns 403 for it. Use the AI support settings page in the dashboard instead.
POST
Rotate API key
Authorizations
Path Parameters
Body
application/json