Rotate an org API key
POST/v1/orgs/:org_id/api-keys/:key_id/rotate
Mints a replacement key and starts the previous key's grace window. The plaintext secret of the new key is returned exactly once.
Request
Responses
- 200
- 400
- 401
- 403
- 404
- 409
- 422
Successful Response
Malformed request. error.code: BAD_REQUEST.
Authentication required. error.code: AUTHENTICATION_REQUIRED.
Permission denied
Resource not found
Key not active
Validation error