---
title: "Translate a text."
method: POST
path: "/api/apps/{app}/translations"
tags: ["Translations"]
---

# Translate a text.

`POST /api/apps/{app}/translations`

## Path parameters

- `app` string, required

## Request body

- TranslateDto
  - `text` string, required — The text to translate.
  - `targetLanguage` string, required — The target language.
  - `sourceLanguage` string — The optional source language.

## Response `200`

Text translated.

- TranslationDto
  - `status` 'Translated' | 'LanguageNotSupported' | 'NotTranslated' | 'NotConfigured' | 'Unauthorized' | 'Failed', required
  - `result` 'Translated' | 'LanguageNotSupported' | 'NotTranslated' | 'NotConfigured' | 'Unauthorized' | 'Failed', required
  - `text` string, nullable — The translated text.

## Other responses

- `400` — Validation error.
- `500` — Operation failed.

---

[API](https://skmtc.net/squidex/apis/squidex-api.md) · [All operations](https://skmtc.net/squidex/apis/squidex-api/llms.txt) · [OpenAPI document](https://skmtc-service-staging.skmtc.workers.dev/v1/apis/squidex/squidex-api/revisions/b4a9b62f113a/schema)
