v1

latestOpenAPI 3.0.32026-07-26172157253.6 KB
Admin

Rotate anon key

Rotate the project's opaque anon key (anon_...). A new key is generated and returned; the old key stays valid for the grace period (default 168 hours / 7 days, max 720) so already-deployed frontends and mobile binaries keep working while the new key ships. Admin only.

post/api/secrets/anon-key/rotate

Request body

gracePeriodHoursinteger

How long the old key remains valid after rotation

Response

Anon key rotated successfully

successboolean
messagestring
anonKeystring

The new anon key

oldKeyExpiresAtstring date-time

When the previous key stops being accepted