On this page
- Addresses
- Authentication
- Limits
- Endpoints
- CDN
- Fetch namespace resources
- Fetch private namespace resources
- Fetch the available languages
- Translations
- Missing translations
- Update or remove translations
- Report used translations
- Namespaces
- Create a new namespace in a specific language
- Create a new namespace in the reference language
- Delete a namespace from all languages
- List all namespace resources (all versions)
- List all namespace resources for a version
- List all namespace resources for a language
- Get a specific namespace resource
- Fetch/filter the (unpublished) namespace resources
- Rename a namespace in all languages
- Languages
- Add a new language to a project
- Remove language
- Update languages for a project
- Copy a language from one version to another
- Versions
- Add a new version to a project
- Remove a version
- Copy all translations from one version to another
- Publish a version
- Users
- Fetch users
- Invite new users
- Tenants
- List all tenants of project
- Create a new tenant project
- Update tenant project settings
- Workspaces
- Delete a workspace
- List all workspaces of a project
- Merge a workspace
- Create a workspace
- Statistics
- Statistics: project
- Statistics: user
- Projects
- Get async job status
- Fetch configured project tags
API reference
The Locize API reads and changes your projects over HTTPS: translations, languages, versions, publishing and more. Your coding agent reaches the same functions through the MCP server, and locize-cli calls the API for you.
Addresses
Every endpoint below lives on https://api.locize.app. A project on the Standard CDN reads its published translations and its language list (/languages/{projectId}) from https://api.lite.locize.app instead; the CDN selector under Endpoints switches both examples. See CDN.
Authentication
Reading published translations needs no key. Every other endpoint needs the header Authorization: Bearer <key>, with an API key of the project or a personal access token: API keys and tokens.
Limits
Send at most 1,000 keys in one request; split larger updates. Requests that change the same namespace in quick succession get the status 429 with a Retry-After header: send keys in batches, one request after the other, not one request per key. Two errors are explained in Troubleshooting: the JSON is nested too deeply and unnecessary or unauthorized requests.
Endpoints
Grouped by topic; open an endpoint for its parameters, an example and a form to try it.
The CDN applies to fetching published translations and the language list; every other endpoint lives on api.locize.app. The key applies to every example, stays in this page and goes only to Locize.
CDN
Endpoints for CDN resource fetching.
/{projectId}/{version}/{language}/{namespace}/private/{projectId}/{version}/{language}/{namespace}/languages/{projectId}
Translations
Fetch, update, report missing/used translations, and manage translation content.
/missing/{projectId}/{version}/{language}/{namespace}/update/{projectId}/{version}/{language}/{namespace}/used/{projectId}/{version}/{language}/{namespace}
Namespaces
Manage translation namespaces: create, rename, delete, and fetch namespace resources.
/create/{projectId}/{version}/{language}/{namespace}/create/{projectId}/{version}/{namespace}/delete/{projectId}/{version}/{namespace}/download/{projectId}/download/{projectId}/{version}/download/{projectId}/{version}/{language}/download/{projectId}/{version}/{language}/{namespace}/pull/{projectId}/{version}/{language}/{namespace}/rename/{projectId}/{version}/{namespace}/{toNamespace}
Languages
Manage project languages: add, remove, update, and list available languages.
/language/{projectId}/{language}/language/{projectId}/{language}/language/{projectId}/copy/{projectId}/version/{fromVersion}/{version}/{language}
Versions
Versioning: copy, publish, add, remove, and manage translation versions.
/version/{projectId}/{version}/version/{projectId}/{version}/copy/{projectId}/version/{fromVersion}/{version}/publish/{projectId}/{version}
Users
User and invitation management for projects.
/users/{projectId}/invite/{projectId}
Tenants
Multi-tenant project management.
/tenants/{projectId}/tenant/create/{projectId}/tenant/update/{projectId}/{tenantProjectId}
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.
/workspace/{projectId}/workspaces/{projectId}/workspace/merge/{projectId}/workspace/create/{projectId}/{version}
Statistics
Project and user statistics endpoints.
/stats/project/{projectId}/stats/user-translation/{projectId}/{userId}
Projects
Other project related stuff.
/jobs/{projectId}/{jobId}/tags/{projectId}