Skip to content
GitLab

Authentication

All /api/v1/* endpoints require a valid JWT issued by the Authentik OIDC provider.

Pass the token in the Authorization header:

Authorization: Bearer <your-jwt-token>
ClaimTypeDescription
subUUIDUser ID
akili_tenant_idUUIDTenant ID (custom claim)
akili_rolesstring[]Role list: admin, developer, viewer
emailstringUser email
expintegerExpiration timestamp (Unix epoch)
iatintegerIssued-at timestamp
issstringIssuer URL (must match Authentik)
RoleProductsTenantsDLQAdmin
viewerRead onlyOwn tenantRead onlyNo
developerFull CRUD + deployOwn tenantRead + replayNo
adminFull CRUD + deployFull CRUDFull accessYes

Caution: Tenant isolation is enforced at every layer. All queries are scoped by tenant_id from the JWT, with Row-Level Security (RLS) at the database layer. Cross-tenant access is only available to admin roles on the /tenants endpoint.