# Translate a received message

`POST /workspace/inbox/threads/{id}/messages/{turnId}/translate` · Rivier · inbox

Translate a received message; the original stays and both are shown, marked as AI.

- Scope: inbox:write
- Graphql: Mutation.inboxAiTranslateMessage
- Sdk: inbox.ai.translateMessage
- Cli: inbox ai translate message

## Parameters

- `id` (path, required), string
- `turnId` (path, required), string

## Request body

`application/json`

```json
{
  "type": "object",
  "properties": {
    "to": {
      "type": "string",
      "minLength": 2,
      "maxLength": 10
    }
  },
  "required": [
    "to"
  ],
  "additionalProperties": false
}
```

## Responses

- `200`: Success
- `400`: The request was malformed
- `401`: No valid credential
- `403`: The credential lacks the scope, origin or address
- `429`: Over the key's rate limit; see Retry-After

## Example

```sh
curl -X POST 'https://api.rivier.ai/workspace/inbox/threads/{id}/messages/{turnId}/translate' \
  -H 'Authorization: Bearer $KEY' \
  -H 'Content-Type: application/json' \
  -d '{
  "to": "string"
}'
```
