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 #

http
POST /v2/organizations/:orgId/glossaries
Content-Type: application/json
X-API-Key: YOUR_API_KEY
json
{
  "name": "Product terminology",
  "description": "Feature names and UI labels",
  "sourceCoverage": ["en"]
}
FieldContract
nameRequired nonempty string.
descriptionOptional string.
sourceCoverageOptional 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:

json
{
  "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 #

http
GET /v2/organizations/:orgId/glossaries
http
GET /v2/glossaries/:id

The 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:

FieldMeaning
termCountNumber of terms, counted by distinct source locale and text.
engineCountNumber of engines the glossary is attached to.
canEditWhether the caller can change the glossary and its terms.

A glossary the caller cannot read returns GlossaryNotFound (404).

Update a glossary #

http
PATCH /v2/glossaries/:id
Content-Type: application/json
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 #

http
DELETE /v2/glossaries/:id

The 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.