organization
api-keys

Rotate Org Api Key

Mint a replacement with the same name, scopes and rate limit; the old key keeps working until grace_until (default 24h) and then auto-revokes.

post/api/organization/api-keys/{key_id}/rotate

Path parameters

key_idstring required

Request body

grace_hoursinteger

How long the old key keeps working after rotation (0 to 168 hours).

expires_in'90d' | '1y' | '2y' nullable
expires_atstring date-time nullable

Response

Successful Response

tokenstring required
replaced_key_idstring required
grace_untilstring nullable

Changes

Changed in 1 of the 41 revisions of this API.1