Skip to content

REST API Reference

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/v1

All requests must include an Authorization: Bearer <token> header.

Tokens are obtained via Supabase Auth. Pass the JWT as a Bearer token on every request.

  • 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.