Skip to main content
POST
Rotate anon 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:168

How long the old key remains valid after rotation

Required range: 0 <= x <= 720

Response

Anon key rotated successfully

success
boolean
message
string
anonKey
string

The new anon key

oldKeyExpiresAt
string<date-time>

When the previous key stops being accepted