Volcano/ Docs

Authentication

How to authenticate API requests.

How to authenticate API requests.

Token types

Token typeUsed forHeaderSource
Platform tokenProject managementAuthorization: Bearer TOKENManagement API
Anon keyPublic auth endpointsAuthorization: Bearer KEYProject settings
Access tokenUser operationsAuthorization: Bearer TOKENSignup/signin
Service keyAdmin operationsAuthorization: Bearer TOKENCreate via API

Anon key

PropertyValue
PurposeSignup, signin, refresh, logout
SourceProject Settings → Authentication → Anon Keys
Safe to exposeYes (in frontend code)
ScopeSingle project
POST /auth/signup
Authorization: Bearer eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9...

Access token

PropertyValue
PurposeInvoking functions, accessing user profile
SourceSignup/signin response (access_token field)
Lifetime1 hour (configurable)
Containsuser_id, email, project_id, role
POST /functions/func-id/invoke
Authorization: Bearer eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9...

Platform token

PropertyValue
PurposeManaging projects, functions, databases
SourceManagement API (port 8001)
ScopeYour account (all projects)
GET /projects
Authorization: Bearer 64-character-hex-string...

Service key

PropertyValue
PurposeBackground jobs, cron, webhooks
SourcePOST /projects/{id}/service-keys
ScopeSingle project
User contextNone (functions don't receive __volcano_auth)
POST /functions/func-id/invoke
Authorization: Bearer eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9...

Header format

All use Bearer authentication:

Authorization: Bearer <token>

Don't include:

  • Extra quotes
  • "Token" prefix
  • Line breaks

Error responses

StatusCause
401 UnauthorizedMissing Authorization header, invalid token, expired token, or token for wrong project
403 ForbiddenValid token but no permission, CORS blocked, anon key revoked, or account banned

What's next

GuideDescription
Auth endpointsUsing anon keys and access tokens
Token typesDetailed comparison
Anon keysAnon key security model

On this page