API
Getting Started
- You can use the API directly via HTTPS requests, or with our Command Line tool and locizer module.
- The API supports both public and private (API-key protected) endpoints.
- Depending on your CDN type, the API domain may differ.
Authentication
Protected endpoints require an Authorization: Bearer <token> header. Locize accepts two types of tokens:
- API Key (recommended): project-scoped, created in your project's Settings โบ Integration (API Keys card), where the Project ID shows as well. Best for direct API usage, single-project integrations, and client-side SDKs.
- Personal Access Token (PAT): user-scoped, created in your Profile under Access tokens. Works across all projects you have access to. Primarily designed for MCP integration and simplified multi-tenant workflows.
The server detects the token type automatically. Both are passed the same way in the Authorization header.
Main Capabilities
- Fetch translations for any namespace, version, and language
- Fetch available languages for a project
- Report missing or used translations (for development workflows)
- Update or remove translations in bulk
- Add context or tags to translations
Usage Notes
- All endpoints use standard HTTP verbs (GET, POST, etc).
- Most endpoints require your projectId (and sometimes an API key or Personal Access Token).
- For large updates, batch your requests (max 1000 keys per request).
- For production, use only CDN endpoints or/and API keys with limited permissions.
- See the Going to production guide for best practices.
API Endpoint Explorer
Browse all available endpoints grouped by category. Click an endpoint for details and usage examples.
CDN
Endpoints for CDN resource fetching.
- GET/{projectId}/{version}/{language}/{namespace}โถ
Fetch namespace resources
- GET/private/{projectId}/{version}/{language}/{namespace}๐โถ
Fetch private namespace resources
- GET/languages/{projectId}โถ
Fetch the available languages
Translations
Fetch, update, report missing/used translations, and manage translation content.
- POST/missing/{projectId}/{version}/{language}/{namespace}๐โถ
Missing translations
- POST/update/{projectId}/{version}/{language}/{namespace}๐โถ
Update or remove translations
- POST/used/{projectId}/{version}/{language}/{namespace}๐โถ
Report used translations
Namespaces
Manage translation namespaces: create, rename, delete, and fetch namespace resources.
- POST/create/{projectId}/{version}/{language}/{namespace}๐โถ
Create a new namespace in a specific language
- POST/create/{projectId}/{version}/{namespace}๐โถ
Create a new namespace in the reference language
- DELETE/delete/{projectId}/{version}/{namespace}๐โถ
Delete a namespace from all languages
- GET/download/{projectId}๐โถ
List all namespace resources (all versions)
- GET/download/{projectId}/{version}๐โถ
List all namespace resources for a version
- GET/download/{projectId}/{version}/{language}๐โถ
List all namespace resources for a language
- GET/download/{projectId}/{version}/{language}/{namespace}๐โถ
Get a specific namespace resource
- GET/pull/{projectId}/{version}/{language}/{namespace}๐โถ
Fetch/filter the (unpublished) namespace resources
- POST/rename/{projectId}/{version}/{namespace}/{toNamespace}๐โถ
Rename a namespace in all languages
Languages
Manage project languages: add, remove, update, and list available languages.
- POST/language/{projectId}/{language}๐โถ
Add a new language to a project
- DELETE/language/{projectId}/{language}๐โถ
Remove language
- PUT/language/{projectId}๐โถ
Update languages for a project
- POST/copy/{projectId}/version/{fromVersion}/{version}/{language}๐โถ
Copy a language from one version to another
Versions
Versioning: copy, publish, add, remove, and manage translation versions.
- POST/version/{projectId}/{version}๐โถ
Add a new version to a project
- DELETE/version/{projectId}/{version}๐โถ
Remove a version
- POST/copy/{projectId}/version/{fromVersion}/{version}๐โถ
Copy all translations from one version to another
- POST/publish/{projectId}/{version}๐โถ
Publish a version
Users
User and invitation management for projects.
- GET/users/{projectId}๐โถ
Fetch users
- POST/invite/{projectId}๐โถ
Invite new users
Tenants
Multi-tenant project management.
- GET/tenants/{projectId}๐โถ
List all tenants of project
- POST/tenant/create/{projectId}๐โถ
Create a new tenant project
- PUT/tenant/update/{projectId}/{tenantProjectId}๐โถ
Update tenant project settings
Workspaces
Workspaces (they used to be called branches): a workspace is a project of its own, created from one version of its parent project, and its changes can be merged back into the parent.
- DELETE/workspace/{projectId}๐โถ
Delete a workspace
- GET/workspaces/{projectId}๐โถ
List all workspaces of a project
- POST/workspace/merge/{projectId}๐โถ
Merge a workspace
- POST/workspace/create/{projectId}/{version}๐โถ
Create a workspace
Statistics
Project and user statistics endpoints.
- GET/stats/project/{projectId}๐โถ
Statistics: project
- GET/stats/user-translation/{projectId}/{userId}๐โถ
Statistics: user
Projects
Other project related stuff.
- GET/jobs/{projectId}/{jobId}๐โถ
Get async job status