API Keys
API keys authenticate requests to the localization API and the MCP server. Lingo.dev supports two flavours — pick the one that matches who or what is calling the API.
Two kinds of keys#
| Personal | Organization | |
|---|---|---|
| Owner | The user who created it | None — meant for automation |
| Authorization | Inherits the creator's RBAC role + engine grants | Organization-wide read/translate access without RBAC; its own role and/or per-engine scope with RBAC |
| If the owner loses access | Key loses access too | Unaffected; belongs to the organization |
| Plan | Any plan | Any plan; custom roles and restrictions require Enterprise RBAC |
| Typical use | Local development, MCP, ad-hoc scripts | CI/CD pipelines, production integrations |
Personal keys are the default. Organization keys are an organization-level artifact decoupled from any single human, which is what you want for credentials that should outlive employees and survive role changes.
Creating a key#
Open the API keys page in Settings. Personal and Organization keys live on separate tabs. Both are available on every plan. Creating an organization key requires Manage API keys (org:manage_api_keys).
Click New personal key, give it a name (e.g., "Local MCP", "Max's staging key"), and copy the key when it's shown. The key inherits your current RBAC role and per-engine grants.
Key visibility
The full API key is shown only once at creation. Copy and store it securely — it cannot be retrieved after you close the dialog.
Organization keys and RBAC#
Without RBAC, ordinary organization keys use organization-wide read-and-translate access. Enterprise RBAC lets you configure narrower authority:
- Role only: the role's permissions apply across the organization. Only
engine:readandengine:translateare accepted. - No role + engine scope: the key reaches the engines named on it.
- Role + engine scope: both authorities add access. Scope does not remove broader role permissions.
- Neither: while RBAC is enabled, the key has no engine access.
Creating an organization key requires Manage API keys. Assigning or changing a role, engine grants, or content scope also requires RBAC. The role must belong to the organization, and you can only grant engines you can translate with yourself. Content scope can name glossaries, brand voices, and rulesets you can edit.
Before removing RBAC
If RBAC is removed, ordinary organization keys fall back to organization-wide read-and-translate access. Stored role and engine restrictions no longer limit that access. Revoke or rotate keys before removing RBAC if those restrictions are required. This describes ordinary service keys; purpose-specific credentials such as SCIM keys have separate access requirements.
Using a key#
Pass the API key in the X-API-Key header on every request — the wire format is the same for both flavours:
curl -X POST https://api.lingo.dev/process/localize \
-H "X-API-Key: your_api_key" \
-H "Content-Type: application/json" \
-d '{"engineId": "eng_abc123", "sourceLocale": "en", "targetLocale": "de", "data": {"greeting": "Hello"}}'The same key works for both the localization API and the MCP server.
Security#
- Keys are stored as hashes — Lingo.dev cannot retrieve a key after creation. Rotate by deleting and recreating.
- Personal keys follow their creator's permissions in real time. If the creator's role is demoted or an engine grant is revoked, the key loses the same access on the next call.
- A personal key requires its creator to remain a member of the organization. Use an organization key for automation that must outlive a colleague's departure.
- Organization keys carry their own authority. Editing the role or scope takes effect immediately; deleting the key revokes it.
- There is no limit on the number of keys per organization.