Skip to content

API - Authentication

All API endpoints require Bearer token authentication, except:

  • GET /v1/health
  • GET /v1/metrics

Request Header

http
Authorization: Bearer YOUR_TOKEN_HERE

Example

bash
curl http://localhost:7200/v1/kv/myapp/prod/DB_HOST \
  -H "Authorization: Bearer eyhQ3zLy6NdiMNwFJ-S3kS-GUA5RzI0p7ibnz-VI9jw="

Token Types

TypeDescription
Root tokenGenerated at init; full admin access
Role-based tokenAssigned a role (admin, developer, viewer, operator)
Scoped tokenLegacy per-namespace read/write permissions

Check Current Token

bash
GET /v1/auth/me

Returns the current token's identity, role, and capabilities.

Error Responses

StatusMeaning
401 UnauthorizedMissing or invalid token
403 ForbiddenValid token but insufficient permissions

See Guide - Authentication for creating and managing tokens.

Apache License 2.0