Skip to content

API

Using an AI assistant? The Locize MCP server provides direct integration with Claude, Cursor, and other AI tools, with no API calls required.

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.
Tip: Store your API keys and Personal Access Tokens securely and never expose write keys in client-side code or public repositories.

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.

๐ŸŒ Applies to all endpoints
๐Ÿ”’ Used for all endpoints that require authorization

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

  • GET/tags/{projectId}๐Ÿ”’โ–ถ

    Fetch configured project tags