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

The API version moves from 1.15.0 to 1.16.0. The API adds no operation. It adds US English, the
caller region of a workspace, four error codes, and groups and lists in the JSON body of a webhook
tool. The sections below list each change.

## Version 1.16.0: US English and the caller region

`settings.language` accepts US English: `english_us` in `initial_draft` on `createAgent`
(`POST /agents`), and `en-US` on `updateAgentDraft` (`PATCH /agents/{agent_id}/draft`) and
`validateAgentDraft` (`POST /agents/{agent_id}/draft/validate`). `english` and `en` are Indian
English. The language chooses the agent's default models. An agent that was never published
follows a language change at once, and a published agent at its next publish. US English has
female voices only.

`getContext` (`GET /context`) adds the required field `caller_region`, with the known values
`india` and `us`. It is the region whose call hosts and model servers run the workspace's new
calls. It is not data residency. A person who can edit the workspace changes it in the workspace
settings of the app, and the change applies to new calls only.

Four new `409` error codes refuse a language that the workspace cannot run. Nothing is written,
and none of them is retryable:

* `language_unavailable`: the workspace is not offered the language in its caller region.
  `createAgent`, `unarchiveAgent`, `updateAgentDraft`, `publishAgent` and `rollbackAgent` return
  it.
* `language_gender_unavailable`: the language has no voice of the agent's grammatical gender.
  `details.genders` lists the genders it has. `createAgent` and `updateAgentDraft` return it.
* `agent_model_language_mismatch`: the agent runs a custom model that does not support the
  language. `updateAgentDraft`, `publishAgent` and `rollbackAgent` return it.
* `not_served_in_region`: the caller region has no model servers (`details.reason` `no_pool`) or
  no call host (`no_call_host`) for the agent's language. `createCall` (`POST /calls`) and
  `createAgentSession` (`POST /agent-sessions`) return it. The call never runs on the models of
  another language.

**What to do:** Nothing for existing agents. Read `caller_region` as an open list, and keep an
unknown value. To build a US English agent, send `english_us` with a female voice. Handle the four
codes as described in [Build and publish an agent](/guides/agents#errors) and
[Errors](/concepts/errors#workspace-and-call-start-refusals).

## Version 1.16.0: groups and lists in a tool body

A webhook tool parameter can now be a group or a list in a JSON body. `createAgentTool`
(`POST /agents/{agent_id}/tools`), `validateAgentTool` (`POST /agents/{agent_id}/tools/validate`)
and `replaceAgentTool` (`PUT /agents/{agent_id}/tools/{tool_id}`) accept:

* `schema.type` `object`, with `fields`: the parameters of the group, each with `location` `body`.
* `schema.type` `array`, with `items`: the shape of one item, a plain value or a group of
  `fields`. A list cannot hold a list.
* `when_empty` `"null"` on an optional body value that the model fills, to send the key with JSON
  `null` when the model leaves the value out. Without it, the key is not sent.

A tool with a group or a list needs `content_type` `application/json`. One tool holds at most 5
levels and 64 values. Every read of a tool, and the tools of each published version, add `fields`,
`items` and `when_empty`, which are `null` when they do not apply.

**What to do:** Nothing for existing tools. Keep unknown `schema.type` values when you read a tool.
To send a nested body, follow [Add tools and MCP servers](/guides/tools#rules).