---
title: "Translates visitor's messages in the room to agent's target lang"
method: POST
path: "/v1/chat/messages/translate"
tags: ["Chat"]
---

# Translates visitor's messages in the room to agent's target lang

`POST /v1/chat/messages/translate`

## Request

- Base URL: `https://api.infoset.app` (the document declares no server; this is the origin it was published from)
- URL: `https://api.infoset.app/v1/chat/messages/translate`
- Auth: one of:
  - HTTP bearer
  - API key in header `X-Api-Key`
- TypeScript: <https://skmtc.dev/infoset/apis/infoset-rest-api/docs/v1/chat/messages/translate/post.ts> (a function with typed inputs; its response is checked against the schema)

## Request body

- ChatTranslateModel
  - `accountId` integer
  - `roomId` integer
  - `targetLang` string, nullable
  - `translationEnabled` integer

## Other responses

- `400`: Bad Request

---

[API](https://skmtc.dev/infoset/apis/infoset-rest-api.md) - [All operations](https://skmtc.dev/infoset/apis/infoset-rest-api/llms.txt) - [OpenAPI document](https://skmtc.dev/infoset/apis/infoset-rest-api/revisions/709c8123f593?raw)
