---
title: "Import TM"
method: POST
path: "/tms/{tmId}/imports"
tags: ["Translation Memory"]
---

# Import TM

`POST /tms/{tmId}/imports`

## Request

- Base URL: `https://api.crowdin.com/api/v2`
- URL: `https://api.crowdin.com/api/v2/tms/{tmId}/imports`
- Auth: none declared
- TypeScript: <https://skmtc.dev/crowdin/apis/crowdin-enterprise-api-v2/docs/tms/:tmId/imports/post.ts> (a function with typed inputs; its response is checked against the schema)

**Required scopes:** `tm` (Read and Write).

## Path parameters

- `tmId` integer, required

## Request body

- TmUploadForm
  - `storageId` integer, required: Storage Identifier. Get via [List Storages](#operation/api.storages.getMany) Supported file formats: * TMX * CSV * XLS/XLSX See TMX 1.4b Specification
  - `firstLineContainsHeader` boolean: Defines whether file includes first row header that should not be imported __Note:__ Used for upload of CSV or XLS/XLSX files only
  - `scheme` TmLanguageScheme: Defines data columns mapping. The passed value should be an associative array containing both language id and column number: * `{languageId}` – Crowdin id for the specified language. Get via [List Supported Languages](#operation/api.languages.getMany) * `{columnNumber}` – a column number. Please note, that column numbering starts at 0 __Note:__ Required for CSV or XLS/XLSX files

## Response `202`

TM import was successfully started

- TmImportResource: Base schema of resource container. Container is a wrapper object that contains payload in required `data` property and provides space for adding any other metadata.
  - `data` TmImport, required
    - `identifier` string
    - `status` string
    - `progress` integer: in percentages
    - `attributes` object
      - `tmId` integer
      - `storageId` integer
      - `firstLineContainsHeader` boolean, nullable
      - `scheme` object
        - `en` integer
        - `de` integer
    - `createdAt` string, date-time
    - `updatedAt` string, date-time
    - `startedAt` string, date-time, nullable
    - `finishedAt` string, date-time, nullable

## Other responses

- `400`: Invalid Request Parameters
- `404`: TM or storage with specified id was not found
- `405`: Method Not Allowed
- `409`: Conflict

---

[API](https://skmtc.dev/crowdin/apis/crowdin-enterprise-api-v2.md) - [All operations](https://skmtc.dev/crowdin/apis/crowdin-enterprise-api-v2/llms.txt) - [OpenAPI document](https://skmtc.dev/crowdin/apis/crowdin-enterprise-api-v2/revisions/dc68744c5384?raw)
