---
title: "Translate a message"
method: GET
path: "/messages/{message_id}/translate"
tags: ["Message"]
---

# Translate a message

`GET /messages/{message_id}/translate`

Translate a message's content into the requested language.

## Path parameters

- `message_id` integer, required — ID of the message to translate.

## Query parameters

- `lang` string, required — Target language. Preferably RFC 5646 format.
- `cookie_name` string, nullable

## Response `200`

Successful Response

- Translation
  - `content` string, required — The translated or rephrased text.

## Other responses

- `401` — Missing or invalid authentication.
- `403` — No access to the message's chat, or usage budget exceeded.
- `404` — Message, its chat, or owning user does not exist.
- `422` — Validation Error

---

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