> ## Documentation Index
> Fetch the complete documentation index at: https://docs.mwirelabs.com/llms.txt
> Use this file to discover all available pages before exploring further.

# Translate

> Text translation. One endpoint, source and target codes.

<Info>Status: **Live** for Khasi, Garo, and Mizo. Other pairs on request, same `POST /v1/translate`.</Info>

```
POST https://<HOST>/v1/translate
```

### Auth

```
Authorization: Bearer <API_KEY>
```

### Request body

| Field    | Type   | Required | Description                |
| -------- | ------ | -------- | -------------------------- |
| `text`   | string | Yes      | Source text.               |
| `source` | string | Yes      | Language code, e.g. `grt`. |
| `target` | string | Yes      | Language code, e.g. `eng`. |

### Response

```json theme={null}
{
  "source": "grt",
  "target": "eng",
  "text": "translated text",
  "request_id": "req_8f2a1c"
}
```

| Pair               | Status     |
| ------------------ | ---------- |
| Khasi ↔ English    | Live       |
| Garo ↔ English     | Live       |
| Mizo ↔ English     | Live       |
| Other listed codes | On request |
