v1.0.0OpenAPI 3.1.1

Document Translation API

Download OpenAPI Document

Translate Office documents one at a time or in batches, with their layout kept intact.

Translate Word, PowerPoint, Excel, CSV, PDF and InDesign files, structured text files (JSON, XML, HTML, XLIFF) and plain text, keeping each document's layout and formatting. Every translation runs through one of your translation memories: matches are reused, the rest is machine translated and stored back. New here? Read Document Translation for the whole flow.

Every request

Send your organization API key in the x-api-key header; it starts with uvk_. Create one in the Universe app under Settings → API keys. The key and organization limits count requests over a rolling minute. See Authentication and Rate limits.

The usual flow: send the file with Translate a document (for a file over 25 MB, first get an upload URL), poll Get a translation until status is DONE, then download the translated file. Each call translates into one language; call it again for each further language, or translate many files at once with Translate a batch of files.

Translations run in the background, so every call returns straight away. They are charged per source word when they start: Count billable words first if you want the count, and see the current rates on Translate a document. Without enough credits you get 402 and nothing is created. See Credits.

Server
{{API_BASE_URL}}
Your API environment
Authentication RequiredApiKeyAuth
Your organization API key (starts with `uvk_`). Create one in the Universe app under Settings → API keys.
x-api-key:
Client Libraries
Shell

Uploads

Files up to 25 MB go straight into Translate a document as the file part. For a Word, PowerPoint, Excel, PDF or InDesign file up to 500 MB, get a presigned upload URL, PUT the file to it, and translate it by its objectKey.

Get an upload URL

Get a text file upload URL

Get an edited picture upload URL

Batches

Translate many files in one call: up to 20 uploaded files into one language, or every matching file in a folder of your assets into several languages. Each file becomes its own translation, grouped in a batch you can follow. These endpoints must be turned on for your organization.

Translate a batch of files

Get a batch

List batches

Preview a folder translation

Translate a folder

Download the translated file

Save to your assets

List pictures

Translate pictures

Use an edited picture

Revert a picture

Auth Required

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.

Permission: playground.document:update. An API key acts with the role of the member who created it.

Path Parameters

idstring · uuidrequired

Translation ID: the id returned by Translate a document (or listed by List translations).

Example: 7d3e9a41-2c5b-4f6e-9a1d-8b2c3d4e5f60
imageIdstring · uuidrequired

Picture ID.

Responses

200The pictures.
application/json
imagesLogImageDto[]required
Show child attributes
idstring · uuidrequired

Picture ID.

positionnumberrequired
Example: 0
statusstringrequired

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.

Enum values:pendingrunningtranslatedno_textunchangedskippedfailed
reasonstring | nullrequired
mimeTypestringrequired
Example: image/png
widthnumber | nullrequired
heightnumber | nullrequired
pagesnumber[] | nullrequired
textsstring[]required

The texts it carried and what each became.

Example: [{"source":"Sign up","target":"S'inscrire"}]
sourceUrlstring | nullrequired
translatedUrlstring | nullrequired
hasTextboolean | nullrequired
canTranslatebooleanrequired

It can be translated now with Translate pictures.

editedWithstring | nullrequired

The editor the picture in the document was last replaced from (Use an edited picture); null for the automatic translation or the original.

Enum values:image_translatormagic_layers
editedAtstring · date-time | nullrequired
canEditbooleanrequired

It can be opened in an editor and put back with Use an edited picture now.

canRevertbooleanrequired

It shows a translated or edited copy, which Revert a picture can take back to the original.

editKeysobject | nullrequired

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.

Example: {"original":"<orgId>/playground/<logId>/doc-images/<imageId>/source.png","current":"<orgId>/playground/<logId>/doc-images/<imageId>/translated.png"}
operationstringrequired
Example: translate_document_image
400A 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.`
application/json
statusCodeintegerrequired

HTTP status code, repeated in the body.

Example: 404
messagestring | string[]required

What went wrong, for people. Validation failures list one entry per problem. Do not branch on this text.

Example: Booking not found
errorstring

Short name of the status.

Example: Not Found
401The `x-api-key` header is missing, or the key is invalid, expired or deleted.
application/json
statusCodeintegerrequired

HTTP status code, repeated in the body.

Example: 404
messagestring | string[]required

What went wrong, for people. Validation failures list one entry per problem. Do not branch on this text.

Example: Booking not found
errorstring

Short name of the status.

Example: Not Found
403Not allowed: the API key's role lacks the permission (`PermissionDenied`), the product is not enabled for your organization, or it has been turned off.
application/json
statusCodeintegerrequired

HTTP status code, repeated in the body.

Example: 404
messagestring | string[]required

What went wrong, for people. Validation failures list one entry per problem. Do not branch on this text.

Example: Booking not found
errorstring

Short name of the status.

Example: Not Found
404No 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`.
application/json
statusCodeintegerrequired

HTTP status code, repeated in the body.

Example: 404
messagestring | string[]required

What went wrong, for people. Validation failures list one entry per problem. Do not branch on this text.

Example: Booking not found
errorstring

Short name of the status.

Example: Not Found
409`This picture is being translated.`
application/json
statusCodeintegerrequired

HTTP status code, repeated in the body.

Example: 404
messagestring | string[]required

What went wrong, for people. Validation failures list one entry per problem. Do not branch on this text.

Example: Booking not found
errorstring

Short name of the status.

Example: Not Found
429Too many requests for this key. Wait the number of seconds in `Retry-After`, then retry.
application/json
statusCodeintegerrequired

HTTP status code, repeated in the body.

Example: 404
messagestring | string[]required

What went wrong, for people. Validation failures list one entry per problem. Do not branch on this text.

Example: Booking not found
errorstring

Short name of the status.

Example: Not Found
500Something failed on our side. Retry with backoff; if it persists, contact support with the `X-Request-Id`.
application/json
statusCodeintegerrequired

HTTP status code, repeated in the body.

Example: 404
messagestring | string[]required

What went wrong, for people. Validation failures list one entry per problem. Do not branch on this text.

Example: Booking not found
errorstring

Short name of the status.

Example: Not Found
POST/v1/galaxy/playground/document/logs/{id}/images/{imageId}/revert
curl '{{API_BASE_URL}}/v1/galaxy/playground/document/logs/7d3e9a41-2c5b-4f6e-9a1d-8b2c3d4e5f60/images/imageId/revert' \
  --request POST \
  --header 'x-api-key: YOUR_API_KEY'
{
  "images": [
    {
      "id": "3fa85f64-5717-4562-b3fc-2c963f66afa6",
      "position": 0,
      "status": "pending",
      "reason": "string",
      "mimeType": "image/png",
      "width": 1.5,
      "height": 1.5,
      "pages": [
        1.5
      ],
      "texts": [
        {
          "source": "Sign up",
          "target": "S'inscrire"
        }
      ],
      "sourceUrl": "string",
      "translatedUrl": "string",
      "hasText": true,
      "canTranslate": true,
      "editedWith": "image_translator",
      "editedAt": "2026-01-15T09:30:00Z",
      "canEdit": true,
      "canRevert": true,
      "editKeys": {
        "original": "<orgId>/playground/<logId>/doc-images/<imageId>/source.png",
        "current": "<orgId>/playground/<logId>/doc-images/<imageId>/translated.png"
      }
    }
  ],
  "operation": "translate_document_image"
}

Models

BatchDetailResponseDto
BatchListResponseDto
BatchStartFileDto
BatchStartResponseDto
BulkUpdatePlaygroundVerificationDto
BulkVerifyResponseDto
CosmosRunRefDto
CreateDocumentUploadPresignDto
CreateStagedUploadDto
DocumentImagePreviewDto
DocumentImagesPreviewResponseDto
DocumentImagesSummaryDto
DocumentUploadUrlResponseDto
FolderPreviewFileDto
FolderPreviewResponseDto
FolderPreviewTotalsDto
FolderRefDto
FolderRunBatchDto
FolderRunDto
FolderRunFailureDto
FolderRunResponseDto
FolderSkippedFileDto
InsufficientCreditsErrorDto
LogAssigneeDto
LogDetailConsumedDto
LogDetailDto
LogDetailResponseDto
LogImageDto
LogImagesResponseDto
LogListConsumedDto
LogListItemDto
LogListResponseDto
LogOwnerDto
LogTmDto
LogVerificationCountsDto
PdfUnreadablePageDto
PlaygroundBatchFileDto
PlaygroundBatchSummaryDto
PlaygroundSyncFromTmResponseDto
PlaygroundSyncToTmResponseDto
RenameDitaPackageDto
RenameLogResponseDto
RenamePlaygroundLogDto
SavePlaygroundOutputToAssetsDto
SaveToAssetsResponseDto
SegmentCountsDto
SegmentDto
SegmentLocationDto
SegmentPaginationDto
SegmentsResponseDto
StagedUploadTicketDto
SyncPlaygroundToTmDto
TextResultDto
TextResultResponseDto
TranslateBatchFormDto
TranslateDocumentFormDto
TranslateLogImagesDto
TranslationStartedResponseDto
UpdatePhraseResponseDto
UpdatePlaygroundPhraseDto
UseEditedLogImageFormDto
WordCountResponseDto