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

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

Auth Required

Make the rules for one language apply to another one too: to is added to every rule naming from. Rules for every language already apply to both and are left alone.

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

Path Parameters

idstring · uuidrequired

ID of the style guide, from List style guides.

Example: f4a6c8e0-3b5d-4f7a-9c1e-5b7d9f1a3c6e

Bodyrequiredapplication/json

fromstringrequired

The language whose rules to copy, as a BCP-47 code. Rules naming this language (or a broader tag such as hi for hi-IN) get to added.

Example: hi-IN
tostringrequired

The language to add to those rules (BCP-47). Must differ from from.

Example: mr-IN

Responses

200The style guide after the change, and `outcome: { updated }`.
application/json
styleGuideIdstring · uuidrequired

ID of the style guide.

Example: f4a6c8e0-3b5d-4f7a-9c1e-5b7d9f1a3c6e
namestringrequired

Name, unique within your organization.

Example: Brand voice 2026
descriptionstring | nullrequired

Description. Null when not set.

Example: House style for all consumer-facing copy.
statusstringrequired

empty (no files and no rules yet), processing (rules are being extracted from its files; poll Get a style guide), ready or failed (see extractionError).

Enum values:emptyprocessingreadyfailed
Example: ready
extractionErrorstring | nullrequired

Why the last extraction failed. Null otherwise.

Example: null
extractionStartedAtstring · date-time | nullrequired

When the current or last extraction started.

Example: 2026-09-14T10:32:07.000Z
rulesSourcestring | nullrequired

Where the rules last came from: extracted from files, written by hand (manual), or migrated from an older guide. Null with no rules.

Enum values:extractedmanualmigrated
Example: extracted
rulesUpdatedAtstring · date-time | nullrequired

When the rules last changed.

Example: 2026-09-14T10:32:07.000Z
ruleCountnumberrequired

Number of rules, active or not.

Example: 42
fileCountnumberrequired

Number of files.

Example: 2
ruleLanguagesstring[]required

Languages that rules name (BCP-47). Rules for every language are not listed.

Example: ["hi-IN","mr-IN"]
createdByTmAuthorDtorequired

Who created the guide.

Show child attributes
idstringrequired

ID of the author. A member of your organization appears as universe:member:<memberId>; changes made by the platform itself as universe:org:<organizationId>.

Example: universe:member:5e7a9c1b-3d2f-4b6a-8c0e-1f3a5c7e9b2d
namestring

Display name of the author, when known.

Example: Priya Sharma
emailstring

Email address of the author, when known.

Example: priya.sharma@example.com
updatedByTmAuthorDtorequired

Who changed the guide last.

Show child attributes
idstringrequired

ID of the author. A member of your organization appears as universe:member:<memberId>; changes made by the platform itself as universe:org:<organizationId>.

Example: universe:member:5e7a9c1b-3d2f-4b6a-8c0e-1f3a5c7e9b2d
namestring

Display name of the author, when known.

Example: Priya Sharma
emailstring

Email address of the author, when known.

Example: priya.sharma@example.com
createdAtstring · date-timerequired

When the guide was created.

Example: 2026-09-14T10:32:07.000Z
updatedAtstring · date-timerequired

When the guide was last changed.

Example: 2026-09-14T10:32:07.000Z
rulesStyleGuideRuleDto[]required

Every rule, in position order: the order translation sends them.

Show child attributes
idstring · uuidrequired

ID of the rule.

Example: 1a3c5e7b-9d2f-4b6a-8c0e-4f6a8c0e2b4d
textstringrequired

The rule, in plain words.

Example: Address the reader as "aap", never "tum".
languagesstring[]required

Languages the rule is for (BCP-47). Empty means every language.

Example: ["hi-IN"]
activebooleanrequired

Whether translation uses the rule. An inactive rule is kept but not sent.

Example: true
sourcestringrequired

extracted from a file, manual (written or edited by hand) or migrated.

Enum values:extractedmanualmigrated
Example: extracted
positionnumberrequired

Position in the guide. Rules are listed, and sent to the model, in this order.

Example: 0
createdByTmAuthorDtorequired

Who created the rule. Null for extracted rules.

Show child attributes
idstringrequired

ID of the author. A member of your organization appears as universe:member:<memberId>; changes made by the platform itself as universe:org:<organizationId>.

Example: universe:member:5e7a9c1b-3d2f-4b6a-8c0e-1f3a5c7e9b2d
namestring

Display name of the author, when known.

Example: Priya Sharma
emailstring

Email address of the author, when known.

Example: priya.sharma@example.com
updatedByTmAuthorDtorequired

Who changed the rule last.

Show child attributes
idstringrequired

ID of the author. A member of your organization appears as universe:member:<memberId>; changes made by the platform itself as universe:org:<organizationId>.

Example: universe:member:5e7a9c1b-3d2f-4b6a-8c0e-1f3a5c7e9b2d
namestring

Display name of the author, when known.

Example: Priya Sharma
emailstring

Email address of the author, when known.

Example: priya.sharma@example.com
createdAtstring · date-timerequired

When the rule was created.

Example: 2026-09-14T10:32:07.000Z
updatedAtstring · date-timerequired

When the rule was last changed.

Example: 2026-09-14T10:32:07.000Z
generalCountnumberrequired

Rules for every language, active or not.

Example: 18
languageStatsStyleGuideLanguageStatsDto[]required

Rule counts for each language that rules name.

Show child attributes
languagestringrequired

A language that rules name (BCP-47).

Example: hi-IN
countnumberrequired

Rules naming it, active or not.

Example: 12
activenumberrequired

Active rules naming it.

Example: 11
effectivenumberrequired

Active rules translation sends for it, including the rules for every language.

Example: 30
filesStyleGuideFileDto[]required

The uploaded files.

Show child attributes
fileIdstring · uuidrequired

ID of the file.

Example: 9c1e3a5b-7d2f-4a6c-8e0b-2d4f6a8c0e1b
filenamestringrequired

File name as uploaded.

Example: hindi-style-guide.pdf
contentTypestringrequired

Media type of the file.

Example: application/pdf
sizeBytesnumberrequired

Size in bytes.

Example: 482133
languagesstring[]required

The target languages the document is about (BCP-47). Empty means any language.

Example: ["hi-IN"]
createdByTmAuthorDtorequired

Who uploaded the file.

Show child attributes
idstringrequired

ID of the author. A member of your organization appears as universe:member:<memberId>; changes made by the platform itself as universe:org:<organizationId>.

Example: universe:member:5e7a9c1b-3d2f-4b6a-8c0e-1f3a5c7e9b2d
namestring

Display name of the author, when known.

Example: Priya Sharma
emailstring

Email address of the author, when known.

Example: priya.sharma@example.com
createdAtstring · date-timerequired

When the file was uploaded.

Example: 2026-09-14T10:32:07.000Z
attachedTmIdsstring[]required

Provider IDs (tmRef) of the memories following the guide. Use memories for your memories' IDs and names.

Example: ["0b6f7d2a-41c9-4d8e-a3f5-9c2e7b1d4a60"]
memoriesLinkedMemoryDto[]required

Translation memories of your organization that follow the guide, by name.

Show child attributes
idstring · uuidrequired

ID of the translation memory.

Example: 6f1c2a4e-8b3d-4c5a-9e7f-2d1b0a9c8e77
namestringrequired

Name of the translation memory.

Example: Marketing site
unsupportedLanguagesstring[]required

Languages named by rules or files that the platform does not support, normally none. Reassign them with Update rules in bulk or Update a style guide file.

Example: []
outcomeobjectrequired

What the write did. Add a rule and Update a rule: { ruleId, merged } (merged is true when the text matched another rule and the two were combined). Delete a rule: { ruleId }. Update rules in bulk: { op, updated, deleted, unchanged, missing }. Reorder rules: { moved }. Copy rules to another language: { updated }.

Example: {"ruleId":"1a3c5e7b-9d2f-4b6a-8c0e-4f6a8c0e2b4d","merged":false}
400`from` and `to` are the same (`Pick a different language to copy to.`), or The guide would go over a cap (`A style guide may hold at most 1000 rules.`, `<language> may have at most 100 active rules.`, `At most 100 active rules may apply to every language.`), or a field failed validation (languages must be supported BCP-47 codes such as `hi-IN`).
application/json
statusCodenumberrequired

HTTP status code.

Example: 409
messagestringrequired

Why the edit was refused, in plain words.

Example: Another rule already says this.
detailsobject

Details to act on, when there are any. A rule text that another rule already has comes with { code: "RULE_EXISTS", ruleId }.

Example: {"code":"RULE_EXISTS","ruleId":"1a3c5e7b-9d2f-4b6a-8c0e-4f6a8c0e2b4d"}
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
404The style guide (or the file or rule in the path) does not exist in your organization (`Style guide '<id>' not found`, `File '<id>' not found`, `Rule '<id>' not found`).
application/json
statusCodenumberrequired

HTTP status code.

Example: 409
messagestringrequired

Why the edit was refused, in plain words.

Example: Another rule already says this.
detailsobject

Details to act on, when there are any. A rule text that another rule already has comes with { code: "RULE_EXISTS", ruleId }.

Example: {"code":"RULE_EXISTS","ruleId":"1a3c5e7b-9d2f-4b6a-8c0e-4f6a8c0e2b4d"}
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
POST/v1/style-guide/{id}/rules/copy-language
curl '{{API_BASE_URL}}/v1/style-guide/f4a6c8e0-3b5d-4f7a-9c1e-5b7d9f1a3c6e/rules/copy-language' \
  --request POST \
  --header 'x-api-key: YOUR_API_KEY' \
  --header 'Content-Type: application/json' \
  --data '{
  "from": "hi-IN",
  "to": "mr-IN"
}'
{
  "styleGuideId": "f4a6c8e0-3b5d-4f7a-9c1e-5b7d9f1a3c6e",
  "name": "Brand voice 2026",
  "description": "House style for all consumer-facing copy.",
  "status": "ready",
  "extractionError": null,
  "extractionStartedAt": "2026-09-14T10:32:07.000Z",
  "rulesSource": "extracted",
  "rulesUpdatedAt": "2026-09-14T10:32:07.000Z",
  "ruleCount": 42,
  "fileCount": 2,
  "ruleLanguages": [
    "hi-IN",
    "mr-IN"
  ],
  "createdBy": {
    "id": "universe:member:5e7a9c1b-3d2f-4b6a-8c0e-1f3a5c7e9b2d",
    "name": "Priya Sharma",
    "email": "priya.sharma@example.com"
  },
  "updatedBy": {
    "id": "universe:member:5e7a9c1b-3d2f-4b6a-8c0e-1f3a5c7e9b2d",
    "name": "Priya Sharma",
    "email": "priya.sharma@example.com"
  },
  "createdAt": "2026-09-14T10:32:07.000Z",
  "updatedAt": "2026-09-14T10:32:07.000Z",
  "rules": [
    {
      "id": "1a3c5e7b-9d2f-4b6a-8c0e-4f6a8c0e2b4d",
      "text": "Address the reader as \"aap\", never \"tum\".",
      "languages": [
        "hi-IN"
      ],
      "active": true,
      "source": "extracted",
      "position": 0,
      "createdBy": {
        "id": "universe:member:5e7a9c1b-3d2f-4b6a-8c0e-1f3a5c7e9b2d",
        "name": "Priya Sharma",
        "email": "priya.sharma@example.com"
      },
      "updatedBy": {
        "id": "universe:member:5e7a9c1b-3d2f-4b6a-8c0e-1f3a5c7e9b2d",
        "name": "Priya Sharma",
        "email": "priya.sharma@example.com"
      },
      "createdAt": "2026-09-14T10:32:07.000Z",
      "updatedAt": "2026-09-14T10:32:07.000Z"
    }
  ],
  "generalCount": 18,
  "languageStats": [
    {
      "language": "hi-IN",
      "count": 12,
      "active": 11,
      "effective": 30
    }
  ],
  "files": [
    {
      "fileId": "9c1e3a5b-7d2f-4a6c-8e0b-2d4f6a8c0e1b",
      "filename": "hindi-style-guide.pdf",
      "contentType": "application/pdf",
      "sizeBytes": 482133,
      "languages": [
        "hi-IN"
      ],
      "createdBy": {
        "id": "universe:member:5e7a9c1b-3d2f-4b6a-8c0e-1f3a5c7e9b2d",
        "name": "Priya Sharma",
        "email": "priya.sharma@example.com"
      },
      "createdAt": "2026-09-14T10:32:07.000Z"
    }
  ],
  "attachedTmIds": [
    "0b6f7d2a-41c9-4d8e-a3f5-9c2e7b1d4a60"
  ],
  "memories": [
    {
      "id": "6f1c2a4e-8b3d-4c5a-9e7f-2d1b0a9c8e77",
      "name": "Marketing site"
    }
  ],
  "unsupportedLanguages": [],
  "outcome": {
    "ruleId": "1a3c5e7b-9d2f-4b6a-8c0e-4f6a8c0e2b4d",
    "merged": false
  }
}

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