Skip to main content
POST
/
v1
/
glossary
// Brand term -- do not translate
await client.glossary.create({
  term: "Lasso AI",
  type: "do_not_translate",
  case_sensitive: true,
  category: "brand",
});

// Term with specific translations
await client.glossary.create({
  term: "data extraction",
  type: "specific_translation",
  translations: {
    de: "Datenextraktion",
    fr: "extraction de données",
    es: "extracción de datos",
  },
});
{
  "id": "term_abc123",
  "term": "data extraction",
  "type": "specific_translation",
  "case_sensitive": false,
  "category": "custom",
  "translations": {
    "de": "Datenextraktion",
    "fr": "extraction de données"
  },
  "created_at": "2025-03-01T10:00:00.000Z"
}
Glossary terms control how specific words or phrases are handled during AI enhancement and translation.

Request body

term
string
required
The original term to add.
type
string
required
How to handle this term. One of:
  • do_not_translate — Keep the term as-is in all languages.
  • specific_translation — Use the provided translations.
  • context_dependent — Let the AI decide based on context.
case_sensitive
boolean
default:"false"
Whether matching should be case-sensitive.
category
string
default:"custom"
A category for organizing terms.
translations
object
Map of language codes to translated terms. Required when type is specific_translation.

Response

id
string
Unique term identifier.
term
string
The original term.
type
string
Term type.
case_sensitive
boolean
Case sensitivity setting.
category
string
Term category.
translations
object
Translation map.
created_at
string
ISO 8601 timestamp.
// Brand term -- do not translate
await client.glossary.create({
  term: "Lasso AI",
  type: "do_not_translate",
  case_sensitive: true,
  category: "brand",
});

// Term with specific translations
await client.glossary.create({
  term: "data extraction",
  type: "specific_translation",
  translations: {
    de: "Datenextraktion",
    fr: "extraction de données",
    es: "extracción de datos",
  },
});
{
  "id": "term_abc123",
  "term": "data extraction",
  "type": "specific_translation",
  "case_sensitive": false,
  "category": "custom",
  "translations": {
    "de": "Datenextraktion",
    "fr": "extraction de données"
  },
  "created_at": "2025-03-01T10:00:00.000Z"
}