# Phrase Developer Hub: English API Reference TMS All API Documentation Translation Memory

## Translation Memory

- [Search job's translation memories](https://developers.phrase.com/en/api/tms/all/translation-memory/search-jobs-translation-memories.md): Deprecated. <b>This API is incorrectly implemented, use endpoint <a href="#operation/searchSegmentByJob">Search translation memory for segment by job</a>.</b> </br> Returns at most <i>maxSegments</i> records with <i>score >= scoreThreshold</i> and at most <i>maxSubsegments</i> records which are subs…
- [Search translation memory for segment by job](https://developers.phrase.com/en/api/tms/all/translation-memory/search-translation-memory-for-segment-by-job.md): Returns at most <i>maxSegments</i> records with <i>score >= scoreThreshold</i> and at most <i>maxSubsegments</i> records which are subsegment, i.e. the source text is substring of the query text.
- [List translation memories](https://developers.phrase.com/en/api/tms/all/translation-memory/list-translation-memories.md): Deprecated. Use GET /api2/v2/transMemories instead.
- [Create translation memory](https://developers.phrase.com/en/api/tms/all/translation-memory/create-translation-memory.md): Creates a new translation memory. At least one target language must be provided. Optional associations (client, domain, subDomain, businessUnit) are resolved by ID. Requires the caller to have the transMemoryCreate access right.
- [Delete translation memories (batch)](https://developers.phrase.com/en/api/tms/all/translation-memory/delete-translation-memories-batch.md): Deletes up to 100 translation memories in a single request. When purge=true on the request body all listed TMs are permanently erased. Each TM UID must be accessible to the caller; a missing or forbidden UID causes the entire request to fail.
- [Download cleaned TM](https://developers.phrase.com/en/api/tms/all/translation-memory/download-cleaned-tm.md): Downloads the ZIP archive produced by extractCleaned. Returns 403 Forbidden when the extract-cleaned feature is not enabled for the organisation. The asyncRequest must be in a completed state.
- [Download export](https://developers.phrase.com/en/api/tms/all/translation-memory/download-export.md): Downloads the TMX or XLSX file produced by exportByQueryAsync. The asyncRequest must be in a completed state before downloading. Use the fields parameter to select which columns to include when format=XLSX. Use the packaging parameter to wrap a TMX download in a ZIP archive containing a single TMX e…
- [Extract cleaned translation memory](https://developers.phrase.com/en/api/tms/all/translation-memory/extract-cleaned-translation-memory.md): Queues an asynchronous job that extracts cleaned TM content into a ZIP archive. Returns 403 Forbidden when the extract-cleaned feature is not enabled for the organisation. Poll the returned asyncRequest for completion, then download the result via downloadCleaned/{asyncRequestId}.
- [Get translation memory](https://developers.phrase.com/en/api/tms/all/translation-memory/get-translation-memory.md)
- [Edit translation memory](https://developers.phrase.com/en/api/tms/all/translation-memory/edit-translation-memory.md)
- [Delete translation memory](https://developers.phrase.com/en/api/tms/all/translation-memory/delete-translation-memory.md): Deletes the specified translation memory. When purge=true the TM data is permanently erased; otherwise the TM is soft-deleted and can be recovered by an administrator. Requires internal role and DELETE permission on the TM.
- [Export translation memory](https://developers.phrase.com/en/api/tms/all/translation-memory/export-translation-memory.md): Deprecated. Admin, Project Manager, and Guest callers should use exportByQueryAsync instead (same role restriction applies there). Downloads the full TM as a TMX or XLSX file. The response is a binary octet-stream; the filename is set via the Content-Disposition header. When targetLang is omitted, a…
- [Search translation memory](https://developers.phrase.com/en/api/tms/all/translation-memory/search-translation-memory.md): **Overview** Runs an asynchronous TMX export based on optional wildcard/phrase queries and optional metadata filters. The job streams filtered translation units into TMX via the downstream `/export_tmx_by_query` endpoint. Use `downloadExport/{asyncRequestId}` to fetch the finished file.
- [Import segments](https://developers.phrase.com/en/api/tms/all/translation-memory/import-segments.md): Deprecated. Imports TMX or XLSX segments into an existing TM via an octet-stream body. The Content-Disposition header must supply a filename so the format can be determined. Returns counts of accepted, created, updated and skipped segments.
- [Get last task information](https://developers.phrase.com/en/api/tms/all/translation-memory/get-last-task-information.md)
- [Get translation memory metadata](https://developers.phrase.com/en/api/tms/all/translation-memory/get-translation-memory-metadata.md)
- [List related projects](https://developers.phrase.com/en/api/tms/all/translation-memory/list-related-projects.md): Reverse lookup of the projects a translation memory is attached to, used in, or assigned to.
- [Search translation memory (sync)](https://developers.phrase.com/en/api/tms/all/translation-memory/search-translation-memory-sync.md): **Overview** - Searches a single translation memory using the primary TM scoring pipeline. The endpoint always returns up to 15 `SearchTMResponseDto` entries ordered by score.
- [Search TM content](https://developers.phrase.com/en/api/tms/all/translation-memory/search-tm-content.md): **Overview** - Searches TM content within a single Translation Memory (TM), matching against source and/or target segment text, with optional metadata filters.
- [Insert segment](https://developers.phrase.com/en/api/tms/all/translation-memory/insert-segment.md)
- [Delete all segments](https://developers.phrase.com/en/api/tms/all/translation-memory/delete-all-segments.md): Deprecated. Use DELETE /api2/v2/transMemories/{transMemoryUid}/segments instead.
- [Edit segment](https://developers.phrase.com/en/api/tms/all/translation-memory/edit-segment.md)
- [Delete both source and translation](https://developers.phrase.com/en/api/tms/all/translation-memory/delete-both-source-and-translation.md): Not recommended for bulk removal of segments. This operation is permanent - deleted segments cannot be recovered.
- [Delete segment of given language](https://developers.phrase.com/en/api/tms/all/translation-memory/delete-segment-of-given-language.md): Not recommended for bulk removal of segments. This operation is permanent - deleted segments cannot be recovered.
- [Add target language to translation memory](https://developers.phrase.com/en/api/tms/all/translation-memory/add-target-language-to-translation-memory.md)
- [Wildcard search](https://developers.phrase.com/en/api/tms/all/translation-memory/wildcard-search.md): **Overview** - Searches a single translation memory via Elasticsearch wildcard queries and returns up to `count` matches.
- [List translation memories](https://developers.phrase.com/en/api/tms/all/translation-memory/list-translation-memories-1.md)
- [Align translation memory](https://developers.phrase.com/en/api/tms/all/translation-memory/align-translation-memory.md): Aligns files for a translation memory using its source locale. Submit either a                      sourceFile + targetFile pair, or a single archiveFile containing paired source and                      target files (mutually exclusive). Returns the aligned XLSX as an octet-stream, or…
- [Export translation memory](https://developers.phrase.com/en/api/tms/all/translation-memory/export-translation-memory-1.md): Use [this API](../translation-memory/download-export) to download result. Requires Admin, Project Manager, or Guest role; not available to Linguist or Submitter roles. Linguist-role callers should use [List translation memory segments](../translation-memory/list-translation-memory-segments) instead.
- [Import translation memory](https://developers.phrase.com/en/api/tms/all/translation-memory/import-translation-memory.md): Accepts TMX (.tmx), XLIFF (.xlf, .xliff), MXLIFF (.mxlf, .mxliff), and Excel (.xls, .xlsx). Format is detected from the filename extension. This call is **asynchronous**, use [this API](../async-request/get-asynchronous-request) to check the result. Requires the "Import into TMs created by other use…
- [List translation memory segments](https://developers.phrase.com/en/api/tms/all/translation-memory/list-translation-memory-segments.md): Synchronous, paginated JSON listing of translation memory segments. A blank or "*" query lists all segments. Available to Admin, Project Manager, Guest, and Linguist roles. Each segment's `tagMetadata` holds the actual content behind its inline tags (e.g. locked/non-translatable sub-text, original e…
- [Delete all segments](https://developers.phrase.com/en/api/tms/all/translation-memory/delete-all-segments-1.md): This call is **asynchronous**, use [this API](../async-request/get-asynchronous-request)                     to check the result. This operation is permanent - deleted segments cannot be recovered.
- [Bulk delete segments](https://developers.phrase.com/en/api/tms/all/translation-memory/bulk-delete-segments.md): When `lang` is omitted, both the source and all translations are removed for each segment.                     When `lang` is provided, only that translation is removed.                     This operation is permanent - deleted segments cannot be recovered.

## OpenAPI Specs

- [phrase-tms-all](/openapi/phrase-tms-all.json)
