cURL
curl --request POST \ --url http://localhost:3000/v1/keys/rotate \ --header 'Authorization: Bearer <token>'
{ "new_key_id": "<string>", "key": "<string>", "key_prefix": "<string>", "environment": "sandbox", "old_key_revokes_at": "<string>", "warning": "<string>" }
Mints a new key with identical scopes + environment. Current key stays valid for 24h, then auto-revokes.
Bearer authentication header of the form Bearer <token>, where <token> is your auth token.
Bearer <token>
<token>
Default Response
sandbox
production