> For clean Markdown of any page, append .md to the page URL.
> For a complete documentation index, see https://docs.getraya.app/llms.txt.
> For AI client integration (Claude Code, Cursor, etc.), connect to the MCP server at https://docs.getraya.app/_mcp/server.

# Language options

Use these UUIDs for **`language_id`** (call language) on `POST /api/agent` and `PATCH /api/agent/{id}`.

> **Note**
>
> Your account may only support a subset of these options. If the API rejects a UUID, contact your administrator.

[Voice Options](/voice-agents/voice-options)

| Name                                                                              | UUID                                   |
| --------------------------------------------------------------------------------- | -------------------------------------- |
| **Auto detect** (detects the caller's language; use it for multi-language agents) | `88296485-1c49-4931-919e-7333986e16da` |
| Assamese India                                                                    | `795a422d-62df-49cc-ba85-b268b384bf48` |
| Bengali India                                                                     | `7f012455-9c9a-4efe-bd68-8de3b2271939` |
| English India                                                                     | `14b8d8a0-5c56-450d-877d-cd3d7d922a00` |
| Gujarati India                                                                    | `23e9dd0c-d62a-4a22-b0b9-1ec3e39d33ef` |
| Hindi India                                                                       | `38695ff2-ee6f-4a1c-837b-27ab241377f7` |
| Kannada India                                                                     | `f727e061-0217-4446-8b23-c13d7a65515f` |
| Malayalam India                                                                   | `28eaf83d-eea3-45c6-9a65-fafb3bbe431c` |
| Marathi India                                                                     | `9046a14a-e2f6-46df-95e8-3a9883ca40f7` |
| Punjabi India                                                                     | `07c2438d-923b-4f50-a8ab-fccf4f8e042e` |
| Tamil India                                                                       | `8892e25b-a9df-4669-8312-7d28e457819a` |
| Telugu India                                                                      | `100912e7-cf45-46f8-af36-713699e1deff` |

The older "Multilingual" option is no longer offered for new agents. Agents that already use it keep working; use Auto detect instead.

## Agents that speak several languages

Set these fields on `POST /api/agent` or `PATCH /api/agent/{id}`. `GET /api/agent/{id}` returns them.

| Field               | What it does                                                                                                                                                                                                        |
| ------------------- | ------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- |
| `languages`         | The languages the agent speaks, as codes from the table below. The **first one is the starting language**.                                                                                                          |
| `language_id`       | Must be **Auto detect** (`88296485-1c49-4931-919e-7333986e16da`) when `languages` has two or more entries.                                                                                                          |
| `voice_id`          | Must be a **multilingual voice** that speaks every language in `languages`. The **M1 voices** are the best fit for multilingual agents. See [multilingual voices](/voice-agents/voice-options#multilingual-voices). |
| `stt_language_mode` | How the caller's language is detected: `auto` (detect every turn), `lock` (lock to the first detected language, code-mix on), `handoff` (lock to the detected language, code-mix off).                              |
| `default_voice_id`  | Only for a **composite** voice, a mix of one voice per language that our team prepares on request: the member voice the call starts with. `null` clears it.                                                         |

| Code | Language | Code | Language  |
| ---- | -------- | ---- | --------- |
| `hi` | Hindi    | `bn` | Bengali   |
| `en` | English  | `as` | Assamese  |
| `mr` | Marathi  | `gu` | Gujarati  |
| `te` | Telugu   | `ml` | Malayalam |
| `kn` | Kannada  | `ne` | Nepali    |
| `ta` | Tamil    | `pa` | Punjabi   |

A request that breaks these rules gets a `400` that says which field to change. There is no hard limit on the number of languages, but with more than 4 the response includes a note in `messages`: detection gets less reliable as the list grows, and we recommend 3 or fewer.

```bash
curl -X PATCH https://v1.getraya.app/api/agent/AGENT_UUID \
  -H "X-API-Key: YOUR_API_KEY" \
  -H "Content-Type: application/json" \
  -d '{
    "language_id": "88296485-1c49-4931-919e-7333986e16da",
    "voice_id": "a5784bf2-f79b-4f84-bbde-75323d533dc1",
    "languages": ["hi", "en", "mr"],
    "stt_language_mode": "lock"
  }'
```

### Copy a template agent

To create many agents with the same setup (for example one agent per workflow), set up one template agent and clone it with [`POST /api/agent/{id}/clone`](/api-reference/agents/clone-agent). The copy gets every setting, including `languages`, `stt_language_mode` and the voice, keeps the outgoing number and has no inbound number. Then change what differs, such as `instructions`, with `PATCH /api/agent/{id}`.

```bash
curl -X POST https://v1.getraya.app/api/agent/TEMPLATE_AGENT_UUID/clone \
  -H "X-API-Key: YOUR_API_KEY" \
  -H "Content-Type: application/json" \
  -d '{ "name": "Loan follow-up - Workflow 2" }'
```

The response is the new agent, with its own `uuid`.