Skip to main content
POST
/
v1
/
keys
/
rotate
Rotate the current key
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>"
}

Authorizations

Authorization
string
header
required

Bearer authentication header of the form Bearer <token>, where <token> is your auth token.

Response

201 - application/json

Default Response

new_key_id
string
required
key
string
required
key_prefix
string
required
environment
enum<string>
required
Available options:
sandbox,
production
old_key_revokes_at
string
required
warning
string
required