api-keys
Rotate an API key
Changed onCreates a new API key with the same settings as the old key and sets a grace period on the old key. During the grace period, both keys are valid. After the grace period expires, only the new key works.
The raw API key value for the new key is returned only once in this response.
post/admin/v1/api-keys/{key_id}/rotate
Request
- Base URL: / (relative, and the document was published on a file host, not at the API’s origin)
- URL: /admin/v1/api-keys/{key_id}/rotate
- Auth: HTTP bearer
Path parameters
key_idstring uuid required
API key ID to rotate
Request body
Response
API key rotated successfully. Store the new key value securely - it won't be shown again.
Changes
- info
added the optional property
////to the response with the status
- info