# List import changes

`GET https://api.lingohub.com/v2/imports/{importId}/changes`

LingoHub API V2 (Beta) · [Imports](https://developers.lingohub.com/reference/v2/operations/tags/imports.md) · operation `listImportChanges`

Lists what the import changed, one item per segment and file, in the order it happened: the key (created, renamed, moved to another file, deactivated or reactivated) and the texts in each language (created, content or status changed, or outdated because the source changed). `entry_id` names the file. `segment_id` and `key_id` turn null once the segment or key no longer exists; names, paths and contents stay. Requires stack-level resource, segment, key and text view permission; texts are listed only in the languages the API key can read.

## Parameters

| Parameter | In | Required | Type | Description |
| --- | --- | --- | --- | --- |
| `importId` | path | yes | string |  |
| `filter` | query | no |  | Filters the list: URL-encoded JSON of the schema `ImportChangeFilter`. `where` holds exactly one `_and` or `_or` with an array of clauses; a clause is another `_and`/`_or` or a field with exactly one operator. This list… |
| `cursor` | query | no | string | Opaque pagination cursor from the `next_cursor` field of a previous response. Omit for the first page. |
| `limit` | query | no | integer | Maximum number of items to return per page (1-100). |

## Example request

```sh
curl --request GET \
  --url https://api.lingohub.com/v2/imports/IMPORT_ID/changes \
  --header 'Authorization: Bearer YOUR_API_KEY'
```

## Responses

- `200`: The import's changes.
- `400`: 
- `401`: 
- `403`: 
- `404`: 
- `429`: 
- `500`: 
- `503`: 

## OpenAPI definition

The complete definition of this operation, with every schema it references:

````json
{
  "openapi": "3.1.0",
  "info": {
    "title": "LingoHub API V2 (Beta)",
    "version": "2.0"
  },
  "servers": [
    {
      "url": "https://api.lingohub.com",
      "description": "LingoHub"
    }
  ],
  "tags": [
    {
      "name": "Imports",
      "description": "Import files into a branch in the background, and see what each import changed."
    }
  ],
  "paths": {
    "/v2/imports/{importId}/changes": {
      "get": {
        "tags": [
          "Imports"
        ],
        "summary": "List import changes",
        "description": "Lists what the import changed, one item per segment and file, in the order it happened: the key (created, renamed, moved to another file, deactivated or reactivated) and the texts in each language (created, content or status changed, or outdated because the source changed). `entry_id` names the file. `segment_id` and `key_id` turn null once the segment or key no longer exists; names, paths and contents stay. Requires stack-level resource, segment, key and text view permission; texts are listed only in the languages the API key can read.",
        "operationId": "listImportChanges",
        "parameters": [
          {
            "name": "importId",
            "in": "path",
            "required": true,
            "schema": {
              "type": "string",
              "description": "Public id that is created from the type prefix of the corresponding resource and its UUID. I.e : For a resource import, a valid value would be : rin_0197c8f2-5a6b-7cde-8f12-3456789abcde",
              "pattern": "^rin_[0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-[0-9a-fA-F]{12}$"
            }
          },
          {
            "name": "filter",
            "in": "query",
            "description": "Filters the list: URL-encoded JSON of the schema `ImportChangeFilter`. `where` holds exactly one `_and` or `_or` with an array of clauses; a clause is another `_and`/`_or` or a field with exactly one operator. This list cannot be sorted. An unsupported field, operator or value answers `400 invalid_filter` with a pointer into the filter.\n\n| Field | Type | Operators |\n|---|---|---|\n| `import_change[entry_id]` | id | `_eq` `_ne` `_in` `_nin` |\n| `import_change[key_change]` | CREATED \\| RENAMED \\| MOVED \\| REACTIVATED \\| DEACTIVATED | `_eq` `_ne` `_in` `_nin` |\n| `import_change[language_code]` | language code | `_eq` `_ne` `_in` `_nin` |\n| `import_change[segment_id]` | id | `_eq` `_ne` `_in` `_nin` |\n",
            "required": false,
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ImportChangeFilter"
                }
              }
            }
          },
          {
            "name": "cursor",
            "in": "query",
            "description": "Opaque pagination cursor from the `next_cursor` field of a previous response. Omit for the first page.",
            "required": false,
            "schema": {
              "type": "string"
            }
          },
          {
            "name": "limit",
            "in": "query",
            "description": "Maximum number of items to return per page (1-100).",
            "required": false,
            "schema": {
              "type": "integer",
              "format": "int32",
              "default": 20,
              "maximum": 100,
              "minimum": 1
            },
            "example": 20
          }
        ],
        "responses": {
          "200": {
            "description": "The import's changes.",
            "headers": {
              "RateLimit": {
                "$ref": "#/components/headers/RateLimit"
              },
              "RateLimit-Policy": {
                "$ref": "#/components/headers/RateLimit-Policy"
              }
            },
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ImportChangeCollection"
                }
              }
            }
          },
          "400": {
            "$ref": "#/components/responses/BadRequest"
          },
          "401": {
            "$ref": "#/components/responses/Unauthorized"
          },
          "403": {
            "$ref": "#/components/responses/Forbidden"
          },
          "404": {
            "$ref": "#/components/responses/NotFound"
          },
          "429": {
            "$ref": "#/components/responses/TooManyRequests"
          },
          "500": {
            "$ref": "#/components/responses/InternalServerError"
          },
          "503": {
            "$ref": "#/components/responses/ServiceUnavailable"
          }
        },
        "security": [
          {
            "bearerAuth": []
          }
        ]
      }
    }
  },
  "components": {
    "schemas": {
      "ImportChangeFilter": {
        "type": "object",
        "additionalProperties": false,
        "description": "The filter of a list: which items to return.",
        "properties": {
          "where": {
            "$ref": "#/components/schemas/ImportChangeFilterGroup"
          }
        }
      },
      "ImportChangeFilterGroup": {
        "type": "object",
        "additionalProperties": false,
        "description": "Exactly one of `_and` and `_or`, with the clauses it combines.",
        "maxProperties": 1,
        "minProperties": 1,
        "properties": {
          "_and": {
            "type": "array",
            "items": {
              "$ref": "#/components/schemas/ImportChangeFilterClause"
            },
            "minItems": 1
          },
          "_or": {
            "type": "array",
            "items": {
              "$ref": "#/components/schemas/ImportChangeFilterClause"
            },
            "minItems": 1
          }
        }
      },
      "ImportChangeFilterClause": {
        "type": "object",
        "additionalProperties": false,
        "description": "A nested `_and`/`_or`, or one field with one operator.",
        "maxProperties": 1,
        "minProperties": 1,
        "properties": {
          "_and": {
            "type": "array",
            "items": {
              "$ref": "#/components/schemas/ImportChangeFilterClause"
            },
            "minItems": 1
          },
          "_or": {
            "type": "array",
            "items": {
              "$ref": "#/components/schemas/ImportChangeFilterClause"
            },
            "minItems": 1
          },
          "import_change[entry_id]": {
            "type": "object",
            "additionalProperties": false,
            "description": "Exactly one operator of the field.",
            "maxProperties": 1,
            "minProperties": 1,
            "properties": {
              "_eq": {
                "type": "string",
                "pattern": "^rie_[0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-[0-9a-fA-F]{12}$"
              },
              "_ne": {
                "type": "string",
                "pattern": "^rie_[0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-[0-9a-fA-F]{12}$"
              },
              "_in": {
                "type": "array",
                "items": {
                  "type": "string",
                  "pattern": "^rie_[0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-[0-9a-fA-F]{12}$"
                },
                "minItems": 1
              },
              "_nin": {
                "type": "array",
                "items": {
                  "type": "string",
                  "pattern": "^rie_[0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-[0-9a-fA-F]{12}$"
                },
                "minItems": 1
              }
            }
          },
          "import_change[key_change]": {
            "type": "object",
            "additionalProperties": false,
            "description": "Exactly one operator of the field.",
            "maxProperties": 1,
            "minProperties": 1,
            "properties": {
              "_eq": {
                "type": "string",
                "enum": [
                  "CREATED",
                  "RENAMED",
                  "MOVED",
                  "REACTIVATED",
                  "DEACTIVATED"
                ]
              },
              "_ne": {
                "type": "string",
                "enum": [
                  "CREATED",
                  "RENAMED",
                  "MOVED",
                  "REACTIVATED",
                  "DEACTIVATED"
                ]
              },
              "_in": {
                "type": "array",
                "items": {
                  "type": "string",
                  "enum": [
                    "CREATED",
                    "RENAMED",
                    "MOVED",
                    "REACTIVATED",
                    "DEACTIVATED"
                  ]
                },
                "minItems": 1
              },
              "_nin": {
                "type": "array",
                "items": {
                  "type": "string",
                  "enum": [
                    "CREATED",
                    "RENAMED",
                    "MOVED",
                    "REACTIVATED",
                    "DEACTIVATED"
                  ]
                },
                "minItems": 1
              }
            }
          },
          "import_change[language_code]": {
            "type": "object",
            "additionalProperties": false,
            "description": "Exactly one operator of the field.",
            "maxProperties": 1,
            "minProperties": 1,
            "properties": {
              "_eq": {
                "type": "string"
              },
              "_ne": {
                "type": "string"
              },
              "_in": {
                "type": "array",
                "items": {
                  "type": "string"
                },
                "minItems": 1
              },
              "_nin": {
                "type": "array",
                "items": {
                  "type": "string"
                },
                "minItems": 1
              }
            }
          },
          "import_change[segment_id]": {
            "type": "object",
            "additionalProperties": false,
            "description": "Exactly one operator of the field.",
            "maxProperties": 1,
            "minProperties": 1,
            "properties": {
              "_eq": {
                "type": "string",
                "pattern": "^seg_[0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-[0-9a-fA-F]{12}$"
              },
              "_ne": {
                "type": "string",
                "pattern": "^seg_[0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-[0-9a-fA-F]{12}$"
              },
              "_in": {
                "type": "array",
                "items": {
                  "type": "string",
                  "pattern": "^seg_[0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-[0-9a-fA-F]{12}$"
                },
                "minItems": 1
              },
              "_nin": {
                "type": "array",
                "items": {
                  "type": "string",
                  "pattern": "^seg_[0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-[0-9a-fA-F]{12}$"
                },
                "minItems": 1
              }
            }
          }
        }
      },
      "ImportChangeCollection": {
        "type": "object",
        "description": "A page of an import's changes.",
        "properties": {
          "object_type": {
            "type": "string",
            "description": "Always `LIST`.",
            "enum": [
              "LIST"
            ],
            "example": "LIST"
          },
          "has_more": {
            "type": "boolean",
            "description": "True if more items exist after this page. Iterate by repeating the request with the cursor query parameter set to next_cursor until has_more is false.",
            "example": true
          },
          "next_cursor": {
            "type": [
              "string",
              "null"
            ],
            "description": "Opaque cursor token pointing past the last item of this page. Null on the last page. Pass it unchanged via the cursor query parameter to request the next page.",
            "example": "1uO9WTLnYqGAtIWkjDmz4VuJZWLkWMxXIH4Hkp2DTuRtPNQYBpkF6Q"
          },
          "data": {
            "type": "array",
            "description": "The list of items in this page.",
            "example": [
              {
                "object_type": "IMPORT_CHANGE",
                "entry_id": "rie_0197c8f2-5a6b-7cde-8f12-3456789abcde",
                "segment_id": "seg_0197c8f2-5a6b-7cde-8f12-3456789abcde",
                "key": {
                  "change": "RENAMED",
                  "key_id": "ress_0197c8f2-5a6b-7cde-8f12-3456789abcde",
                  "key": "home.title",
                  "previous_key": "welcome.title",
                  "path": "locales/en.json",
                  "previous_path": "locales/en.json"
                },
                "texts": [
                  {
                    "language_code": "en",
                    "change": "CONTENT_CHANGED",
                    "status": "APPROVED",
                    "previous_status": "APPROVED",
                    "variants": [
                      {
                        "plural_form": "OTHER",
                        "device": "OTHER",
                        "position": 0,
                        "content": "Welcome back!",
                        "previous_content": "Welcome!"
                      }
                    ]
                  },
                  {
                    "language_code": "de",
                    "change": "STATUS_CHANGED_BY_SOURCE",
                    "status": "STALE",
                    "previous_status": "APPROVED",
                    "variants": []
                  }
                ],
                "created_at": "2026-01-15T10:30:00.123Z"
              }
            ],
            "items": {
              "$ref": "#/components/schemas/ImportChange"
            }
          }
        },
        "required": [
          "data",
          "has_more",
          "next_cursor",
          "object_type"
        ]
      },
      "ImportChange": {
        "type": "object",
        "description": "What an import changed of one segment in one file: its key and its texts.",
        "properties": {
          "object_type": {
            "type": "string",
            "description": "Always `IMPORT_CHANGE`.",
            "enum": [
              "IMPORT_CHANGE"
            ],
            "example": "IMPORT_CHANGE"
          },
          "entry_id": {
            "type": "string",
            "description": "Unique identifier of the import entry, the file, the change was made by.",
            "example": "rie_0197c8f2-5a6b-7cde-8f12-3456789abcde",
            "pattern": "^rie_[0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-[0-9a-fA-F]{12}$"
          },
          "segment_id": {
            "type": [
              "string",
              "null"
            ],
            "description": "Unique identifier of the segment; null once the segment no longer exists.",
            "example": "seg_0197c8f2-5a6b-7cde-8f12-3456789abcde",
            "pattern": "^seg_[0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-[0-9a-fA-F]{12}$"
          },
          "key": {
            "description": "What the import did with the key; null when it changed only texts.",
            "oneOf": [
              {
                "$ref": "#/components/schemas/ImportKeyChange"
              },
              {
                "type": "null"
              }
            ]
          },
          "texts": {
            "type": "array",
            "description": "What the import did with the segment's texts, one per language you can read; empty when it changed only the key.",
            "example": [
              {
                "language_code": "en",
                "change": "CONTENT_CHANGED",
                "status": "APPROVED",
                "previous_status": "APPROVED",
                "variants": [
                  {
                    "plural_form": "OTHER",
                    "device": "OTHER",
                    "position": 0,
                    "content": "Welcome back!",
                    "previous_content": "Welcome!"
                  }
                ]
              },
              {
                "language_code": "de",
                "change": "STATUS_CHANGED_BY_SOURCE",
                "status": "STALE",
                "previous_status": "APPROVED",
                "variants": []
              }
            ],
            "items": {
              "$ref": "#/components/schemas/ImportTextChange"
            }
          },
          "created_at": {
            "type": "string",
            "format": "date-time",
            "description": "When the import made the change.",
            "example": "2026-01-15T10:30:00.123Z"
          }
        },
        "required": [
          "created_at",
          "entry_id",
          "key",
          "object_type",
          "segment_id",
          "texts"
        ]
      },
      "ImportKeyChange": {
        "type": "object",
        "description": "What an import did with a key.",
        "properties": {
          "change": {
            "$ref": "#/components/schemas/ImportKeyChangeType",
            "description": "What the import did with the key.",
            "example": "RENAMED"
          },
          "key_id": {
            "type": [
              "string",
              "null"
            ],
            "description": "Unique identifier of the key; null once the key no longer exists.",
            "example": "ress_0197c8f2-5a6b-7cde-8f12-3456789abcde",
            "pattern": "^ress_[0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-[0-9a-fA-F]{12}$"
          },
          "key": {
            "type": "string",
            "description": "The key after the import.",
            "example": "home.title"
          },
          "previous_key": {
            "type": [
              "string",
              "null"
            ],
            "description": "The key before the import; null for a created key.",
            "example": "welcome.title"
          },
          "path": {
            "type": "string",
            "description": "Path of the key's file after the import.",
            "example": "locales/en.json"
          },
          "previous_path": {
            "type": [
              "string",
              "null"
            ],
            "description": "Path of the key's file before the import; null for a new file.",
            "example": "locales/en.json"
          }
        },
        "required": [
          "change",
          "key",
          "key_id",
          "path",
          "previous_key",
          "previous_path"
        ]
      },
      "ImportKeyChangeType": {
        "type": "string",
        "description": "What the import did with a key: `CREATED` it, `RENAMED` it, `MOVED` it here from another file, `REACTIVATED` it because its file contains it again, or `DEACTIVATED` it because its file no longer contains it.",
        "enum": [
          "CREATED",
          "RENAMED",
          "MOVED",
          "REACTIVATED",
          "DEACTIVATED"
        ]
      },
      "ImportTextChange": {
        "type": "object",
        "description": "What an import did with the text of a segment in one language.",
        "properties": {
          "language_code": {
            "type": "string",
            "description": "Language of the text.",
            "example": "en"
          },
          "change": {
            "$ref": "#/components/schemas/ImportTextChangeType",
            "description": "What the import did with the text.",
            "example": "CONTENT_CHANGED"
          },
          "status": {
            "$ref": "#/components/schemas/TextStatus",
            "description": "Status of the text after the import."
          },
          "previous_status": {
            "$ref": "#/components/schemas/TextStatus",
            "description": "Status of the text before the import."
          },
          "variants": {
            "type": "array",
            "description": "The variants whose content the import set; empty when it changed only the status.",
            "example": [
              {
                "plural_form": "OTHER",
                "device": "OTHER",
                "position": 0,
                "content": "Welcome back!",
                "previous_content": "Welcome!"
              }
            ],
            "items": {
              "$ref": "#/components/schemas/ImportVariantChange"
            }
          }
        },
        "required": [
          "change",
          "language_code",
          "previous_status",
          "status",
          "variants"
        ]
      },
      "ImportTextChangeType": {
        "type": "string",
        "description": "What the import did with a text: `CREATED` it, changed its `STATUS`, its `CONTENT` or both, or changed the status of a target text because its source changed (`STATUS_CHANGED_BY_SOURCE`).",
        "enum": [
          "CREATED",
          "STATUS_CHANGED",
          "CONTENT_CHANGED",
          "STATUS_AND_CONTENT_CHANGED",
          "STATUS_CHANGED_BY_SOURCE"
        ]
      },
      "TextStatus": {
        "type": "string",
        "description": "The workflow status of texts in a given language. Each status belongs to exactly one `TextStage` (see the `stage` grouping in the status counts).",
        "enum": [
          "BLOCKED",
          "NEW",
          "STALE",
          "REJECTED",
          "DRAFT",
          "AI_TRANSLATED",
          "TRANSLATED",
          "QA_PASSED",
          "QA_FLAGGED",
          "APPROVED",
          "NOT_TRANSLATABLE"
        ]
      },
      "ImportVariantChange": {
        "type": "object",
        "description": "One variant of a text the import changed, by plural form and device.",
        "properties": {
          "plural_form": {
            "$ref": "#/components/schemas/VariantPluralForm",
            "description": "Plural form of the variant.",
            "example": "OTHER"
          },
          "device": {
            "$ref": "#/components/schemas/VariantDevice",
            "description": "Device of the variant.",
            "example": "OTHER"
          },
          "position": {
            "type": "integer",
            "format": "int32",
            "description": "Position of the variant in the text.",
            "example": 0
          },
          "content": {
            "type": "string",
            "description": "Content after the import.",
            "example": "Welcome back!"
          },
          "previous_content": {
            "type": "string",
            "description": "Content before the import.",
            "example": "Welcome!"
          }
        },
        "required": [
          "content",
          "device",
          "plural_form",
          "position",
          "previous_content"
        ]
      },
      "VariantPluralForm": {
        "type": "string",
        "description": "Plural form of a text variant.",
        "enum": [
          "ZERO",
          "ONE",
          "TWO",
          "FEW",
          "MANY",
          "OTHER"
        ]
      },
      "VariantDevice": {
        "type": "string",
        "description": "Device of a text variant.",
        "enum": [
          "PHONE",
          "MUSIC_PLAYER",
          "TABLET",
          "WATCH",
          "TV",
          "GLASSES",
          "PC",
          "OTHER"
        ]
      },
      "Error": {
        "type": "object",
        "description": "RFC 9457 problem details. `code` identifies the problem type (one per `type` URL); `errors` lists rejected fields or parameters; `required_permission` names the permission a 403 lacked.",
        "properties": {
          "type": {
            "type": "string",
            "description": "URL identifying the problem type and pointing to its documentation.",
            "example": "https://api.lingohub.com/errors/resource-not-found"
          },
          "title": {
            "type": "string",
            "description": "Short, constant summary of the problem type.",
            "example": "Resource not found"
          },
          "status": {
            "type": "integer",
            "format": "int32",
            "description": "HTTP status code.",
            "example": 404
          },
          "detail": {
            "type": "string",
            "description": "Human-readable explanation of this occurrence of the problem.",
            "example": "Resource with ID 'pr_0197c8f2-5a6b-7cde-8f12-3456789abcde' was not found."
          },
          "instance": {
            "type": "string",
            "description": "Path of the request that produced the problem.",
            "example": "/v2/projects/pr_0197c8f2-5a6b-7cde-8f12-3456789abcde"
          },
          "code": {
            "$ref": "#/components/schemas/ErrorCode",
            "description": "Machine-readable problem type.",
            "example": "resource_not_found"
          },
          "request_id": {
            "type": "string",
            "description": "Correlation id of the request, also returned in the `X-Request-ID` header. Quote it when contacting support.",
            "example": "f47ac10b-58cc-4372-a567-0e02b2c3d479"
          },
          "errors": {
            "type": "array",
            "description": "Rejected fields or parameters. Present when the problem concerns specific fields or parameters.",
            "example": [
              {
                "detail": "must be at least 2 characters long",
                "pointer": "#/name",
                "parameter": "limit",
                "code": "minLength"
              }
            ],
            "items": {
              "$ref": "#/components/schemas/FieldError"
            }
          },
          "required_permission": {
            "$ref": "#/components/schemas/RequiredPermission",
            "description": "The permission the API key lacks. Present on 403 responses."
          }
        },
        "required": [
          "code",
          "detail",
          "instance",
          "request_id",
          "status",
          "title",
          "type"
        ]
      },
      "ErrorCode": {
        "type": "string",
        "description": "Machine-readable problem type of a V2 error response. Each code has a fixed HTTP status and documentation at its `type` URL.",
        "enum": [
          "invalid_json",
          "invalid_parameter",
          "missing_parameter",
          "unknown_parameter",
          "invalid_filter",
          "invalid_cursor",
          "bad_request",
          "missing_api_key",
          "invalid_api_key",
          "expired_api_key",
          "revoked_api_key",
          "disabled_api_key",
          "insufficient_permissions",
          "resource_not_found",
          "route_not_found",
          "method_not_allowed",
          "not_acceptable",
          "precondition_failed",
          "content_too_large",
          "unsupported_media_type",
          "already_exists",
          "idempotency_outcome_unknown",
          "idempotency_key_in_use",
          "stack_not_empty",
          "branch_not_ready",
          "backup_not_ready",
          "backup_in_use",
          "default_branch_protected",
          "owner_membership_protected",
          "source_language_protected",
          "branch_limit_reached",
          "context_image_limit_reached",
          "automation_limit_reached",
          "translation_order_pending",
          "git_integration_not_configured",
          "branch_git_integration_not_configured",
          "git_integration_unauthorized",
          "conflict",
          "validation_failed",
          "idempotency_key_mismatch",
          "rate_limit_exceeded",
          "internal_error",
          "upstream_error",
          "service_unavailable",
          "upstream_timeout"
        ]
      },
      "FieldError": {
        "type": "object",
        "description": "A rejected field or parameter. `pointer` locates a body field (RFC 6901 JSON Pointer), `parameter` a query, path or header parameter or a field of a multipart upload; both are set for a position inside a JSON-valued parameter such as `filter`.",
        "properties": {
          "detail": {
            "type": "string",
            "description": "Human-readable description of the problem.",
            "example": "must be at least 2 characters long"
          },
          "pointer": {
            "type": [
              "string",
              "null"
            ],
            "description": "JSON Pointer to the offending body field, or to the position inside a JSON-valued parameter.",
            "example": "#/name"
          },
          "parameter": {
            "type": [
              "string",
              "null"
            ],
            "description": "Name of the offending query, path or header parameter, or of the multipart form field.",
            "example": "limit"
          },
          "code": {
            "$ref": "#/components/schemas/FieldErrorCode",
            "description": "Why the field or parameter was rejected.",
            "example": "minLength"
          }
        },
        "required": [
          "code",
          "detail",
          "parameter",
          "pointer"
        ]
      },
      "FieldErrorCode": {
        "type": "string",
        "description": "Why a field or parameter was rejected: the JSON Schema keyword of the violated rule, or one of the documented rules that no schema can express.",
        "enum": [
          "required",
          "type",
          "enum",
          "minLength",
          "maxLength",
          "minimum",
          "maximum",
          "pattern",
          "format",
          "additionalProperties",
          "minItems",
          "maxItems",
          "uniqueItems",
          "already_exists",
          "not_found",
          "not_supported",
          "unsupported_file_extension",
          "file_too_large",
          "file_empty",
          "invalid_archive",
          "empty_archive"
        ]
      },
      "RequiredPermission": {
        "type": "object",
        "description": "The permission the API key lacks, in the vocabulary of the API key permission settings.",
        "properties": {
          "scope": {
            "$ref": "#/components/schemas/PermissionScope",
            "description": "Where the permission applies.",
            "example": "STACK"
          },
          "target": {
            "$ref": "#/components/schemas/PermissionTarget",
            "description": "The area the permission governs.",
            "example": "SETTINGS"
          },
          "level": {
            "$ref": "#/components/schemas/PermissionLevel",
            "description": "The access level required.",
            "example": "MANAGE"
          }
        },
        "required": [
          "level",
          "scope",
          "target"
        ]
      },
      "PermissionScope": {
        "type": "string",
        "description": "Where a permission applies: `WORKSPACE` permissions cover workspace-level resources, `STACK` permissions the resources of a stack (its projects, branches, resources, languages, ...).",
        "enum": [
          "WORKSPACE",
          "STACK"
        ]
      },
      "PermissionTarget": {
        "type": "string",
        "description": "The area a permission governs.",
        "enum": [
          "GENERAL",
          "BILLING_SUBSCRIPTION",
          "WORKSPACES",
          "MEMBERS",
          "PLUGINS_INTEGRATIONS",
          "LOGS",
          "API_ACCESS",
          "STACKS",
          "TRANSLATION_ORDERS",
          "WORK_REPORTS",
          "STYLE_GUIDES",
          "GLOSSARIES",
          "TRANSLATION_MEMORIES",
          "LABELS",
          "AI_TRANSLATION",
          "QUICK_TRANSLATIONS",
          "SETTINGS",
          "ACTIVITIES",
          "RESOURCES",
          "CONTEXT_IMAGES",
          "LANGUAGES",
          "SEGMENT_KEYS",
          "SEGMENTS",
          "SEGMENT_TEXTS"
        ]
      },
      "PermissionLevel": {
        "type": "string",
        "description": "Access level of a permission: `MANAGE` includes `WRITE` and `VIEW`.",
        "enum": [
          "NO_ACCESS",
          "VIEW",
          "WRITE",
          "MANAGE"
        ]
      }
    },
    "headers": {
      "RateLimit": {
        "description": "State of the rate-limit policy currently closest to rejection (IETF draft-ietf-httpapi-ratelimit-headers): the quoted policy name with `r` = requests remaining right now and `t` = seconds until the full quota is available again. Example: `\"api-key\";r=42;t=7`. Advisory: absent when the request fails authentication or the limiter state is momentarily unknown.",
        "schema": {
          "type": "string"
        }
      },
      "RateLimit-Policy": {
        "description": "The rate-limit policies applied to the request: each quoted policy name with `q` = sustained request quota per window of `w` seconds. Example: `\"api-key\";q=180;w=60, \"workspace\";q=600;w=60`. Advisory: absent when the request fails authentication or the limiter state is momentarily unknown.",
        "schema": {
          "type": "string"
        }
      },
      "Retry-After": {
        "description": "Seconds to wait before retrying.",
        "schema": {
          "type": "integer",
          "format": "int32"
        }
      }
    },
    "responses": {
      "BadRequest": {
        "description": "The request is malformed: an unknown or invalid query parameter, an invalid id in the path, or a body that is not valid JSON. `code` names the problem, `errors` the parameter or field.",
        "headers": {
          "RateLimit": {
            "$ref": "#/components/headers/RateLimit"
          },
          "RateLimit-Policy": {
            "$ref": "#/components/headers/RateLimit-Policy"
          }
        },
        "content": {
          "application/problem+json": {
            "schema": {
              "$ref": "#/components/schemas/Error"
            }
          }
        }
      },
      "Unauthorized": {
        "description": "Invalid or missing API key.",
        "content": {
          "application/problem+json": {
            "schema": {
              "$ref": "#/components/schemas/Error"
            }
          }
        }
      },
      "Forbidden": {
        "description": "Insufficient permissions.",
        "headers": {
          "RateLimit": {
            "$ref": "#/components/headers/RateLimit"
          },
          "RateLimit-Policy": {
            "$ref": "#/components/headers/RateLimit-Policy"
          }
        },
        "content": {
          "application/problem+json": {
            "schema": {
              "$ref": "#/components/schemas/Error"
            }
          }
        }
      },
      "NotFound": {
        "description": "The resource does not exist, or the API key cannot see it.",
        "headers": {
          "RateLimit": {
            "$ref": "#/components/headers/RateLimit"
          },
          "RateLimit-Policy": {
            "$ref": "#/components/headers/RateLimit-Policy"
          }
        },
        "content": {
          "application/problem+json": {
            "schema": {
              "$ref": "#/components/schemas/Error"
            }
          }
        }
      },
      "TooManyRequests": {
        "description": "The API rate limit was exceeded. Wait for the number of seconds given in the Retry-After header, then retry.",
        "headers": {
          "Retry-After": {
            "$ref": "#/components/headers/Retry-After"
          },
          "RateLimit": {
            "$ref": "#/components/headers/RateLimit"
          },
          "RateLimit-Policy": {
            "$ref": "#/components/headers/RateLimit-Policy"
          }
        },
        "content": {
          "application/problem+json": {
            "schema": {
              "$ref": "#/components/schemas/Error"
            }
          }
        }
      },
      "InternalServerError": {
        "description": "An unexpected internal server error occurred.",
        "headers": {
          "RateLimit": {
            "$ref": "#/components/headers/RateLimit"
          },
          "RateLimit-Policy": {
            "$ref": "#/components/headers/RateLimit-Policy"
          }
        },
        "content": {
          "application/problem+json": {
            "schema": {
              "$ref": "#/components/schemas/Error"
            }
          }
        }
      },
      "ServiceUnavailable": {
        "description": "The service is temporarily unavailable. Retry after the number of seconds in the Retry-After header.",
        "headers": {
          "Retry-After": {
            "$ref": "#/components/headers/Retry-After"
          },
          "RateLimit": {
            "$ref": "#/components/headers/RateLimit"
          },
          "RateLimit-Policy": {
            "$ref": "#/components/headers/RateLimit-Policy"
          }
        },
        "content": {
          "application/problem+json": {
            "schema": {
              "$ref": "#/components/schemas/Error"
            }
          }
        }
      }
    },
    "securitySchemes": {
      "bearerAuth": {
        "type": "http",
        "description": "API key authentication. Create API keys in your LingoHub workspace settings. Keys use the `lh-api_` prefix. Pass the full key as the Bearer token.",
        "scheme": "bearer"
      }
    }
  }
}
````
