v1
latestOpenAPI 3.0.32026-07-26172157253.6 KBAdmin
Get anon key (deprecated)
Deprecated - use GET /api/metadata/anon-key instead. Returns the project's opaque anon key (anon_...) under the legacy accessToken field for backward compatibility. The anon key is a non-secret client identifier that maps requests to the anon role; it replaces the former non-expiring anonymous JWT and can be rotated via POST /api/secrets/anon-key/rotate (admin only).
post/api/auth/tokens/anon
Response
Anon key retrieved successfully
Example response
{
"accessToken": "anon_1234567890abcdef1234567890abcdef1234567890abcdef1234567890abcd",
"message": "Anon key retrieved successfully (deprecated route, use GET /api/metadata/anon-key)"
}