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

# Detect file language

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

## Request

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

Request source language detection for an existing file.

## Path parameters

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

## Response `202`

OK

- LanguageDetectionResponse
  - `response` object, required
    - `code` 'ACCEPTED', required: Indicates whether the response was successful or what error has occurred.
    - `data` object
      - `languageDetectionUid` string: Unique identifier for the language detection 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/language-detection/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)
