---
title: "Detect Language"
method: POST
path: "/chat/detect-language"
tags: ["chat", "chat"]
---

# Detect Language

`POST /chat/detect-language`

Detect the language of a given text.

Signed in only (2026-09-18 route-auth review). It reads nobody's data, but
it runs a model on arbitrary text for whoever asks, and all three callers
(MessageSparkleCheck, CallChatBox, useMessageCheck) already send the token.

## Headers

- `authorization` string, nullable

## Request body

- LanguageDetectionRequest
  - `text` string, required

## Response `200`

Successful Response

- object

## Other responses

- `422` — Validation Error

## Changes

> 21 revisions in range; 1 not diffed.

- **2026-09-21** `13996d792e23` — 1 info
  - added the new optional `header` request parameter `authorization`

[Change history](https://skmtc.dev/fluentea/apis/aurqa-language-learning-platform-refactored/changes/chat/detect-language/post.md)

---

[API](https://skmtc.dev/fluentea/apis/aurqa-language-learning-platform-refactored.md) · [All operations](https://skmtc.dev/fluentea/apis/aurqa-language-learning-platform-refactored/llms.txt) · [OpenAPI document](https://skmtc.dev/fluentea/apis/aurqa-language-learning-platform-refactored/revisions/13996d792e23?raw)
