Endpoints
Supported Model IDs
Pass one of these values as themodel parameter to override the project’s default:
If
model is omitted, the project’s preferredModel is used. If that is also unset, Entri falls back to claude-sonnet-4-6 (or the value of DEFAULT_AI_PROVIDER in your environment).
Check AI Status
Returns available providers and models for the organization:Translate a Single Key
Generates a translation for one key in one target language. Uses the project’spreferredModel unless overridden with model:
Response:
Batch Translate
Translates all untranslated strings for a target language:
The synchronous batch endpoint returns when all keys are translated. For large projects use the streaming endpoint below.
Streaming Batch Translation
For large batches, use the SSE-based streaming workflow: 1. Start a job:{ "jobId": "uuid", "total": 120, "skipped": 5, "totalKeys": 120, "page": 1, "hasMore": false }
2. Stream progress:
start, progress (per key), complete, cancelled
The complete event may include aborted: true with an abortReason string when the job stops early after repeated consecutive failures (e.g. an AI provider outage) — items skipped because of the abort are not counted in failed.
3. Cancel:
Key Notes
- AI translation is available only when at least one AI provider key is configured for your organization.
- The model used for each translation is recorded in the
providerfield of the response. - AI-generated translations are saved with
source: "ai"and statustranslated. They are not automatically approved — a reviewer should check them before they are promoted toapproved. - The AI uses your organization’s Translation Memory to stay consistent with previously approved translations.