v1

latestOpenAPI 3.0.32026-07-26172157253.6 KB
Admin

Rotate API key

Rotate the project's admin API key. A new key is generated and returned; the old key stays valid for the grace period (default 24 hours, max 168 / 7 days) so in-flight requests finish gracefully. Admin only.

post/api/secrets/api-key/rotate

Request body

gracePeriodHoursinteger

How long the old key remains valid after rotation

Response

API key rotated successfully

successboolean
messagestring
apiKeystring

The new API key

oldKeyExpiresAtstring date-time

When the previous key stops being accepted