{
  "openapi": "3.1.1",
  "info": {
    "title": "Document Translation API",
    "description": "Translate Office documents one at a time or in batches, with their layout kept intact.",
    "version": "1.0.0",
    "contact": {}
  },
  "servers": [
    {
      "url": "{{API_BASE_URL}}",
      "description": "Your API environment"
    }
  ],
  "tags": [
    {
      "name": "Uploads"
    },
    {
      "name": "Translations"
    },
    {
      "name": "Batches"
    },
    {
      "name": "Results"
    },
    {
      "name": "Editing"
    },
    {
      "name": "DITA maps"
    }
  ],
  "paths": {
    "/v1/galaxy/playground/document/batches": {
      "get": {
        "operationId": "list-batches",
        "parameters": [
          {
            "name": "page",
            "required": false,
            "in": "query",
            "description": "Page to return, from 1.",
            "schema": {
              "default": 1,
              "type": "number",
              "examples": [
                1
              ]
            }
          },
          {
            "name": "size",
            "required": false,
            "in": "query",
            "description": "Batches per page, from 1 to 100.",
            "schema": {
              "default": 8,
              "type": "number",
              "examples": [
                8
              ]
            }
          }
        ],
        "responses": {
          "200": {
            "description": "One page of batches.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/BatchListResponseDto"
                }
              }
            }
          },
          "400": {
            "description": "Invalid request: a field failed validation, or a parameter is malformed (for example, an ID that is not a UUID).",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                },
                "examples": {
                  "default": {
                    "value": {
                      "statusCode": 400,
                      "message": [
                        "email must be an email"
                      ],
                      "error": "Bad Request"
                    }
                  }
                }
              }
            }
          },
          "401": {
            "description": "The `x-api-key` header is missing, or the key is invalid, expired or deleted.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                },
                "examples": {
                  "default": {
                    "value": {
                      "statusCode": 401,
                      "message": "Unauthorized"
                    }
                  }
                }
              }
            }
          },
          "403": {
            "description": "Not allowed: the API key's role lacks the permission (`PermissionDenied`), the product is not enabled for your organization, or it has been turned off.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                },
                "examples": {
                  "default": {
                    "value": {
                      "statusCode": 403,
                      "message": "Forbidden resource",
                      "error": "Forbidden"
                    }
                  }
                }
              }
            }
          },
          "429": {
            "description": "Too many requests for this key. Wait the number of seconds in `Retry-After`, then retry.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                },
                "examples": {
                  "default": {
                    "value": {
                      "statusCode": 429,
                      "message": "ThrottlerException: Too Many Requests"
                    }
                  }
                }
              }
            }
          },
          "500": {
            "description": "Something failed on our side. Retry with backoff; if it persists, contact support with the `X-Request-Id`.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                },
                "examples": {
                  "default": {
                    "value": {
                      "statusCode": 500,
                      "message": "Internal server error"
                    }
                  }
                }
              }
            }
          }
        },
        "summary": "List batches",
        "tags": [
          "Batches"
        ],
        "x-orbitdocs-content": [
          {
            "markdown": "**Permission:** `playground.document:read`. An API key acts with the role of the member who created it.",
            "position": "after-description"
          }
        ],
        "description": "Batches in your organization, newest first, including those made by Translate a folder. Paginated with `page` and `size`. A role that sees only its own work gets only its own batches and those with a file assigned to it.",
        "x-orbitdocs-order": 3,
        "security": [
          {
            "ApiKeyAuth": []
          }
        ]
      }
    },
    "/v1/galaxy/playground/document/batches/{batchId}": {
      "get": {
        "operationId": "get-a-batch",
        "parameters": [
          {
            "name": "batchId",
            "required": true,
            "in": "path",
            "description": "Batch ID: `batchId` from Translate a batch of files or Translate a folder.",
            "schema": {
              "format": "uuid",
              "type": "string",
              "examples": [
                "2a6f1c8e-4b3d-4e9a-8c7b-5d1e2f3a4b5c"
              ]
            }
          }
        ],
        "responses": {
          "200": {
            "description": "The batch and its files.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/BatchDetailResponseDto"
                }
              }
            }
          },
          "400": {
            "description": "A path parameter is not a UUID (`Validation failed (uuid is expected)`).",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                },
                "examples": {
                  "default": {
                    "value": {
                      "statusCode": 400,
                      "message": [
                        "email must be an email"
                      ],
                      "error": "Bad Request"
                    }
                  }
                }
              }
            }
          },
          "401": {
            "description": "The `x-api-key` header is missing, or the key is invalid, expired or deleted.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                },
                "examples": {
                  "default": {
                    "value": {
                      "statusCode": 401,
                      "message": "Unauthorized"
                    }
                  }
                }
              }
            }
          },
          "403": {
            "description": "Not allowed: the API key's role lacks the permission (`PermissionDenied`), the product is not enabled for your organization, or it has been turned off.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                },
                "examples": {
                  "default": {
                    "value": {
                      "statusCode": 403,
                      "message": "Forbidden resource",
                      "error": "Forbidden"
                    }
                  }
                }
              }
            }
          },
          "404": {
            "description": "No batch with this ID in your organization, or none your role may see (`Batch not found`).",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                },
                "examples": {
                  "default": {
                    "value": {
                      "statusCode": 404,
                      "message": "Not Found"
                    }
                  }
                }
              }
            }
          },
          "429": {
            "description": "Too many requests for this key. Wait the number of seconds in `Retry-After`, then retry.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                },
                "examples": {
                  "default": {
                    "value": {
                      "statusCode": 429,
                      "message": "ThrottlerException: Too Many Requests"
                    }
                  }
                }
              }
            }
          },
          "500": {
            "description": "Something failed on our side. Retry with backoff; if it persists, contact support with the `X-Request-Id`.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                },
                "examples": {
                  "default": {
                    "value": {
                      "statusCode": 500,
                      "message": "Internal server error"
                    }
                  }
                }
              }
            }
          }
        },
        "summary": "Get a batch",
        "tags": [
          "Batches"
        ],
        "x-orbitdocs-content": [
          {
            "markdown": "**Permission:** `playground.document:read`. An API key acts with the role of the member who created it.",
            "position": "after-description"
          }
        ],
        "description": "A batch and the current status of each of its files. `status` is `processing` while any file runs, then `done`, `partial` or `failed`. Poll every 5 to 30 seconds.",
        "x-orbitdocs-order": 2,
        "security": [
          {
            "ApiKeyAuth": []
          }
        ]
      }
    },
    "/v1/galaxy/playground/document/bulk-verify-phrases": {
      "put": {
        "description": "Set one review status (`u` unverified, `v` verified, `a` approved) on many segments at once, by `layerIndex`. The text is not changed. Like an edit, the change reaches your translation memory only with Sync edits to the translation memory.",
        "operationId": "set-review-status",
        "parameters": [],
        "requestBody": {
          "required": true,
          "content": {
            "application/json": {
              "schema": {
                "$ref": "#/components/schemas/BulkUpdatePlaygroundVerificationDto"
              }
            }
          }
        },
        "responses": {
          "200": {
            "description": "The segments were updated.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/BulkVerifyResponseDto"
                }
              }
            }
          },
          "400": {
            "description": "Invalid request: a field failed validation, or a parameter is malformed (for example, an ID that is not a UUID).",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                },
                "examples": {
                  "default": {
                    "value": {
                      "statusCode": 400,
                      "message": [
                        "email must be an email"
                      ],
                      "error": "Bad Request"
                    }
                  }
                }
              }
            }
          },
          "401": {
            "description": "The `x-api-key` header is missing, or the key is invalid, expired or deleted.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                },
                "examples": {
                  "default": {
                    "value": {
                      "statusCode": 401,
                      "message": "Unauthorized"
                    }
                  }
                }
              }
            }
          },
          "403": {
            "description": "Not allowed: the API key's role lacks the permission (`PermissionDenied`), the product is not enabled for your organization, or it has been turned off.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                },
                "examples": {
                  "default": {
                    "value": {
                      "statusCode": 403,
                      "message": "Forbidden resource",
                      "error": "Forbidden"
                    }
                  }
                }
              }
            }
          },
          "404": {
            "description": "No translation with this ID in your organization (`Playground log not found`), or the key's role sees only its own work and this translation is not its own (`Process not found`).",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                },
                "examples": {
                  "default": {
                    "value": {
                      "statusCode": 404,
                      "message": "Not Found"
                    }
                  }
                }
              }
            }
          },
          "429": {
            "description": "Too many requests for this key. Wait the number of seconds in `Retry-After`, then retry.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                },
                "examples": {
                  "default": {
                    "value": {
                      "statusCode": 429,
                      "message": "ThrottlerException: Too Many Requests"
                    }
                  }
                }
              }
            }
          },
          "500": {
            "description": "Something failed on our side. Retry with backoff; if it persists, contact support with the `X-Request-Id`.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                },
                "examples": {
                  "default": {
                    "value": {
                      "statusCode": 500,
                      "message": "Internal server error"
                    }
                  }
                }
              }
            }
          }
        },
        "summary": "Set review status",
        "tags": [
          "Editing"
        ],
        "x-orbitdocs-content": [
          {
            "markdown": "**Permission:** `playground.document:update`. An API key acts with the role of the member who created it.",
            "position": "after-description"
          }
        ],
        "x-orbitdocs-order": 3,
        "security": [
          {
            "ApiKeyAuth": []
          }
        ]
      }
    },
    "/v1/galaxy/playground/document/edited-picture/upload/presign": {
      "post": {
        "operationId": "get-an-edited-picture-upload-url",
        "parameters": [],
        "requestBody": {
          "required": true,
          "content": {
            "application/json": {
              "schema": {
                "$ref": "#/components/schemas/CreateStagedUploadDto"
              }
            }
          }
        },
        "responses": {
          "201": {
            "description": "The upload URL and the key to send.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/StagedUploadTicketDto"
                }
              }
            }
          },
          "400": {
            "description": "A field failed validation, or: `The file is empty.`, `The picture is larger than the 25 MB limit.`, or a file of another type (`That isn't a picture this step takes (.png, .jpg, .jpeg, .webp, .gif).`).",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                },
                "examples": {
                  "default": {
                    "value": {
                      "statusCode": 400,
                      "message": [
                        "email must be an email"
                      ],
                      "error": "Bad Request"
                    }
                  }
                }
              }
            }
          },
          "401": {
            "description": "The `x-api-key` header is missing, or the key is invalid, expired or deleted.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                },
                "examples": {
                  "default": {
                    "value": {
                      "statusCode": 401,
                      "message": "Unauthorized"
                    }
                  }
                }
              }
            }
          },
          "403": {
            "description": "Not allowed: the API key's role lacks the permission (`PermissionDenied`), the product is not enabled for your organization, or it has been turned off.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                },
                "examples": {
                  "default": {
                    "value": {
                      "statusCode": 403,
                      "message": "Forbidden resource",
                      "error": "Forbidden"
                    }
                  }
                }
              }
            }
          },
          "429": {
            "description": "The API key's member asked for too many upload URLs in the last hour (300 by default: `Too many uploads in the last hour. Please wait and try again.`), or has too many bytes uploaded and not yet used (5 GB by default). Also returned when the key exceeds its request rate.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                },
                "examples": {
                  "default": {
                    "value": {
                      "statusCode": 429,
                      "message": "ThrottlerException: Too Many Requests"
                    }
                  }
                }
              }
            }
          },
          "500": {
            "description": "Something failed on our side. Retry with backoff; if it persists, contact support with the `X-Request-Id`.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                },
                "examples": {
                  "default": {
                    "value": {
                      "statusCode": 500,
                      "message": "Internal server error"
                    }
                  }
                }
              }
            }
          }
        },
        "summary": "Get an edited picture upload URL",
        "tags": [
          "Uploads"
        ],
        "x-orbitdocs-content": [
          {
            "markdown": "**Permission:** `playground.document:update`. An API key acts with the role of the member who created it.",
            "position": "after-description"
          }
        ],
        "description": "For a PNG, JPG, WebP or GIF picture up to 25 MB, to send to Use an edited picture as `uploadKey` instead of the `file` part. Send its `fileName`, `contentType` and exact `size`; you get a presigned `uploadUrl`: `PUT` the picture to it with exactly the `headers` returned, within 10 minutes. The upload is used once; one not used within a day is deleted.",
        "x-orbitdocs-order": 3,
        "security": [
          {
            "ApiKeyAuth": []
          }
        ]
      }
    },
    "/v1/galaxy/playground/document/logs": {
      "get": {
        "description": "Translations in your organization, newest first by default. Filter by `search` (name), `format`, `status`, `sourceLanguage`, `targetLanguage` and a `createdAt` range; paginate with `page` and `size`. Files of a batch or folder run are listed one by one.",
        "operationId": "list-translations",
        "parameters": [
          {
            "name": "page",
            "required": false,
            "in": "query",
            "description": "Page to return, from 1.",
            "schema": {
              "default": 1,
              "type": "number",
              "examples": [
                1
              ]
            }
          },
          {
            "name": "size",
            "required": false,
            "in": "query",
            "description": "Translations per page, from 1 to 100.",
            "schema": {
              "default": 8,
              "type": "number",
              "examples": [
                8
              ]
            }
          },
          {
            "name": "sort",
            "required": false,
            "in": "query",
            "description": "Sort order: `<field>_<asc|desc>`, where the field is `date` (created), `name`, `format` or `consumed` (billable words). Default `date_desc`, newest first.",
            "schema": {
              "default": "date_desc",
              "type": "string",
              "examples": [
                "date_desc"
              ]
            }
          },
          {
            "name": "scope",
            "required": false,
            "in": "query",
            "description": "`personal` lists only translations the API key's member started or is assigned to; `org` (the default) lists the whole organization. A role limited to its own work always gets `personal`.",
            "schema": {
              "type": "string",
              "enum": [
                "personal",
                "org"
              ],
              "examples": [
                "org"
              ]
            }
          },
          {
            "name": "projectId",
            "required": false,
            "in": "query",
            "description": "Only translations filed under this project. Pass `none` for translations in no project. Omit for all.",
            "schema": {
              "type": "string",
              "examples": [
                "4e7a1b9c-3d2f-4c8e-9a6b-0d1c2b3a4f5e"
              ]
            }
          },
          {
            "name": "search",
            "required": false,
            "in": "query",
            "description": "Only translations whose name contains this text (case-insensitive).",
            "schema": {
              "type": "string",
              "examples": [
                "quarterly"
              ]
            }
          },
          {
            "name": "format",
            "required": false,
            "in": "query",
            "description": "Only this format, case-insensitive: `text`, `json` (also `.arb`), `xml`, `xliff`, `html`, `markdown`, `yaml`, `docx`, `pptx`, `xlsx`, `csv` (also `.tsv`), `pdf`, `idml`, `tableau` or `dita`. Several, comma-separated, match any of them (`docx,pptx`).",
            "schema": {
              "type": "string",
              "examples": [
                "docx"
              ]
            }
          },
          {
            "name": "status",
            "required": false,
            "in": "query",
            "description": "Only this status: `SCHEDULED`, `RUNNING`, `COMPLETED`, `FAILED` or `TERMINATED`; or a human job still at `HUMAN_TRANSLATION` or `HUMAN_REVISION`. `COMPLETED` leaves those out: the list shows them by their stage.",
            "schema": {
              "type": "string",
              "enum": [
                "SCHEDULED",
                "RUNNING",
                "COMPLETED",
                "FAILED",
                "TERMINATED",
                "HUMAN_TRANSLATION",
                "HUMAN_REVISION"
              ],
              "examples": [
                "COMPLETED"
              ]
            }
          },
          {
            "name": "sourceLanguage",
            "required": false,
            "in": "query",
            "description": "Only this source language, exactly as sent when translating.",
            "schema": {
              "type": "string",
              "examples": [
                "en-US"
              ]
            }
          },
          {
            "name": "targetLanguage",
            "required": false,
            "in": "query",
            "description": "Only this target language, exactly as sent when translating.",
            "schema": {
              "type": "string",
              "examples": [
                "hi-IN"
              ]
            }
          },
          {
            "name": "createdAt",
            "required": false,
            "in": "query",
            "description": "Only translations created in this range: a JSON object with `gte` and/or `lte` dates. A value that is not JSON is ignored; a bound that is not a date returns 400.",
            "schema": {
              "type": "string",
              "examples": [
                "{\"gte\":\"2026-09-01\",\"lte\":\"2026-09-30\"}"
              ]
            }
          }
        ],
        "responses": {
          "200": {
            "description": "One page of translations, with the total in `totalLogs`.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/LogListResponseDto"
                }
              }
            }
          },
          "400": {
            "description": "A query parameter failed validation, or a `createdAt` bound is not a date (`createdAt.gte must be a date (e.g. 2025-01-31).`).",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                },
                "examples": {
                  "default": {
                    "value": {
                      "statusCode": 400,
                      "message": [
                        "email must be an email"
                      ],
                      "error": "Bad Request"
                    }
                  }
                }
              }
            }
          },
          "401": {
            "description": "The `x-api-key` header is missing, or the key is invalid, expired or deleted.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                },
                "examples": {
                  "default": {
                    "value": {
                      "statusCode": 401,
                      "message": "Unauthorized"
                    }
                  }
                }
              }
            }
          },
          "403": {
            "description": "Not allowed: the API key's role lacks the permission (`PermissionDenied`), the product is not enabled for your organization, or it has been turned off.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                },
                "examples": {
                  "default": {
                    "value": {
                      "statusCode": 403,
                      "message": "Forbidden resource",
                      "error": "Forbidden"
                    }
                  }
                }
              }
            }
          },
          "429": {
            "description": "Too many requests for this key. Wait the number of seconds in `Retry-After`, then retry.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                },
                "examples": {
                  "default": {
                    "value": {
                      "statusCode": 429,
                      "message": "ThrottlerException: Too Many Requests"
                    }
                  }
                }
              }
            }
          },
          "500": {
            "description": "Something failed on our side. Retry with backoff; if it persists, contact support with the `X-Request-Id`.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                },
                "examples": {
                  "default": {
                    "value": {
                      "statusCode": 500,
                      "message": "Internal server error"
                    }
                  }
                }
              }
            }
          }
        },
        "summary": "List translations",
        "tags": [
          "Translations"
        ],
        "x-orbitdocs-content": [
          {
            "markdown": "**Permission:** `playground.document:read`. An API key acts with the role of the member who created it.",
            "position": "after-description"
          }
        ],
        "x-orbitdocs-order": 5,
        "security": [
          {
            "ApiKeyAuth": []
          }
        ]
      }
    },
    "/v1/galaxy/playground/document/logs/{id}": {
      "get": {
        "description": "One translation: its `status`, languages, word count and credits. Poll it after Translate a document until `status` is `COMPLETED` or `FAILED`; every 5 to 30 seconds is enough. It does not include the content: download it with Download the translated file, or read it with List segments.",
        "operationId": "get-a-translation",
        "parameters": [
          {
            "name": "id",
            "required": true,
            "in": "path",
            "description": "Translation ID: the `id` returned by Translate a document (or listed by List translations).",
            "schema": {
              "format": "uuid",
              "type": "string",
              "examples": [
                "7d3e9a41-2c5b-4f6e-9a1d-8b2c3d4e5f60"
              ]
            }
          }
        ],
        "responses": {
          "200": {
            "description": "The translation.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/LogDetailResponseDto"
                }
              }
            }
          },
          "400": {
            "description": "A path parameter is not a UUID (`Validation failed (uuid is expected)`).",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                },
                "examples": {
                  "default": {
                    "value": {
                      "statusCode": 400,
                      "message": [
                        "email must be an email"
                      ],
                      "error": "Bad Request"
                    }
                  }
                }
              }
            }
          },
          "401": {
            "description": "The `x-api-key` header is missing, or the key is invalid, expired or deleted.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                },
                "examples": {
                  "default": {
                    "value": {
                      "statusCode": 401,
                      "message": "Unauthorized"
                    }
                  }
                }
              }
            }
          },
          "403": {
            "description": "Not allowed: the API key's role lacks the permission (`PermissionDenied`), the product is not enabled for your organization, or it has been turned off.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                },
                "examples": {
                  "default": {
                    "value": {
                      "statusCode": 403,
                      "message": "Forbidden resource",
                      "error": "Forbidden"
                    }
                  }
                }
              }
            }
          },
          "404": {
            "description": "No translation with this ID in your organization (`Playground log not found`), or the key's role sees only its own work and this translation is not its own (`Process not found`).",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                },
                "examples": {
                  "default": {
                    "value": {
                      "statusCode": 404,
                      "message": "Not Found"
                    }
                  }
                }
              }
            }
          },
          "429": {
            "description": "Too many requests for this key. Wait the number of seconds in `Retry-After`, then retry.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                },
                "examples": {
                  "default": {
                    "value": {
                      "statusCode": 429,
                      "message": "ThrottlerException: Too Many Requests"
                    }
                  }
                }
              }
            }
          },
          "500": {
            "description": "Something failed on our side. Retry with backoff; if it persists, contact support with the `X-Request-Id`.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                },
                "examples": {
                  "default": {
                    "value": {
                      "statusCode": 500,
                      "message": "Internal server error"
                    }
                  }
                }
              }
            }
          }
        },
        "summary": "Get a translation",
        "tags": [
          "Translations"
        ],
        "x-orbitdocs-content": [
          {
            "markdown": "**Permission:** `playground.document:read`. An API key acts with the role of the member who created it.",
            "position": "after-description"
          }
        ],
        "x-orbitdocs-order": 3,
        "security": [
          {
            "ApiKeyAuth": []
          }
        ]
      }
    },
    "/v1/galaxy/playground/document/logs/{id}/export": {
      "get": {
        "description": "Download the translated document in its original format, with its layout and formatting kept. It is rebuilt from the original and the current segments on every call, so it includes every edit made since. Pass `side=source` for the original instead. A large PDF may answer 503 while it renders: retry after 10 seconds.",
        "operationId": "download-the-translated-file",
        "parameters": [
          {
            "name": "id",
            "required": true,
            "in": "path",
            "description": "Translation ID: the `id` returned by Translate a document (or listed by List translations).",
            "schema": {
              "format": "uuid",
              "type": "string",
              "examples": [
                "7d3e9a41-2c5b-4f6e-9a1d-8b2c3d4e5f60"
              ]
            }
          },
          {
            "name": "side",
            "required": false,
            "in": "query",
            "description": "`target` (default): the translation. `source`: the original document.",
            "schema": {
              "enum": [
                "target",
                "source"
              ],
              "type": "string"
            }
          },
          {
            "name": "inline",
            "required": false,
            "in": "query",
            "description": "Send `1` to get the file with `Content-Disposition: inline`, for showing it rather than saving it.",
            "schema": {
              "enum": [
                "1"
              ],
              "type": "string"
            }
          }
        ],
        "responses": {
          "200": {
            "description": "The file. `Content-Type` is the format's media type; `Content-Disposition` carries the file name.",
            "headers": {
              "Content-Disposition": {
                "description": "File name of the download, `attachment` (or `inline` with `inline=1`).",
                "schema": {
                  "type": "string",
                  "examples": [
                    "attachment; filename=\"quarterly-review.pptx\""
                  ]
                }
              }
            },
            "content": {
              "application/vnd.openxmlformats-officedocument.wordprocessingml.document": {
                "schema": {}
              },
              "application/vnd.openxmlformats-officedocument.presentationml.presentation": {
                "schema": {}
              },
              "application/vnd.openxmlformats-officedocument.spreadsheetml.sheet": {
                "schema": {}
              },
              "application/pdf": {
                "schema": {}
              },
              "application/vnd.adobe.indesign-idml-package": {
                "schema": {}
              },
              "application/dita+xml": {
                "schema": {}
              },
              "text/markdown": {
                "schema": {}
              },
              "application/yaml": {
                "schema": {}
              },
              "text/csv": {
                "schema": {}
              },
              "application/json": {
                "schema": {}
              },
              "application/xml": {
                "schema": {}
              },
              "application/xliff+xml": {
                "schema": {}
              },
              "text/html": {
                "schema": {}
              },
              "text/plain": {
                "schema": {}
              }
            }
          },
          "400": {
            "description": "A path parameter is not a UUID (`Validation failed (uuid is expected)`).",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                },
                "examples": {
                  "default": {
                    "value": {
                      "statusCode": 400,
                      "message": [
                        "email must be an email"
                      ],
                      "error": "Bad Request"
                    }
                  }
                }
              }
            }
          },
          "401": {
            "description": "The `x-api-key` header is missing, or the key is invalid, expired or deleted.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                },
                "examples": {
                  "default": {
                    "value": {
                      "statusCode": 401,
                      "message": "Unauthorized"
                    }
                  }
                }
              }
            }
          },
          "403": {
            "description": "Not allowed: the API key's role lacks the permission (`PermissionDenied`), the product is not enabled for your organization, or it has been turned off.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                },
                "examples": {
                  "default": {
                    "value": {
                      "statusCode": 403,
                      "message": "Forbidden resource",
                      "error": "Forbidden"
                    }
                  }
                }
              }
            }
          },
          "404": {
            "description": "No translation with this ID in your organization (`Playground log not found`), or the key's role sees only its own work and this translation is not its own (`Process not found`).",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                },
                "examples": {
                  "default": {
                    "value": {
                      "statusCode": 404,
                      "message": "Not Found"
                    }
                  }
                }
              }
            }
          },
          "429": {
            "description": "Too many requests for this key. Wait the number of seconds in `Retry-After`, then retry.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                },
                "examples": {
                  "default": {
                    "value": {
                      "statusCode": 429,
                      "message": "ThrottlerException: Too Many Requests"
                    }
                  }
                }
              }
            }
          },
          "500": {
            "description": "Something failed on our side. Retry with backoff; if it persists, contact support with the `X-Request-Id`.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                },
                "examples": {
                  "default": {
                    "value": {
                      "statusCode": 500,
                      "message": "Internal server error"
                    }
                  }
                }
              }
            }
          },
          "503": {
            "description": "A PDF is still being read or rendered (`This PDF is still being read. Please try again in a moment.`, `PdfStillPreparing`), or several PDFs are already being prepared for your organization (`PdfEngineBusy`). Nothing was charged. Retry after `retryAfterSeconds` (10).",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                },
                "examples": {
                  "default": {
                    "value": {
                      "statusCode": 503,
                      "message": "Error"
                    }
                  }
                }
              }
            }
          }
        },
        "summary": "Download the translated file",
        "tags": [
          "Results"
        ],
        "x-orbitdocs-content": [
          {
            "markdown": "**Permission:** `playground.document:read` and `playground.document:export`. An API key acts with the role of the member who created it. With `inline=1`, `playground.document:read` is enough.",
            "position": "after-description"
          }
        ],
        "x-orbitdocs-order": 1,
        "security": [
          {
            "ApiKeyAuth": []
          }
        ]
      }
    },
    "/v1/galaxy/playground/document/logs/{id}/images": {
      "get": {
        "operationId": "list-pictures",
        "parameters": [
          {
            "name": "id",
            "required": true,
            "in": "path",
            "description": "Translation ID: the `id` returned by Translate a document (or listed by List translations).",
            "schema": {
              "format": "uuid",
              "type": "string",
              "examples": [
                "7d3e9a41-2c5b-4f6e-9a1d-8b2c3d4e5f60"
              ]
            }
          }
        ],
        "responses": {
          "200": {
            "description": "The pictures.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/LogImagesResponseDto"
                }
              }
            }
          },
          "400": {
            "description": "A path parameter is not a UUID (`Validation failed (uuid is expected)`). Or: `Only Word, PowerPoint, Excel and PDF translations have pictures to translate.`",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                },
                "examples": {
                  "default": {
                    "value": {
                      "statusCode": 400,
                      "message": [
                        "email must be an email"
                      ],
                      "error": "Bad Request"
                    }
                  }
                }
              }
            }
          },
          "401": {
            "description": "The `x-api-key` header is missing, or the key is invalid, expired or deleted.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                },
                "examples": {
                  "default": {
                    "value": {
                      "statusCode": 401,
                      "message": "Unauthorized"
                    }
                  }
                }
              }
            }
          },
          "403": {
            "description": "Not allowed: the API key's role lacks the permission (`PermissionDenied`), the product is not enabled for your organization, or it has been turned off.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                },
                "examples": {
                  "default": {
                    "value": {
                      "statusCode": 403,
                      "message": "Forbidden resource",
                      "error": "Forbidden"
                    }
                  }
                }
              }
            }
          },
          "404": {
            "description": "No translation with this ID in your organization (`Playground log not found`), or the key's role sees only its own work and this translation is not its own (`Process not found`).",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                },
                "examples": {
                  "default": {
                    "value": {
                      "statusCode": 404,
                      "message": "Not Found"
                    }
                  }
                }
              }
            }
          },
          "429": {
            "description": "Too many requests for this key. Wait the number of seconds in `Retry-After`, then retry.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                },
                "examples": {
                  "default": {
                    "value": {
                      "statusCode": 429,
                      "message": "ThrottlerException: Too Many Requests"
                    }
                  }
                }
              }
            }
          },
          "500": {
            "description": "Something failed on our side. Retry with backoff; if it persists, contact support with the `X-Request-Id`.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                },
                "examples": {
                  "default": {
                    "value": {
                      "statusCode": 500,
                      "message": "Internal server error"
                    }
                  }
                }
              }
            }
          },
          "503": {
            "description": "A PDF is still being read or rendered (`This PDF is still being read. Please try again in a moment.`, `PdfStillPreparing`), or several PDFs are already being prepared for your organization (`PdfEngineBusy`). Nothing was charged. Retry after `retryAfterSeconds` (10).",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                },
                "examples": {
                  "default": {
                    "value": {
                      "statusCode": 503,
                      "message": "Error"
                    }
                  }
                }
              }
            }
          }
        },
        "summary": "List pictures",
        "tags": [
          "Results"
        ],
        "x-orbitdocs-content": [
          {
            "markdown": "**Permission:** `playground.document:read`. An API key acts with the role of the member who created it.",
            "position": "after-description"
          }
        ],
        "description": "The pictures of a Word, PowerPoint, Excel or PDF translation: translated or not, with their source and translated copies. Once the translation is `COMPLETED`, every picture is listed, also when it was started without `translateImages`, and `canTranslate` says which can be translated now with Translate pictures.",
        "x-orbitdocs-order": 3,
        "security": [
          {
            "ApiKeyAuth": []
          }
        ]
      }
    },
    "/v1/galaxy/playground/document/logs/{id}/images/{imageId}/edited": {
      "put": {
        "operationId": "use-an-edited-picture",
        "parameters": [
          {
            "name": "id",
            "required": true,
            "in": "path",
            "description": "Translation ID: the `id` returned by Translate a document (or listed by List translations).",
            "schema": {
              "format": "uuid",
              "type": "string",
              "examples": [
                "7d3e9a41-2c5b-4f6e-9a1d-8b2c3d4e5f60"
              ]
            }
          },
          {
            "name": "imageId",
            "required": true,
            "in": "path",
            "description": "Picture ID.",
            "schema": {
              "format": "uuid",
              "type": "string"
            }
          }
        ],
        "requestBody": {
          "required": true,
          "content": {
            "multipart/form-data": {
              "schema": {
                "$ref": "#/components/schemas/UseEditedLogImageFormDto"
              }
            },
            "application/json": {
              "schema": {
                "$ref": "#/components/schemas/UseEditedLogImageFormDto"
              }
            }
          }
        },
        "responses": {
          "200": {
            "description": "The pictures.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/LogImagesResponseDto"
                }
              }
            }
          },
          "400": {
            "description": "A path parameter is not a UUID (`Validation failed (uuid is expected)`). Or: ``Send the edited picture as `file`, or its `uploadKey`.``, `Pictures can be edited once the translation has finished.`, `The edited file is not a picture.`, `A scanned page cannot be replaced as a picture.`, `This picture cannot be replaced: its format cannot be redrawn.`, or an `uploadKey` that was not uploaded, not completely, or already used.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                },
                "examples": {
                  "default": {
                    "value": {
                      "statusCode": 400,
                      "message": [
                        "email must be an email"
                      ],
                      "error": "Bad Request"
                    }
                  }
                }
              }
            }
          },
          "401": {
            "description": "The `x-api-key` header is missing, or the key is invalid, expired or deleted.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                },
                "examples": {
                  "default": {
                    "value": {
                      "statusCode": 401,
                      "message": "Unauthorized"
                    }
                  }
                }
              }
            }
          },
          "403": {
            "description": "Not allowed: the API key's role lacks the permission (`PermissionDenied`), the product is not enabled for your organization, or it has been turned off.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                },
                "examples": {
                  "default": {
                    "value": {
                      "statusCode": 403,
                      "message": "Forbidden resource",
                      "error": "Forbidden"
                    }
                  }
                }
              }
            }
          },
          "404": {
            "description": "No translation with this ID in your organization (`Playground log not found`), or the key's role sees only its own work and this translation is not its own (`Process not found`). Or `Picture not found`.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                },
                "examples": {
                  "default": {
                    "value": {
                      "statusCode": 404,
                      "message": "Not Found"
                    }
                  }
                }
              }
            }
          },
          "409": {
            "description": "`This picture is being translated. Try again when it is done.`",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                },
                "examples": {
                  "default": {
                    "value": {
                      "statusCode": 409,
                      "message": "Conflict",
                      "error": "Conflict"
                    }
                  }
                }
              }
            }
          },
          "413": {
            "description": "The `file` part is larger than 25 MB.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                },
                "examples": {
                  "default": {
                    "value": {
                      "statusCode": 413,
                      "message": "Payload Too Large"
                    }
                  }
                }
              }
            }
          },
          "429": {
            "description": "Too many requests for this key. Wait the number of seconds in `Retry-After`, then retry.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                },
                "examples": {
                  "default": {
                    "value": {
                      "statusCode": 429,
                      "message": "ThrottlerException: Too Many Requests"
                    }
                  }
                }
              }
            }
          },
          "500": {
            "description": "Something failed on our side. Retry with backoff; if it persists, contact support with the `X-Request-Id`.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                },
                "examples": {
                  "default": {
                    "value": {
                      "statusCode": 500,
                      "message": "Internal server error"
                    }
                  }
                }
              }
            }
          }
        },
        "summary": "Use an edited picture",
        "tags": [
          "Results"
        ],
        "x-orbitdocs-content": [
          {
            "markdown": "**Permission:** `playground.document:update`. An API key acts with the role of the member who created it. Free: the editing was charged by the editor.",
            "position": "after-description"
          }
        ],
        "description": "Put a picture you edited — in Image Translator or Magic Layers, opened from List pictures — into a `COMPLETED` translation in place of what it shows now. Send `multipart/form-data` with the picture as `file` and the `editor`, or JSON with the `editor` and the `uploadKey` from Get an edited picture upload URL. It is brought to the original picture’s exact size and format, so the document’s layout does not move, and every download carries it from now on. Translating the picture again replaces it; Revert a picture puts the original back.",
        "x-orbitdocs-order": 5,
        "security": [
          {
            "ApiKeyAuth": []
          }
        ]
      }
    },
    "/v1/galaxy/playground/document/logs/{id}/images/{imageId}/revert": {
      "post": {
        "operationId": "revert-a-picture",
        "parameters": [
          {
            "name": "id",
            "required": true,
            "in": "path",
            "description": "Translation ID: the `id` returned by Translate a document (or listed by List translations).",
            "schema": {
              "format": "uuid",
              "type": "string",
              "examples": [
                "7d3e9a41-2c5b-4f6e-9a1d-8b2c3d4e5f60"
              ]
            }
          },
          {
            "name": "imageId",
            "required": true,
            "in": "path",
            "description": "Picture ID.",
            "schema": {
              "format": "uuid",
              "type": "string"
            }
          }
        ],
        "responses": {
          "200": {
            "description": "The pictures.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/LogImagesResponseDto"
                }
              }
            }
          },
          "400": {
            "description": "A path parameter is not a UUID (`Validation failed (uuid is expected)`). Or: `Pictures can be put back once the translation has finished.`, `This picture already shows its original.`",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                },
                "examples": {
                  "default": {
                    "value": {
                      "statusCode": 400,
                      "message": [
                        "email must be an email"
                      ],
                      "error": "Bad Request"
                    }
                  }
                }
              }
            }
          },
          "401": {
            "description": "The `x-api-key` header is missing, or the key is invalid, expired or deleted.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                },
                "examples": {
                  "default": {
                    "value": {
                      "statusCode": 401,
                      "message": "Unauthorized"
                    }
                  }
                }
              }
            }
          },
          "403": {
            "description": "Not allowed: the API key's role lacks the permission (`PermissionDenied`), the product is not enabled for your organization, or it has been turned off.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                },
                "examples": {
                  "default": {
                    "value": {
                      "statusCode": 403,
                      "message": "Forbidden resource",
                      "error": "Forbidden"
                    }
                  }
                }
              }
            }
          },
          "404": {
            "description": "No translation with this ID in your organization (`Playground log not found`), or the key's role sees only its own work and this translation is not its own (`Process not found`). Or `Picture not found`.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                },
                "examples": {
                  "default": {
                    "value": {
                      "statusCode": 404,
                      "message": "Not Found"
                    }
                  }
                }
              }
            }
          },
          "409": {
            "description": "`This picture is being translated.`",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                },
                "examples": {
                  "default": {
                    "value": {
                      "statusCode": 409,
                      "message": "Conflict",
                      "error": "Conflict"
                    }
                  }
                }
              }
            }
          },
          "429": {
            "description": "Too many requests for this key. Wait the number of seconds in `Retry-After`, then retry.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                },
                "examples": {
                  "default": {
                    "value": {
                      "statusCode": 429,
                      "message": "ThrottlerException: Too Many Requests"
                    }
                  }
                }
              }
            }
          },
          "500": {
            "description": "Something failed on our side. Retry with backoff; if it persists, contact support with the `X-Request-Id`.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                },
                "examples": {
                  "default": {
                    "value": {
                      "statusCode": 500,
                      "message": "Internal server error"
                    }
                  }
                }
              }
            }
          }
        },
        "summary": "Revert a picture",
        "tags": [
          "Results"
        ],
        "x-orbitdocs-content": [
          {
            "markdown": "**Permission:** `playground.document:update`. An API key acts with the role of the member who created it.",
            "position": "after-description"
          }
        ],
        "description": "Put the original picture back into a `COMPLETED` translation, in place of its translated or edited copy. Not refunded: the translation was delivered. The picture can be translated or edited again later.",
        "x-orbitdocs-order": 6,
        "security": [
          {
            "ApiKeyAuth": []
          }
        ]
      }
    },
    "/v1/galaxy/playground/document/logs/{id}/images/translate": {
      "post": {
        "operationId": "translate-pictures",
        "parameters": [
          {
            "name": "id",
            "required": true,
            "in": "path",
            "description": "Translation ID: the `id` returned by Translate a document (or listed by List translations).",
            "schema": {
              "format": "uuid",
              "type": "string",
              "examples": [
                "7d3e9a41-2c5b-4f6e-9a1d-8b2c3d4e5f60"
              ]
            }
          }
        ],
        "requestBody": {
          "required": true,
          "content": {
            "application/json": {
              "schema": {
                "$ref": "#/components/schemas/TranslateLogImagesDto"
              }
            }
          }
        },
        "responses": {
          "201": {
            "description": "The pictures, the chosen ones now `running`.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/LogImagesResponseDto"
                }
              }
            }
          },
          "400": {
            "description": "A path parameter is not a UUID (`Validation failed (uuid is expected)`). Or: `Pictures can be translated once the translation has finished.`, `This translation has no translation memory to take the text from.`, `A scanned page cannot be translated as a picture.`, `This picture cannot be translated: its format cannot be redrawn.`",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                },
                "examples": {
                  "default": {
                    "value": {
                      "statusCode": 400,
                      "message": [
                        "email must be an email"
                      ],
                      "error": "Bad Request"
                    }
                  }
                }
              }
            }
          },
          "401": {
            "description": "The `x-api-key` header is missing, or the key is invalid, expired or deleted.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                },
                "examples": {
                  "default": {
                    "value": {
                      "statusCode": 401,
                      "message": "Unauthorized"
                    }
                  }
                }
              }
            }
          },
          "402": {
            "description": "Not enough credits for the counted words, or your organization owes credits. Nothing was created or started.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/InsufficientCreditsErrorDto"
                }
              }
            }
          },
          "403": {
            "description": "Not allowed: the API key's role lacks the permission (`PermissionDenied`), the product is not enabled for your organization, or it has been turned off.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                },
                "examples": {
                  "default": {
                    "value": {
                      "statusCode": 403,
                      "message": "Forbidden resource",
                      "error": "Forbidden"
                    }
                  }
                }
              }
            }
          },
          "404": {
            "description": "No translation with this ID in your organization (`Playground log not found`), or the key's role sees only its own work and this translation is not its own (`Process not found`). Or `Picture not found`.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                },
                "examples": {
                  "default": {
                    "value": {
                      "statusCode": 404,
                      "message": "Not Found"
                    }
                  }
                }
              }
            }
          },
          "409": {
            "description": "`This picture is already being translated.`",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                },
                "examples": {
                  "default": {
                    "value": {
                      "statusCode": 409,
                      "message": "Conflict",
                      "error": "Conflict"
                    }
                  }
                }
              }
            }
          },
          "429": {
            "description": "Too many requests for this key. Wait the number of seconds in `Retry-After`, then retry.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                },
                "examples": {
                  "default": {
                    "value": {
                      "statusCode": 429,
                      "message": "ThrottlerException: Too Many Requests"
                    }
                  }
                }
              }
            }
          },
          "500": {
            "description": "Something failed on our side. Retry with backoff; if it persists, contact support with the `X-Request-Id`.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                },
                "examples": {
                  "default": {
                    "value": {
                      "statusCode": 500,
                      "message": "Internal server error"
                    }
                  }
                }
              }
            }
          }
        },
        "summary": "Translate pictures",
        "tags": [
          "Results"
        ],
        "x-orbitdocs-content": [
          {
            "markdown": "**Permission:** `playground.document:update`. An API key acts with the role of the member who created it.\n\n**Credits:** Charged when you send the request, one picture each (402 charges and starts nothing). A picture found to have no text, or nothing to change, is charged the analysis rate instead; one that fails on our side is refunded.\n\n| Rate | What it covers | Price |\n| --- | --- | --- |\n| Text inside a document image | Translating the text inside a picture of a Word, PowerPoint, Excel or PDF file, when \"Translate text inside images\" is on. Charged per picture, at the Image Translator rate. | 350 credits per image |\n| Document image with no text | A document picture that was checked for text and had none to translate: charged the analysis only, and left as it was. | 50 credits per image |",
            "position": "after-description"
          }
        ],
        "description": "Translate chosen pictures of a `COMPLETED` translation, with its translation memory. Each runs on its own and goes into the download once it is translated; poll List pictures for its `status`. A picture translated before is translated again, and keeps its earlier copy if that does not work.",
        "x-orbitdocs-order": 4,
        "security": [
          {
            "ApiKeyAuth": []
          }
        ]
      }
    },
    "/v1/galaxy/playground/document/logs/{id}/restart": {
      "post": {
        "operationId": "restart-a-stalled-translation",
        "parameters": [
          {
            "name": "id",
            "required": true,
            "in": "path",
            "description": "Translation ID: the `id` returned by Translate a document (or listed by List translations).",
            "schema": {
              "format": "uuid",
              "type": "string",
              "examples": [
                "7d3e9a41-2c5b-4f6e-9a1d-8b2c3d4e5f60"
              ]
            }
          }
        ],
        "responses": {
          "201": {
            "description": "The restart was started.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/TranslationStartedResponseDto"
                }
              }
            }
          },
          "400": {
            "description": "A path parameter is not a UUID (`Validation failed (uuid is expected)`). Or the translation can no longer be run again (no translation memory, or its source is gone).",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                },
                "examples": {
                  "default": {
                    "value": {
                      "statusCode": 400,
                      "message": [
                        "email must be an email"
                      ],
                      "error": "Bad Request"
                    }
                  }
                }
              }
            }
          },
          "401": {
            "description": "The `x-api-key` header is missing, or the key is invalid, expired or deleted.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                },
                "examples": {
                  "default": {
                    "value": {
                      "statusCode": 401,
                      "message": "Unauthorized"
                    }
                  }
                }
              }
            }
          },
          "402": {
            "description": "Not enough credits for the counted words, or your organization owes credits. Nothing was created or started.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/InsufficientCreditsErrorDto"
                }
              }
            }
          },
          "403": {
            "description": "Not allowed: the API key's role lacks the permission (`PermissionDenied`), the product is not enabled for your organization, or it has been turned off.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                },
                "examples": {
                  "default": {
                    "value": {
                      "statusCode": 403,
                      "message": "Forbidden resource",
                      "error": "Forbidden"
                    }
                  }
                }
              }
            }
          },
          "404": {
            "description": "No translation with this ID in your organization (`Playground log not found`), or the key's role sees only its own work and this translation is not its own (`Process not found`).",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                },
                "examples": {
                  "default": {
                    "value": {
                      "statusCode": 404,
                      "message": "Not Found"
                    }
                  }
                }
              }
            }
          },
          "409": {
            "description": "It is not running (`Use Retry to run it again.`), still within its running time (`This translation is still running …`), or it changed meanwhile.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                },
                "examples": {
                  "default": {
                    "value": {
                      "statusCode": 409,
                      "message": "Conflict",
                      "error": "Conflict"
                    }
                  }
                }
              }
            }
          },
          "429": {
            "description": "Too many requests for this key. Wait the number of seconds in `Retry-After`, then retry.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                },
                "examples": {
                  "default": {
                    "value": {
                      "statusCode": 429,
                      "message": "ThrottlerException: Too Many Requests"
                    }
                  }
                }
              }
            }
          },
          "500": {
            "description": "Something failed on our side. Retry with backoff; if it persists, contact support with the `X-Request-Id`.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                },
                "examples": {
                  "default": {
                    "value": {
                      "statusCode": 500,
                      "message": "Internal server error"
                    }
                  }
                }
              }
            }
          },
          "503": {
            "description": "A PDF is still being read or rendered (`This PDF is still being read. Please try again in a moment.`, `PdfStillPreparing`), or several PDFs are already being prepared for your organization (`PdfEngineBusy`). Nothing was charged. Retry after `retryAfterSeconds` (10).",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                },
                "examples": {
                  "default": {
                    "value": {
                      "statusCode": 503,
                      "message": "Error"
                    }
                  }
                }
              }
            }
          }
        },
        "summary": "Restart a stalled translation",
        "tags": [
          "Translations"
        ],
        "x-orbitdocs-content": [
          {
            "markdown": "**Permission:** `playground.document:create`. An API key acts with the role of the member who created it.\n\n**Credits:** The stalled run is refunded in full, and the restart is charged as a new attempt on the source's billable words — you pay once. If the balance is short (402), the translation is left `FAILED` with the stalled run refunded.\n\n| Rate | What it covers | Price |\n| --- | --- | --- |\n| Text translation | Translating plain text in the playground. Charged per source word. | 0.5 credits per word |\n| JSON translation | Translating a JSON file in the playground. Charged per source word. | 0.5 credits per word |\n| XML translation | Translating an XML file in the playground. Charged per source word. | 0.5 credits per word |\n| HTML translation | Translating an HTML file in the playground. Charged per source word. | 0.5 credits per word |\n| XLIFF translation | Translating an XLIFF file in the playground. Charged per source word. | 0.5 credits per word |\n| Word translation | Translating a Word (.docx) file in the playground. Charged per source word. | 0.5 credits per word |\n| PowerPoint translation | Translating a PowerPoint (.pptx) file in the playground. Charged per source word. | 0.5 credits per word |\n| Excel translation | Translating an Excel (.xlsx) file in the playground. Charged per source word. | 0.5 credits per word |\n| CSV translation | Translating a CSV file in the playground. Charged per source word, for the columns selected. | 0.5 credits per word |\n| PDF translation | Translating a PDF in the playground, keeping its layout. Charged per source word. | 0.5 credits per word |\n| InDesign translation | Translating an InDesign (.idml) file in the playground, keeping its layout and styles. Charged per source word. | 0.5 credits per word |\n| DITA translation | Translating a DITA topic or map in the playground, keeping its structure and markup. Charged per source word. | 0.5 credits per word |\n| Markdown translation | Translating a Markdown (.md) file in the playground, keeping its formatting, links and code. Charged per source word. | 0.5 credits per word |\n| YAML translation | Translating the text values of a YAML (.yaml, .yml) file in the playground, keeping its keys and structure. Charged per source word. | 0.5 credits per word |",
            "position": "after-description"
          }
        ],
        "description": "Start over a translation that stopped making progress (`stalled: true` on Get a translation): its run is stopped and a new one starts on the same translation — same `id`, `status` back to `INPROGRESS`. Poll it as after Translate a document. A translation that is still within its normal running time is refused with 409, because it may still finish.",
        "x-orbitdocs-order": 7,
        "security": [
          {
            "ApiKeyAuth": []
          }
        ]
      }
    },
    "/v1/galaxy/playground/document/logs/{id}/retry": {
      "post": {
        "description": "Run a `FAILED` or `TERMINATED` (cancelled) translation again from its stored source, on the same translation: its `id` stays the same and its `status` goes back to `RUNNING`. Poll it with Get a translation, as after Translate a document.",
        "operationId": "retry-a-failed-translation",
        "parameters": [
          {
            "name": "id",
            "required": true,
            "in": "path",
            "description": "Translation ID: the `id` returned by Translate a document (or listed by List translations).",
            "schema": {
              "format": "uuid",
              "type": "string",
              "examples": [
                "7d3e9a41-2c5b-4f6e-9a1d-8b2c3d4e5f60"
              ]
            }
          }
        ],
        "responses": {
          "201": {
            "description": "The retry was started.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/TranslationStartedResponseDto"
                }
              }
            }
          },
          "400": {
            "description": "A path parameter is not a UUID (`Validation failed (uuid is expected)`). Or: `Only a failed or cancelled translation can be retried.`, `A translation memory is required to retry.`, `The original source is no longer available to retry.`, or `PDF translation into <language> is not supported yet …`.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                },
                "examples": {
                  "default": {
                    "value": {
                      "statusCode": 400,
                      "message": [
                        "email must be an email"
                      ],
                      "error": "Bad Request"
                    }
                  }
                }
              }
            }
          },
          "401": {
            "description": "The `x-api-key` header is missing, or the key is invalid, expired or deleted.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                },
                "examples": {
                  "default": {
                    "value": {
                      "statusCode": 401,
                      "message": "Unauthorized"
                    }
                  }
                }
              }
            }
          },
          "402": {
            "description": "Not enough credits for the counted words, or your organization owes credits. Nothing was created or started.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/InsufficientCreditsErrorDto"
                }
              }
            }
          },
          "403": {
            "description": "Not allowed: the API key's role lacks the permission (`PermissionDenied`), the product is not enabled for your organization, or it has been turned off.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                },
                "examples": {
                  "default": {
                    "value": {
                      "statusCode": 403,
                      "message": "Forbidden resource",
                      "error": "Forbidden"
                    }
                  }
                }
              }
            }
          },
          "404": {
            "description": "No translation with this ID in your organization (`Playground log not found`), or the key's role sees only its own work and this translation is not its own (`Process not found`).",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                },
                "examples": {
                  "default": {
                    "value": {
                      "statusCode": 404,
                      "message": "Not Found"
                    }
                  }
                }
              }
            }
          },
          "409": {
            "description": "Another request is already retrying this translation (`This translation is already being retried.`).",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                },
                "examples": {
                  "default": {
                    "value": {
                      "statusCode": 409,
                      "message": "Conflict",
                      "error": "Conflict"
                    }
                  }
                }
              }
            }
          },
          "429": {
            "description": "Too many requests for this key. Wait the number of seconds in `Retry-After`, then retry.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                },
                "examples": {
                  "default": {
                    "value": {
                      "statusCode": 429,
                      "message": "ThrottlerException: Too Many Requests"
                    }
                  }
                }
              }
            }
          },
          "500": {
            "description": "Something failed on our side. Retry with backoff; if it persists, contact support with the `X-Request-Id`.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                },
                "examples": {
                  "default": {
                    "value": {
                      "statusCode": 500,
                      "message": "Internal server error"
                    }
                  }
                }
              }
            }
          },
          "503": {
            "description": "A PDF is still being read or rendered (`This PDF is still being read. Please try again in a moment.`, `PdfStillPreparing`), or several PDFs are already being prepared for your organization (`PdfEngineBusy`). Nothing was charged. Retry after `retryAfterSeconds` (10).",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                },
                "examples": {
                  "default": {
                    "value": {
                      "statusCode": 503,
                      "message": "Error"
                    }
                  }
                }
              }
            }
          }
        },
        "summary": "Retry a failed translation",
        "tags": [
          "Translations"
        ],
        "x-orbitdocs-content": [
          {
            "markdown": "**Permission:** `playground.document:create`. An API key acts with the role of the member who created it.\n\n**Credits:** Charged again when the retry starts, as a new attempt, on the source's billable words (402 leaves the translation as it was). Settled on the words actually translated; refunded if the retry fails on our side.\n\n| Rate | What it covers | Price |\n| --- | --- | --- |\n| Text translation | Translating plain text in the playground. Charged per source word. | 0.5 credits per word |\n| JSON translation | Translating a JSON file in the playground. Charged per source word. | 0.5 credits per word |\n| XML translation | Translating an XML file in the playground. Charged per source word. | 0.5 credits per word |\n| HTML translation | Translating an HTML file in the playground. Charged per source word. | 0.5 credits per word |\n| XLIFF translation | Translating an XLIFF file in the playground. Charged per source word. | 0.5 credits per word |\n| Word translation | Translating a Word (.docx) file in the playground. Charged per source word. | 0.5 credits per word |\n| PowerPoint translation | Translating a PowerPoint (.pptx) file in the playground. Charged per source word. | 0.5 credits per word |\n| Excel translation | Translating an Excel (.xlsx) file in the playground. Charged per source word. | 0.5 credits per word |\n| CSV translation | Translating a CSV file in the playground. Charged per source word, for the columns selected. | 0.5 credits per word |\n| PDF translation | Translating a PDF in the playground, keeping its layout. Charged per source word. | 0.5 credits per word |\n| InDesign translation | Translating an InDesign (.idml) file in the playground, keeping its layout and styles. Charged per source word. | 0.5 credits per word |\n| DITA translation | Translating a DITA topic or map in the playground, keeping its structure and markup. Charged per source word. | 0.5 credits per word |\n| Markdown translation | Translating a Markdown (.md) file in the playground, keeping its formatting, links and code. Charged per source word. | 0.5 credits per word |\n| YAML translation | Translating the text values of a YAML (.yaml, .yml) file in the playground, keeping its keys and structure. Charged per source word. | 0.5 credits per word |",
            "position": "after-description"
          }
        ],
        "x-orbitdocs-order": 6,
        "security": [
          {
            "ApiKeyAuth": []
          }
        ]
      }
    },
    "/v1/galaxy/playground/document/logs/{id}/save-to-assets": {
      "post": {
        "description": "Build the translated file (the same bytes as Download the translated file) and save it in your organization's assets: in the `playground` folder, or in `folderId` (pass your organization ID for the top level). Each call saves a new version (`<name>_v2`, …); earlier versions stay.",
        "operationId": "save-to-your-assets",
        "parameters": [
          {
            "name": "id",
            "required": true,
            "in": "path",
            "description": "Translation ID: the `id` returned by Translate a document (or listed by List translations).",
            "schema": {
              "format": "uuid",
              "type": "string",
              "examples": [
                "7d3e9a41-2c5b-4f6e-9a1d-8b2c3d4e5f60"
              ]
            }
          }
        ],
        "requestBody": {
          "required": true,
          "content": {
            "application/json": {
              "schema": {
                "$ref": "#/components/schemas/SavePlaygroundOutputToAssetsDto"
              }
            }
          }
        },
        "responses": {
          "201": {
            "description": "The file was saved.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/SaveToAssetsResponseDto"
                }
              }
            }
          },
          "400": {
            "description": "A path parameter is not a UUID (`Validation failed (uuid is expected)`). Or `folderId` cannot take files: `Files can only be saved into folders in the organization drive` or `\"<folder>\" is a system folder — files can't be saved into it`.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                },
                "examples": {
                  "default": {
                    "value": {
                      "statusCode": 400,
                      "message": [
                        "email must be an email"
                      ],
                      "error": "Bad Request"
                    }
                  }
                }
              }
            }
          },
          "401": {
            "description": "The `x-api-key` header is missing, or the key is invalid, expired or deleted.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                },
                "examples": {
                  "default": {
                    "value": {
                      "statusCode": 401,
                      "message": "Unauthorized"
                    }
                  }
                }
              }
            }
          },
          "403": {
            "description": "Not allowed: the API key's role lacks the permission (`PermissionDenied`), the product is not enabled for your organization, or it has been turned off.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                },
                "examples": {
                  "default": {
                    "value": {
                      "statusCode": 403,
                      "message": "Forbidden resource",
                      "error": "Forbidden"
                    }
                  }
                }
              }
            }
          },
          "404": {
            "description": "No translation with this ID in your organization (`Playground log not found`), or the key's role sees only its own work and this translation is not its own (`Process not found`). Or `folderId` is not a folder of your organization (`Folder not found`).",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                },
                "examples": {
                  "default": {
                    "value": {
                      "statusCode": 404,
                      "message": "Not Found"
                    }
                  }
                }
              }
            }
          },
          "429": {
            "description": "Too many requests for this key. Wait the number of seconds in `Retry-After`, then retry.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                },
                "examples": {
                  "default": {
                    "value": {
                      "statusCode": 429,
                      "message": "ThrottlerException: Too Many Requests"
                    }
                  }
                }
              }
            }
          },
          "500": {
            "description": "Something failed on our side. Retry with backoff; if it persists, contact support with the `X-Request-Id`.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                },
                "examples": {
                  "default": {
                    "value": {
                      "statusCode": 500,
                      "message": "Internal server error"
                    }
                  }
                }
              }
            }
          },
          "503": {
            "description": "A PDF is still being read or rendered (`This PDF is still being read. Please try again in a moment.`, `PdfStillPreparing`), or several PDFs are already being prepared for your organization (`PdfEngineBusy`). Nothing was charged. Retry after `retryAfterSeconds` (10).",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                },
                "examples": {
                  "default": {
                    "value": {
                      "statusCode": 503,
                      "message": "Error"
                    }
                  }
                }
              }
            }
          }
        },
        "summary": "Save to your assets",
        "tags": [
          "Results"
        ],
        "x-orbitdocs-content": [
          {
            "markdown": "**Permission:** `playground.document:update` and `playground.document:export`. An API key acts with the role of the member who created it.",
            "position": "after-description"
          }
        ],
        "x-orbitdocs-order": 2,
        "security": [
          {
            "ApiKeyAuth": []
          }
        ]
      }
    },
    "/v1/galaxy/playground/document/logs/{id}/segments": {
      "get": {
        "description": "The source and translated text of a translation, segment by segment (a paragraph, cell or string each), with each segment's review status. Paginated with `page` and `size`; filter with `search` and `filter`. `counts` covers the whole translation. Use `layerIndex` to edit a segment.",
        "operationId": "list-segments",
        "parameters": [
          {
            "name": "id",
            "required": true,
            "in": "path",
            "description": "Translation ID: the `id` returned by Translate a document (or listed by List translations).",
            "schema": {
              "format": "uuid",
              "type": "string",
              "examples": [
                "7d3e9a41-2c5b-4f6e-9a1d-8b2c3d4e5f60"
              ]
            }
          },
          {
            "name": "page",
            "required": false,
            "in": "query",
            "description": "Page to return, from 1. A page past the end returns the last page.",
            "schema": {
              "default": 1,
              "type": "number",
              "examples": [
                1
              ]
            }
          },
          {
            "name": "size",
            "required": false,
            "in": "query",
            "description": "Segments per page, from 1. No upper limit.",
            "schema": {
              "default": 12,
              "type": "number",
              "examples": [
                12
              ]
            }
          },
          {
            "name": "search",
            "required": false,
            "in": "query",
            "description": "Only segments whose source or target contains this text (case-insensitive).",
            "schema": {
              "type": "string",
              "examples": [
                "welcome"
              ]
            }
          },
          {
            "name": "filter",
            "required": false,
            "in": "query",
            "description": "Only segments with this review status, or `untranslated`: segments with source text and no translation yet (not counting text marked not for translation). Default `all`.",
            "schema": {
              "default": "all",
              "type": "string",
              "enum": [
                "all",
                "unverified",
                "verified",
                "approved",
                "untranslated"
              ],
              "examples": [
                "unverified"
              ]
            }
          },
          {
            "name": "sort",
            "required": false,
            "in": "query",
            "description": "Order of segments in the document: `asc` (default) or `desc`.",
            "schema": {
              "default": "asc",
              "type": "string",
              "enum": [
                "asc",
                "desc"
              ],
              "examples": [
                "asc"
              ]
            }
          }
        ],
        "responses": {
          "200": {
            "description": "One page of segments.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/SegmentsResponseDto"
                }
              }
            }
          },
          "400": {
            "description": "A path parameter is not a UUID (`Validation failed (uuid is expected)`).",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                },
                "examples": {
                  "default": {
                    "value": {
                      "statusCode": 400,
                      "message": [
                        "email must be an email"
                      ],
                      "error": "Bad Request"
                    }
                  }
                }
              }
            }
          },
          "401": {
            "description": "The `x-api-key` header is missing, or the key is invalid, expired or deleted.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                },
                "examples": {
                  "default": {
                    "value": {
                      "statusCode": 401,
                      "message": "Unauthorized"
                    }
                  }
                }
              }
            }
          },
          "403": {
            "description": "Not allowed: the API key's role lacks the permission (`PermissionDenied`), the product is not enabled for your organization, or it has been turned off.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                },
                "examples": {
                  "default": {
                    "value": {
                      "statusCode": 403,
                      "message": "Forbidden resource",
                      "error": "Forbidden"
                    }
                  }
                }
              }
            }
          },
          "404": {
            "description": "No translation with this ID in your organization (`Playground log not found`), or the key's role sees only its own work and this translation is not its own (`Process not found`).",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                },
                "examples": {
                  "default": {
                    "value": {
                      "statusCode": 404,
                      "message": "Not Found"
                    }
                  }
                }
              }
            }
          },
          "429": {
            "description": "Too many requests for this key. Wait the number of seconds in `Retry-After`, then retry.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                },
                "examples": {
                  "default": {
                    "value": {
                      "statusCode": 429,
                      "message": "ThrottlerException: Too Many Requests"
                    }
                  }
                }
              }
            }
          },
          "500": {
            "description": "Something failed on our side. Retry with backoff; if it persists, contact support with the `X-Request-Id`.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                },
                "examples": {
                  "default": {
                    "value": {
                      "statusCode": 500,
                      "message": "Internal server error"
                    }
                  }
                }
              }
            }
          }
        },
        "summary": "List segments",
        "tags": [
          "Editing"
        ],
        "x-orbitdocs-content": [
          {
            "markdown": "**Permission:** `playground.document:read`. An API key acts with the role of the member who created it.",
            "position": "after-description"
          }
        ],
        "x-orbitdocs-order": 1,
        "security": [
          {
            "ApiKeyAuth": []
          }
        ]
      }
    },
    "/v1/galaxy/playground/document/logs/{id}/segments/{ordinal}/translation-origin": {
      "get": {
        "operationId": "explain-a-segment-translation",
        "parameters": [
          {
            "name": "id",
            "required": true,
            "in": "path",
            "description": "Translation ID: the `id` returned by Translate a document (or listed by List translations).",
            "schema": {
              "format": "uuid",
              "type": "string",
              "examples": [
                "7d3e9a41-2c5b-4f6e-9a1d-8b2c3d4e5f60"
              ]
            }
          },
          {
            "name": "ordinal",
            "required": true,
            "in": "path",
            "description": "The segment, as `layerIndex` in List segments.",
            "schema": {
              "type": "number"
            }
          }
        ],
        "responses": {
          "400": {
            "description": "A path parameter is not a UUID (`Validation failed (uuid is expected)`).",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                },
                "examples": {
                  "default": {
                    "value": {
                      "statusCode": 400,
                      "message": [
                        "email must be an email"
                      ],
                      "error": "Bad Request"
                    }
                  }
                }
              }
            }
          },
          "401": {
            "description": "The `x-api-key` header is missing, or the key is invalid, expired or deleted.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                },
                "examples": {
                  "default": {
                    "value": {
                      "statusCode": 401,
                      "message": "Unauthorized"
                    }
                  }
                }
              }
            }
          },
          "403": {
            "description": "Not allowed: the API key's role lacks the permission (`PermissionDenied`), the product is not enabled for your organization, or it has been turned off.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                },
                "examples": {
                  "default": {
                    "value": {
                      "statusCode": 403,
                      "message": "Forbidden resource",
                      "error": "Forbidden"
                    }
                  }
                }
              }
            }
          },
          "404": {
            "description": "No translation with this ID in your organization (`Playground log not found`), or the key's role sees only its own work and this translation is not its own (`Process not found`).",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                },
                "examples": {
                  "default": {
                    "value": {
                      "statusCode": 404,
                      "message": "Not Found"
                    }
                  }
                }
              }
            }
          },
          "429": {
            "description": "Too many requests for this key. Wait the number of seconds in `Retry-After`, then retry.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                },
                "examples": {
                  "default": {
                    "value": {
                      "statusCode": 429,
                      "message": "ThrottlerException: Too Many Requests"
                    }
                  }
                }
              }
            }
          },
          "500": {
            "description": "Something failed on our side. Retry with backoff; if it persists, contact support with the `X-Request-Id`.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                },
                "examples": {
                  "default": {
                    "value": {
                      "statusCode": 500,
                      "message": "Internal server error"
                    }
                  }
                }
              }
            }
          }
        },
        "summary": "Explain a segment translation",
        "tags": [
          "Editing"
        ],
        "x-orbitdocs-content": [
          {
            "markdown": "**Permission:** `playground.document:read`. An API key acts with the role of the member who created it.",
            "position": "after-description"
          }
        ],
        "description": "Why a segment's machine translation reads as it does: what the model was shown (similar stored translations, term-base and glossary entries, style-guide and built-in rules), which of it the translation uses, what the model says it followed and what was left out. Answers `found: false` with a `reason` when the memory holds no origin for it (a person's translation, an import, a translation from before origins were recorded, or a Phrase memory). `segment` is the segment as it reads now. Free: nothing is translated again.",
        "x-orbitdocs-order": 6,
        "security": [
          {
            "ApiKeyAuth": []
          }
        ]
      }
    },
    "/v1/galaxy/playground/document/logs/{id}/text-result": {
      "get": {
        "description": "Poll a `TEXT` translation. Returns its `status` and, once it is `COMPLETED`, the translated text in `data.translation`. Poll every 2 to 10 seconds.",
        "operationId": "get-a-text-result",
        "parameters": [
          {
            "name": "id",
            "required": true,
            "in": "path",
            "description": "Translation ID: the `id` returned by Translate a document (or listed by List translations).",
            "schema": {
              "format": "uuid",
              "type": "string",
              "examples": [
                "7d3e9a41-2c5b-4f6e-9a1d-8b2c3d4e5f60"
              ]
            }
          }
        ],
        "responses": {
          "200": {
            "description": "The status and, when done, the translation.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/TextResultResponseDto"
                }
              }
            }
          },
          "400": {
            "description": "A path parameter is not a UUID (`Validation failed (uuid is expected)`). Or the translation is not a `TEXT` one (`This log is not a text translation.`).",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                },
                "examples": {
                  "default": {
                    "value": {
                      "statusCode": 400,
                      "message": [
                        "email must be an email"
                      ],
                      "error": "Bad Request"
                    }
                  }
                }
              }
            }
          },
          "401": {
            "description": "The `x-api-key` header is missing, or the key is invalid, expired or deleted.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                },
                "examples": {
                  "default": {
                    "value": {
                      "statusCode": 401,
                      "message": "Unauthorized"
                    }
                  }
                }
              }
            }
          },
          "403": {
            "description": "Not allowed: the API key's role lacks the permission (`PermissionDenied`), the product is not enabled for your organization, or it has been turned off.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                },
                "examples": {
                  "default": {
                    "value": {
                      "statusCode": 403,
                      "message": "Forbidden resource",
                      "error": "Forbidden"
                    }
                  }
                }
              }
            }
          },
          "404": {
            "description": "No translation with this ID in your organization (`Playground log not found`), or the key's role sees only its own work and this translation is not its own (`Process not found`).",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                },
                "examples": {
                  "default": {
                    "value": {
                      "statusCode": 404,
                      "message": "Not Found"
                    }
                  }
                }
              }
            }
          },
          "429": {
            "description": "Too many requests for this key. Wait the number of seconds in `Retry-After`, then retry.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                },
                "examples": {
                  "default": {
                    "value": {
                      "statusCode": 429,
                      "message": "ThrottlerException: Too Many Requests"
                    }
                  }
                }
              }
            }
          },
          "500": {
            "description": "Something failed on our side. Retry with backoff; if it persists, contact support with the `X-Request-Id`.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                },
                "examples": {
                  "default": {
                    "value": {
                      "statusCode": 500,
                      "message": "Internal server error"
                    }
                  }
                }
              }
            }
          }
        },
        "summary": "Get a text result",
        "tags": [
          "Translations"
        ],
        "x-orbitdocs-content": [
          {
            "markdown": "**Permission:** `playground.document:read`. An API key acts with the role of the member who created it.",
            "position": "after-description"
          }
        ],
        "x-orbitdocs-order": 4,
        "security": [
          {
            "ApiKeyAuth": []
          }
        ]
      }
    },
    "/v1/galaxy/playground/document/packages": {
      "get": {
        "operationId": "list-dita-maps",
        "parameters": [
          {
            "name": "page",
            "required": false,
            "in": "query",
            "description": "1-based page.",
            "schema": {
              "type": "number",
              "examples": [
                1
              ]
            }
          },
          {
            "name": "size",
            "required": false,
            "in": "query",
            "description": "Maps per page (1–100).",
            "schema": {
              "type": "number",
              "examples": [
                20
              ]
            }
          },
          {
            "name": "search",
            "required": false,
            "in": "query",
            "description": "Narrow to maps whose name contains this (case-insensitive).",
            "schema": {
              "type": "string",
              "examples": [
                "aurora"
              ]
            }
          }
        ],
        "responses": {
          "200": {
            "description": "OK"
          },
          "400": {
            "description": "Invalid request: a field failed validation, or a parameter is malformed (for example, an ID that is not a UUID).",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                },
                "examples": {
                  "default": {
                    "value": {
                      "statusCode": 400,
                      "message": [
                        "email must be an email"
                      ],
                      "error": "Bad Request"
                    }
                  }
                }
              }
            }
          },
          "401": {
            "description": "The `x-api-key` header is missing, or the key is invalid, expired or deleted.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                },
                "examples": {
                  "default": {
                    "value": {
                      "statusCode": 401,
                      "message": "Unauthorized"
                    }
                  }
                }
              }
            }
          },
          "403": {
            "description": "Not allowed: the API key's role lacks the permission (`PermissionDenied`), the product is not enabled for your organization, or it has been turned off.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                },
                "examples": {
                  "default": {
                    "value": {
                      "statusCode": 403,
                      "message": "Forbidden resource",
                      "error": "Forbidden"
                    }
                  }
                }
              }
            }
          },
          "429": {
            "description": "Too many requests for this key. Wait the number of seconds in `Retry-After`, then retry.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                },
                "examples": {
                  "default": {
                    "value": {
                      "statusCode": 429,
                      "message": "ThrottlerException: Too Many Requests"
                    }
                  }
                }
              }
            }
          },
          "500": {
            "description": "Something failed on our side. Retry with backoff; if it persists, contact support with the `X-Request-Id`.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                },
                "examples": {
                  "default": {
                    "value": {
                      "statusCode": 500,
                      "message": "Internal server error"
                    }
                  }
                }
              }
            }
          }
        },
        "summary": "List DITA maps",
        "tags": [
          "DITA maps"
        ],
        "x-orbitdocs-content": [
          {
            "markdown": "**Permission:** `playground.document:read`. An API key acts with the role of the member who created it.",
            "position": "after-description"
          }
        ],
        "description": "Your organization's DITA maps, newest first, each with its languages' progress (files done, failed, total).",
        "x-orbitdocs-order": 12,
        "security": [
          {
            "ApiKeyAuth": []
          }
        ]
      },
      "post": {
        "operationId": "start-a-dita-map",
        "parameters": [],
        "requestBody": {
          "required": true,
          "content": {
            "multipart/form-data": {
              "schema": {
                "type": "object",
                "required": [
                  "sourceLanguage",
                  "targetLanguages",
                  "tmId"
                ],
                "properties": {
                  "file": {
                    "contentMediaType": "application/octet-stream",
                    "description": "The DITA map as a ZIP (up to 500 MB): its maps, topics and images, folders kept."
                  },
                  "assetId": {
                    "type": "string",
                    "format": "uuid",
                    "description": "A ZIP already in your assets, instead of `file`. Needs `asset:read`."
                  },
                  "sourceLanguage": {
                    "type": "string",
                    "examples": [
                      "en-US"
                    ]
                  },
                  "targetLanguages": {
                    "type": "array",
                    "items": {
                      "type": "string"
                    },
                    "examples": [
                      [
                        "fr-FR",
                        "de-DE"
                      ]
                    ]
                  },
                  "tmId": {
                    "type": "string",
                    "format": "uuid"
                  },
                  "name": {
                    "type": "string",
                    "examples": [
                      "Q4 product docs"
                    ]
                  },
                  "projectId": {
                    "type": "string",
                    "format": "uuid"
                  },
                  "expectedCredits": {
                    "type": "number",
                    "examples": [
                      1240
                    ]
                  }
                }
              }
            }
          }
        },
        "responses": {
          "400": {
            "description": "As Price a DITA map, or a missing `tmId`.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                },
                "examples": {
                  "default": {
                    "value": {
                      "statusCode": 400,
                      "message": [
                        "email must be an email"
                      ],
                      "error": "Bad Request"
                    }
                  }
                }
              }
            }
          },
          "401": {
            "description": "The `x-api-key` header is missing, or the key is invalid, expired or deleted.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                },
                "examples": {
                  "default": {
                    "value": {
                      "statusCode": 401,
                      "message": "Unauthorized"
                    }
                  }
                }
              }
            }
          },
          "402": {
            "description": "Not enough credits for every file in every language, or your organization owes credits. Nothing was created.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/InsufficientCreditsErrorDto"
                }
              }
            }
          },
          "403": {
            "description": "Not allowed: the API key's role lacks the permission (`PermissionDenied`), the product is not enabled for your organization, or it has been turned off.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                },
                "examples": {
                  "default": {
                    "value": {
                      "statusCode": 403,
                      "message": "Forbidden resource",
                      "error": "Forbidden"
                    }
                  }
                }
              }
            }
          },
          "409": {
            "description": "`expectedCredits` no longer matches the price (`PackageChanged`, with `credits`). Nothing started.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                },
                "examples": {
                  "default": {
                    "value": {
                      "statusCode": 409,
                      "message": "Conflict",
                      "error": "Conflict"
                    }
                  }
                }
              }
            }
          },
          "429": {
            "description": "Too many requests for this key. Wait the number of seconds in `Retry-After`, then retry.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                },
                "examples": {
                  "default": {
                    "value": {
                      "statusCode": 429,
                      "message": "ThrottlerException: Too Many Requests"
                    }
                  }
                }
              }
            }
          },
          "500": {
            "description": "Something failed on our side. Retry with backoff; if it persists, contact support with the `X-Request-Id`.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                },
                "examples": {
                  "default": {
                    "value": {
                      "statusCode": 500,
                      "message": "Internal server error"
                    }
                  }
                }
              }
            }
          }
        },
        "summary": "Start a DITA map",
        "tags": [
          "DITA maps"
        ],
        "x-orbitdocs-content": [
          {
            "markdown": "**Permission:** `playground.document:create`. An API key acts with the role of the member who created it.\n\n**Credits:** Charged when it starts: every DITA topic and map, once per target language, per source word — one charge per file and language. Code, paths, `translate=\"no\"` and `conref` content are not counted. A file whose translation fails is refunded; nothing else is translated or charged.\n\n| Rate | What it covers | Price |\n| --- | --- | --- |\n| DITA translation | Translating a DITA topic or map in the playground, keeping its structure and markup. Charged per source word. | 0.5 credits per word |",
            "position": "after-description"
          }
        ],
        "description": "Translate a DITA map ZIP into one or more languages with a translation memory. Each DITA topic and map is segmented by sentence-level blocks with its inline markup kept, and translated as its own document; images and other files are copied unchanged. Returns straight away with one job per language; poll Get a DITA map, open any file in the editor, and download each language with Download a translated DITA map.",
        "x-orbitdocs-order": 11,
        "security": [
          {
            "ApiKeyAuth": []
          }
        ]
      }
    },
    "/v1/galaxy/playground/document/packages/{id}": {
      "get": {
        "operationId": "get-a-dita-map",
        "parameters": [
          {
            "name": "id",
            "required": true,
            "in": "path",
            "description": "ID of the DITA map, from Start a DITA map.",
            "schema": {
              "format": "uuid",
              "type": "string"
            }
          }
        ],
        "responses": {
          "400": {
            "description": "Invalid request: a field failed validation, or a parameter is malformed (for example, an ID that is not a UUID).",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                },
                "examples": {
                  "default": {
                    "value": {
                      "statusCode": 400,
                      "message": [
                        "email must be an email"
                      ],
                      "error": "Bad Request"
                    }
                  }
                }
              }
            }
          },
          "401": {
            "description": "The `x-api-key` header is missing, or the key is invalid, expired or deleted.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                },
                "examples": {
                  "default": {
                    "value": {
                      "statusCode": 401,
                      "message": "Unauthorized"
                    }
                  }
                }
              }
            }
          },
          "403": {
            "description": "Not allowed: the API key's role lacks the permission (`PermissionDenied`), the product is not enabled for your organization, or it has been turned off.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                },
                "examples": {
                  "default": {
                    "value": {
                      "statusCode": 403,
                      "message": "Forbidden resource",
                      "error": "Forbidden"
                    }
                  }
                }
              }
            }
          },
          "404": {
            "description": "`DITA map not found`",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                },
                "examples": {
                  "default": {
                    "value": {
                      "statusCode": 404,
                      "message": "Not Found"
                    }
                  }
                }
              }
            }
          },
          "429": {
            "description": "Too many requests for this key. Wait the number of seconds in `Retry-After`, then retry.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                },
                "examples": {
                  "default": {
                    "value": {
                      "statusCode": 429,
                      "message": "ThrottlerException: Too Many Requests"
                    }
                  }
                }
              }
            }
          },
          "500": {
            "description": "Something failed on our side. Retry with backoff; if it persists, contact support with the `X-Request-Id`.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                },
                "examples": {
                  "default": {
                    "value": {
                      "statusCode": 500,
                      "message": "Internal server error"
                    }
                  }
                }
              }
            }
          }
        },
        "summary": "Get a DITA map",
        "tags": [
          "DITA maps"
        ],
        "x-orbitdocs-content": [
          {
            "markdown": "**Permission:** `playground.document:read`. An API key acts with the role of the member who created it.",
            "position": "after-description"
          }
        ],
        "description": "A DITA map with every file it holds and, per target language, the job's status and each translated file's document ID (open it in the editor) and status.",
        "x-orbitdocs-order": 13,
        "security": [
          {
            "ApiKeyAuth": []
          }
        ]
      },
      "patch": {
        "operationId": "rename-a-dita-map",
        "parameters": [
          {
            "name": "id",
            "required": true,
            "in": "path",
            "description": "ID of the DITA map, from Start a DITA map.",
            "schema": {
              "format": "uuid",
              "type": "string"
            }
          }
        ],
        "requestBody": {
          "required": true,
          "content": {
            "application/json": {
              "schema": {
                "$ref": "#/components/schemas/RenameDitaPackageDto"
              }
            }
          }
        },
        "responses": {
          "400": {
            "description": "Invalid request: a field failed validation, or a parameter is malformed (for example, an ID that is not a UUID).",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                },
                "examples": {
                  "default": {
                    "value": {
                      "statusCode": 400,
                      "message": [
                        "email must be an email"
                      ],
                      "error": "Bad Request"
                    }
                  }
                }
              }
            }
          },
          "401": {
            "description": "The `x-api-key` header is missing, or the key is invalid, expired or deleted.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                },
                "examples": {
                  "default": {
                    "value": {
                      "statusCode": 401,
                      "message": "Unauthorized"
                    }
                  }
                }
              }
            }
          },
          "403": {
            "description": "Not allowed: the API key's role lacks the permission (`PermissionDenied`), the product is not enabled for your organization, or it has been turned off.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                },
                "examples": {
                  "default": {
                    "value": {
                      "statusCode": 403,
                      "message": "Forbidden resource",
                      "error": "Forbidden"
                    }
                  }
                }
              }
            }
          },
          "404": {
            "description": "`DITA map not found`",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                },
                "examples": {
                  "default": {
                    "value": {
                      "statusCode": 404,
                      "message": "Not Found"
                    }
                  }
                }
              }
            }
          },
          "429": {
            "description": "Too many requests for this key. Wait the number of seconds in `Retry-After`, then retry.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                },
                "examples": {
                  "default": {
                    "value": {
                      "statusCode": 429,
                      "message": "ThrottlerException: Too Many Requests"
                    }
                  }
                }
              }
            }
          },
          "500": {
            "description": "Something failed on our side. Retry with backoff; if it persists, contact support with the `X-Request-Id`.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                },
                "examples": {
                  "default": {
                    "value": {
                      "statusCode": 500,
                      "message": "Internal server error"
                    }
                  }
                }
              }
            }
          }
        },
        "summary": "Rename a DITA map",
        "tags": [
          "DITA maps"
        ],
        "x-orbitdocs-content": [
          {
            "markdown": "**Permission:** `playground.document:update`. An API key acts with the role of the member who created it.",
            "position": "after-description"
          }
        ],
        "description": "Change the name the process list, the DITA map page and its exports use. The files inside keep their own names. A blank name becomes `DITA map`.",
        "x-orbitdocs-order": 14,
        "security": [
          {
            "ApiKeyAuth": []
          }
        ]
      }
    },
    "/v1/galaxy/playground/document/packages/{id}/export": {
      "get": {
        "operationId": "download-a-translated-dita-map",
        "parameters": [
          {
            "name": "id",
            "required": true,
            "in": "path",
            "description": "ID of the DITA map, from Start a DITA map.",
            "schema": {
              "format": "uuid",
              "type": "string"
            }
          },
          {
            "name": "language",
            "required": true,
            "in": "query",
            "description": "BCP-47 code of a target language the map was translated into.",
            "schema": {
              "type": "string",
              "examples": [
                "fr-FR"
              ]
            }
          }
        ],
        "responses": {
          "400": {
            "description": "Invalid request: a field failed validation, or a parameter is malformed (for example, an ID that is not a UUID).",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                },
                "examples": {
                  "default": {
                    "value": {
                      "statusCode": 400,
                      "message": [
                        "email must be an email"
                      ],
                      "error": "Bad Request"
                    }
                  }
                }
              }
            }
          },
          "401": {
            "description": "The `x-api-key` header is missing, or the key is invalid, expired or deleted.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                },
                "examples": {
                  "default": {
                    "value": {
                      "statusCode": 401,
                      "message": "Unauthorized"
                    }
                  }
                }
              }
            }
          },
          "403": {
            "description": "Not allowed: the API key's role lacks the permission (`PermissionDenied`), the product is not enabled for your organization, or it has been turned off.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                },
                "examples": {
                  "default": {
                    "value": {
                      "statusCode": 403,
                      "message": "Forbidden resource",
                      "error": "Forbidden"
                    }
                  }
                }
              }
            }
          },
          "404": {
            "description": "`DITA map not found`, or the map was not translated into `language`.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                },
                "examples": {
                  "default": {
                    "value": {
                      "statusCode": 404,
                      "message": "Not Found"
                    }
                  }
                }
              }
            }
          },
          "429": {
            "description": "Too many requests for this key. Wait the number of seconds in `Retry-After`, then retry.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                },
                "examples": {
                  "default": {
                    "value": {
                      "statusCode": 429,
                      "message": "ThrottlerException: Too Many Requests"
                    }
                  }
                }
              }
            }
          },
          "500": {
            "description": "Something failed on our side. Retry with backoff; if it persists, contact support with the `X-Request-Id`.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                },
                "examples": {
                  "default": {
                    "value": {
                      "statusCode": 500,
                      "message": "Internal server error"
                    }
                  }
                }
              }
            }
          }
        },
        "summary": "Download a translated DITA map",
        "tags": [
          "DITA maps"
        ],
        "x-orbitdocs-content": [
          {
            "markdown": "**Permission:** `playground.document:read`. An API key acts with the role of the member who created it.",
            "position": "after-description"
          }
        ],
        "description": "One language's translated DITA map as a ZIP laid out like the upload: every translated file rebuilt with the latest edits and its `xml:lang` set, everything else copied unchanged. A file still translating goes out in the source language; `X-Untranslated-Files` says how many.",
        "x-orbitdocs-order": 15,
        "security": [
          {
            "ApiKeyAuth": []
          }
        ]
      }
    },
    "/v1/galaxy/playground/document/packages/{id}/file": {
      "get": {
        "operationId": "get-one-image-of-a-dita-map",
        "parameters": [
          {
            "name": "id",
            "required": true,
            "in": "path",
            "description": "ID of the DITA map, from Start a DITA map.",
            "schema": {
              "format": "uuid",
              "type": "string"
            }
          },
          {
            "name": "path",
            "required": true,
            "in": "query",
            "description": "The file's path inside the uploaded ZIP, as the package manifest lists it.",
            "schema": {
              "type": "string",
              "examples": [
                "images/ui/home-screen.png"
              ]
            }
          }
        ],
        "responses": {
          "400": {
            "description": "Invalid request: a field failed validation, or a parameter is malformed (for example, an ID that is not a UUID).",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                },
                "examples": {
                  "default": {
                    "value": {
                      "statusCode": 400,
                      "message": [
                        "email must be an email"
                      ],
                      "error": "Bad Request"
                    }
                  }
                }
              }
            }
          },
          "401": {
            "description": "The `x-api-key` header is missing, or the key is invalid, expired or deleted.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                },
                "examples": {
                  "default": {
                    "value": {
                      "statusCode": 401,
                      "message": "Unauthorized"
                    }
                  }
                }
              }
            }
          },
          "403": {
            "description": "Not allowed: the API key's role lacks the permission (`PermissionDenied`), the product is not enabled for your organization, or it has been turned off.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                },
                "examples": {
                  "default": {
                    "value": {
                      "statusCode": 403,
                      "message": "Forbidden resource",
                      "error": "Forbidden"
                    }
                  }
                }
              }
            }
          },
          "404": {
            "description": "`DITA map not found`, or `path` is not an image of this map.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                },
                "examples": {
                  "default": {
                    "value": {
                      "statusCode": 404,
                      "message": "Not Found"
                    }
                  }
                }
              }
            }
          },
          "429": {
            "description": "Too many requests for this key. Wait the number of seconds in `Retry-After`, then retry.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                },
                "examples": {
                  "default": {
                    "value": {
                      "statusCode": 429,
                      "message": "ThrottlerException: Too Many Requests"
                    }
                  }
                }
              }
            }
          },
          "500": {
            "description": "Something failed on our side. Retry with backoff; if it persists, contact support with the `X-Request-Id`.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                },
                "examples": {
                  "default": {
                    "value": {
                      "statusCode": 500,
                      "message": "Internal server error"
                    }
                  }
                }
              }
            }
          }
        },
        "summary": "Get one image of a DITA map",
        "tags": [
          "DITA maps"
        ],
        "x-orbitdocs-content": [
          {
            "markdown": "**Permission:** `playground.document:read`. An API key acts with the role of the member who created it.",
            "position": "after-description"
          }
        ],
        "description": "One image of the uploaded DITA map, byte for byte, so it can be previewed. Only files the manifest lists as images are served.",
        "x-orbitdocs-order": 16,
        "security": [
          {
            "ApiKeyAuth": []
          }
        ]
      }
    },
    "/v1/galaxy/playground/document/packages/quote": {
      "post": {
        "operationId": "price-a-dita-map",
        "parameters": [],
        "requestBody": {
          "required": true,
          "content": {
            "multipart/form-data": {
              "schema": {
                "type": "object",
                "required": [
                  "sourceLanguage",
                  "targetLanguages"
                ],
                "properties": {
                  "file": {
                    "contentMediaType": "application/octet-stream",
                    "description": "The DITA map as a ZIP (up to 500 MB): its maps, topics and images, folders kept."
                  },
                  "assetId": {
                    "type": "string",
                    "format": "uuid",
                    "description": "A ZIP already in your assets, instead of `file`. Needs `asset:read`."
                  },
                  "sourceLanguage": {
                    "type": "string",
                    "examples": [
                      "en-US"
                    ]
                  },
                  "targetLanguages": {
                    "type": "array",
                    "items": {
                      "type": "string"
                    },
                    "examples": [
                      [
                        "fr-FR",
                        "de-DE"
                      ]
                    ]
                  }
                }
              }
            }
          }
        },
        "responses": {
          "400": {
            "description": "Not a ZIP, a path outside the ZIP's folder, no DITA text to translate, DITA files that are not well-formed (named), or a target language equal to the source.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                },
                "examples": {
                  "default": {
                    "value": {
                      "statusCode": 400,
                      "message": [
                        "email must be an email"
                      ],
                      "error": "Bad Request"
                    }
                  }
                }
              }
            }
          },
          "401": {
            "description": "The `x-api-key` header is missing, or the key is invalid, expired or deleted.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                },
                "examples": {
                  "default": {
                    "value": {
                      "statusCode": 401,
                      "message": "Unauthorized"
                    }
                  }
                }
              }
            }
          },
          "403": {
            "description": "Not allowed: the API key's role lacks the permission (`PermissionDenied`), the product is not enabled for your organization, or it has been turned off.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                },
                "examples": {
                  "default": {
                    "value": {
                      "statusCode": 403,
                      "message": "Forbidden resource",
                      "error": "Forbidden"
                    }
                  }
                }
              }
            }
          },
          "429": {
            "description": "Too many requests for this key. Wait the number of seconds in `Retry-After`, then retry.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                },
                "examples": {
                  "default": {
                    "value": {
                      "statusCode": 429,
                      "message": "ThrottlerException: Too Many Requests"
                    }
                  }
                }
              }
            }
          },
          "500": {
            "description": "Something failed on our side. Retry with backoff; if it persists, contact support with the `X-Request-Id`.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                },
                "examples": {
                  "default": {
                    "value": {
                      "statusCode": 500,
                      "message": "Internal server error"
                    }
                  }
                }
              }
            }
          }
        },
        "summary": "Price a DITA map",
        "tags": [
          "DITA maps"
        ],
        "x-orbitdocs-content": [
          {
            "markdown": "**Permission:** `playground.document:create`. An API key acts with the role of the member who created it.\n\n**Credits:** Charged when it starts: every DITA topic and map, once per target language, per source word — one charge per file and language. Code, paths, `translate=\"no\"` and `conref` content are not counted. A file whose translation fails is refunded; nothing else is translated or charged.\n\n| Rate | What it covers | Price |\n| --- | --- | --- |\n| DITA translation | Translating a DITA topic or map in the playground, keeping its structure and markup. Charged per source word. | 0.5 credits per word |",
            "position": "after-description"
          }
        ],
        "description": "What translating a DITA map ZIP would cost, counted exactly as Start a DITA map charges it, with every file it found (translated or copied). Nothing is stored or charged.",
        "x-orbitdocs-order": 10,
        "security": [
          {
            "ApiKeyAuth": []
          }
        ]
      }
    },
    "/v1/galaxy/playground/document/packages/upload/presign": {
      "post": {
        "operationId": "get-a-dita-map-upload-url",
        "parameters": [],
        "requestBody": {
          "required": true,
          "content": {
            "application/json": {
              "schema": {
                "$ref": "#/components/schemas/CreateStagedUploadDto"
              }
            }
          }
        },
        "responses": {
          "201": {
            "description": "Created",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/DocumentUploadUrlResponseDto"
                }
              }
            }
          },
          "400": {
            "description": "A field failed validation, the file is empty or over 500 MB, or it is not a `.zip`.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                },
                "examples": {
                  "default": {
                    "value": {
                      "statusCode": 400,
                      "message": [
                        "email must be an email"
                      ],
                      "error": "Bad Request"
                    }
                  }
                }
              }
            }
          },
          "401": {
            "description": "The `x-api-key` header is missing, or the key is invalid, expired or deleted.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                },
                "examples": {
                  "default": {
                    "value": {
                      "statusCode": 401,
                      "message": "Unauthorized"
                    }
                  }
                }
              }
            }
          },
          "403": {
            "description": "Not allowed: the API key's role lacks the permission (`PermissionDenied`), the product is not enabled for your organization, or it has been turned off.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                },
                "examples": {
                  "default": {
                    "value": {
                      "statusCode": 403,
                      "message": "Forbidden resource",
                      "error": "Forbidden"
                    }
                  }
                }
              }
            }
          },
          "429": {
            "description": "The member asked for 60 upload URLs in the last hour, or has 5 GB of uploads not yet used.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                },
                "examples": {
                  "default": {
                    "value": {
                      "statusCode": 429,
                      "message": "ThrottlerException: Too Many Requests"
                    }
                  }
                }
              }
            }
          },
          "500": {
            "description": "Something failed on our side. Retry with backoff; if it persists, contact support with the `X-Request-Id`.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                },
                "examples": {
                  "default": {
                    "value": {
                      "statusCode": 500,
                      "message": "Internal server error"
                    }
                  }
                }
              }
            }
          }
        },
        "summary": "Get a DITA map upload URL",
        "tags": [
          "DITA maps"
        ],
        "x-orbitdocs-content": [
          {
            "markdown": "**Permission:** `playground.document:create`. An API key acts with the role of the member who created it.",
            "position": "after-description"
          }
        ],
        "description": "For a DITA map ZIP up to 500 MB. Returns a presigned `uploadUrl`: `PUT` the ZIP to it with exactly `size` bytes and the given `headers`, within 10 minutes. Then price and start the map with `uploadKey` set to `objectKey` (and `fileName`). The file never passes through the request. An upload not used within a day is deleted.",
        "x-orbitdocs-order": 0,
        "security": [
          {
            "ApiKeyAuth": []
          }
        ]
      }
    },
    "/v1/galaxy/playground/document/rename": {
      "put": {
        "operationId": "rename-a-translation",
        "parameters": [],
        "requestBody": {
          "required": true,
          "content": {
            "application/json": {
              "schema": {
                "$ref": "#/components/schemas/RenamePlaygroundLogDto"
              }
            }
          }
        },
        "responses": {
          "200": {
            "description": "The translation was renamed.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/RenameLogResponseDto"
                }
              }
            }
          },
          "400": {
            "description": "Invalid request: a field failed validation, or a parameter is malformed (for example, an ID that is not a UUID).",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                },
                "examples": {
                  "default": {
                    "value": {
                      "statusCode": 400,
                      "message": [
                        "email must be an email"
                      ],
                      "error": "Bad Request"
                    }
                  }
                }
              }
            }
          },
          "401": {
            "description": "The `x-api-key` header is missing, or the key is invalid, expired or deleted.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                },
                "examples": {
                  "default": {
                    "value": {
                      "statusCode": 401,
                      "message": "Unauthorized"
                    }
                  }
                }
              }
            }
          },
          "403": {
            "description": "Not allowed: the API key's role lacks the permission (`PermissionDenied`), the product is not enabled for your organization, or it has been turned off.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                },
                "examples": {
                  "default": {
                    "value": {
                      "statusCode": 403,
                      "message": "Forbidden resource",
                      "error": "Forbidden"
                    }
                  }
                }
              }
            }
          },
          "404": {
            "description": "No translation with this ID in your organization (`Playground log not found`), or the key's role sees only its own work and this translation is not its own (`Process not found`).",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                },
                "examples": {
                  "default": {
                    "value": {
                      "statusCode": 404,
                      "message": "Not Found"
                    }
                  }
                }
              }
            }
          },
          "429": {
            "description": "Too many requests for this key. Wait the number of seconds in `Retry-After`, then retry.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                },
                "examples": {
                  "default": {
                    "value": {
                      "statusCode": 429,
                      "message": "ThrottlerException: Too Many Requests"
                    }
                  }
                }
              }
            }
          },
          "500": {
            "description": "Something failed on our side. Retry with backoff; if it persists, contact support with the `X-Request-Id`.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                },
                "examples": {
                  "default": {
                    "value": {
                      "statusCode": 500,
                      "message": "Internal server error"
                    }
                  }
                }
              }
            }
          }
        },
        "summary": "Rename a translation",
        "tags": [
          "Translations"
        ],
        "x-orbitdocs-content": [
          {
            "markdown": "**Permission:** `playground.document:update`. An API key acts with the role of the member who created it.",
            "position": "after-description"
          }
        ],
        "description": "Change the display name of a translation. A blank name becomes `Untitled translation`. The file name of a download follows the new name.",
        "x-orbitdocs-order": 7,
        "security": [
          {
            "ApiKeyAuth": []
          }
        ]
      }
    },
    "/v1/galaxy/playground/document/sync-from-tm": {
      "put": {
        "description": "The reverse of Sync edits to the translation memory: every segment whose source text the translation memory knows takes its translation and review status. Segments it does not know are left as they are. A segment it knows is overwritten even if it has edits not yet synced.",
        "operationId": "update-from-the-translation-memory",
        "parameters": [],
        "requestBody": {
          "required": true,
          "content": {
            "application/json": {
              "schema": {
                "$ref": "#/components/schemas/SyncPlaygroundToTmDto"
              }
            }
          }
        },
        "responses": {
          "200": {
            "description": "The segments were updated.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/PlaygroundSyncFromTmResponseDto"
                }
              }
            }
          },
          "400": {
            "description": "The translation has no translation memory (`No translation memory linked to this translation`).",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                },
                "examples": {
                  "default": {
                    "value": {
                      "statusCode": 400,
                      "message": [
                        "email must be an email"
                      ],
                      "error": "Bad Request"
                    }
                  }
                }
              }
            }
          },
          "401": {
            "description": "The `x-api-key` header is missing, or the key is invalid, expired or deleted.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                },
                "examples": {
                  "default": {
                    "value": {
                      "statusCode": 401,
                      "message": "Unauthorized"
                    }
                  }
                }
              }
            }
          },
          "403": {
            "description": "Not allowed: the API key's role lacks the permission (`PermissionDenied`), the product is not enabled for your organization, or it has been turned off.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                },
                "examples": {
                  "default": {
                    "value": {
                      "statusCode": 403,
                      "message": "Forbidden resource",
                      "error": "Forbidden"
                    }
                  }
                }
              }
            }
          },
          "404": {
            "description": "No translation with this ID in your organization (`Playground log not found`), or the key's role sees only its own work and this translation is not its own (`Process not found`).",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                },
                "examples": {
                  "default": {
                    "value": {
                      "statusCode": 404,
                      "message": "Not Found"
                    }
                  }
                }
              }
            }
          },
          "429": {
            "description": "Too many requests for this key. Wait the number of seconds in `Retry-After`, then retry.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                },
                "examples": {
                  "default": {
                    "value": {
                      "statusCode": 429,
                      "message": "ThrottlerException: Too Many Requests"
                    }
                  }
                }
              }
            }
          },
          "500": {
            "description": "Something failed on our side. Retry with backoff; if it persists, contact support with the `X-Request-Id`.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                },
                "examples": {
                  "default": {
                    "value": {
                      "statusCode": 500,
                      "message": "Internal server error"
                    }
                  }
                }
              }
            }
          },
          "502": {
            "description": "The translation memory service returned an error (`TranslationServiceError`). Retry later.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                },
                "examples": {
                  "default": {
                    "value": {
                      "statusCode": 502,
                      "message": "Error"
                    }
                  }
                }
              }
            }
          },
          "503": {
            "description": "The translation memory service is busy or unavailable (`TranslationServiceError`). Retry later.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                },
                "examples": {
                  "default": {
                    "value": {
                      "statusCode": 503,
                      "message": "Error"
                    }
                  }
                }
              }
            }
          }
        },
        "summary": "Update from the translation memory",
        "tags": [
          "Editing"
        ],
        "x-orbitdocs-content": [
          {
            "markdown": "**Permission:** `playground.document:update`. An API key acts with the role of the member who created it.",
            "position": "after-description"
          }
        ],
        "x-orbitdocs-order": 5,
        "security": [
          {
            "ApiKeyAuth": []
          }
        ]
      }
    },
    "/v1/galaxy/playground/document/sync-to-tm": {
      "put": {
        "description": "Send every segment edited since the last sync (`dirty: true` in List segments) to the translation memory of the translation, with its text and review status, so later translations reuse them. Nothing happens when there are no edits. A VitraTM memory in Reference mode stores nothing after a translation, so for one this sends every translated segment, edited or not.",
        "operationId": "sync-edits-to-the-translation-memory",
        "parameters": [],
        "requestBody": {
          "required": true,
          "content": {
            "application/json": {
              "schema": {
                "$ref": "#/components/schemas/SyncPlaygroundToTmDto"
              }
            }
          }
        },
        "responses": {
          "200": {
            "description": "The edits were sent.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/PlaygroundSyncToTmResponseDto"
                }
              }
            }
          },
          "400": {
            "description": "The translation has no translation memory (`No translation memory linked to this translation`).",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                },
                "examples": {
                  "default": {
                    "value": {
                      "statusCode": 400,
                      "message": [
                        "email must be an email"
                      ],
                      "error": "Bad Request"
                    }
                  }
                }
              }
            }
          },
          "401": {
            "description": "The `x-api-key` header is missing, or the key is invalid, expired or deleted.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                },
                "examples": {
                  "default": {
                    "value": {
                      "statusCode": 401,
                      "message": "Unauthorized"
                    }
                  }
                }
              }
            }
          },
          "403": {
            "description": "Not allowed: the API key's role lacks the permission (`PermissionDenied`), the product is not enabled for your organization, or it has been turned off.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                },
                "examples": {
                  "default": {
                    "value": {
                      "statusCode": 403,
                      "message": "Forbidden resource",
                      "error": "Forbidden"
                    }
                  }
                }
              }
            }
          },
          "404": {
            "description": "No translation with this ID in your organization (`Playground log not found`), or the key's role sees only its own work and this translation is not its own (`Process not found`).",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                },
                "examples": {
                  "default": {
                    "value": {
                      "statusCode": 404,
                      "message": "Not Found"
                    }
                  }
                }
              }
            }
          },
          "429": {
            "description": "Too many requests for this key. Wait the number of seconds in `Retry-After`, then retry.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                },
                "examples": {
                  "default": {
                    "value": {
                      "statusCode": 429,
                      "message": "ThrottlerException: Too Many Requests"
                    }
                  }
                }
              }
            }
          },
          "500": {
            "description": "Something failed on our side. Retry with backoff; if it persists, contact support with the `X-Request-Id`.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                },
                "examples": {
                  "default": {
                    "value": {
                      "statusCode": 500,
                      "message": "Internal server error"
                    }
                  }
                }
              }
            }
          },
          "502": {
            "description": "The translation memory service returned an error (`TranslationServiceError`). Retry later.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                },
                "examples": {
                  "default": {
                    "value": {
                      "statusCode": 502,
                      "message": "Error"
                    }
                  }
                }
              }
            }
          },
          "503": {
            "description": "The translation memory service is busy or unavailable (`TranslationServiceError`). Retry later.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                },
                "examples": {
                  "default": {
                    "value": {
                      "statusCode": 503,
                      "message": "Error"
                    }
                  }
                }
              }
            }
          }
        },
        "summary": "Sync edits to the translation memory",
        "tags": [
          "Editing"
        ],
        "x-orbitdocs-content": [
          {
            "markdown": "**Permission:** `playground.document:update` and `translation_memory:update`. An API key acts with the role of the member who created it.",
            "position": "after-description"
          }
        ],
        "x-orbitdocs-order": 4,
        "security": [
          {
            "ApiKeyAuth": []
          }
        ]
      }
    },
    "/v1/galaxy/playground/document/text-file/upload/presign": {
      "post": {
        "operationId": "get-a-text-file-upload-url",
        "parameters": [],
        "requestBody": {
          "required": true,
          "content": {
            "application/json": {
              "schema": {
                "$ref": "#/components/schemas/CreateStagedUploadDto"
              }
            }
          }
        },
        "responses": {
          "201": {
            "description": "The upload URL and the key to send.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/StagedUploadTicketDto"
                }
              }
            }
          },
          "400": {
            "description": "A field failed validation, or: `The file is empty.`, `The document is larger than the 25 MB limit.`, a file of another type (`That isn't a document this step takes (…)`), or a program or script (`Files of this type (.exe) can't be uploaded.`).",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                },
                "examples": {
                  "default": {
                    "value": {
                      "statusCode": 400,
                      "message": [
                        "email must be an email"
                      ],
                      "error": "Bad Request"
                    }
                  }
                }
              }
            }
          },
          "401": {
            "description": "The `x-api-key` header is missing, or the key is invalid, expired or deleted.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                },
                "examples": {
                  "default": {
                    "value": {
                      "statusCode": 401,
                      "message": "Unauthorized"
                    }
                  }
                }
              }
            }
          },
          "403": {
            "description": "Not allowed: the API key's role lacks the permission (`PermissionDenied`), the product is not enabled for your organization, or it has been turned off.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                },
                "examples": {
                  "default": {
                    "value": {
                      "statusCode": 403,
                      "message": "Forbidden resource",
                      "error": "Forbidden"
                    }
                  }
                }
              }
            }
          },
          "429": {
            "description": "The API key's member asked for too many upload URLs in the last hour (300 by default: `Too many uploads in the last hour. Please wait and try again.`), or has too many bytes uploaded and not yet used (5 GB by default). Also returned when the key exceeds its request rate.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                },
                "examples": {
                  "default": {
                    "value": {
                      "statusCode": 429,
                      "message": "ThrottlerException: Too Many Requests"
                    }
                  }
                }
              }
            }
          },
          "500": {
            "description": "Something failed on our side. Retry with backoff; if it persists, contact support with the `X-Request-Id`.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                },
                "examples": {
                  "default": {
                    "value": {
                      "statusCode": 500,
                      "message": "Internal server error"
                    }
                  }
                }
              }
            }
          }
        },
        "summary": "Get a text file upload URL",
        "tags": [
          "Uploads"
        ],
        "x-orbitdocs-content": [
          {
            "markdown": "**Permission:** `playground.document:create`. An API key acts with the role of the member who created it.",
            "position": "after-description"
          }
        ],
        "description": "For a `.txt` (`TEXT`), JSON, XML, XLIFF, HTML, Markdown, YAML, DITA, Tableau or CSV file up to 25 MB, in place of the `file` part. Send its `fileName`, `contentType` and exact `size`; you get a presigned `uploadUrl`: `PUT` the file to it with exactly the `headers` returned, within 10 minutes. Then send `uploadKey` as JSON to Count billable words and Translate a document, or several as `uploadKeys` to Translate a batch of files. One upload serves the count and every target language: send the same key again for each, as with an `objectKey`. An upload is deleted a day after its URL was issued.",
        "x-orbitdocs-order": 2,
        "security": [
          {
            "ApiKeyAuth": []
          }
        ]
      }
    },
    "/v1/galaxy/playground/document/translate": {
      "post": {
        "description": "Start translating one document, or plain text, into one target language through your translation memory. Send `multipart/form-data` (or JSON, without a `file` part) with `format`, `sourceLanguage`, `targetLanguage`, `suite`, `tmId` and the source: the `file` part (up to 10 MB), an `uploadKey` from Get a text file upload URL (the text formats, up to 25 MB), an `assetId` from your assets, an `objectKey` from Get an upload URL (any file over 10 MB: Office, PDF and InDesign files up to 500 MB, the text formats up to 25 MB), or `sourceText` for `TEXT`. Returns the translation `id` straight away with `status: processing`; poll Get a translation until `status` is `COMPLETED` or `FAILED` (for `TEXT`, Get a text result), then Download the translated file. For more languages, call it once per language with the same `objectKey` or `uploadKey`: the upload is read and left in storage.",
        "operationId": "translate-a-document",
        "parameters": [],
        "requestBody": {
          "required": true,
          "content": {
            "multipart/form-data": {
              "schema": {
                "$ref": "#/components/schemas/TranslateDocumentFormDto"
              }
            },
            "application/json": {
              "schema": {
                "$ref": "#/components/schemas/TranslateDocumentFormDto"
              }
            }
          }
        },
        "responses": {
          "201": {
            "description": "The translation was created and started.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/TranslationStartedResponseDto"
                }
              }
            }
          },
          "400": {
            "description": "Nothing was started. A field failed validation, or:\n\n- `File is required for this format`: send `file`, `uploadKey`, `assetId` or `objectKey`.\n- `Provide sourceText or upload a .txt file to translate.` (`TEXT`), `The uploaded .txt file is empty.`, `Only .txt files are supported for text translation.`\n- `Text translations are limited to 10,000 characters — …` (`TEXT`).\n- `A translation memory is required to translate.` or `The selected translation memory is not available to this organization.`\n- `The upload could not be found. Please try uploading the file again.` or `The upload did not complete. Please try uploading the file again.`: the `objectKey` or `uploadKey` was not uploaded, or not with the declared `size`.\n- `That upload was already used. Please upload the file again.`: an `uploadKey` whose file was refused before (a program, or not the file it says it is).\n- `That upload does not belong to this organization.`\n- `PDF translation into <language> is not supported yet …`: no font for the target script.\n- `\"<name>\" is larger than the <n> MB limit` for an `assetId`.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                },
                "examples": {
                  "default": {
                    "value": {
                      "statusCode": 400,
                      "message": [
                        "email must be an email"
                      ],
                      "error": "Bad Request"
                    }
                  }
                }
              }
            }
          },
          "401": {
            "description": "The `x-api-key` header is missing, or the key is invalid, expired or deleted.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                },
                "examples": {
                  "default": {
                    "value": {
                      "statusCode": 401,
                      "message": "Unauthorized"
                    }
                  }
                }
              }
            }
          },
          "402": {
            "description": "Not enough credits for the counted words, or your organization owes credits. Nothing was created or started.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/InsufficientCreditsErrorDto"
                }
              }
            }
          },
          "403": {
            "description": "The key lacks the permission, or `asset:read` for an `assetId` (`PermissionDenied`).",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                },
                "examples": {
                  "default": {
                    "value": {
                      "statusCode": 403,
                      "message": "Forbidden resource",
                      "error": "Forbidden"
                    }
                  }
                }
              }
            }
          },
          "404": {
            "description": "`assetId` is not an asset in your organization (`Asset not found`), or `projectId` is not a project in it (`Project not found`).",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                },
                "examples": {
                  "default": {
                    "value": {
                      "statusCode": 404,
                      "message": "Not Found"
                    }
                  }
                }
              }
            }
          },
          "413": {
            "description": "The `file` part is larger than 10 MB. Use Get an upload URL for any larger file and send its `objectKey`.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                },
                "examples": {
                  "default": {
                    "value": {
                      "statusCode": 413,
                      "message": "Payload Too Large"
                    }
                  }
                }
              }
            }
          },
          "429": {
            "description": "Too many requests for this key. Wait the number of seconds in `Retry-After`, then retry.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                },
                "examples": {
                  "default": {
                    "value": {
                      "statusCode": 429,
                      "message": "ThrottlerException: Too Many Requests"
                    }
                  }
                }
              }
            }
          },
          "500": {
            "description": "Something failed on our side. Retry with backoff; if it persists, contact support with the `X-Request-Id`.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                },
                "examples": {
                  "default": {
                    "value": {
                      "statusCode": 500,
                      "message": "Internal server error"
                    }
                  }
                }
              }
            }
          },
          "502": {
            "description": "The translation memory service returned an error (`TranslationServiceError`). Retry later.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                },
                "examples": {
                  "default": {
                    "value": {
                      "statusCode": 502,
                      "message": "Error"
                    }
                  }
                }
              }
            }
          },
          "503": {
            "description": "A PDF is still being read or rendered (`This PDF is still being read. Please try again in a moment.`, `PdfStillPreparing`), or several PDFs are already being prepared for your organization (`PdfEngineBusy`). Nothing was charged. Retry after `retryAfterSeconds` (10). Also returned when the translation memory service is unavailable.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                },
                "examples": {
                  "default": {
                    "value": {
                      "statusCode": 503,
                      "message": "Error"
                    }
                  }
                }
              }
            }
          }
        },
        "summary": "Translate a document",
        "tags": [
          "Translations"
        ],
        "x-orbitdocs-content": [
          {
            "markdown": "**Permission:** `playground.document:create`. An API key acts with the role of the member who created it. With `assetId`, also `asset:read`.\n\n**Credits:** Charged when the translation starts: the billable source words (see Count billable words) times the rate of the `format`. When it finishes, the charge is settled on the words actually translated. Refunded in full if the translation fails on our side; deleting it while it runs keeps the charge. Refused with 402 while your organization owes credits.\n\n| Rate | What it covers | Price |\n| --- | --- | --- |\n| Text translation | Translating plain text in the playground. Charged per source word. | 0.5 credits per word |\n| JSON translation | Translating a JSON file in the playground. Charged per source word. | 0.5 credits per word |\n| XML translation | Translating an XML file in the playground. Charged per source word. | 0.5 credits per word |\n| HTML translation | Translating an HTML file in the playground. Charged per source word. | 0.5 credits per word |\n| XLIFF translation | Translating an XLIFF file in the playground. Charged per source word. | 0.5 credits per word |\n| Word translation | Translating a Word (.docx) file in the playground. Charged per source word. | 0.5 credits per word |\n| PowerPoint translation | Translating a PowerPoint (.pptx) file in the playground. Charged per source word. | 0.5 credits per word |\n| Excel translation | Translating an Excel (.xlsx) file in the playground. Charged per source word. | 0.5 credits per word |\n| CSV translation | Translating a CSV file in the playground. Charged per source word, for the columns selected. | 0.5 credits per word |\n| PDF translation | Translating a PDF in the playground, keeping its layout. Charged per source word. | 0.5 credits per word |\n| InDesign translation | Translating an InDesign (.idml) file in the playground, keeping its layout and styles. Charged per source word. | 0.5 credits per word |\n| DITA translation | Translating a DITA topic or map in the playground, keeping its structure and markup. Charged per source word. | 0.5 credits per word |\n| Markdown translation | Translating a Markdown (.md) file in the playground, keeping its formatting, links and code. Charged per source word. | 0.5 credits per word |\n| YAML translation | Translating the text values of a YAML (.yaml, .yml) file in the playground, keeping its keys and structure. Charged per source word. | 0.5 credits per word |",
            "position": "after-description"
          }
        ],
        "x-orbitdocs-order": 1,
        "security": [
          {
            "ApiKeyAuth": []
          }
        ]
      }
    },
    "/v1/galaxy/playground/document/translate/batch": {
      "post": {
        "description": "Translate up to 20 files of one `format` into one target language in one call. Send `multipart/form-data` with the files (repeat `files`) and/or `assetIds`, or JSON with `uploadKeys` from Get a text file upload URL and/or `assetIds`, plus `format`, `sourceLanguage`, `targetLanguage`, `suite` and `tmId`. Every file becomes its own translation, grouped in a batch. Returns once the files are queued: each file is `processing` with its `logId`, or `failed` with the reason it could not be queued. The `uploadKeys` are read and left in storage, so the same keys start the batch for another target language. Follow progress with Get a batch, or each file with Get a translation.",
        "operationId": "translate-a-batch-of-files",
        "parameters": [],
        "requestBody": {
          "required": true,
          "content": {
            "multipart/form-data": {
              "schema": {
                "$ref": "#/components/schemas/TranslateBatchFormDto"
              }
            },
            "application/json": {
              "schema": {
                "$ref": "#/components/schemas/TranslateBatchFormDto"
              }
            }
          }
        },
        "responses": {
          "201": {
            "description": "The batch was created and its files queued.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/BatchStartResponseDto"
                }
              }
            }
          },
          "400": {
            "description": "Nothing was started. A field failed validation, or: `At least one file is required.`, `Too many files — a batch accepts at most 20.`, `<format> files cannot be batched from the Drive yet — upload them instead.`, `PDF translation into <language> is not supported yet …`, a translation memory your organization cannot use, or an `uploadKeys` entry that was not uploaded, or not completely (`The upload could not be found. Please try uploading the file again.`, `The upload did not complete. Please try uploading the file again.`).",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                },
                "examples": {
                  "default": {
                    "value": {
                      "statusCode": 400,
                      "message": [
                        "email must be an email"
                      ],
                      "error": "Bad Request"
                    }
                  }
                }
              }
            }
          },
          "401": {
            "description": "The `x-api-key` header is missing, or the key is invalid, expired or deleted.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                },
                "examples": {
                  "default": {
                    "value": {
                      "statusCode": 401,
                      "message": "Unauthorized"
                    }
                  }
                }
              }
            }
          },
          "402": {
            "description": "Not enough credits for the counted words, or your organization owes credits. Nothing was created or started.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/InsufficientCreditsErrorDto"
                }
              }
            }
          },
          "403": {
            "description": "The key lacks the permission. With `assetIds`, also `asset:read`.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                },
                "examples": {
                  "default": {
                    "value": {
                      "statusCode": 403,
                      "message": "Forbidden resource",
                      "error": "Forbidden"
                    }
                  }
                }
              }
            }
          },
          "404": {
            "description": "An `assetIds` entry is not an asset in your organization (`Asset not found`), or `projectId` is not a project in it (`Project not found`).",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                },
                "examples": {
                  "default": {
                    "value": {
                      "statusCode": 404,
                      "message": "Not Found"
                    }
                  }
                }
              }
            }
          },
          "413": {
            "description": "A `files` part is larger than 10 MB. Upload larger files with Get an upload URL and send them as `objectKeys`.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                },
                "examples": {
                  "default": {
                    "value": {
                      "statusCode": 413,
                      "message": "Payload Too Large"
                    }
                  }
                }
              }
            }
          },
          "429": {
            "description": "Too many requests for this key. Wait the number of seconds in `Retry-After`, then retry.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                },
                "examples": {
                  "default": {
                    "value": {
                      "statusCode": 429,
                      "message": "ThrottlerException: Too Many Requests"
                    }
                  }
                }
              }
            }
          },
          "500": {
            "description": "Something failed on our side. Retry with backoff; if it persists, contact support with the `X-Request-Id`.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                },
                "examples": {
                  "default": {
                    "value": {
                      "statusCode": 500,
                      "message": "Internal server error"
                    }
                  }
                }
              }
            }
          },
          "503": {
            "description": "A PDF is still being read or rendered (`This PDF is still being read. Please try again in a moment.`, `PdfStillPreparing`), or several PDFs are already being prepared for your organization (`PdfEngineBusy`). Nothing was charged. Retry after `retryAfterSeconds` (10).",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                },
                "examples": {
                  "default": {
                    "value": {
                      "statusCode": 503,
                      "message": "Error"
                    }
                  }
                }
              }
            }
          }
        },
        "summary": "Translate a batch of files",
        "tags": [
          "Batches"
        ],
        "x-orbitdocs-content": [
          {
            "markdown": "**Permission:** `playground.document:create`. An API key acts with the role of the member who created it. With `assetIds`, also `asset:read`.\n\n**Credits:** Charged up front for every file that can be queued, on its billable words, all or nothing (402 and nothing created when short). A file that cannot be queued is not charged. Each translation is settled on the words actually translated when it finishes; one that fails on our side is refunded on its own. Refused with 402 while your organization owes credits.\n\n| Rate | What it covers | Price |\n| --- | --- | --- |\n| Text translation | Translating plain text in the playground. Charged per source word. | 0.5 credits per word |\n| JSON translation | Translating a JSON file in the playground. Charged per source word. | 0.5 credits per word |\n| XML translation | Translating an XML file in the playground. Charged per source word. | 0.5 credits per word |\n| HTML translation | Translating an HTML file in the playground. Charged per source word. | 0.5 credits per word |\n| XLIFF translation | Translating an XLIFF file in the playground. Charged per source word. | 0.5 credits per word |\n| Word translation | Translating a Word (.docx) file in the playground. Charged per source word. | 0.5 credits per word |\n| PowerPoint translation | Translating a PowerPoint (.pptx) file in the playground. Charged per source word. | 0.5 credits per word |\n| Excel translation | Translating an Excel (.xlsx) file in the playground. Charged per source word. | 0.5 credits per word |\n| CSV translation | Translating a CSV file in the playground. Charged per source word, for the columns selected. | 0.5 credits per word |\n| PDF translation | Translating a PDF in the playground, keeping its layout. Charged per source word. | 0.5 credits per word |\n| InDesign translation | Translating an InDesign (.idml) file in the playground, keeping its layout and styles. Charged per source word. | 0.5 credits per word |\n| DITA translation | Translating a DITA topic or map in the playground, keeping its structure and markup. Charged per source word. | 0.5 credits per word |\n| Markdown translation | Translating a Markdown (.md) file in the playground, keeping its formatting, links and code. Charged per source word. | 0.5 credits per word |\n| YAML translation | Translating the text values of a YAML (.yaml, .yml) file in the playground, keeping its keys and structure. Charged per source word. | 0.5 credits per word |",
            "position": "after-description"
          }
        ],
        "x-orbitdocs-order": 1,
        "security": [
          {
            "ApiKeyAuth": []
          }
        ]
      }
    },
    "/v1/galaxy/playground/document/translate/folder": {
      "post": {
        "description": "Translate every matching file under a folder of your assets into each target language: one translation per file and language, grouped one batch per language and format. The folder is listed again when you call this, so the run takes what it holds now; send the preview's `totals.credits` as `expectedCredits` to refuse a run whose price changed. Each translation is saved, as it finishes, into a new `<folder> (translated)` folder next to the original, laid out by `layout`. Returns once everything is queued; follow each batch with Get a batch.",
        "operationId": "translate-a-folder",
        "parameters": [],
        "requestBody": {
          "required": true,
          "content": {
            "application/json": {
              "schema": {
                "$ref": "#/components/schemas/FolderRunDto"
              }
            }
          }
        },
        "responses": {
          "201": {
            "description": "The run was queued.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/FolderRunResponseDto"
                }
              }
            }
          },
          "400": {
            "description": "Nothing was started. A field failed validation, or: `Pick at least one target language.`, `There are no files to translate in “<folder>”.`, `PDF translation into <languages> is not supported yet …`, a too-large folder (see Preview a folder translation), or a translation memory your organization cannot use.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                },
                "examples": {
                  "default": {
                    "value": {
                      "statusCode": 400,
                      "message": [
                        "email must be an email"
                      ],
                      "error": "Bad Request"
                    }
                  }
                }
              }
            }
          },
          "401": {
            "description": "The `x-api-key` header is missing, or the key is invalid, expired or deleted.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                },
                "examples": {
                  "default": {
                    "value": {
                      "statusCode": 401,
                      "message": "Unauthorized"
                    }
                  }
                }
              }
            }
          },
          "402": {
            "description": "Not enough credits for the counted words, or your organization owes credits. Nothing was created or started.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/InsufficientCreditsErrorDto"
                }
              }
            }
          },
          "403": {
            "description": "The key lacks the permission.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                },
                "examples": {
                  "default": {
                    "value": {
                      "statusCode": 403,
                      "message": "Forbidden resource",
                      "error": "Forbidden"
                    }
                  }
                }
              }
            }
          },
          "404": {
            "description": "`folderId` is not a folder of your organization's assets (`Folder not found`), or `projectId` is not a project in it (`Project not found`).",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                },
                "examples": {
                  "default": {
                    "value": {
                      "statusCode": 404,
                      "message": "Not Found"
                    }
                  }
                }
              }
            }
          },
          "409": {
            "description": "The run now costs a different amount than `expectedCredits` (`FolderRunChanged`, with `credits` and `expectedCredits`). Preview again. Nothing was charged.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                },
                "examples": {
                  "default": {
                    "value": {
                      "statusCode": 409,
                      "message": "Conflict",
                      "error": "Conflict"
                    }
                  }
                }
              }
            }
          },
          "429": {
            "description": "Too many requests for this key. Wait the number of seconds in `Retry-After`, then retry.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                },
                "examples": {
                  "default": {
                    "value": {
                      "statusCode": 429,
                      "message": "ThrottlerException: Too Many Requests"
                    }
                  }
                }
              }
            }
          },
          "500": {
            "description": "Something failed on our side. Retry with backoff; if it persists, contact support with the `X-Request-Id`.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                },
                "examples": {
                  "default": {
                    "value": {
                      "statusCode": 500,
                      "message": "Internal server error"
                    }
                  }
                }
              }
            }
          },
          "503": {
            "description": "A PDF is still being read or rendered (`This PDF is still being read. Please try again in a moment.`, `PdfStillPreparing`), or several PDFs are already being prepared for your organization (`PdfEngineBusy`). Nothing was charged. Retry after `retryAfterSeconds` (10).",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                },
                "examples": {
                  "default": {
                    "value": {
                      "statusCode": 503,
                      "message": "Error"
                    }
                  }
                }
              }
            }
          }
        },
        "summary": "Translate a folder",
        "tags": [
          "Batches"
        ],
        "x-orbitdocs-content": [
          {
            "markdown": "**Permission:** `playground.document:create` and `asset:read`. An API key acts with the role of the member who created it.\n\n**Credits:** Charged up front for the whole run: every file times every target language, on each file's billable words, all or nothing (402 and nothing created when short). Each translation is settled on the words actually translated when it finishes; one that fails, or cannot be queued, is refunded on its own. Refused with 402 while your organization owes credits.\n\n| Rate | What it covers | Price |\n| --- | --- | --- |\n| Text translation | Translating plain text in the playground. Charged per source word. | 0.5 credits per word |\n| JSON translation | Translating a JSON file in the playground. Charged per source word. | 0.5 credits per word |\n| XML translation | Translating an XML file in the playground. Charged per source word. | 0.5 credits per word |\n| HTML translation | Translating an HTML file in the playground. Charged per source word. | 0.5 credits per word |\n| XLIFF translation | Translating an XLIFF file in the playground. Charged per source word. | 0.5 credits per word |\n| Word translation | Translating a Word (.docx) file in the playground. Charged per source word. | 0.5 credits per word |\n| PowerPoint translation | Translating a PowerPoint (.pptx) file in the playground. Charged per source word. | 0.5 credits per word |\n| Excel translation | Translating an Excel (.xlsx) file in the playground. Charged per source word. | 0.5 credits per word |\n| CSV translation | Translating a CSV file in the playground. Charged per source word, for the columns selected. | 0.5 credits per word |\n| PDF translation | Translating a PDF in the playground, keeping its layout. Charged per source word. | 0.5 credits per word |\n| InDesign translation | Translating an InDesign (.idml) file in the playground, keeping its layout and styles. Charged per source word. | 0.5 credits per word |\n| DITA translation | Translating a DITA topic or map in the playground, keeping its structure and markup. Charged per source word. | 0.5 credits per word |\n| Markdown translation | Translating a Markdown (.md) file in the playground, keeping its formatting, links and code. Charged per source word. | 0.5 credits per word |\n| YAML translation | Translating the text values of a YAML (.yaml, .yml) file in the playground, keeping its keys and structure. Charged per source word. | 0.5 credits per word |",
            "position": "after-description"
          }
        ],
        "x-orbitdocs-order": 5,
        "security": [
          {
            "ApiKeyAuth": []
          }
        ]
      }
    },
    "/v1/galaxy/playground/document/translate/folder/preview": {
      "post": {
        "description": "See what Translate a folder would do with the same body: every file of the chosen `formats` under a folder of your assets (and its subfolders, unless `includeSubfolders` is `false`), each with its word count, the files it would skip and why, and the credits for all target languages next to your balance. Nothing is started or charged. A run takes at most 200 files.",
        "operationId": "preview-a-folder-translation",
        "parameters": [],
        "requestBody": {
          "required": true,
          "content": {
            "application/json": {
              "schema": {
                "$ref": "#/components/schemas/FolderRunDto"
              }
            }
          }
        },
        "responses": {
          "201": {
            "description": "What the run would translate and skip, and what it would cost.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/FolderPreviewResponseDto"
                }
              }
            }
          },
          "400": {
            "description": "A field failed validation, or: `“<folder>” has <n> matching files — one run takes at most 200. …`, `“<folder>” holds too many files and folders to scan. Pick a subfolder.`, or `These files can’t be translated as a folder yet.`",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                },
                "examples": {
                  "default": {
                    "value": {
                      "statusCode": 400,
                      "message": [
                        "email must be an email"
                      ],
                      "error": "Bad Request"
                    }
                  }
                }
              }
            }
          },
          "401": {
            "description": "The `x-api-key` header is missing, or the key is invalid, expired or deleted.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                },
                "examples": {
                  "default": {
                    "value": {
                      "statusCode": 401,
                      "message": "Unauthorized"
                    }
                  }
                }
              }
            }
          },
          "403": {
            "description": "The key lacks the permission.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                },
                "examples": {
                  "default": {
                    "value": {
                      "statusCode": 403,
                      "message": "Forbidden resource",
                      "error": "Forbidden"
                    }
                  }
                }
              }
            }
          },
          "404": {
            "description": "`folderId` is not a folder of your organization's assets (`Folder not found`).",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                },
                "examples": {
                  "default": {
                    "value": {
                      "statusCode": 404,
                      "message": "Not Found"
                    }
                  }
                }
              }
            }
          },
          "429": {
            "description": "Too many requests for this key. Wait the number of seconds in `Retry-After`, then retry.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                },
                "examples": {
                  "default": {
                    "value": {
                      "statusCode": 429,
                      "message": "ThrottlerException: Too Many Requests"
                    }
                  }
                }
              }
            }
          },
          "500": {
            "description": "Something failed on our side. Retry with backoff; if it persists, contact support with the `X-Request-Id`.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                },
                "examples": {
                  "default": {
                    "value": {
                      "statusCode": 500,
                      "message": "Internal server error"
                    }
                  }
                }
              }
            }
          },
          "503": {
            "description": "A PDF is still being read or rendered (`This PDF is still being read. Please try again in a moment.`, `PdfStillPreparing`), or several PDFs are already being prepared for your organization (`PdfEngineBusy`). Nothing was charged. Retry after `retryAfterSeconds` (10).",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                },
                "examples": {
                  "default": {
                    "value": {
                      "statusCode": 503,
                      "message": "Error"
                    }
                  }
                }
              }
            }
          }
        },
        "summary": "Preview a folder translation",
        "tags": [
          "Batches"
        ],
        "x-orbitdocs-content": [
          {
            "markdown": "**Permission:** `playground.document:create` and `asset:read`. An API key acts with the role of the member who created it.",
            "position": "after-description"
          }
        ],
        "x-orbitdocs-order": 4,
        "security": [
          {
            "ApiKeyAuth": []
          }
        ]
      }
    },
    "/v1/galaxy/playground/document/translate/images": {
      "post": {
        "operationId": "list-a-document-s-pictures",
        "parameters": [],
        "requestBody": {
          "required": true,
          "content": {
            "multipart/form-data": {
              "schema": {
                "$ref": "#/components/schemas/TranslateDocumentFormDto"
              }
            },
            "application/json": {
              "schema": {
                "$ref": "#/components/schemas/TranslateDocumentFormDto"
              }
            }
          }
        },
        "responses": {
          "201": {
            "description": "The document's pictures.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/DocumentImagesPreviewResponseDto"
                }
              }
            }
          },
          "400": {
            "description": "A field failed validation, or:\n\n- `File is required for this format`: send `file`, `uploadKey`, `assetId` or `objectKey`.\n- `Provide sourceText or upload a .txt file to translate.` (`TEXT`), `The uploaded .txt file is empty.`, `Only .txt files are supported for text translation.`\n- `Text translations are limited to 10,000 characters — …` (`TEXT`).\n- `A translation memory is required to translate.` or `The selected translation memory is not available to this organization.`\n- `The upload could not be found. Please try uploading the file again.` or `The upload did not complete. Please try uploading the file again.`: the `objectKey` or `uploadKey` was not uploaded, or not with the declared `size`.\n- `That upload was already used. Please upload the file again.`: an `uploadKey` whose file was refused before (a program, or not the file it says it is).\n- `That upload does not belong to this organization.`\n- `PDF translation into <language> is not supported yet …`: no font for the target script.\n- `\"<name>\" is larger than the <n> MB limit` for an `assetId`.\n- `Only Word, PowerPoint, Excel and PDF documents have pictures to translate.`",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                },
                "examples": {
                  "default": {
                    "value": {
                      "statusCode": 400,
                      "message": [
                        "email must be an email"
                      ],
                      "error": "Bad Request"
                    }
                  }
                }
              }
            }
          },
          "401": {
            "description": "The `x-api-key` header is missing, or the key is invalid, expired or deleted.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                },
                "examples": {
                  "default": {
                    "value": {
                      "statusCode": 401,
                      "message": "Unauthorized"
                    }
                  }
                }
              }
            }
          },
          "403": {
            "description": "The key lacks the permission, or `asset:read` for an `assetId` (`PermissionDenied`).",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                },
                "examples": {
                  "default": {
                    "value": {
                      "statusCode": 403,
                      "message": "Forbidden resource",
                      "error": "Forbidden"
                    }
                  }
                }
              }
            }
          },
          "404": {
            "description": "`assetId` is not an asset in your organization (`Asset not found`).",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                },
                "examples": {
                  "default": {
                    "value": {
                      "statusCode": 404,
                      "message": "Not Found"
                    }
                  }
                }
              }
            }
          },
          "413": {
            "description": "The `file` part is larger than 10 MB. Use Get an upload URL for any larger file.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                },
                "examples": {
                  "default": {
                    "value": {
                      "statusCode": 413,
                      "message": "Payload Too Large"
                    }
                  }
                }
              }
            }
          },
          "429": {
            "description": "Too many requests for this key. Wait the number of seconds in `Retry-After`, then retry.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                },
                "examples": {
                  "default": {
                    "value": {
                      "statusCode": 429,
                      "message": "ThrottlerException: Too Many Requests"
                    }
                  }
                }
              }
            }
          },
          "500": {
            "description": "Something failed on our side. Retry with backoff; if it persists, contact support with the `X-Request-Id`.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                },
                "examples": {
                  "default": {
                    "value": {
                      "statusCode": 500,
                      "message": "Internal server error"
                    }
                  }
                }
              }
            }
          },
          "503": {
            "description": "A PDF is still being read or rendered (`This PDF is still being read. Please try again in a moment.`, `PdfStillPreparing`), or several PDFs are already being prepared for your organization (`PdfEngineBusy`). Nothing was charged. Retry after `retryAfterSeconds` (10).",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                },
                "examples": {
                  "default": {
                    "value": {
                      "statusCode": 503,
                      "message": "Error"
                    }
                  }
                }
              }
            }
          }
        },
        "summary": "List a document's pictures",
        "tags": [
          "Translations"
        ],
        "x-orbitdocs-content": [
          {
            "markdown": "**Permission:** `playground.document:create`. An API key acts with the role of the member who created it. With `assetId`, also `asset:read`.",
            "position": "after-description"
          }
        ],
        "description": "The pictures in a Word, PowerPoint, Excel or PDF document, before translating it with `translateImages`. Send exactly what you would send to Translate a document. Each picture says whether a free text check found text in it, and whether the translation would translate it (`pending`) if you send no `imageIds`. To choose the pictures yourself, send their `id`s as `imageIds`. Nothing is created, started or charged.",
        "x-orbitdocs-order": 9,
        "security": [
          {
            "ApiKeyAuth": []
          }
        ]
      }
    },
    "/v1/galaxy/playground/document/translate/word-count": {
      "post": {
        "description": "Count the billable source words of a document before translating it. Send exactly what you would send to Translate a document. Nothing is created, started or charged, and an `uploadKey` is left for the translations. Each target language is charged on this count; for the price, see the rates on Translate a document. For a PDF, `unreadablePages` lists pages whose text cannot be read and will not be translated.",
        "operationId": "count-billable-words",
        "parameters": [],
        "requestBody": {
          "required": true,
          "content": {
            "multipart/form-data": {
              "schema": {
                "$ref": "#/components/schemas/TranslateDocumentFormDto"
              }
            },
            "application/json": {
              "schema": {
                "$ref": "#/components/schemas/TranslateDocumentFormDto"
              }
            }
          }
        },
        "responses": {
          "201": {
            "description": "The billable words of one translation.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/WordCountResponseDto"
                }
              }
            }
          },
          "400": {
            "description": "A field failed validation, or:\n\n- `File is required for this format`: send `file`, `uploadKey`, `assetId` or `objectKey`.\n- `Provide sourceText or upload a .txt file to translate.` (`TEXT`), `The uploaded .txt file is empty.`, `Only .txt files are supported for text translation.`\n- `Text translations are limited to 10,000 characters — …` (`TEXT`).\n- `A translation memory is required to translate.` or `The selected translation memory is not available to this organization.`\n- `The upload could not be found. Please try uploading the file again.` or `The upload did not complete. Please try uploading the file again.`: the `objectKey` or `uploadKey` was not uploaded, or not with the declared `size`.\n- `That upload was already used. Please upload the file again.`: an `uploadKey` whose file was refused before (a program, or not the file it says it is).\n- `That upload does not belong to this organization.`\n- `PDF translation into <language> is not supported yet …`: no font for the target script.\n- `\"<name>\" is larger than the <n> MB limit` for an `assetId`.\n- `Unsupported format: <format>`.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                },
                "examples": {
                  "default": {
                    "value": {
                      "statusCode": 400,
                      "message": [
                        "email must be an email"
                      ],
                      "error": "Bad Request"
                    }
                  }
                }
              }
            }
          },
          "401": {
            "description": "The `x-api-key` header is missing, or the key is invalid, expired or deleted.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                },
                "examples": {
                  "default": {
                    "value": {
                      "statusCode": 401,
                      "message": "Unauthorized"
                    }
                  }
                }
              }
            }
          },
          "403": {
            "description": "The key lacks the permission, or `asset:read` for an `assetId` (`PermissionDenied`).",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                },
                "examples": {
                  "default": {
                    "value": {
                      "statusCode": 403,
                      "message": "Forbidden resource",
                      "error": "Forbidden"
                    }
                  }
                }
              }
            }
          },
          "404": {
            "description": "`assetId` is not an asset in your organization (`Asset not found`).",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                },
                "examples": {
                  "default": {
                    "value": {
                      "statusCode": 404,
                      "message": "Not Found"
                    }
                  }
                }
              }
            }
          },
          "413": {
            "description": "The `file` part is larger than 10 MB. Use Get an upload URL for any larger file.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                },
                "examples": {
                  "default": {
                    "value": {
                      "statusCode": 413,
                      "message": "Payload Too Large"
                    }
                  }
                }
              }
            }
          },
          "429": {
            "description": "Too many requests for this key. Wait the number of seconds in `Retry-After`, then retry.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                },
                "examples": {
                  "default": {
                    "value": {
                      "statusCode": 429,
                      "message": "ThrottlerException: Too Many Requests"
                    }
                  }
                }
              }
            }
          },
          "500": {
            "description": "Something failed on our side. Retry with backoff; if it persists, contact support with the `X-Request-Id`.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                },
                "examples": {
                  "default": {
                    "value": {
                      "statusCode": 500,
                      "message": "Internal server error"
                    }
                  }
                }
              }
            }
          },
          "503": {
            "description": "A PDF is still being read or rendered (`This PDF is still being read. Please try again in a moment.`, `PdfStillPreparing`), or several PDFs are already being prepared for your organization (`PdfEngineBusy`). Nothing was charged. Retry after `retryAfterSeconds` (10).",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                },
                "examples": {
                  "default": {
                    "value": {
                      "statusCode": 503,
                      "message": "Error"
                    }
                  }
                }
              }
            }
          }
        },
        "summary": "Count billable words",
        "tags": [
          "Translations"
        ],
        "x-orbitdocs-content": [
          {
            "markdown": "**Permission:** `playground.document:create`. An API key acts with the role of the member who created it. With `assetId`, also `asset:read`.",
            "position": "after-description"
          }
        ],
        "x-orbitdocs-order": 2,
        "security": [
          {
            "ApiKeyAuth": []
          }
        ]
      }
    },
    "/v1/galaxy/playground/document/update-phrase": {
      "put": {
        "description": "Change the translation of one segment, its review status, or both. By default the same change is made to other segments with the same source text that still hold the old translation (`propagated` says how many). The edit is kept on the translation and appears in the next download; it reaches your translation memory only when you call Sync edits to the translation memory.",
        "operationId": "edit-a-segment",
        "parameters": [],
        "requestBody": {
          "required": true,
          "content": {
            "application/json": {
              "schema": {
                "$ref": "#/components/schemas/UpdatePlaygroundPhraseDto"
              }
            }
          }
        },
        "responses": {
          "200": {
            "description": "The segment was updated.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/UpdatePhraseResponseDto"
                }
              }
            }
          },
          "400": {
            "description": "A field failed validation (for example a text over 100,000 characters), or the edit removes an Office formatting marker (`This edit removes the formatting marker <span id=N>. …`).",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                },
                "examples": {
                  "default": {
                    "value": {
                      "statusCode": 400,
                      "message": [
                        "email must be an email"
                      ],
                      "error": "Bad Request"
                    }
                  }
                }
              }
            }
          },
          "401": {
            "description": "The `x-api-key` header is missing, or the key is invalid, expired or deleted.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                },
                "examples": {
                  "default": {
                    "value": {
                      "statusCode": 401,
                      "message": "Unauthorized"
                    }
                  }
                }
              }
            }
          },
          "403": {
            "description": "Not allowed: the API key's role lacks the permission (`PermissionDenied`), the product is not enabled for your organization, or it has been turned off.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                },
                "examples": {
                  "default": {
                    "value": {
                      "statusCode": 403,
                      "message": "Forbidden resource",
                      "error": "Forbidden"
                    }
                  }
                }
              }
            }
          },
          "404": {
            "description": "No translation with this ID in your organization (`Playground log not found`), or the key's role sees only its own work and this translation is not its own (`Process not found`). Or no segment matches `layerIndex` / `sourceText` (`Segment not found`).",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                },
                "examples": {
                  "default": {
                    "value": {
                      "statusCode": 404,
                      "message": "Not Found"
                    }
                  }
                }
              }
            }
          },
          "429": {
            "description": "Too many requests for this key. Wait the number of seconds in `Retry-After`, then retry.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                },
                "examples": {
                  "default": {
                    "value": {
                      "statusCode": 429,
                      "message": "ThrottlerException: Too Many Requests"
                    }
                  }
                }
              }
            }
          },
          "500": {
            "description": "Something failed on our side. Retry with backoff; if it persists, contact support with the `X-Request-Id`.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                },
                "examples": {
                  "default": {
                    "value": {
                      "statusCode": 500,
                      "message": "Internal server error"
                    }
                  }
                }
              }
            }
          }
        },
        "summary": "Edit a segment",
        "tags": [
          "Editing"
        ],
        "x-orbitdocs-content": [
          {
            "markdown": "**Permission:** `playground.document:update`. An API key acts with the role of the member who created it.",
            "position": "after-description"
          }
        ],
        "x-orbitdocs-order": 2,
        "security": [
          {
            "ApiKeyAuth": []
          }
        ]
      }
    },
    "/v1/galaxy/playground/document/upload/presign": {
      "post": {
        "description": "For a Word, PowerPoint, Excel, PDF or InDesign file up to 500 MB, or a JSON, XML, XLIFF, HTML, CSV, Markdown, YAML or Tableau file over 10 MB and up to 25 MB (a file over 10 MB cannot be sent inside the request). Returns a presigned `uploadUrl`: `PUT` the file bytes to it, with exactly `size` bytes and the returned `Content-Type` header (`application/octet-stream` for the text formats), within 10 minutes. Then pass `objectKey` (and `objectFileName`) to Translate a document, or several keys as `objectKeys` to Translate several documents. The file never passes through a request to this API. An upload not translated within a day is deleted.",
        "operationId": "get-an-upload-url",
        "parameters": [],
        "requestBody": {
          "required": true,
          "content": {
            "application/json": {
              "schema": {
                "$ref": "#/components/schemas/CreateDocumentUploadPresignDto"
              }
            }
          }
        },
        "responses": {
          "201": {
            "description": "The upload URL and the key to translate it with.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/DocumentUploadUrlResponseDto"
                }
              }
            }
          },
          "400": {
            "description": "A field failed validation, or: `The file is empty.`, `The file is larger than the 500 MB limit` (`25 MB` for the text formats), or a `format` that cannot be uploaded this way (`Only these formats can be uploaded this way: …`).",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                },
                "examples": {
                  "default": {
                    "value": {
                      "statusCode": 400,
                      "message": [
                        "email must be an email"
                      ],
                      "error": "Bad Request"
                    }
                  }
                }
              }
            }
          },
          "401": {
            "description": "The `x-api-key` header is missing, or the key is invalid, expired or deleted.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                },
                "examples": {
                  "default": {
                    "value": {
                      "statusCode": 401,
                      "message": "Unauthorized"
                    }
                  }
                }
              }
            }
          },
          "403": {
            "description": "Not allowed: the API key's role lacks the permission (`PermissionDenied`), the product is not enabled for your organization, or it has been turned off.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                },
                "examples": {
                  "default": {
                    "value": {
                      "statusCode": 403,
                      "message": "Forbidden resource",
                      "error": "Forbidden"
                    }
                  }
                }
              }
            }
          },
          "429": {
            "description": "The API key's member asked for 60 upload URLs in the last hour (`Too many uploads in the last hour. Please wait and try again.`), or has 5 GB of uploads not yet translated (`Too many uploads are waiting to be translated. Translate or discard them first.`). Also returned when the key exceeds its request rate.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                },
                "examples": {
                  "default": {
                    "value": {
                      "statusCode": 429,
                      "message": "ThrottlerException: Too Many Requests"
                    }
                  }
                }
              }
            }
          },
          "500": {
            "description": "Something failed on our side. Retry with backoff; if it persists, contact support with the `X-Request-Id`.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                },
                "examples": {
                  "default": {
                    "value": {
                      "statusCode": 500,
                      "message": "Internal server error"
                    }
                  }
                }
              }
            }
          }
        },
        "summary": "Get an upload URL",
        "tags": [
          "Uploads"
        ],
        "x-orbitdocs-content": [
          {
            "markdown": "**Permission:** `playground.document:create`. An API key acts with the role of the member who created it.",
            "position": "after-description"
          }
        ],
        "x-orbitdocs-order": 1,
        "security": [
          {
            "ApiKeyAuth": []
          }
        ]
      }
    }
  },
  "components": {
    "securitySchemes": {
      "ApiKeyAuth": {
        "type": "apiKey",
        "in": "header",
        "name": "x-api-key",
        "description": "Your organization API key (starts with `uvk_`). Create one in the Universe app under Settings → API keys."
      }
    },
    "schemas": {
      "BatchDetailResponseDto": {
        "type": "object",
        "properties": {
          "id": {
            "type": "string",
            "format": "uuid",
            "description": "Batch ID.",
            "examples": [
              "2a6f1c8e-4b3d-4e9a-8c7b-5d1e2f3a4b5c"
            ]
          },
          "name": {
            "type": "string",
            "description": "Name of the batch.",
            "examples": [
              "3 JSON files"
            ]
          },
          "format": {
            "type": "string",
            "enum": [
              "text",
              "json",
              "xml",
              "xliff",
              "html",
              "pptx",
              "docx",
              "xlsx",
              "csv",
              "pdf",
              "idml",
              "dita",
              "markdown",
              "yaml",
              "tableau"
            ],
            "description": "Format of its files, lower-case.",
            "examples": [
              "json"
            ]
          },
          "sourceLanguage": {
            "type": "string",
            "description": "Source language.",
            "examples": [
              "en-US"
            ]
          },
          "targetLanguage": {
            "type": "string",
            "description": "Target language.",
            "examples": [
              "hi-IN"
            ]
          },
          "suite": {
            "type": "string",
            "description": "The `suite` sent with the request.",
            "examples": [
              "WEB"
            ]
          },
          "status": {
            "type": "string",
            "enum": [
              "RUNNING",
              "COMPLETED",
              "COMPLETED_WITH_ERRORS",
              "FAILED",
              "TERMINATED"
            ],
            "description": "`RUNNING` while any file runs; then `COMPLETED` (every file translated), `COMPLETED_WITH_ERRORS` (some failed or were stopped), `FAILED` (none translated) or `TERMINATED` (every file stopped by the user).",
            "examples": [
              "COMPLETED"
            ]
          },
          "fileCount": {
            "type": "number",
            "description": "Files in the batch.",
            "examples": [
              3
            ]
          },
          "createdAt": {
            "type": "string",
            "format": "date-time",
            "description": "When the batch was created.",
            "examples": [
              "2026-10-04T09:12:44.000Z"
            ]
          },
          "fk_tmId": {
            "type": [
              "string",
              "null"
            ],
            "format": "uuid",
            "description": "Translation memory every file uses.",
            "examples": [
              "5c8d2e1f-9a3b-4c6d-8e7f-1a2b3c4d5e6f"
            ]
          },
          "files": {
            "description": "The files of the batch, oldest first. A member who only sees their own work gets only the files they started or are assigned to.",
            "type": "array",
            "items": {
              "$ref": "#/components/schemas/PlaygroundBatchFileDto"
            }
          }
        },
        "required": [
          "id",
          "name",
          "format",
          "sourceLanguage",
          "targetLanguage",
          "suite",
          "status",
          "fileCount",
          "createdAt",
          "fk_tmId",
          "files"
        ]
      },
      "BatchListResponseDto": {
        "type": "object",
        "properties": {
          "total": {
            "type": "number",
            "description": "Batches over all pages.",
            "examples": [
              12
            ]
          },
          "page": {
            "type": "number",
            "description": "The page returned.",
            "examples": [
              1
            ]
          },
          "size": {
            "type": "number",
            "description": "Batches per page (1 to 100).",
            "examples": [
              8
            ]
          },
          "data": {
            "description": "One page of batches, newest first.",
            "type": "array",
            "items": {
              "$ref": "#/components/schemas/PlaygroundBatchSummaryDto"
            }
          }
        },
        "required": [
          "total",
          "page",
          "size",
          "data"
        ]
      },
      "BatchStartFileDto": {
        "type": "object",
        "properties": {
          "fileName": {
            "type": "string",
            "description": "Name of the uploaded file or Drive asset.",
            "examples": [
              "en-US.json"
            ]
          },
          "format": {
            "type": "string",
            "enum": [
              "text",
              "json",
              "xml",
              "xliff",
              "html",
              "pptx",
              "docx",
              "xlsx",
              "csv",
              "pdf",
              "idml",
              "dita",
              "markdown",
              "yaml",
              "tableau"
            ],
            "description": "Format, lower-case.",
            "examples": [
              "json"
            ]
          },
          "status": {
            "type": "string",
            "enum": [
              "RUNNING",
              "FAILED"
            ],
            "description": "`RUNNING`: queued, poll its translation with `logId`. `FAILED`: could not be queued (see `error`); it is not charged.",
            "examples": [
              "RUNNING"
            ]
          },
          "logId": {
            "type": "string",
            "format": "uuid",
            "description": "ID of the translation for this file. Only when `RUNNING`.",
            "examples": [
              "7d3e9a41-2c5b-4f6e-9a1d-8b2c3d4e5f60"
            ]
          },
          "error": {
            "type": "string",
            "description": "Why the file could not be queued. Only when `FAILED`.",
            "examples": [
              "The uploaded .txt file is empty."
            ]
          }
        },
        "required": [
          "fileName",
          "format",
          "status"
        ]
      },
      "BatchStartResponseDto": {
        "type": "object",
        "properties": {
          "batchId": {
            "type": "string",
            "format": "uuid",
            "description": "ID of the new batch. Read it with Get a batch.",
            "examples": [
              "2a6f1c8e-4b3d-4e9a-8c7b-5d1e2f3a4b5c"
            ]
          },
          "name": {
            "type": "string",
            "description": "Name of the batch: the `name` you sent, or one made from the file count and format.",
            "examples": [
              "3 JSON files"
            ]
          },
          "status": {
            "type": "string",
            "enum": [
              "RUNNING",
              "FAILED"
            ],
            "description": "`RUNNING` when at least one file was queued; `FAILED` when none was.",
            "examples": [
              "RUNNING"
            ]
          },
          "total": {
            "type": "number",
            "description": "Files received.",
            "examples": [
              3
            ]
          },
          "queued": {
            "type": "number",
            "description": "Files queued for translation.",
            "examples": [
              3
            ]
          },
          "rejected": {
            "type": "number",
            "description": "Files that could not be queued.",
            "examples": [
              0
            ]
          },
          "files": {
            "description": "One entry per file, in upload order (uploads first, then Drive assets).",
            "type": "array",
            "items": {
              "$ref": "#/components/schemas/BatchStartFileDto"
            }
          }
        },
        "required": [
          "batchId",
          "name",
          "status",
          "total",
          "queued",
          "rejected",
          "files"
        ]
      },
      "BulkUpdatePlaygroundVerificationDto": {
        "type": "object",
        "properties": {
          "playgroundLogId": {
            "type": "string",
            "description": "ID of the translation.",
            "examples": [
              "7d3e9a41-2c5b-4f6e-9a1d-8b2c3d4e5f60"
            ]
          },
          "verification": {
            "type": "string",
            "description": "Review status to set on every listed segment: `u` unverified, `v` verified, `a` approved.",
            "enum": [
              "u",
              "v",
              "a"
            ],
            "examples": [
              "v"
            ]
          },
          "layers": {
            "description": "The segments to update, by `layerIndex` (from 0). At least one.",
            "type": "array",
            "items": {
              "type": "number"
            },
            "examples": [
              [
                0,
                1,
                2
              ]
            ]
          },
          "targetLanguage": {
            "type": "string",
            "description": "Accepted for older clients and not used: the translation's own target language applies.",
            "examples": [
              "hi-IN"
            ]
          }
        },
        "required": [
          "playgroundLogId",
          "verification",
          "layers"
        ]
      },
      "BulkVerifyResponseDto": {
        "type": "object",
        "properties": {
          "statusCode": {
            "type": "number",
            "description": "Always 200.",
            "examples": [
              200
            ]
          },
          "success": {
            "type": "boolean",
            "description": "Always true.",
            "examples": [
              true
            ]
          },
          "message": {
            "type": "string",
            "description": "How many segments were updated, in words.",
            "examples": [
              "Updated 3 phrases"
            ]
          }
        },
        "required": [
          "statusCode",
          "success",
          "message"
        ]
      },
      "CosmosRunRefDto": {
        "type": "object",
        "properties": {
          "executionId": {
            "type": [
              "string",
              "null"
            ],
            "description": "The Cosmos run (execution) id.",
            "examples": [
              "8f2c4d1e-3b5a-4c7d-9e0f-1a2b3c4d5e6f"
            ]
          }
        },
        "required": [
          "executionId"
        ]
      },
      "CreateDocumentUploadPresignDto": {
        "type": "object",
        "properties": {
          "fileName": {
            "type": "string",
            "description": "Name of the file you will upload. Send it again as `objectFileName` when you translate, so the translation is named after it.",
            "examples": [
              "quarterly-review.pptx"
            ]
          },
          "format": {
            "type": "string",
            "description": "Format of the file, lower-case. Word, PowerPoint, Excel, PDF and InDesign files up to 500 MB; JSON, XML, XLIFF, HTML, CSV, Markdown, YAML and Tableau files up to 25 MB (any file over 10 MB must come this way: the `file` part takes 10 MB). Typed text (`TEXT`) and DITA packages have their own routes.",
            "enum": [
              "docx",
              "pptx",
              "xlsx",
              "pdf",
              "idml",
              "json",
              "xml",
              "xliff",
              "html",
              "csv",
              "markdown",
              "yaml",
              "tableau"
            ],
            "examples": [
              "pptx"
            ]
          },
          "size": {
            "type": "number",
            "description": "Exact size of the file in bytes, up to 500 MB (25 MB for the text formats). It is part of the signed URL: storage refuses a `PUT` of any other length.",
            "examples": [
              1048576
            ]
          }
        },
        "required": [
          "fileName",
          "format",
          "size"
        ]
      },
      "CreateStagedUploadDto": {
        "type": "object",
        "properties": {
          "fileName": {
            "type": "string",
            "description": "Name of the file you will upload. Its extension must be one this step takes.",
            "examples": [
              "catalogue.csv"
            ]
          },
          "contentType": {
            "type": "string",
            "description": "The file's type, sent again as the `Content-Type` of the `PUT` (the URL is signed over it). `application/octet-stream` is accepted when the type is unknown.",
            "examples": [
              "text/csv"
            ]
          },
          "size": {
            "type": "number",
            "description": "Exact size of the file in bytes. It is part of the signed URL: storage refuses a `PUT` of any other length.",
            "examples": [
              524288
            ]
          }
        },
        "required": [
          "fileName",
          "contentType",
          "size"
        ]
      },
      "DocumentImagePreviewDto": {
        "type": "object",
        "properties": {
          "id": {
            "type": "string",
            "description": "Send it in `imageIds` to translate this picture.",
            "examples": [
              "9f2c…"
            ]
          },
          "position": {
            "type": "number",
            "description": "Order in the document, from 0.",
            "examples": [
              0
            ]
          },
          "status": {
            "type": "string",
            "enum": [
              "pending",
              "skipped"
            ],
            "description": "`pending`: translated if you send no `imageIds`. `skipped`: not, for `reason`."
          },
          "reason": {
            "type": [
              "string",
              "null"
            ],
            "description": "Why it is skipped (see `skipped` on the summary).",
            "examples": [
              null
            ]
          },
          "hasText": {
            "type": [
              "boolean",
              "null"
            ],
            "description": "Whether the text check found text in it. null when it could not tell (such a picture is translated) or did not check it."
          },
          "mimeType": {
            "type": "string",
            "examples": [
              "image/png"
            ]
          },
          "width": {
            "type": [
              "number",
              "null"
            ],
            "examples": [
              1200
            ]
          },
          "height": {
            "type": [
              "number",
              "null"
            ],
            "examples": [
              800
            ]
          },
          "pages": {
            "description": "PDF: the pages that show it.",
            "type": [
              "array",
              "null"
            ],
            "items": {
              "type": "number"
            }
          },
          "previewUrl": {
            "type": [
              "string",
              "null"
            ],
            "description": "A preview to show (a data URL or a short-lived link)."
          }
        },
        "required": [
          "id",
          "position",
          "status",
          "reason",
          "hasText",
          "mimeType",
          "width",
          "height",
          "pages",
          "previewUrl"
        ]
      },
      "DocumentImagesPreviewResponseDto": {
        "type": "object",
        "properties": {
          "translatable": {
            "type": "number",
            "description": "Pictures the translation will translate. Each is charged at the `operation` rate, per target language.",
            "examples": [
              4
            ]
          },
          "skipped": {
            "type": "object",
            "additionalProperties": {
              "type": "number"
            },
            "description": "Pictures found but not translated, counted by reason: `no_text_found` (the text check found no text), `not_selected` (left out of `imageIds`), `limit` (past 50 in one document), `scanned_page`, `unsupported_format`, `animated`. None of them is charged.",
            "examples": [
              {
                "no_text_found": 11
              }
            ]
          },
          "operation": {
            "type": "string",
            "description": "The rate a picture is charged under.",
            "examples": [
              "translate_document_image"
            ]
          },
          "images": {
            "type": "array",
            "items": {
              "$ref": "#/components/schemas/DocumentImagePreviewDto"
            }
          }
        },
        "required": [
          "translatable",
          "skipped",
          "operation",
          "images"
        ]
      },
      "DocumentImagesSummaryDto": {
        "type": "object",
        "properties": {
          "translatable": {
            "type": "number",
            "description": "Pictures the translation will translate. Each is charged at the `operation` rate, per target language.",
            "examples": [
              4
            ]
          },
          "skipped": {
            "type": "object",
            "additionalProperties": {
              "type": "number"
            },
            "description": "Pictures found but not translated, counted by reason: `no_text_found` (the text check found no text), `not_selected` (left out of `imageIds`), `limit` (past 50 in one document), `scanned_page`, `unsupported_format`, `animated`. None of them is charged.",
            "examples": [
              {
                "no_text_found": 11
              }
            ]
          },
          "operation": {
            "type": "string",
            "description": "The rate a picture is charged under.",
            "examples": [
              "translate_document_image"
            ]
          }
        },
        "required": [
          "translatable",
          "skipped",
          "operation"
        ]
      },
      "DocumentUploadUrlResponseDto": {
        "type": "object",
        "properties": {
          "uploadUrl": {
            "type": "string",
            "description": "Presigned URL. `PUT` the raw file bytes to it with the same `Content-Type` as the format (for example `application/vnd.openxmlformats-officedocument.presentationml.presentation` for `.pptx`) and exactly `size` bytes. Valid for `expiresInSeconds`.",
            "examples": [
              "https://storage.example.com/0f8e2d4c-6b1a-4c9e-8d7f-3a2b1c0d9e8f/playground/document/upload/4b1c….pptx?X-Amz-Signature=…"
            ]
          },
          "objectKey": {
            "type": "string",
            "description": "Storage key of the upload. Send it as `objectKey` to Translate a document (or Count billable words) once the `PUT` has finished.",
            "examples": [
              "0f8e2d4c-6b1a-4c9e-8d7f-3a2b1c0d9e8f/playground/document/upload/4b1c7e2a-9d3f-4e5a-8b6c-1d2e3f4a5b6c.pptx"
            ]
          },
          "maxBytes": {
            "type": "number",
            "description": "Largest file this route accepts, in bytes (500 MB).",
            "examples": [
              524288000
            ]
          },
          "expiresInSeconds": {
            "type": "number",
            "description": "Seconds until `uploadUrl` expires.",
            "examples": [
              600
            ]
          },
          "headers": {
            "type": "object",
            "description": "Headers to send with the `PUT`, exactly as given: the URL is signed over them, so another `Content-Type` is refused (403).",
            "examples": [
              {
                "Content-Type": "application/vnd.openxmlformats-officedocument.presentationml.presentation"
              }
            ]
          }
        },
        "required": [
          "uploadUrl",
          "objectKey",
          "maxBytes",
          "expiresInSeconds",
          "headers"
        ]
      },
      "ErrorResponse": {
        "type": "object",
        "description": "Error body returned for every 4xx and 5xx response.",
        "required": [
          "statusCode",
          "message"
        ],
        "properties": {
          "statusCode": {
            "type": "integer",
            "description": "HTTP status code, repeated in the body.",
            "examples": [
              404
            ]
          },
          "message": {
            "description": "What went wrong, for people. Validation failures list one entry per problem. Do not branch on this text.",
            "oneOf": [
              {
                "type": "string"
              },
              {
                "type": "array",
                "items": {
                  "type": "string"
                }
              }
            ],
            "examples": [
              "Booking not found"
            ]
          },
          "error": {
            "type": "string",
            "description": "Short name of the status.",
            "examples": [
              "Not Found"
            ]
          }
        }
      },
      "FolderPreviewFileDto": {
        "type": "object",
        "properties": {
          "path": {
            "type": "string",
            "description": "Path of the file inside the folder.",
            "examples": [
              "emails/welcome.json"
            ]
          },
          "format": {
            "type": "string",
            "enum": [
              "TEXT",
              "JSON",
              "XML",
              "XLIFF",
              "HTML",
              "PPTX",
              "DOCX",
              "XLSX",
              "CSV",
              "PDF",
              "IDML",
              "DITA",
              "MARKDOWN",
              "YAML",
              "TABLEAU"
            ],
            "description": "Format of the file.",
            "examples": [
              "JSON"
            ]
          },
          "words": {
            "type": "number",
            "description": "Billable source words.",
            "examples": [
              214
            ]
          }
        },
        "required": [
          "path",
          "format",
          "words"
        ]
      },
      "FolderPreviewResponseDto": {
        "type": "object",
        "properties": {
          "folder": {
            "description": "The folder you picked.",
            "allOf": [
              {
                "$ref": "#/components/schemas/FolderRefDto"
              }
            ]
          },
          "formats": {
            "type": "array",
            "description": "The `formats` you sent.",
            "items": {
              "type": "string",
              "enum": [
                "TEXT",
                "JSON",
                "XML",
                "XLIFF",
                "HTML",
                "PPTX",
                "DOCX",
                "XLSX",
                "CSV",
                "PDF",
                "IDML",
                "DITA",
                "MARKDOWN",
                "YAML",
                "TABLEAU"
              ]
            },
            "examples": [
              [
                "JSON"
              ]
            ]
          },
          "outputFolderName": {
            "type": "string",
            "description": "Name of the folder the translations are saved to.",
            "examples": [
              "locales (translated)"
            ]
          },
          "outputLocation": {
            "type": "string",
            "enum": [
              "beside",
              "root"
            ],
            "description": "Where that folder is created: `beside` the folder you picked, or at the `root` of your organization’s drive when its parent cannot take it.",
            "examples": [
              "beside"
            ]
          },
          "maxFiles": {
            "type": "number",
            "description": "Most files one run takes.",
            "examples": [
              200
            ]
          },
          "unsupportedTargets": {
            "description": "Target languages a PDF cannot be translated into (no font for their script). Starting the run with them returns 400. Empty when the run has no PDF.",
            "type": "array",
            "items": {
              "type": "string"
            },
            "examples": [
              []
            ]
          },
          "files": {
            "description": "Files the run would translate.",
            "type": "array",
            "items": {
              "$ref": "#/components/schemas/FolderPreviewFileDto"
            }
          },
          "filesByFormat": {
            "type": "object",
            "additionalProperties": {
              "type": "number"
            },
            "description": "Number of files per format.",
            "examples": [
              {
                "JSON": 12
              }
            ]
          },
          "skipped": {
            "description": "Files the run skips, each with the reason.",
            "type": "array",
            "items": {
              "$ref": "#/components/schemas/FolderSkippedFileDto"
            }
          },
          "totals": {
            "description": "Totals.",
            "allOf": [
              {
                "$ref": "#/components/schemas/FolderPreviewTotalsDto"
              }
            ]
          }
        },
        "required": [
          "folder",
          "formats",
          "outputFolderName",
          "outputLocation",
          "maxFiles",
          "unsupportedTargets",
          "files",
          "filesByFormat",
          "skipped",
          "totals"
        ]
      },
      "FolderPreviewTotalsDto": {
        "type": "object",
        "properties": {
          "files": {
            "type": "number",
            "description": "Files that would be translated.",
            "examples": [
              12
            ]
          },
          "words": {
            "type": "number",
            "description": "Billable source words over those files.",
            "examples": [
              4380
            ]
          },
          "targets": {
            "type": "number",
            "description": "Target languages (duplicates and the source language removed).",
            "examples": [
              2
            ]
          },
          "translations": {
            "type": "number",
            "description": "Translations the run would create: files × targets.",
            "examples": [
              24
            ]
          },
          "credits": {
            "type": "number",
            "description": "Credits the run would charge, at your organization’s rates. Send it back as `expectedCredits` to start the run only at this price.",
            "examples": [
              4380
            ]
          },
          "balance": {
            "type": "number",
            "description": "Credits your organization can spend now.",
            "examples": [
              25000
            ]
          }
        },
        "required": [
          "files",
          "words",
          "targets",
          "translations",
          "credits",
          "balance"
        ]
      },
      "FolderRefDto": {
        "type": "object",
        "properties": {
          "id": {
            "type": "string",
            "format": "uuid",
            "description": "Folder ID.",
            "examples": [
              "6b2e8d4f-1a3c-4e5b-9d7f-2c1b0a9e8d7c"
            ]
          },
          "name": {
            "type": "string",
            "description": "Folder name.",
            "examples": [
              "locales"
            ]
          }
        },
        "required": [
          "id",
          "name"
        ]
      },
      "FolderRunBatchDto": {
        "type": "object",
        "properties": {
          "batchId": {
            "type": "string",
            "format": "uuid",
            "description": "Batch ID. Read it with Get a batch.",
            "examples": [
              "2a6f1c8e-4b3d-4e9a-8c7b-5d1e2f3a4b5c"
            ]
          },
          "targetLanguage": {
            "type": "string",
            "description": "Target language of the batch.",
            "examples": [
              "hi-IN"
            ]
          },
          "format": {
            "type": "string",
            "enum": [
              "TEXT",
              "JSON",
              "XML",
              "XLIFF",
              "HTML",
              "PPTX",
              "DOCX",
              "XLSX",
              "CSV",
              "PDF",
              "IDML",
              "DITA",
              "MARKDOWN",
              "YAML",
              "TABLEAU"
            ],
            "description": "Format of the batch’s files.",
            "examples": [
              "JSON"
            ]
          },
          "queued": {
            "type": "number",
            "description": "Files queued.",
            "examples": [
              12
            ]
          },
          "rejected": {
            "type": "number",
            "description": "Files that could not be queued.",
            "examples": [
              0
            ]
          }
        },
        "required": [
          "batchId",
          "targetLanguage",
          "format",
          "queued",
          "rejected"
        ]
      },
      "FolderRunDto": {
        "type": "object",
        "properties": {
          "folderId": {
            "type": "string",
            "description": "The folder in your organization's assets (Drive) to translate. Send this or `assetIds`.",
            "format": "uuid",
            "examples": [
              "6b2e8d4f-1a3c-4e5b-9d7f-2c1b0a9e8d7c"
            ]
          },
          "assetIds": {
            "description": "Instead of a folder: the files to translate, picked in your assets (files of different formats can be mixed; each is translated by its own format). Listed again when you call this, so a file deleted meanwhile is left out. The output folder sits next to the files' folder.",
            "type": "array",
            "items": {
              "type": "string",
              "format": "uuid"
            },
            "examples": [
              [
                "8a1b2c3d-4e5f-4a6b-8c7d-9e0f1a2b3c4d"
              ]
            ]
          },
          "formats": {
            "type": "array",
            "description": "Formats to translate, picked by file extension (`TEXT` is `.txt`, `DITA` takes `.dita`, `.ditamap` and `.bookmap`, `XLIFF` also `.xlf`, `MARKDOWN` `.md` and `.markdown`, `YAML` `.yaml` and `.yml`). Files of other types are skipped. Several can be combined in one run.",
            "items": {
              "type": "string",
              "enum": [
                "TEXT",
                "JSON",
                "XML",
                "DITA",
                "HTML",
                "XLIFF",
                "DOCX",
                "PPTX",
                "XLSX",
                "CSV",
                "MARKDOWN",
                "YAML",
                "PDF",
                "IDML"
              ]
            },
            "examples": [
              [
                "DOCX",
                "PPTX"
              ]
            ]
          },
          "sourceLanguage": {
            "type": "string",
            "description": "Language of the files, as a code your translation memory uses (BCP 47).",
            "examples": [
              "en-US"
            ]
          },
          "targetLanguages": {
            "description": "Languages to translate into (BCP 47), at most 10. Each file is translated into each one: one translation per file and language. The source language and duplicates are dropped.",
            "type": "array",
            "items": {
              "type": "string"
            },
            "examples": [
              [
                "hi-IN",
                "bn-BD"
              ]
            ]
          },
          "tmId": {
            "type": "string",
            "description": "Translation memory every translation uses. It must be one your organization owns or that is shared with it.",
            "format": "uuid",
            "examples": [
              "5c8d2e1f-9a3b-4c6d-8e7f-1a2b3c4d5e6f"
            ]
          },
          "suite": {
            "type": "string",
            "description": "Optional label for where the request comes from, stored on the translation and shown in lists. Any text up to 40 characters; defaults to `WEB`.",
            "default": "WEB",
            "examples": [
              "WEB"
            ]
          },
          "includeSubfolders": {
            "type": "boolean",
            "description": "Include files in subfolders (default `true`).",
            "default": true,
            "examples": [
              true
            ]
          },
          "exclude": {
            "description": "Files to skip, as gitignore-style patterns (at most 20): `config*.json` matches at any depth, `web/*.json` only in `web`, `**/fixtures/**` a whole subtree.",
            "type": "array",
            "items": {
              "type": "string"
            },
            "examples": [
              [
                "config*.json"
              ]
            ]
          },
          "layout": {
            "type": "string",
            "description": "How translations are laid out in the output folder: `language-folder` (`hi-IN/emails/welcome.json`, the default) or `language-suffix` (`emails/welcome.hi-IN.json`).",
            "enum": [
              "language-folder",
              "language-suffix"
            ],
            "examples": [
              "language-folder"
            ]
          },
          "projectId": {
            "type": "string",
            "description": "Project to file every translation of the run under; omit for none. See List projects. Not related to `folderId` (the Drive folder).",
            "format": "uuid",
            "examples": [
              "4e7a1b9c-3d2f-4c8e-9a6b-0d1c2b3a4f5e"
            ]
          },
          "expectedCredits": {
            "type": "number",
            "description": "The `totals.credits` of the preview you approved. When sent, a run that now costs a different amount (files added, removed or changed since the preview) is refused with 409 and nothing is charged.",
            "minimum": 0,
            "examples": [
              4380
            ]
          },
          "autoQe": {
            "type": "boolean",
            "description": "Run a QE report (AI quality evaluation) on the translation as soon as it finishes. Needs the `aiqe:create` permission (403 otherwise, before anything is charged) and a VitraTM memory — with a Phrase memory the translation runs and the report is skipped. The report is charged separately, per source word evaluated, when it starts; without enough credits it is skipped and the translation kept. When the organization requires Auto QE (Organization settings), the report runs whatever this field says.",
            "examples": [
              false
            ]
          },
          "qeScope": {
            "type": "string",
            "description": "With `autoQe`: evaluate only the segments still awaiting review (`unverified`, the default — cheaper, the score covers part of the document) or every segment (`all`).",
            "enum": [
              "unverified",
              "all"
            ],
            "examples": [
              "unverified"
            ]
          },
          "translateImages": {
            "type": "boolean",
            "description": "Also translate the text inside the pictures of the folder's DOCX / PPTX / XLSX / PDF files (default `false`). Charged per picture per language; the preview counts them.",
            "examples": [
              false
            ]
          }
        },
        "required": [
          "formats",
          "sourceLanguage",
          "targetLanguages",
          "tmId"
        ]
      },
      "FolderRunFailureDto": {
        "type": "object",
        "properties": {
          "path": {
            "type": "string",
            "description": "Path of the file inside the folder.",
            "examples": [
              "emails/welcome.json"
            ]
          },
          "targetLanguage": {
            "type": "string",
            "description": "Target language.",
            "examples": [
              "hi-IN"
            ]
          },
          "error": {
            "type": "string",
            "description": "Why it could not be queued.",
            "examples": [
              "This file could not be queued for translation."
            ]
          }
        },
        "required": [
          "path",
          "targetLanguage",
          "error"
        ]
      },
      "FolderRunResponseDto": {
        "type": "object",
        "properties": {
          "runId": {
            "type": "string",
            "format": "uuid",
            "description": "ID of the run.",
            "examples": [
              "8f1d3c5b-7a9e-4b2d-8c6f-4e3d2c1b0a9f"
            ]
          },
          "outputFolder": {
            "description": "The Drive folder the translations are saved to as they finish.",
            "allOf": [
              {
                "$ref": "#/components/schemas/FolderRefDto"
              }
            ]
          },
          "files": {
            "type": "number",
            "description": "Files translated per language.",
            "examples": [
              12
            ]
          },
          "targets": {
            "type": "number",
            "description": "Target languages.",
            "examples": [
              2
            ]
          },
          "queued": {
            "type": "number",
            "description": "Translations queued.",
            "examples": [
              24
            ]
          },
          "rejected": {
            "type": "number",
            "description": "Translations that could not be queued (refunded).",
            "examples": [
              0
            ]
          },
          "skipped": {
            "type": "number",
            "description": "Files skipped, as in the preview.",
            "examples": [
              1
            ]
          },
          "batches": {
            "description": "One batch per target language and format.",
            "type": "array",
            "items": {
              "$ref": "#/components/schemas/FolderRunBatchDto"
            }
          },
          "failures": {
            "description": "Translations that could not be queued. Empty when all were.",
            "type": "array",
            "items": {
              "$ref": "#/components/schemas/FolderRunFailureDto"
            }
          }
        },
        "required": [
          "runId",
          "outputFolder",
          "files",
          "targets",
          "queued",
          "rejected",
          "skipped",
          "batches",
          "failures"
        ]
      },
      "FolderSkippedFileDto": {
        "type": "object",
        "properties": {
          "path": {
            "type": "string",
            "description": "Path of the file inside the folder.",
            "examples": [
              "config.json"
            ]
          },
          "reason": {
            "type": "string",
            "enum": [
              "wrong-type",
              "excluded",
              "too-large",
              "alias",
              "empty",
              "unreadable",
              "no-text",
              "too-long"
            ],
            "description": "Why it is skipped: `wrong-type` (not one of `formats`), `excluded` (matches an `exclude` pattern), `too-large`, `alias` (a shortcut, not a file), `empty`, `unreadable`, `no-text` (nothing to translate) or `too-long` (a text file over 10,000 characters).",
            "examples": [
              "excluded"
            ]
          }
        },
        "required": [
          "path",
          "reason"
        ]
      },
      "InsufficientCreditsErrorDto": {
        "type": "object",
        "properties": {
          "statusCode": {
            "type": "number",
            "description": "HTTP status code.",
            "examples": [
              402
            ]
          },
          "error": {
            "type": "string",
            "description": "Always `InsufficientCredits`.",
            "examples": [
              "InsufficientCredits"
            ]
          },
          "message": {
            "type": "string",
            "description": "What happened, in plain words.",
            "examples": [
              "You don't have enough credits to start this. It needs 120; you have 45."
            ]
          },
          "required": {
            "type": "number",
            "description": "Credits this request needs.",
            "examples": [
              120
            ]
          },
          "available": {
            "type": "number",
            "description": "Credits your organization can spend now.",
            "examples": [
              45
            ]
          },
          "owed": {
            "type": "number",
            "description": "Credits your organization owes from earlier jobs (0 when nothing is owed). While anything is owed, every paid request is refused until it is repaid.",
            "examples": [
              0
            ]
          }
        },
        "required": [
          "statusCode",
          "error",
          "message",
          "required",
          "available",
          "owed"
        ]
      },
      "LogAssigneeDto": {
        "type": "object",
        "properties": {
          "memberId": {
            "type": "string",
            "format": "uuid",
            "description": "Member ID.",
            "examples": [
              "3b9d1e7a-5c2f-4a8b-9e6d-7f1a2b3c4d5e"
            ]
          },
          "name": {
            "type": [
              "string",
              "null"
            ],
            "description": "Display name, or null when the member has none.",
            "examples": [
              "Priya Sharma"
            ]
          },
          "image": {
            "type": [
              "string",
              "null"
            ],
            "description": "Avatar URL, or null.",
            "examples": [
              null
            ]
          },
          "languages": {
            "description": "Target languages the member covers on this translation. `[\"*\"]` when the assignment has no language.",
            "type": "array",
            "items": {
              "type": "string"
            },
            "examples": [
              [
                "*"
              ]
            ]
          }
        },
        "required": [
          "memberId",
          "name",
          "image",
          "languages"
        ]
      },
      "LogDetailConsumedDto": {
        "type": "object",
        "properties": {
          "playground_words": {
            "type": "number",
            "description": "Billable source words of the translation.",
            "examples": [
              1240
            ]
          },
          "playground_document_credits": {
            "type": "number",
            "description": "Credits spent on this translation in total: the translation plus any quality reports.",
            "examples": [
              620
            ]
          },
          "playground_translation_credits": {
            "type": "number",
            "description": "Credits spent on the translation itself, net of refunds.",
            "examples": [
              620
            ]
          },
          "playground_qe_report_credits": {
            "type": "number",
            "description": "Credits spent on quality reports for this translation.",
            "examples": [
              0
            ]
          }
        },
        "required": [
          "playground_words",
          "playground_document_credits",
          "playground_translation_credits",
          "playground_qe_report_credits"
        ]
      },
      "LogDetailDto": {
        "type": "object",
        "properties": {
          "id": {
            "type": "string",
            "format": "uuid",
            "description": "Translation ID.",
            "examples": [
              "7d3e9a41-2c5b-4f6e-9a1d-8b2c3d4e5f60"
            ]
          },
          "name": {
            "type": "string",
            "description": "Display name, usually the file name.",
            "examples": [
              "quarterly-review.pptx"
            ]
          },
          "saveState": {
            "type": "string",
            "enum": [
              "none",
              "current",
              "stale"
            ],
            "description": "Whether the translated file is saved to your assets: `none` (never saved), `current` (the saved copy matches the latest edits) or `stale` (edited since it was saved).",
            "examples": [
              "none"
            ]
          },
          "savedVersion": {
            "type": "number",
            "description": "Version of the latest saved copy. 0 when never saved.",
            "examples": [
              0
            ]
          },
          "format": {
            "type": "string",
            "enum": [
              "text",
              "json",
              "xml",
              "xliff",
              "html",
              "pptx",
              "docx",
              "xlsx",
              "csv",
              "pdf",
              "idml",
              "dita",
              "markdown",
              "yaml",
              "tableau"
            ],
            "description": "Format, lower-case.",
            "examples": [
              "pptx"
            ]
          },
          "translationMode": {
            "type": [
              "string",
              "null"
            ],
            "description": "Not used by document translations. Usually null.",
            "examples": [
              null
            ]
          },
          "sourceLanguage": {
            "type": "string",
            "description": "Source language.",
            "examples": [
              "en-US"
            ]
          },
          "targetLanguage": {
            "type": "string",
            "description": "Target language.",
            "examples": [
              "hi-IN"
            ]
          },
          "suite": {
            "type": "string",
            "description": "The `suite` sent with the request.",
            "examples": [
              "OFFICE"
            ]
          },
          "status": {
            "type": "string",
            "enum": [
              "SCHEDULED",
              "RUNNING",
              "COMPLETED",
              "FAILED",
              "TERMINATED"
            ],
            "description": "`RUNNING` while it runs, then `COMPLETED` or `FAILED`.",
            "examples": [
              "COMPLETED"
            ]
          },
          "stalled": {
            "type": "boolean",
            "description": "True when the translation is still unfinished long after it should have finished — it stopped making progress. Restart it with `POST logs/:id/restart`.",
            "examples": [
              false
            ]
          },
          "cosmosRun": {
            "description": "Set when this translation is a step of a Cosmos run. Such a step is retried from its run (Cosmos → the run → Retry), not with Retry or Restart here. `executionId` is null on older steps whose run is not recorded on the translation.",
            "type": [
              "object",
              "null"
            ],
            "allOf": [
              {
                "$ref": "#/components/schemas/CosmosRunRefDto"
              }
            ]
          },
          "wordCount": {
            "type": [
              "number",
              "null"
            ],
            "description": "Billable source words the translation was charged on.",
            "examples": [
              1240
            ]
          },
          "consumed": {
            "description": "Usage counters.",
            "allOf": [
              {
                "$ref": "#/components/schemas/LogDetailConsumedDto"
              }
            ]
          },
          "creditsRefunded": {
            "type": "number",
            "description": "Credits refunded on this translation (for example after a failure).",
            "examples": [
              0
            ]
          },
          "creditsAdjusted": {
            "type": "number",
            "description": "Credits added or returned when the charge was settled on the words actually translated. Positive when more was charged, negative when credits came back.",
            "examples": [
              0
            ]
          },
          "metadata": {
            "type": [
              "object",
              "null"
            ],
            "additionalProperties": true,
            "description": "Internal details of the run, such as timings and, for a failed run, the error. The contents may change; do not depend on them.",
            "examples": [
              {
                "error": "The translation memory did not answer in time."
              }
            ]
          },
          "pdfUnreadablePages": {
            "description": "PDF only: pages with text that could not be read and was not translated. Empty for every other format.",
            "type": "array",
            "items": {
              "$ref": "#/components/schemas/PdfUnreadablePageDto"
            }
          },
          "fk_tmId": {
            "type": [
              "string",
              "null"
            ],
            "format": "uuid",
            "description": "Translation memory the translation uses.",
            "examples": [
              "5c8d2e1f-9a3b-4c6d-8e7f-1a2b3c4d5e6f"
            ]
          },
          "createdAt": {
            "type": "string",
            "format": "date-time",
            "description": "When the translation was created.",
            "examples": [
              "2026-10-04T09:12:44.000Z"
            ]
          },
          "updatedAt": {
            "type": "string",
            "format": "date-time",
            "description": "When the translation last changed.",
            "examples": [
              "2026-10-04T09:14:02.000Z"
            ]
          },
          "PlaygroundLogTm": {
            "description": "The translation memory, or null when none is linked.",
            "type": [
              "object",
              "null"
            ],
            "allOf": [
              {
                "$ref": "#/components/schemas/LogTmDto"
              }
            ]
          },
          "PlaygroundLogUser": {
            "description": "Who started the translation, or null when unknown.",
            "type": [
              "object",
              "null"
            ],
            "allOf": [
              {
                "$ref": "#/components/schemas/LogOwnerDto"
              }
            ]
          },
          "fk_ownerId": {
            "type": [
              "string",
              "null"
            ],
            "format": "uuid",
            "description": "The member who started the translation (their member id in this organization), or null when unknown. A human translation lets them change its people, submit an unassigned stage and reopen it.",
            "examples": [
              "7c1e2f9a-3b4d-4e5f-8a6b-1c2d3e4f5a6b"
            ]
          }
        },
        "required": [
          "id",
          "name",
          "saveState",
          "savedVersion",
          "format",
          "translationMode",
          "sourceLanguage",
          "targetLanguage",
          "suite",
          "status",
          "stalled",
          "wordCount",
          "consumed",
          "creditsRefunded",
          "creditsAdjusted",
          "metadata",
          "pdfUnreadablePages",
          "fk_tmId",
          "createdAt",
          "updatedAt",
          "PlaygroundLogTm",
          "PlaygroundLogUser",
          "fk_ownerId"
        ]
      },
      "LogDetailResponseDto": {
        "type": "object",
        "properties": {
          "statusCode": {
            "type": "number",
            "description": "Always 200.",
            "examples": [
              200
            ]
          },
          "message": {
            "type": "string",
            "description": "Always `Playground log fetched successfully`.",
            "examples": [
              "Playground log fetched successfully"
            ]
          },
          "data": {
            "description": "The translation.",
            "allOf": [
              {
                "$ref": "#/components/schemas/LogDetailDto"
              }
            ]
          }
        },
        "required": [
          "statusCode",
          "message",
          "data"
        ]
      },
      "LogImageDto": {
        "type": "object",
        "properties": {
          "id": {
            "type": "string",
            "format": "uuid",
            "description": "Picture ID."
          },
          "position": {
            "type": "number",
            "examples": [
              0
            ]
          },
          "status": {
            "type": "string",
            "enum": [
              "pending",
              "running",
              "translated",
              "no_text",
              "unchanged",
              "skipped",
              "failed"
            ],
            "description": "`translated`: the download carries the translated copy. `no_text` / `unchanged`: nothing to redraw. `skipped`: not translated, for `reason`. `failed`: left as it was, not charged."
          },
          "reason": {
            "type": [
              "string",
              "null"
            ]
          },
          "mimeType": {
            "type": "string",
            "examples": [
              "image/png"
            ]
          },
          "width": {
            "type": [
              "number",
              "null"
            ]
          },
          "height": {
            "type": [
              "number",
              "null"
            ]
          },
          "pages": {
            "type": [
              "array",
              "null"
            ],
            "items": {
              "type": "number"
            }
          },
          "texts": {
            "description": "The texts it carried and what each became.",
            "type": "array",
            "items": {
              "type": "string"
            },
            "examples": [
              [
                {
                  "source": "Sign up",
                  "target": "S'inscrire"
                }
              ]
            ]
          },
          "sourceUrl": {
            "type": [
              "string",
              "null"
            ]
          },
          "translatedUrl": {
            "type": [
              "string",
              "null"
            ]
          },
          "hasText": {
            "type": [
              "boolean",
              "null"
            ]
          },
          "canTranslate": {
            "type": "boolean",
            "description": "It can be translated now with Translate pictures."
          },
          "editedWith": {
            "type": [
              "string",
              "null"
            ],
            "enum": [
              "image_translator",
              "magic_layers"
            ],
            "description": "The editor the picture in the document was last replaced from (Use an edited picture); null for the automatic translation or the original."
          },
          "editedAt": {
            "format": "date-time",
            "type": [
              "string",
              "null"
            ]
          },
          "canEdit": {
            "type": "boolean",
            "description": "It can be opened in an editor and put back with Use an edited picture now."
          },
          "canRevert": {
            "type": "boolean",
            "description": "It shows a translated or edited copy, which Revert a picture can take back to the original."
          },
          "editKeys": {
            "type": [
              "object",
              "null"
            ],
            "description": "Storage keys an editor starts from (null unless `canEdit`): `original` — Image Translator translates it again — and `current`, the picture as the translated document shows it now — Magic Layers edits that.",
            "examples": [
              {
                "original": "<orgId>/playground/<logId>/doc-images/<imageId>/source.png",
                "current": "<orgId>/playground/<logId>/doc-images/<imageId>/translated.png"
              }
            ]
          }
        },
        "required": [
          "id",
          "position",
          "status",
          "reason",
          "mimeType",
          "width",
          "height",
          "pages",
          "texts",
          "sourceUrl",
          "translatedUrl",
          "hasText",
          "canTranslate",
          "editedWith",
          "editedAt",
          "canEdit",
          "canRevert",
          "editKeys"
        ]
      },
      "LogImagesResponseDto": {
        "type": "object",
        "properties": {
          "images": {
            "type": "array",
            "items": {
              "$ref": "#/components/schemas/LogImageDto"
            }
          },
          "operation": {
            "type": "string",
            "examples": [
              "translate_document_image"
            ]
          }
        },
        "required": [
          "images",
          "operation"
        ]
      },
      "LogListConsumedDto": {
        "type": "object",
        "properties": {
          "playground_words": {
            "type": "number",
            "description": "Billable source words of the translation.",
            "examples": [
              1240
            ]
          }
        },
        "required": [
          "playground_words"
        ]
      },
      "LogListItemDto": {
        "type": "object",
        "properties": {
          "id": {
            "type": "string",
            "format": "uuid",
            "description": "Translation ID.",
            "examples": [
              "7d3e9a41-2c5b-4f6e-9a1d-8b2c3d4e5f60"
            ]
          },
          "name": {
            "type": "string",
            "description": "Display name, usually the file name.",
            "examples": [
              "quarterly-review.pptx"
            ]
          },
          "assignees": {
            "description": "Members assigned to the translation. Empty when none.",
            "type": "array",
            "items": {
              "$ref": "#/components/schemas/LogAssigneeDto"
            }
          },
          "format": {
            "type": "string",
            "enum": [
              "text",
              "json",
              "xml",
              "xliff",
              "html",
              "pptx",
              "docx",
              "xlsx",
              "csv",
              "pdf",
              "idml",
              "dita",
              "markdown",
              "yaml",
              "tableau"
            ],
            "description": "Format, lower-case.",
            "examples": [
              "pptx"
            ]
          },
          "sourceLanguage": {
            "type": "string",
            "description": "Source language.",
            "examples": [
              "en-US"
            ]
          },
          "targetLanguage": {
            "type": "string",
            "description": "Target language.",
            "examples": [
              "hi-IN"
            ]
          },
          "suite": {
            "type": "string",
            "description": "The `suite` sent with the request.",
            "examples": [
              "OFFICE"
            ]
          },
          "fk_tmId": {
            "type": [
              "string",
              "null"
            ],
            "format": "uuid",
            "description": "Translation memory the translation uses.",
            "examples": [
              "5c8d2e1f-9a3b-4c6d-8e7f-1a2b3c4d5e6f"
            ]
          },
          "projectId": {
            "type": [
              "string",
              "null"
            ],
            "format": "uuid",
            "description": "Project the translation is filed under, or null.",
            "examples": [
              null
            ]
          },
          "verification": {
            "description": "Segment counts by review status.",
            "allOf": [
              {
                "$ref": "#/components/schemas/LogVerificationCountsDto"
              }
            ]
          },
          "consumed": {
            "description": "Usage counters.",
            "allOf": [
              {
                "$ref": "#/components/schemas/LogListConsumedDto"
              }
            ]
          },
          "status": {
            "type": "string",
            "enum": [
              "SCHEDULED",
              "RUNNING",
              "COMPLETED",
              "FAILED",
              "TERMINATED"
            ],
            "description": "`RUNNING` while it runs, then `COMPLETED` or `FAILED`.",
            "examples": [
              "COMPLETED"
            ]
          },
          "stalled": {
            "type": "boolean",
            "description": "True when the translation is still unfinished long after it should have finished — it stopped making progress. Restart it with `POST logs/:id/restart`.",
            "examples": [
              false
            ]
          },
          "humanStage": {
            "type": [
              "string",
              "null"
            ],
            "enum": [
              "translation",
              "revision",
              "done"
            ],
            "description": "A human translation's stage, or null for a machine translation. A human translation's `status` is `COMPLETED` from the start (nothing runs), so this is what says whether people are still working on it.",
            "examples": [
              null
            ]
          },
          "cosmosRun": {
            "description": "Set when this translation is a step of a Cosmos run. Such a step is retried from its run (Cosmos → the run → Retry), not with Retry or Restart here. `executionId` is null on older steps whose run is not recorded on the translation.",
            "type": [
              "object",
              "null"
            ],
            "allOf": [
              {
                "$ref": "#/components/schemas/CosmosRunRefDto"
              }
            ]
          },
          "createdAt": {
            "type": "string",
            "format": "date-time",
            "description": "When the translation was created.",
            "examples": [
              "2026-10-04T09:12:44.000Z"
            ]
          },
          "updatedAt": {
            "type": "string",
            "format": "date-time",
            "description": "When the translation last changed.",
            "examples": [
              "2026-10-04T09:14:02.000Z"
            ]
          },
          "PlaygroundLogTm": {
            "description": "The translation memory, or null when none is linked.",
            "type": [
              "object",
              "null"
            ],
            "allOf": [
              {
                "$ref": "#/components/schemas/LogTmDto"
              }
            ]
          },
          "PlaygroundLogUser": {
            "description": "Who started the translation, or null when unknown.",
            "type": [
              "object",
              "null"
            ],
            "allOf": [
              {
                "$ref": "#/components/schemas/LogOwnerDto"
              }
            ]
          }
        },
        "required": [
          "id",
          "name",
          "assignees",
          "format",
          "sourceLanguage",
          "targetLanguage",
          "suite",
          "fk_tmId",
          "projectId",
          "verification",
          "consumed",
          "status",
          "stalled",
          "humanStage",
          "createdAt",
          "updatedAt",
          "PlaygroundLogTm",
          "PlaygroundLogUser"
        ]
      },
      "LogListResponseDto": {
        "type": "object",
        "properties": {
          "statusCode": {
            "type": "number",
            "description": "Always 200.",
            "examples": [
              200
            ]
          },
          "message": {
            "type": "string",
            "description": "Always `Playground logs fetched successfully`.",
            "examples": [
              "Playground logs fetched successfully"
            ]
          },
          "data": {
            "description": "One page of translations.",
            "type": "array",
            "items": {
              "$ref": "#/components/schemas/LogListItemDto"
            }
          },
          "totalLogs": {
            "type": "number",
            "description": "Translations matching the filters, over all pages.",
            "examples": [
              42
            ]
          }
        },
        "required": [
          "statusCode",
          "message",
          "data",
          "totalLogs"
        ]
      },
      "LogOwnerDto": {
        "type": "object",
        "properties": {
          "name": {
            "type": "string",
            "description": "Name of the member.",
            "examples": [
              "Priya Sharma"
            ]
          },
          "email": {
            "type": "string",
            "description": "Email of the member.",
            "examples": [
              "priya@example.com"
            ]
          }
        },
        "required": [
          "name",
          "email"
        ]
      },
      "LogTmDto": {
        "type": "object",
        "properties": {
          "name": {
            "type": "string",
            "description": "Name of the translation memory, or `TM linked` when your organization can no longer see it.",
            "examples": [
              "Marketing EN→HI"
            ]
          }
        },
        "required": [
          "name"
        ]
      },
      "LogVerificationCountsDto": {
        "type": "object",
        "properties": {
          "u": {
            "type": "number",
            "description": "Segments not reviewed yet.",
            "examples": [
              40
            ]
          },
          "v": {
            "type": "number",
            "description": "Segments marked verified.",
            "examples": [
              12
            ]
          },
          "a": {
            "type": "number",
            "description": "Segments marked approved.",
            "examples": [
              3
            ]
          },
          "e": {
            "type": "number",
            "description": "Always 0. Kept for older clients.",
            "examples": [
              0
            ]
          }
        },
        "required": [
          "u",
          "v",
          "a",
          "e"
        ]
      },
      "PdfUnreadablePageDto": {
        "type": "object",
        "properties": {
          "page": {
            "type": "number",
            "description": "Page number, from 1.",
            "examples": [
              3
            ]
          },
          "unreadableChars": {
            "type": "number",
            "description": "Characters on the page that cannot be read and will not be translated.",
            "examples": [
              412
            ]
          },
          "readableChars": {
            "type": "number",
            "description": "Characters on the page that can be read.",
            "examples": [
              38
            ]
          }
        },
        "required": [
          "page",
          "unreadableChars",
          "readableChars"
        ]
      },
      "PlaygroundBatchFileDto": {
        "type": "object",
        "properties": {
          "id": {
            "type": "string",
            "format": "uuid",
            "description": "ID of the translation for this file.",
            "examples": [
              "7d3e9a41-2c5b-4f6e-9a1d-8b2c3d4e5f60"
            ]
          },
          "name": {
            "type": "string",
            "description": "File name.",
            "examples": [
              "en-US.json"
            ]
          },
          "format": {
            "type": "string",
            "enum": [
              "text",
              "json",
              "xml",
              "xliff",
              "html",
              "pptx",
              "docx",
              "xlsx",
              "csv",
              "pdf",
              "idml",
              "dita",
              "markdown",
              "yaml",
              "tableau"
            ],
            "description": "Format, lower-case.",
            "examples": [
              "json"
            ]
          },
          "status": {
            "type": "string",
            "enum": [
              "SCHEDULED",
              "RUNNING",
              "COMPLETED",
              "FAILED",
              "TERMINATED"
            ],
            "description": "`RUNNING` while it runs, then `COMPLETED` or `FAILED`.",
            "examples": [
              "COMPLETED"
            ]
          },
          "sourceLanguage": {
            "type": "string",
            "description": "Source language.",
            "examples": [
              "en-US"
            ]
          },
          "targetLanguage": {
            "type": "string",
            "description": "Target language.",
            "examples": [
              "hi-IN"
            ]
          },
          "wordCount": {
            "type": [
              "number",
              "null"
            ],
            "description": "Billable source words.",
            "examples": [
              310
            ]
          },
          "segmentCount": {
            "type": [
              "number",
              "null"
            ],
            "description": "Segments the file was split into, once translated.",
            "examples": [
              48
            ]
          },
          "createdAt": {
            "type": "string",
            "format": "date-time",
            "description": "When the translation was created.",
            "examples": [
              "2026-10-04T09:12:44.000Z"
            ]
          }
        },
        "required": [
          "id",
          "name",
          "format",
          "status",
          "sourceLanguage",
          "targetLanguage",
          "wordCount",
          "segmentCount",
          "createdAt"
        ]
      },
      "PlaygroundBatchSummaryDto": {
        "type": "object",
        "properties": {
          "id": {
            "type": "string",
            "format": "uuid",
            "description": "Batch ID.",
            "examples": [
              "2a6f1c8e-4b3d-4e9a-8c7b-5d1e2f3a4b5c"
            ]
          },
          "name": {
            "type": "string",
            "description": "Name of the batch.",
            "examples": [
              "3 JSON files"
            ]
          },
          "format": {
            "type": "string",
            "enum": [
              "text",
              "json",
              "xml",
              "xliff",
              "html",
              "pptx",
              "docx",
              "xlsx",
              "csv",
              "pdf",
              "idml",
              "dita",
              "markdown",
              "yaml",
              "tableau"
            ],
            "description": "Format of its files, lower-case.",
            "examples": [
              "json"
            ]
          },
          "sourceLanguage": {
            "type": "string",
            "description": "Source language.",
            "examples": [
              "en-US"
            ]
          },
          "targetLanguage": {
            "type": "string",
            "description": "Target language.",
            "examples": [
              "hi-IN"
            ]
          },
          "suite": {
            "type": "string",
            "description": "The `suite` sent with the request.",
            "examples": [
              "WEB"
            ]
          },
          "status": {
            "type": "string",
            "enum": [
              "RUNNING",
              "COMPLETED",
              "COMPLETED_WITH_ERRORS",
              "FAILED",
              "TERMINATED"
            ],
            "description": "`RUNNING` while any file runs; then `COMPLETED` (every file translated), `COMPLETED_WITH_ERRORS` (some failed or were stopped), `FAILED` (none translated) or `TERMINATED` (every file stopped by the user).",
            "examples": [
              "COMPLETED"
            ]
          },
          "fileCount": {
            "type": "number",
            "description": "Files in the batch.",
            "examples": [
              3
            ]
          },
          "createdAt": {
            "type": "string",
            "format": "date-time",
            "description": "When the batch was created.",
            "examples": [
              "2026-10-04T09:12:44.000Z"
            ]
          }
        },
        "required": [
          "id",
          "name",
          "format",
          "sourceLanguage",
          "targetLanguage",
          "suite",
          "status",
          "fileCount",
          "createdAt"
        ]
      },
      "PlaygroundSyncFromTmResponseDto": {
        "type": "object",
        "properties": {
          "statusCode": {
            "type": "number",
            "description": "Always 200.",
            "examples": [
              200
            ]
          },
          "success": {
            "type": "boolean",
            "description": "Always true.",
            "examples": [
              true
            ]
          },
          "message": {
            "type": "string",
            "description": "What was updated, in words.",
            "examples": [
              "Updated 40 phrases from translation memory"
            ]
          },
          "pulled": {
            "type": "number",
            "description": "Segments that took the translation memory’s text and status.",
            "examples": [
              40
            ]
          },
          "skipped": {
            "type": "number",
            "description": "Segments the translation memory has no translation for. They are left as they are.",
            "examples": [
              8
            ]
          }
        },
        "required": [
          "statusCode",
          "success",
          "message",
          "pulled",
          "skipped"
        ]
      },
      "PlaygroundSyncToTmResponseDto": {
        "type": "object",
        "properties": {
          "statusCode": {
            "type": "number",
            "description": "Always 200.",
            "examples": [
              200
            ]
          },
          "success": {
            "type": "boolean",
            "description": "Always true.",
            "examples": [
              true
            ]
          },
          "message": {
            "type": "string",
            "description": "What was synced, in words (`Synced 120 translated phrases …` for a Reference-mode memory). `Nothing to sync` when there was nothing to send.",
            "examples": [
              "Synced 4 phrases to translation memory"
            ]
          },
          "synced": {
            "type": "number",
            "description": "Segments sent to the translation memory.",
            "examples": [
              4
            ]
          },
          "skipped": {
            "type": "number",
            "description": "Segments edited again while the sync ran. They stay unsynced; sync again to send them.",
            "examples": [
              0
            ]
          }
        },
        "required": [
          "statusCode",
          "success",
          "message",
          "synced",
          "skipped"
        ]
      },
      "RenameDitaPackageDto": {
        "type": "object",
        "properties": {
          "name": {
            "type": "string",
            "description": "The new name. A blank name becomes `DITA map`. Up to 255 characters.",
            "examples": [
              "IQ7A install guide — March"
            ]
          }
        },
        "required": [
          "name"
        ]
      },
      "RenameLogResponseDto": {
        "type": "object",
        "properties": {
          "statusCode": {
            "type": "number",
            "description": "Always 200.",
            "examples": [
              200
            ]
          },
          "success": {
            "type": "boolean",
            "description": "Always true.",
            "examples": [
              true
            ]
          },
          "name": {
            "type": "string",
            "description": "The name now stored, trimmed.",
            "examples": [
              "Q3 review (Hindi)"
            ]
          }
        },
        "required": [
          "statusCode",
          "success",
          "name"
        ]
      },
      "RenamePlaygroundLogDto": {
        "type": "object",
        "properties": {
          "playgroundLogId": {
            "type": "string",
            "description": "ID of the translation.",
            "examples": [
              "7d3e9a41-2c5b-4f6e-9a1d-8b2c3d4e5f60"
            ]
          },
          "name": {
            "type": "string",
            "description": "New display name, up to 255 characters. Leading and trailing spaces are trimmed.",
            "maxLength": 255,
            "examples": [
              "Q3 review (Hindi)"
            ]
          }
        },
        "required": [
          "playgroundLogId",
          "name"
        ]
      },
      "SavePlaygroundOutputToAssetsDto": {
        "type": "object",
        "properties": {
          "folderId": {
            "type": "string",
            "description": "Drive folder to save into. Pass the organization id for the drive root (\"My Drive\"). Must belong to the caller’s organization and sit outside system folders (the feature’s own default folder is allowed). Omit to use the default folder.",
            "examples": [
              "123e4567-e89b-12d3-a456-426614174000"
            ]
          }
        }
      },
      "SaveToAssetsResponseDto": {
        "type": "object",
        "properties": {
          "statusCode": {
            "type": "number",
            "description": "Always 200.",
            "examples": [
              200
            ]
          },
          "success": {
            "type": "boolean",
            "description": "Always true.",
            "examples": [
              true
            ]
          },
          "message": {
            "type": "string",
            "description": "What was saved, in plain words.",
            "examples": [
              "quarterly-review.pptx saved to assets"
            ]
          },
          "assetId": {
            "type": "string",
            "format": "uuid",
            "description": "ID of the new asset.",
            "examples": [
              "9e4b7c2a-1d5f-4a8e-b3c6-0f1e2d3c4b5a"
            ]
          },
          "version": {
            "type": "number",
            "description": "Version number. 1 for the first save; each later save files the next version (`<name>_v2`, …).",
            "examples": [
              1
            ]
          },
          "versioned": {
            "type": "boolean",
            "description": "True when this save filed a new version of an earlier one.",
            "examples": [
              false
            ]
          }
        },
        "required": [
          "statusCode",
          "success",
          "message",
          "assetId",
          "version",
          "versioned"
        ]
      },
      "SegmentCountsDto": {
        "type": "object",
        "properties": {
          "all": {
            "type": "number",
            "description": "All segments.",
            "examples": [
              48
            ]
          },
          "unverified": {
            "type": "number",
            "description": "Unverified segments.",
            "examples": [
              30
            ]
          },
          "verified": {
            "type": "number",
            "description": "Verified segments.",
            "examples": [
              15
            ]
          },
          "approved": {
            "type": "number",
            "description": "Approved segments.",
            "examples": [
              3
            ]
          },
          "flagged": {
            "type": "number",
            "description": "Always 0. Kept for older clients.",
            "examples": [
              0
            ]
          },
          "locked": {
            "type": "number",
            "description": "Segments the file marks not for translation (XLIFF `translate=\"no\"`). Included in `all`; never translated, reviewed or scored by a QE report.",
            "examples": [
              2
            ]
          }
        },
        "required": [
          "all",
          "unverified",
          "verified",
          "approved",
          "flagged",
          "locked"
        ]
      },
      "SegmentDto": {
        "type": "object",
        "properties": {
          "id": {
            "type": "string",
            "description": "Position in the document, from `01`, zero-padded.",
            "examples": [
              "01"
            ]
          },
          "segmentId": {
            "type": "string",
            "format": "uuid",
            "description": "Segment ID.",
            "examples": [
              "1f2e3d4c-5b6a-4987-8a6b-5c4d3e2f1a0b"
            ]
          },
          "layerIndex": {
            "type": "number",
            "description": "Index of the segment, from 0. Pass it as `layerIndex` to Edit a segment, or in `layers` to Set review status.",
            "examples": [
              0
            ]
          },
          "source": {
            "type": "string",
            "description": "Source text. Office documents carry `<span id=N>` markers around formatted words.",
            "examples": [
              "Welcome to our <span id=1>new</span> website"
            ]
          },
          "target": {
            "type": "string",
            "description": "Translated text. Empty when not translated.",
            "examples": [
              "हमारी <span id=1>नई</span> वेबसाइट पर आपका स्वागत है"
            ]
          },
          "status": {
            "type": "string",
            "enum": [
              "unverified",
              "verified",
              "approved"
            ],
            "description": "Review status, in words.",
            "examples": [
              "unverified"
            ]
          },
          "verification": {
            "type": "string",
            "enum": [
              "u",
              "v",
              "a"
            ],
            "description": "Review status as a code: `u` unverified, `v` verified, `a` approved.",
            "examples": [
              "u"
            ]
          },
          "dirty": {
            "type": "boolean",
            "description": "True when the segment has changes not yet sent to the translation memory (see Sync edits to the translation memory).",
            "examples": [
              false
            ]
          },
          "location": {
            "description": "Where the segment is. Only for Office, PDF and InDesign documents.",
            "allOf": [
              {
                "$ref": "#/components/schemas/SegmentLocationDto"
              }
            ]
          },
          "layoutOverflow": {
            "type": "boolean",
            "description": "PDF only, and only when true: the translation did not fit its space on the page and was shrunk or cut.",
            "examples": [
              true
            ]
          }
        },
        "required": [
          "id",
          "segmentId",
          "layerIndex",
          "source",
          "target",
          "status",
          "verification",
          "dirty"
        ]
      },
      "SegmentLocationDto": {
        "type": "object",
        "properties": {
          "label": {
            "type": "string",
            "description": "Where the segment is, in words: `Slide 3`, `Page 2`, `Header 1`, `Pages 2–3`, …",
            "examples": [
              "Slide 3"
            ]
          },
          "page": {
            "type": "number",
            "description": "Page number (Word and PDF).",
            "examples": [
              2
            ]
          },
          "slide": {
            "type": "number",
            "description": "Slide number (PowerPoint).",
            "examples": [
              3
            ]
          },
          "notes": {
            "type": "boolean",
            "description": "PowerPoint: the segment is in the slide's speaker notes, not on the slide.",
            "examples": [
              true
            ]
          },
          "anchor": {
            "type": "string",
            "description": "Paragraph address inside an InDesign document.",
            "examples": [
              "u1a2/p4"
            ]
          }
        },
        "required": [
          "label"
        ]
      },
      "SegmentPaginationDto": {
        "type": "object",
        "properties": {
          "page": {
            "type": "number",
            "description": "The page returned (clamped to the last page).",
            "examples": [
              1
            ]
          },
          "size": {
            "type": "number",
            "description": "Segments per page.",
            "examples": [
              12
            ]
          },
          "total": {
            "type": "number",
            "description": "Segments matching the filters.",
            "examples": [
              48
            ]
          },
          "totalPages": {
            "type": "number",
            "description": "Pages, at least 1.",
            "examples": [
              4
            ]
          }
        },
        "required": [
          "page",
          "size",
          "total",
          "totalPages"
        ]
      },
      "SegmentsResponseDto": {
        "type": "object",
        "properties": {
          "statusCode": {
            "type": "number",
            "description": "Always 200.",
            "examples": [
              200
            ]
          },
          "message": {
            "type": "string",
            "description": "Always `Segments fetched successfully`.",
            "examples": [
              "Segments fetched successfully"
            ]
          },
          "data": {
            "description": "One page of segments.",
            "type": "array",
            "items": {
              "$ref": "#/components/schemas/SegmentDto"
            }
          },
          "pagination": {
            "description": "Paging.",
            "allOf": [
              {
                "$ref": "#/components/schemas/SegmentPaginationDto"
              }
            ]
          },
          "counts": {
            "description": "Counts over the whole translation, whatever the filters.",
            "allOf": [
              {
                "$ref": "#/components/schemas/SegmentCountsDto"
              }
            ]
          },
          "verificationSteps": {
            "type": "number",
            "enum": [
              2,
              3
            ],
            "description": "Review steps in use: 3 (unverified → verified → approved) when the translation has a translation memory or your organization uses three steps, else 2.",
            "examples": [
              3
            ]
          },
          "unsyncedCount": {
            "type": "number",
            "description": "Segments with changes not yet sent to the translation memory.",
            "examples": [
              2
            ]
          }
        },
        "required": [
          "statusCode",
          "message",
          "data",
          "pagination",
          "counts",
          "verificationSteps",
          "unsyncedCount"
        ]
      },
      "StagedUploadTicketDto": {
        "type": "object",
        "properties": {
          "uploadUrl": {
            "type": "string",
            "description": "Presigned URL. `PUT` the file bytes to it within `expiresInSeconds`, with exactly the headers in `headers`, without your API key."
          },
          "uploadKey": {
            "type": "string",
            "description": "The upload key. Send it as `uploadKey` to the step the file is for once the `PUT` has finished. It can be used once, and an upload not used within a day is deleted.",
            "examples": [
              "1f0c…/staged-uploads/7b9e….csv"
            ]
          },
          "headers": {
            "type": "object",
            "description": "Headers the `PUT` must send exactly (the URL is signed over them).",
            "examples": [
              {
                "Content-Type": "text/csv",
                "Content-Disposition": "attachment"
              }
            ]
          },
          "expiresInSeconds": {
            "type": "number",
            "description": "Seconds the URL stays valid for starting the `PUT`.",
            "examples": [
              600
            ]
          },
          "maxBytes": {
            "type": "number",
            "description": "The largest file this step takes, in bytes.",
            "examples": [
              26214400
            ]
          }
        },
        "required": [
          "uploadUrl",
          "uploadKey",
          "headers",
          "expiresInSeconds",
          "maxBytes"
        ]
      },
      "SyncPlaygroundToTmDto": {
        "type": "object",
        "properties": {
          "playgroundLogId": {
            "type": "string",
            "description": "ID of the translation.",
            "examples": [
              "7d3e9a41-2c5b-4f6e-9a1d-8b2c3d4e5f60"
            ]
          }
        },
        "required": [
          "playgroundLogId"
        ]
      },
      "TextResultDto": {
        "type": "object",
        "properties": {
          "id": {
            "type": "string",
            "format": "uuid",
            "description": "Translation ID.",
            "examples": [
              "7d3e9a41-2c5b-4f6e-9a1d-8b2c3d4e5f60"
            ]
          },
          "status": {
            "type": "string",
            "enum": [
              "SCHEDULED",
              "RUNNING",
              "COMPLETED",
              "FAILED",
              "TERMINATED"
            ],
            "description": "`RUNNING` while it runs, then `COMPLETED` or `FAILED`.",
            "examples": [
              "COMPLETED"
            ]
          },
          "translation": {
            "type": "string",
            "description": "The translated text once `status` is `COMPLETED`; an empty string before.",
            "examples": [
              "हमारी वेबसाइट पर आपका स्वागत है।"
            ]
          }
        },
        "required": [
          "id",
          "status",
          "translation"
        ]
      },
      "TextResultResponseDto": {
        "type": "object",
        "properties": {
          "statusCode": {
            "type": "number",
            "description": "Always 200.",
            "examples": [
              200
            ]
          },
          "message": {
            "type": "string",
            "description": "Always `Text translation result fetched successfully`.",
            "examples": [
              "Text translation result fetched successfully"
            ]
          },
          "data": {
            "description": "Status and result.",
            "allOf": [
              {
                "$ref": "#/components/schemas/TextResultDto"
              }
            ]
          }
        },
        "required": [
          "statusCode",
          "message",
          "data"
        ]
      },
      "TranslateBatchFormDto": {
        "type": "object",
        "properties": {
          "format": {
            "type": "string",
            "description": "Format of every file in the batch. `TEXT` means a batch of `.txt` files; to translate typed text, use Translate a document.",
            "enum": [
              "TEXT",
              "JSON",
              "XML",
              "XLIFF",
              "HTML",
              "PPTX",
              "DOCX",
              "XLSX",
              "CSV",
              "PDF",
              "IDML",
              "DITA",
              "MARKDOWN",
              "YAML",
              "TABLEAU"
            ],
            "examples": [
              "JSON"
            ]
          },
          "sourceLanguage": {
            "type": "string",
            "description": "Language of the files, as a code your translation memory uses (BCP 47).",
            "examples": [
              "en-US"
            ]
          },
          "targetLanguage": {
            "type": "string",
            "description": "Language to translate every file into, as a code your translation memory uses (BCP 47).",
            "examples": [
              "hi-IN"
            ]
          },
          "suite": {
            "type": "string",
            "description": "Optional label for where the request comes from, stored on the translation and shown in lists. Any text up to 40 characters; defaults to `WEB`.",
            "default": "WEB",
            "examples": [
              "WEB"
            ]
          },
          "tmId": {
            "type": "string",
            "description": "Translation memory every file uses: matches are reused, the rest is machine translated and stored back in it. Required.",
            "examples": [
              "5c8d2e1f-9a3b-4c6d-8e7f-1a2b3c4d5e6f"
            ]
          },
          "name": {
            "type": "string",
            "description": "Name of the batch. Defaults to the file count and format, for example `3 JSON files`.",
            "examples": [
              "Website launch"
            ]
          },
          "assetIds": {
            "description": "Files already in your organization's assets to add to the batch, alongside or instead of `files`. Repeat the field once per asset. Needs the `asset:read` permission too. Not accepted for `DOCX`, `PPTX`, `XLSX`, `PDF` or `IDML` (400): upload those, or translate them one at a time.",
            "type": "array",
            "items": {
              "type": "string"
            },
            "examples": [
              [
                "9e4b7c2a-1d5f-4a8e-b3c6-0f1e2d3c4b5a"
              ]
            ]
          },
          "objectKeys": {
            "description": "Keys from Get an upload URL for files to add to the batch, alongside or instead of `files` (repeat the field once per file). Text formats only (JSON, XML, XLIFF, HTML, CSV, Markdown, YAML, Tableau); each must have been uploaded as this batch’s `format`.",
            "type": "array",
            "items": {
              "type": "string"
            }
          },
          "objectFileNames": {
            "description": "The original file names of `objectKeys`, in the same order (repeat the field once per key). A missing name falls back to the format.",
            "type": "array",
            "items": {
              "type": "string"
            }
          },
          "uploadKeys": {
            "description": "The `uploadKey`s from Get a text file upload URL, one per file, once each `PUT` has finished: send them as JSON in place of the `files` parts. Counted against the same 20 files as `files` and `assetIds`. The batch reads them and leaves them in storage: send the same keys to translate the files into another language.",
            "type": "array",
            "items": {
              "type": "string"
            }
          },
          "projectId": {
            "type": "string",
            "description": "Project to file every translation of the batch under; omit for none. See List projects.",
            "format": "uuid",
            "examples": [
              "4e7a1b9c-3d2f-4c8e-9a6b-0d1c2b3a4f5e"
            ]
          },
          "autoQe": {
            "type": "boolean",
            "description": "Run a QE report (AI quality evaluation) on the translation as soon as it finishes. Needs the `aiqe:create` permission (403 otherwise, before anything is charged) and a VitraTM memory — with a Phrase memory the translation runs and the report is skipped. The report is charged separately, per source word evaluated, when it starts; without enough credits it is skipped and the translation kept. When the organization requires Auto QE (Organization settings), the report runs whatever this field says.",
            "examples": [
              false
            ]
          },
          "qeScope": {
            "type": "string",
            "description": "With `autoQe`: evaluate only the segments still awaiting review (`unverified`, the default — cheaper, the score covers part of the document) or every segment (`all`).",
            "enum": [
              "unverified",
              "all"
            ],
            "examples": [
              "unverified"
            ]
          },
          "translateImages": {
            "type": "boolean",
            "description": "`DOCX` / `PPTX` / `XLSX` / `PDF` only. Also translate the text inside each file's pictures (default `false`). Charged per picture, with the batch.",
            "examples": [
              false
            ]
          },
          "files": {
            "type": "array",
            "items": {
              "contentMediaType": "application/octet-stream"
            },
            "description": "The files to translate, all of `format`. Repeat the `files` field once per file. Up to 20 files counting `assetIds`, `uploadKeys` and `objectKeys`, each up to 10 MB (send larger ones as `uploadKeys` or `objectKeys`). Optional when you send `assetIds`, `uploadKeys` or `objectKeys`."
          }
        },
        "required": [
          "format",
          "sourceLanguage",
          "targetLanguage",
          "tmId"
        ]
      },
      "TranslateDocumentFormDto": {
        "type": "object",
        "properties": {
          "translateFirstRow": {
            "type": "boolean",
            "description": "`XLSX` only. Translate the first row of each sheet (default `true`). Send `false` to leave column headings exactly as they are.",
            "examples": [
              true
            ]
          },
          "translateNotes": {
            "type": "boolean",
            "description": "`PPTX` only. Also translate the speaker notes under each slide (default `false`). Their words are counted and charged with the slides.",
            "examples": [
              true
            ]
          },
          "translateImages": {
            "type": "boolean",
            "description": "`DOCX` / `PPTX` / `XLSX` / `PDF` only. Also translate the text inside the document's pictures (default `false`). Charged per picture; `translate/word-count` returns how many.",
            "examples": [
              false
            ]
          },
          "imageIds": {
            "description": "With `translateImages`: the pictures to translate, by the `id`s `translate/images` returns. Send the field once per id, or one comma-separated value. Omit it to translate the pictures that have text in them (checked for free).",
            "type": "array",
            "items": {
              "type": "string"
            }
          },
          "translateColumns": {
            "description": "`CSV` only. Which columns to translate, counted from 0. Send the field once per column, or one comma-separated value (`0,2`). Omit it to translate every column; only the chosen columns are counted and charged.",
            "type": "array",
            "items": {
              "type": "number"
            },
            "examples": [
              [
                0,
                2
              ]
            ]
          },
          "format": {
            "type": "string",
            "description": "Format of the source. `TEXT` translates `sourceText` (or an uploaded `.txt` file); every other format needs a file: the `file` part, an `assetId`, an `uploadKey` for the text formats or, for `DOCX`, `PPTX`, `XLSX`, `PDF` and `IDML`, an `objectKey`.",
            "enum": [
              "TEXT",
              "JSON",
              "XML",
              "XLIFF",
              "HTML",
              "PPTX",
              "DOCX",
              "XLSX",
              "CSV",
              "PDF",
              "IDML",
              "DITA",
              "MARKDOWN",
              "YAML",
              "TABLEAU"
            ],
            "examples": [
              "DOCX"
            ]
          },
          "sourceLanguage": {
            "type": "string",
            "description": "Language of the source, as a code your translation memory uses (BCP 47, for example `en-US`).",
            "examples": [
              "en-US"
            ]
          },
          "targetLanguage": {
            "type": "string",
            "description": "Language to translate into, as a code your translation memory uses (BCP 47, for example `hi-IN`). One per request: call again for each further language.",
            "examples": [
              "hi-IN"
            ]
          },
          "suite": {
            "type": "string",
            "description": "Optional label for where the request comes from, stored on the translation and shown in lists. Any text up to 40 characters; defaults to `WEB`.",
            "default": "WEB",
            "examples": [
              "WEB"
            ]
          },
          "tmId": {
            "type": "string",
            "description": "Translation memory to use: matches are reused, the rest is machine translated, and the new translations are stored back in it. Required. It must be one your organization owns or that is shared with it.",
            "examples": [
              "5c8d2e1f-9a3b-4c6d-8e7f-1a2b3c4d5e6f"
            ]
          },
          "projectId": {
            "type": "string",
            "description": "Project to file this translation under; omit for none. See List projects.",
            "format": "uuid",
            "examples": [
              "4e7a1b9c-3d2f-4c8e-9a6b-0d1c2b3a4f5e"
            ]
          },
          "sourceText": {
            "type": "string",
            "description": "Text to translate, up to 10,000 characters. Required for `TEXT` unless you upload a `.txt` file instead. Ignored for every other format.",
            "examples": [
              "Welcome to our website."
            ]
          },
          "sourceFileName": {
            "type": "string",
            "description": "`TEXT` only. Name of the `.txt` file `sourceText` was read from, if any. Stored on the translation; omit for typed text.",
            "examples": [
              "chapter-01.txt"
            ]
          },
          "name": {
            "type": "string",
            "description": "Display name of the translation. Defaults to the file name (for `TEXT`, to `Text · <source> → <target>`).",
            "examples": [
              "Q3 review (Hindi)"
            ]
          },
          "assetId": {
            "type": "string",
            "description": "Translate a file already in your organization's assets instead of uploading one. Needs the `asset:read` permission too. When `file` is also sent, `file` wins. Ignored for `TEXT`.",
            "format": "uuid",
            "examples": [
              "9e4b7c2a-1d5f-4a8e-b3c6-0f1e2d3c4b5a"
            ]
          },
          "objectKey": {
            "type": "string",
            "description": "The `objectKey` from Get an upload URL, once you have `PUT` the file to its `uploadUrl`. For `DOCX`, `PPTX`, `XLSX`, `PDF` and `IDML` up to 500 MB. Use it instead of `file` and `assetId`. Send the same key again to translate the file into another language.",
            "examples": [
              "0f8e2d4c-6b1a-4c9e-8d7f-3a2b1c0d9e8f/playground/document/upload/4b1c7e2a-9d3f-4e5a-8b6c-1d2e3f4a5b6c.pptx"
            ]
          },
          "objectFileName": {
            "type": "string",
            "description": "File name for an `objectKey` upload, so the translation and its download are named after your document. Without it the name is `document`.",
            "examples": [
              "quarterly-review.pptx"
            ]
          },
          "uploadKey": {
            "type": "string",
            "description": "The `uploadKey` from Get a text file upload URL, once you have `PUT` the file to its `uploadUrl`: a `.txt` (for `TEXT`), JSON, XML, XLIFF, HTML, Markdown, YAML, DITA, Tableau or CSV file up to 25 MB, sent as JSON in place of the `file` part. Count billable words, List a document’s pictures and Translate a document read it and leave it in storage: send the same key again for each further target language. It is deleted a day after its upload URL was issued.",
            "examples": [
              "0f8e2d4c-6b1a-4c9e-8d7f-3a2b1c0d9e8f/staged-uploads/7b9e2c4d-1a3f-4e5b-8c6d-9e0f1a2b3c4d.json"
            ]
          },
          "sourceKey": {
            "type": "string",
            "description": "Count only (`word-count` and the pictures preview): a file already stored in your organization, such as a document uploaded for a workflow run, read by its storage key. Never used to start a translation.",
            "examples": [
              "3f1c…/cosmos/54052217-…-pictures_test.docx"
            ]
          },
          "autoQe": {
            "type": "boolean",
            "description": "Run a QE report (AI quality evaluation) on the translation as soon as it finishes. Needs the `aiqe:create` permission (403 otherwise, before anything is charged) and a VitraTM memory — with a Phrase memory the translation runs and the report is skipped. The report is charged separately, per source word evaluated, when it starts; without enough credits it is skipped and the translation kept. When the organization requires Auto QE (Organization settings), the report runs whatever this field says.",
            "examples": [
              false
            ]
          },
          "qeScope": {
            "type": "string",
            "description": "With `autoQe`: evaluate only the segments still awaiting review (`unverified`, the default — cheaper, the score covers part of the document) or every segment (`all`).",
            "enum": [
              "unverified",
              "all"
            ],
            "examples": [
              "unverified"
            ]
          },
          "file": {
            "contentMediaType": "application/octet-stream",
            "description": "The file to translate, up to 10 MB, with its extension in the file name. Required unless you send `assetId`, `objectKey` or `uploadKey`, or `sourceText` for `TEXT` (a `.txt` file also works for `TEXT`). For a larger file, use Get an upload URL and `objectKey`; to keep a text file out of the request, use Get a text file upload URL and send `uploadKey` as JSON."
          }
        },
        "required": [
          "format",
          "sourceLanguage",
          "targetLanguage",
          "tmId"
        ]
      },
      "TranslateLogImagesDto": {
        "type": "object",
        "properties": {
          "imageIds": {
            "description": "The pictures to translate, by the `id`s List pictures returns (at most 50). Each is charged one picture.",
            "type": "array",
            "items": {
              "type": "string",
              "format": "uuid"
            }
          }
        },
        "required": [
          "imageIds"
        ]
      },
      "TranslationStartedResponseDto": {
        "type": "object",
        "properties": {
          "id": {
            "type": "string",
            "format": "uuid",
            "description": "ID of the translation. Poll Get a translation (or, for `TEXT`, Get a text result) with it.",
            "examples": [
              "7d3e9a41-2c5b-4f6e-9a1d-8b2c3d4e5f60"
            ]
          },
          "status": {
            "type": "string",
            "enum": [
              "RUNNING"
            ],
            "description": "Always `RUNNING`: the translation runs in the background. Poll it until it is `COMPLETED` or `FAILED`.",
            "examples": [
              "RUNNING"
            ]
          }
        },
        "required": [
          "id",
          "status"
        ]
      },
      "UpdatePhraseResponseDto": {
        "type": "object",
        "properties": {
          "statusCode": {
            "type": "number",
            "description": "Always 200.",
            "examples": [
              200
            ]
          },
          "success": {
            "type": "boolean",
            "description": "Always true.",
            "examples": [
              true
            ]
          },
          "message": {
            "type": "string",
            "description": "Always `Phrase updated successfully`.",
            "examples": [
              "Phrase updated successfully"
            ]
          },
          "propagated": {
            "type": "number",
            "description": "How many other occurrences of the same source text were updated too (see `propagateToDuplicates`).",
            "examples": [
              2
            ]
          }
        },
        "required": [
          "statusCode",
          "success",
          "message",
          "propagated"
        ]
      },
      "UpdatePlaygroundPhraseDto": {
        "type": "object",
        "properties": {
          "playgroundLogId": {
            "type": "string",
            "description": "ID of the translation.",
            "examples": [
              "7d3e9a41-2c5b-4f6e-9a1d-8b2c3d4e5f60"
            ]
          },
          "sourceText": {
            "type": "string",
            "description": "Source text of the segment. Used to find it when `layerIndex` is not sent; required either way.",
            "examples": [
              "Welcome to our website"
            ]
          },
          "targetLanguage": {
            "type": "string",
            "description": "Accepted for older clients and not used: the translation's own target language applies.",
            "examples": [
              "hi-IN"
            ]
          },
          "updatePhrase": {
            "type": "string",
            "description": "New translation, up to 100,000 characters. Keep every `<span id=N>` marker of an Office segment (400 otherwise). Omit to change only the review status.",
            "examples": [
              "हमारी वेबसाइट पर आपका स्वागत है"
            ]
          },
          "verification": {
            "type": "string",
            "description": "New review status: `u` unverified, `v` verified, `a` approved. Omit to keep it.",
            "enum": [
              "u",
              "v",
              "a"
            ],
            "examples": [
              "v"
            ]
          },
          "layerIndex": {
            "type": "number",
            "description": "The segment's `layerIndex` from List segments (from 0). Recommended: without it the first segment with this `sourceText` is edited.",
            "examples": [
              5
            ]
          },
          "propagateToDuplicates": {
            "type": "boolean",
            "description": "Also update other segments with the same source text in this document (default `true`); they are reset to unverified. Segments already translated differently are left alone.",
            "examples": [
              true
            ]
          }
        },
        "required": [
          "playgroundLogId",
          "sourceText"
        ]
      },
      "UseEditedLogImageFormDto": {
        "type": "object",
        "properties": {
          "editor": {
            "type": "string",
            "enum": [
              "image_translator",
              "magic_layers"
            ],
            "description": "The editor the picture was edited in."
          },
          "uploadKey": {
            "type": "string",
            "description": "The `uploadKey` from Get an edited picture upload URL, once you have `PUT` the picture to its `uploadUrl`, sent as JSON in place of the `file` part.",
            "examples": [
              "0f8e2d4c-6b1a-4c9e-8d7f-3a2b1c0d9e8f/staged-uploads/5d2a9c1e-7b3f-4a6e-9c8d-2e1f0a9b8c7d.png"
            ]
          },
          "file": {
            "contentMediaType": "application/octet-stream",
            "description": "The edited picture (PNG, JPG, WebP or GIF, up to 25 MB). It is brought to the original picture’s size and format. Required unless you send `uploadKey`."
          }
        },
        "required": [
          "editor"
        ]
      },
      "WordCountResponseDto": {
        "type": "object",
        "properties": {
          "format": {
            "type": "string",
            "enum": [
              "TEXT",
              "JSON",
              "XML",
              "XLIFF",
              "HTML",
              "PPTX",
              "DOCX",
              "XLSX",
              "CSV",
              "PDF",
              "IDML",
              "DITA",
              "MARKDOWN",
              "YAML",
              "TABLEAU"
            ],
            "description": "The `format` you sent.",
            "examples": [
              "DOCX"
            ]
          },
          "operation": {
            "type": "string",
            "description": "The rate the translation is charged under (the part of the rate key after `translate_photo.playground.`).",
            "examples": [
              "translate_docx"
            ]
          },
          "words": {
            "type": "number",
            "description": "Billable source words for ONE target language. A translation into each further language is charged on the same count.",
            "examples": [
              1240
            ]
          },
          "unreadablePages": {
            "description": "PDF only: pages with text that cannot be read. Their text is not counted and will not be translated. The translation can still start.",
            "type": "array",
            "items": {
              "$ref": "#/components/schemas/PdfUnreadablePageDto"
            }
          },
          "scannedPages": {
            "description": "PDF only: scanned pages whose text is read with OCR and rebuilt as text. Counted and charged like any text; worth checking in the editor after the run.",
            "type": "array",
            "items": {
              "type": "number"
            },
            "examples": [
              [
                1,
                2
              ]
            ]
          },
          "images": {
            "description": "With `translateImages` (Word, PowerPoint, Excel, PDF): the pictures that will be translated, and the ones that will not.",
            "allOf": [
              {
                "$ref": "#/components/schemas/DocumentImagesSummaryDto"
              }
            ]
          }
        },
        "required": [
          "format",
          "operation",
          "words"
        ]
      }
    }
  },
  "security": [
    {
      "ApiKeyAuth": []
    }
  ]
}
