Create and manage engines

List, create, read, update, and delete engines, including their locales, models, pipeline, and status.

These routes manage the engine itself. Its glossaries and rulesets are attached separately; see attach glossaries and rulesets. All routes use https://api.lingo.dev and API authentication, and the permissions table lists what each one requires.

List engines #

http
GET /v2/organizations/:orgId/engines
X-API-Key: YOUR_API_KEY

The response is { "data": [ ... ] } with every engine in the organization that the caller can read, most recently active first. The list is not paginated. A member who can read no engine receives an empty list; a caller outside the organization receives OrganizationNotFound (404).

Create an engine #

http
POST /v2/organizations/:orgId/engines
Content-Type: application/json
X-API-Key: YOUR_API_KEY
json
{
  "name": "Support center",
  "description": "Help articles and support macros",
  "sourceCoverage": ["en"],
  "targetCoverage": ["de", "fr", "ja"]
}

Only name is required. The response is the created engine.

FieldContract
nameNonempty string.
descriptionOptional string.
sourceCoverageSource locales the engine translates from. BCP 47 locale codes; [] or a list containing "*" covers every locale. Defaults to every locale.
targetCoverageTarget locales the engine translates into, with the same format and default as sourceCoverage.
modelConfigsOptional array of initial model configurations.
pipelineConfigOptional pipeline configuration. Omitted, the engine uses the default pipeline and pipelineConfigured is false.
enabledOptional boolean; defaults to true. false creates the engine disabled.
suggestionsEngine suggestion mode: off, review, or auto_apply. Defaults to off.
suggestionLocalesTarget locales that suggestions may cover. Defaults to [], which places no restriction.
autoScore{ "glossary": boolean, "rules": boolean }. Both default to false.

Glossaries, rulesets, and a brand voice cannot be attached in the create request. Attach them once the engine exists.

Initial model configurations #

Omit modelConfigs to seed the platform's default model chain, which covers every locale pair. Send [] to create an engine with no model configurations. To choose the models yourself, send one entry per model:

json
{
  "name": "Marketing site",
  "modelConfigs": [
    { "provider": "anthropic", "model": "MODEL_ID", "sourceLocale": "*", "targetLocale": "*", "rank": 0 },
    { "provider": "openai", "model": "FALLBACK_MODEL_ID", "sourceLocale": "*", "targetLocale": "*", "rank": 1 }
  ]
}

Each entry has a nonempty provider and model, a sourceLocale and targetLocale that are each a locale or "*", and an integer rank of 0 or more. Entries for the same locale pair form a chain, attempted in rank order; models and fallbacks explains the order. Repeating a rank within one locale pair returns ModelChainRankRepeated (422).

Read the configurations an engine holds with GET /v2/engines/:engineId/model-configs. Starting a job for a locale pair that no configuration matches returns ModelChainMissing (422), so an engine created with [] needs configurations before it can translate.

Create errors #

ProblemStatusCause
EngineLimitReached402The organization has as many engines as its plan allows.
PlanFeatureRequired402pipelineConfig enables a stage or integration the plan does not include.
MissingPermission403The caller lacks engine:create.
ModelChainRankRepeated422Two model configurations share a rank within one locale pair.

A pipelineConfig with human review routes can also return the route and decision-pool problems described in route human review.

Read an engine #

http
GET /v2/engines/:id
X-API-Key: YOUR_API_KEY

Engine response #

json
{
  "id": "eng_example",
  "organizationId": "org_example",
  "name": "Support center",
  "description": "Help articles and support macros",
  "sourceCoverage": ["en"],
  "targetCoverage": ["de", "fr", "ja"],
  "autoScore": { "glossary": false, "rules": false },
  "suggestions": "off",
  "suggestionLocales": [],
  "pipelineConfig": { "localize": { "enabled": true }, "...": "..." },
  "pipelineConfigured": false,
  "status": { "_tag": "Enabled" },
  "stats": {
    "glossaryTerms": 0,
    "rules": 0,
    "brandVoiceVariations": 0,
    "modelChains": 1,
    "lastActiveAt": null
  },
  "attachments": { "glossaryIds": [], "rulesetIds": [], "brandVoiceId": null },
  "createdAt": "2026-11-23T17:40:50.768Z",
  "updatedAt": "2026-11-23T17:40:50.768Z"
}

The settings fields carry the values described under create an engine. The response always contains the complete pipelineConfig, shortened here. The other fields are:

FieldMeaning
descriptionString, or null when the engine has none.
sourceCoverage, targetCoverageLocale arrays. [] means every locale.
pipelineConfiguredtrue once a pipeline configuration has been saved, so you can distinguish defaults from an explicit choice.
status{ "_tag": "Enabled" }, or { "_tag": "Disabled", "since": "..." } with the time the engine was disabled.
statsCounts of the guidance the engine applies and of its model chains, and lastActiveAt, which is null before any activity.
attachmentsIDs of the attached glossaries and rulesets, and the attached brand voice or null.

A caller that cannot read the engine receives EngineNotFound (404).

Update an engine #

http
PATCH /v2/engines/:id
Content-Type: application/json
X-API-Key: YOUR_API_KEY
json
{
  "targetCoverage": ["de", "fr", "ja", "ko"],
  "enabled": false
}

Send only the fields to change. The response is the updated engine.

The update accepts name, description, sourceCoverage, targetCoverage, pipelineConfig, enabled, suggestions, suggestionLocales, autoScore, and attachments. Each replaces the stored value: a coverage array replaces the whole list, and pipelineConfig replaces the whole pipeline configuration. description: null removes the description. enabled: false disables the engine and records the time in status.since; starting a job with a disabled engine returns EngineDisabled (409). enabled: true enables it again. attachments is described in replace an engine's attachments.

Model configurations are not part of the update. Change them through /v2/engines/:engineId/model-configs.

The update returns MissingPermission (403) when the caller can read the engine but lacks engine:edit, and PlanFeatureRequired (402) when pipelineConfig enables a stage the plan does not include.

Delete an engine #

http
DELETE /v2/engines/:id
X-API-Key: YOUR_API_KEY

The response is HTTP 200 with an empty body. Deleting requires engine:delete.

Deleting an engine also deletes its model configurations and detaches its glossaries, rulesets, and brand voice. The glossaries and rulesets themselves remain in the organization, together with their terms and rules. Once no other engine applies them, you can delete a glossary or delete a ruleset.

To stop using an engine while keeping its configuration, update it with "enabled": false instead.