---
title: "POST /Detect"
method: POST
path: "/Detect"
tags: ["Detect"]
---

# POST /Detect

`POST /Detect`

Identifies the language of a string of text.

## Query parameters

- `api-version` string, required

## Headers

- `X-ClientTraceId` string

## Request body

- DetectTextInput[]
  - `text` string

## Response `200`

Success

- object[] — Example of a successful detect request
  - `text` string

## Other responses

- `default` — Error response.

## Changes

- **2026-07-13** `70ce120aedb4` — 1 info
  - endpoint added
- **2021-04-05** `19edd817cb03` — 1 breaking
  - api path removed without deprecation

[Change history](https://skmtc.dev/azure/apis/cognitiveservices-translatortext/changes/Detect/post.md)

---

[API](https://skmtc.dev/azure/apis/cognitiveservices-translatortext.md) · [All operations](https://skmtc.dev/azure/apis/cognitiveservices-translatortext/llms.txt) · [OpenAPI document](https://skmtc-service-production.skmtc.workers.dev/v1/apis/azure/cognitiveservices-translatortext/revisions/70ce120aedb4/schema)
