Loading...
Loading...
Loading...
We use essential storage to operate Lexel Translate. With your permission, we also use analytics, advertising, and marketing technologies. Read our Cookie Policy.
Loading...
Create grouped terminology, pin immutable versions, and apply exact selections during translation. Session auth only.
/api/v1/translate/glossariesList accessible glossaries.
/api/v1/translate/glossariesCreate a glossary.
/api/v1/translate/glossaries/:glossaryIdFetch one mutable glossary tree.
/api/v1/translate/glossaries/:glossaryIdReplace the mutable glossary tree.
/api/v1/translate/glossaries/:glossaryIdDelete a glossary.
/api/v1/translate/glossaries/:glossaryId/versionsList immutable versions.
/api/v1/translate/glossaries/:glossaryId/versions/:versionIdFetch one immutable version.
curl -X POST "https://translate.lexel.ai/api/v1/translate/glossaries" \-H "Cookie: better-auth.session_token=your_session_cookie" \-H "Content-Type: application/json" \-d '{"name": "Support French terminology","sourceLanguageTag": "en-Latn","targetLanguageTag": "fr-Latn","caseSensitive": false,"groups": [{"name": "Support Terms","enabled": true,"items": [{"type": "mapping","source": "support ticket","target": "ticket d'\''assistance","enabled": true},{"type": "do_not_translate","value": "Lexel Translate","enabled": true}]}]}'
PATCH replaces the complete tree. Use the actual updatedAt from your last read as expectedUpdatedAt (the timestamp below is illustrative). If the API returns 409, re-read the glossary and reconcile your changes before retrying.
curl -X PATCH "https://translate.lexel.ai/api/v1/translate/glossaries/gls_123" \-H "Cookie: better-auth.session_token=your_session_cookie" \-H "Content-Type: application/json" \-d '{"expectedUpdatedAt": "2026-10-09T00:00:00.000Z","name": "Support French terminology","sourceLanguageTag": "en-Latn","targetLanguageTag": "fr-Latn","caseSensitive": false,"groups": [{"name": "Support Terms","enabled": true,"items": [{"type": "mapping","source": "support ticket","target": "ticket d'\''assistance","enabled": true}]}]}'
curl -X DELETE "https://translate.lexel.ai/api/v1/translate/glossaries/gls_123" \-H "Cookie: better-auth.session_token=your_session_cookie"
| Field | Type | Required | Description |
|---|---|---|---|
| name | string | Yes | Glossary display name, up to 120 characters. |
| expectedUpdatedAt | string (date-time) | No | Required for PATCH only. Copy updatedAt from the latest GET or list response. A stale revision returns 409 without saving. |
| sourceLanguageTag | string | No | Optional source language tag for this glossary. |
| targetLanguageTag | string | No | Optional target language tag for this glossary. |
| caseSensitive | boolean | No | Default case sensitivity for matching entries. |
| groups[] | array | Yes | Nested groups of enabled or disabled items. Maximum 5 levels, 100 groups, and 1,000 items across the whole glossary. |
| groups[].name | string | Yes | Group name, up to 120 characters. |
| groups[].enabled | boolean | No | Whether the group contributes entries by default. |
| groups[].items[] | array | No | Mapping or do-not-translate items in this group. |
| items[].type | mapping | do_not_translate | Yes | Item behavior. |
| items[].source | string | No | Source term for mapping items. |
| items[].target | string | No | Target term for mapping items. |
| items[].value | string | No | Value for do_not_translate items. |
| items[].enabled | boolean | No | Whether the item can be selected or applied by default. |
{"request_id": "req_glossary_demo_001","src": "en-Latn","tgt": "fr-Latn","glossary_id": "gls_123","glossary_version_id": "glv_456","glossary_group_ids": ["grp_support"],"glossary_item_ids": ["itm_brand"],"input": {"items": [{"txt": "Open a support ticket for the account owner."}]}}
| Field | Type | Required | Description |
|---|---|---|---|
| glossary_id | string | Yes | Stored glossary to apply. A translation item can reference one stored glossary at a time. |
| glossary_version_id | string | No | Immutable snapshot to pin for that same stored glossary. Useful for async jobs and reproducible workflows. |
| glossary_group_ids | string[] | No | Enabled groups to include from that stored glossary. Narrows default selection. |
| glossary_item_ids | string[] | No | Enabled items to include from that stored glossary. Combined with selected groups as a union. |