Skip to main content
POST
Rotate API key

Authorizations

Authorization
string
header
required

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

Body

application/json
gracePeriodHours
integer
default:24

How long the old key remains valid after rotation

Required range: 0 <= x <= 168

Response

API key rotated successfully

success
boolean
message
string
apiKey
string

The new API key

oldKeyExpiresAt
string<date-time>

When the previous key stops being accepted