v1.0.0OpenAPI 3.1.1

Translation Memory API

Download OpenAPI Document

Translation memories, glossaries, term bases and style guides, and the translation that uses them.

Store your approved translations in translation memories and translate new text with them. Each memory can use term bases, glossaries and a style guide, so every translation follows your terminology and voice. New here? Read Translation Memory 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 typical flow: create a translation memory, attach term bases, glossaries and a style guide, then translate texts. Machine translations are saved to the memory as unverified; review them with List terms and Set a term status.

Languages are BCP-47 codes such as en-US, hi-IN or fr-FR. Memories, term bases, glossaries and style guides live with a provider, VitraTM by default. When the provider fails, you get 502 or 503 with error: "TranslationServiceError" and a message you can show; retry with backoff.

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

Memories

A translation memory stores your approved translations, one source text at a time, and is reused by every translation you run with it. Create one on VitraTM (the default) or link a memory that already exists on Phrase, then use its id everywhere else.

Create a translation memory

List translation memories

Get a translation memory

Update a translation memory

List providers

List provider memories

Imports and exports

Load existing translations into a memory as JSON or as a TMX, XLIFF, XLSX, CSV or TSV file, and download a memory as a file. Imports run in the background: poll them with Get an import. File import and export work for VitraTM memories.

Import terms

Get an upload URL for a file import

Import a file

Get an import

Download an import template

Export a translation memory

Terms

The contents of a memory: each source text with its translations and their review status (unverified, verified, approved). Read them, correct them and mark them reviewed. Review status is a VitraTM feature; Phrase memories have none.

List terms

Update a term

Set a term status

Set term statuses in bulk

Explain a translation

Translation

Translate texts through a memory. Stored translations are reused first and the rest is machine translated, then saved back to the memory for next time. Phrase's pretranslate_job method runs in the background and gives you an operation to poll.

Translate texts

Get a translation operation

Auth Required

Poll a translation that Translate texts started in the background (Phrase pretranslate_job). Each call checks Phrase and moves the operation on. Poll every 5 to 30 seconds until status is COMPLETED (translations in data) or FAILED (reason in error). Once completed, the translations are also saved to the memory.

Permission: translation_memory:read. An API key acts with the role of the member who created it.

Path Parameters

operationIdstring · uuidrequired

The operationId returned by Translate texts.

Example: 7d9f1b3c-5e2a-4c6d-8f0a-6b8d0f2a4c7e

Responses

200The state of the operation.
application/json
statusstringrequired

RUNNING (poll again), COMPLETED (translations in data) or FAILED (reason in error).

Enum values:RUNNINGCOMPLETEDFAILED
Example: COMPLETED
dataTranslationGroupDto[]

One group per target language. Present once status is ready.

Show child attributes
targetLanguagestringrequired

The target language of these translations (BCP-47).

Example: hi-IN
translationsTranslatedTextDto[]required

One result per source text, in the order you sent them.

Show child attributes
sourceTextstringrequired

The text you sent.

Example: Open an account in minutes
targetTextstringrequired

The translation.

Example: मिनटों में खाता खोलें
matchTypestring

Where the translation came from: exact (a stored translation reused as is), fuzzy or semantic (a close stored match), or mt (machine translated now). mt results are saved to the memory as unverified, except in a reference-mode memory, where nothing is saved automatically and a 100% match comes back as mt (the AI checked and corrected it).

Enum values:exactfuzzysemanticmt
Example: mt
scorenumber

Match score from 0 to 1, when the provider reports one (1 for an exact match).

Example: 1Min: 0Max: 1
statusstring

Review status of the translation: an exact match carries the stored status, mt is unverified. Absent for Phrase, which has no review status.

Enum values:unverifiedverifiedapproved
Example: unverified
metaobject

The meta you sent with this text, returned unchanged (VitraTM only). Only present when you used the object form of sourceTexts.

Example: {"key":"onboarding.cta"}
originobject

Why the translation reads as it does — only when you sent includeOrigin: true (VitraTM only). decidedBy says what produced it (tm_exact, llm, azure, deepl); shown lists what the model was given for this text (TM references, term-base and glossary entries, rule ids, context flags); evidence marks the spans of the translation that come from those inputs and llmShare, the share that is the model’s own wording; citations is what the model says it followed, checked against the evidence; notShown lists inputs that existed but were left out, with the reason. Rule ids (D1… built-in, S1… style guide) point into the group’s originCatalog.

Example: {"v":1,"decidedBy":"llm","path":"sync","promptVersion":"3c1d…","shown":{"references":[{"id":"R1","kind":"similar","score":0.92,"status":"verified","source":"Save file","target":"Datei speichern"}],"terms":[],"anchors":[],"rules":["S1"],"tmContext":false,"meta":false,"additionalPrompt":false},"evidence":{"spans":[{"start":15,"end":24,"by":"R1","kind":"tm_reference"}],"terms":[],"references":[{"id":"R1","overlap":0.41,"copied":false}],"anchors":[],"llmShare":0.59}}
originCatalogobject

The rules this language’s origins name by id — only with includeOrigin: true, when some translation was shown rules. styleGuideId and defaultRules say where they came from; each rule has its id (D1… built-in, S1… style guide), scope and text. Absent when the rules changed while the request ran.

Example: {"styleGuideId":"b2f0…","defaultRules":"de-DE","rules":[{"id":"D1","scope":"default","text":"Write compound nouns as one word."},{"id":"S1","scope":"general","ruleId":"7a9e…","text":"Use the infinitive for button labels."}]}
errorstring

Why the operation failed. Present when status is failed.

Example: One or more Phrase jobs failed.
400`operationId` is not a UUID (`Validation failed (uuid is expected)`).
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 operation with this ID in your organization (`Translation operation not found`), or its memory was deleted or is no longer shared with you (`Translation memory 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
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
502The translation service rejected or could not complete the request. The body is `{ statusCode, message, error: "TranslationServiceError" }`, with a message such as `The translation service couldn’t complete this request. Please try again, or contact support if it keeps happening.` A request the translation service rejects as invalid (a file it cannot read, a name already taken, an ID it does not know) is answered with its own 4xx status and message instead, and a Phrase memory whose sign-in fails with 424 `Phrase sign-in failed. …`.
application/json
statusCodenumberrequired

HTTP status code.

Example: 502
messagestringrequired

What went wrong, in plain words.

Example: The translation service couldn’t complete this request. Please try again, or contact support if it keeps happening.
errorstringrequired

Always TranslationServiceError.

Enum values:TranslationServiceError
Example: TranslationServiceError
503The translation service is busy or unavailable (`TranslationServiceError`). Wait a few seconds and retry.
application/json
statusCodenumberrequired

HTTP status code.

Example: 502
messagestringrequired

What went wrong, in plain words.

Example: The translation service couldn’t complete this request. Please try again, or contact support if it keeps happening.
errorstringrequired

Always TranslationServiceError.

Enum values:TranslationServiceError
Example: TranslationServiceError
GET/v1/translation-memory/operations/{operationId}
curl '{{API_BASE_URL}}/v1/translation-memory/operations/7d9f1b3c-5e2a-4c6d-8f0a-6b8d0f2a4c7e' \
  --header 'x-api-key: YOUR_API_KEY'
{
  "status": "COMPLETED",
  "data": [
    {
      "targetLanguage": "hi-IN",
      "translations": [
        {
          "sourceText": "Open an account in minutes",
          "targetText": "मिनटों में खाता खोलें",
          "matchType": "mt",
          "score": 1,
          "status": "unverified",
          "meta": {
            "key": "onboarding.cta"
          },
          "origin": {
            "v": 1,
            "decidedBy": "llm",
            "path": "sync",
            "promptVersion": "3c1d…",
            "shown": {
              "references": [
                {
                  "id": "R1",
                  "kind": "similar",
                  "score": 0.92,
                  "status": "verified",
                  "source": "Save file",
                  "target": "Datei speichern"
                }
              ],
              "terms": [],
              "anchors": [],
              "rules": [
                "S1"
              ],
              "tmContext": false,
              "meta": false,
              "additionalPrompt": false
            },
            "evidence": {
              "spans": [
                {
                  "start": 15,
                  "end": 24,
                  "by": "R1",
                  "kind": "tm_reference"
                }
              ],
              "terms": [],
              "references": [
                {
                  "id": "R1",
                  "overlap": 0.41,
                  "copied": false
                }
              ],
              "anchors": [],
              "llmShare": 0.59
            }
          }
        }
      ],
      "originCatalog": {
        "styleGuideId": "b2f0…",
        "defaultRules": "de-DE",
        "rules": [
          {
            "id": "D1",
            "scope": "default",
            "text": "Write compound nouns as one word."
          },
          {
            "id": "S1",
            "scope": "general",
            "ruleId": "7a9e…",
            "text": "Use the infinitive for button labels."
          }
        ]
      }
    }
  ],
  "error": "One or more Phrase jobs failed."
}

Term bases

A term base holds your organization's approved terminology: product names, fixed wordings and words translators must not use. Attach a term base to one or more translation memories, and translation through those memories follows its approved terms. Fill it by hand with concepts, or import an XLSX, CSV or TBX file.

List term bases

Create a term base

Get a term base

Update a term base

List memories using a term base

Set memories using a term base

Get an upload URL for term base files

Import a term base file

Export a term base

Download a term base template

Concepts

A concept is one idea in a term base, named by terms in one or more languages: for example dashboard in English and tableau de bord in French. Each term has a review state; translation treats approved terms as binding and new ones as suggestions.

List concepts

Create a concept

Update a concept

Add a term to a concept

Update a concept term

Glossaries

A glossary is a flat list of terms with the wording to use in each language: brand names, product names and fixed UI labels. Attach it to a memory and translation follows it; where a glossary and a term base match the same words, the glossary wins. Move entries in and out in bulk with XLSX or CSV files.

List glossaries

Create a glossary

Get a glossary

Update a glossary

List memories using a glossary

Set memories using a glossary

Get an upload URL for a glossary file

Import a glossary file

Export a glossary

Download a glossary template

Glossary entries

An entry is one term in one language, with its translations, a description and tags. Set translatable to false for a do-not-translate entry: the term then stays exactly as written in every translation.

List glossary entries

Add a glossary entry

Update a glossary entry

Style guides

A style guide holds your translation style as rules, each for one or more languages or for all of them. Upload your style documents and the rules are extracted from them, or write the rules yourself. Memories that follow the guide send its active rules to the model with every translation.

List style guides

Get an upload URL for new style guides

Create a style guide

Get a style guide

Update a style guide

Get an upload URL for style guide files

Add style guide files

Update a style guide file

Download a style guide file

Re-extract style guide rules

List memories using a style guide

Set memories using a style guide

Style guide rules

Edit the rules of a style guide one by one or many at a time. Every write returns the whole guide as it now is, plus an outcome that says what the write did.

Add a rule

Update a rule

Update rules in bulk

Reorder rules

Copy rules to another language

Sharing

A parent organization can share a memory it owns with its direct child organizations. They translate with it and edit its terms under their own permissions; only the owner decides who it is shared with.

Share a translation memory

List shares

List shareable organizations

Models

BulkSetTermStatusDto
BulkStyleGuideRulesDto
BulkTermStatusItemDto
BulkTermStatusResponseDto
ConceptDto
ConceptPageDto
ConceptTermUpsertBodyDto
CopyStyleGuideLanguageDto
CreateConceptBodyDto
CreateGlossaryBodyDto
CreateGlossaryEntryBodyDto
CreateStagedUploadDto
CreateStyleGuideRuleDto
CreateTermBaseBodyDto
CreateTermBodyDto
CreateTmDto
GlossaryDetailDto
GlossaryDto
GlossaryEntryDto
GlossaryEntryPageDto
GlossaryImportResultDto
GlossaryPageDto
GlossaryTerminologyEntryDto
GlossaryTerminologyResponseDto
GlossaryTranslationDto
GlossaryTranslationInputDto
ImportTermItem
ImportTermsDto
LinkedMemoryDto
MemoryStyleGuideDto
MemoryStyleGuideSummaryDto
PaginatedTranslationMemoriesDto
PhraseStyleGuideRefDto
ProviderMemoryDto
ReorderStyleGuideRulesDto
SetGlossaryMemoriesBodyDto
SetMemoryGlossariesBodyDto
SetMemoryTermBasesBodyDto
SetStyleGuideMemoriesDto
SetTermBaseMemoriesBodyDto
SetTermStatusDto
SetTmStyleGuideDto
ShareTmDto
SourceTextItemDto
StagedUploadTicketDto
StyleGuideDetailDto
StyleGuideDto
StyleGuideEditErrorDto
StyleGuideFileDto
StyleGuideLanguageStatsDto
StyleGuidePageDto
StyleGuideRuleDto
StyleGuideRuleMutationDto
TermBaseDetailDto
TermBaseDto
TermBaseImportResultDto
TermBasePageDto
TermBaseTermDto
TerminologyResponseDto
TerminologyTermDto
TermOriginDto
TermTranslationDto
TmAuthorDto
TmImportFileQueuedDto
TmImportFileSummaryDto
TmImportOperationDto
TmImportQueuedDto
TmOrganizationDto
TmOwnerDto
TmProviderCountsDto
TmProviderInfoDto
TmSuccessResponseDto
TmTermDto
TmTermOriginResponseDto
TmTermPageDto
TmTranslationMethodDto
TranslatedTextDto
TranslateDto
TranslateProcessingResponseDto
TranslateReadyResponseDto
TranslationGroupDto
TranslationMemoryDetailDto
TranslationMemoryDto
TranslationMemoryListItemDto
TranslationOperationDto
TranslationServiceErrorDto
UpdateConceptBodyDto
UpdateGlossaryBodyDto
UpdateGlossaryEntryBodyDto
UpdateStyleGuideDto
UpdateStyleGuideFileDto
UpdateStyleGuideRuleDto
UpdateTermBaseBodyDto
UpdateTermBodyDto
UpdateTmDto
UpsertTermDto