REST API Reference
Overview
Section titled “Overview”LokAI exposes a REST API at /api/v1 for third-party integrations, alongside a type-safe tRPC endpoint at /trpc for first-party clients (Studio, CLI).
Base URL:
https://api.lokai.cloud/api/v1All requests must include an Authorization: Bearer <token> header.
Authentication
Section titled “Authentication”Tokens are obtained via Supabase Auth. Pass the JWT as a Bearer token on every request.
Resources
Section titled “Resources”- Workspaces —
/workspaces - Projects —
/workspaces/:workspaceId/projects - Translation Keys —
/projects/:projectId/keys - Translations —
/keys/:keyId/translations - Glossary —
/workspaces/:workspaceId/glossary - Tenants —
/workspaces/:workspaceId/tenants - Export —
/projects/:projectId/export
Full endpoint documentation coming soon.