Glossaries
List, create, read, update, and delete glossaries, the shared sets of terms that engines apply.
A glossary is a set of terms owned by an organization. Engines apply a glossary once it is attached, and one glossary can serve several engines. Glossaries in Studio explains how to write terms that translation can use.
All routes use https://api.lingo.dev and API authentication. Reading needs org:glossary:read and every change needs org:glossary:edit, unless a grant gives access; see permissions.
Create a glossary #
POST /v2/organizations/:orgId/glossaries
Content-Type: application/json
X-API-Key: YOUR_API_KEY{
"name": "Product terminology",
"description": "Feature names and UI labels",
"sourceCoverage": ["en"]
}| Field | Contract |
|---|---|
name | Required nonempty string. |
description | Optional string. |
sourceCoverage | Optional array of source locales the glossary's translated terms may use. Omitted, null, [], or a list containing "*" covers every locale. |
The response is the created glossary:
{
"id": "gls_example",
"organizationId": "org_example",
"name": "Product terminology",
"description": "Feature names and UI labels",
"sourceCoverage": ["en"],
"createdAt": "2026-11-23T17:40:37.893Z",
"updatedAt": "2026-11-23T17:40:37.893Z"
}description is null when the glossary has none, and sourceCoverage is [] when it covers every locale. A missing name fails validation with 400 and an errors entry for ["payload", "name"].
Source coverage limits the source locale of terms that have translations. Creating such a term in another source locale returns GlossaryTermLocaleNotCovered (422). Non-translatable terms are not checked against it.
List and read glossaries #
GET /v2/organizations/:orgId/glossariesGET /v2/glossaries/:idThe list returns { "data": [ ... ] } with every glossary in the organization that the caller can read, ordered by name. It is not paginated. Both routes return each glossary with three more fields:
| Field | Meaning |
|---|---|
termCount | Number of terms, counted by distinct source locale and text. |
engineCount | Number of engines the glossary is attached to. |
canEdit | Whether the caller can change the glossary and its terms. |
A glossary the caller cannot read returns GlossaryNotFound (404).
Update a glossary #
PATCH /v2/glossaries/:id
Content-Type: application/json{ "name": "Product and UI terminology", "sourceCoverage": ["en", "en-GB"] }Send any of name, description, and sourceCoverage with the same contract as creation. description must be a string; null fails validation. A new sourceCoverage replaces the whole list. The response has the shape of the created glossary.
Delete a glossary #
DELETE /v2/glossaries/:idThe response is HTTP 200 with an empty body. Deleting a glossary also deletes its terms.
A glossary attached to any engine cannot be deleted: the request returns GlossaryInUse (409) with engineCount. Detach it from those engines first. Deleting an engine detaches its glossaries.