Skip to content
  • Type to search every guide, endpoint and MCP tool.
POST

Rotate API key

/v1/api-keys/{key_id}/rotate

Scope org_manage

Mint a fresh secret for an existing key: replace its hash + prefix, keep the same id, scopes and expiry. The previous secret stops working immediately (its hash is gone).

Parameters

key_idstring (uuid) · pathRequired

Responses

200Successful Response
422The request did not validate.
401The key is missing, unknown, revoked or expired.
403The key lacks the scope this call needs, or the organisation is not on Enterprise.
429Over the request rate. Wait for Retry-After seconds.