---
title: "Translate file"
method: POST
path: "/file-translations-api/v2/accounts/{accountUid}/files/{fileUid}/mt"
tags: ["File Machine Translations (MT)"]
---

# Translate file

`POST /file-translations-api/v2/accounts/{accountUid}/files/{fileUid}/mt`

## Request

- Base URL: `https://api.smartling.com`
- URL: `https://api.smartling.com/file-translations-api/v2/accounts/{accountUid}/files/{fileUid}/mt`
- Auth: HTTP bearer

Perform translation for a previously uploaded file given a source locale and a set of target locales.

## Path parameters

- `accountUid` string, required
- `fileUid` string, required

## Request body

- object
  - `sourceLocaleId` string, required: Locale identifier. Either a 2-letter language code (`en`) or a language-region pair (`en-US`). The language part is always lowercase; the region part is always uppercase.
  - `targetLocaleIds` LocaleId[], required: List of target locales that the file needs to be translated into.
  - `profileUid` string: Mt profile uid that will be used for file translation.

## Response `202`

OK

- MtResponse
  - `response` object, required
    - `code` 'ACCEPTED', required: Indicates whether the response was successful or what error has occurred.
    - `data` object
      - `mtUid` string: Unique identifier for the file mt action.

## Other responses

- `400`: Provided request parameters are invalid.
- `401`: Provided credentials are not valid.
- `429`: Too many simultaneous API requests.
- `500`: Unexpected error

## Changes

- **2026-10-17** `2cd7a8215799`: 1 info
  - endpoint added

[Operation history](https://skmtc.dev/smartling/apis/smartling-rest-api-reference/changes/file-translations-api/v2/accounts/:accountUid/files/:fileUid/mt/post.md)

---

[API](https://skmtc.dev/smartling/apis/smartling-rest-api-reference.md) - [All operations](https://skmtc.dev/smartling/apis/smartling-rest-api-reference/llms.txt) - [OpenAPI document](https://skmtc.dev/smartling/apis/smartling-rest-api-reference/revisions/e63066e7f5e9?raw)
