<span id="读取首页样例语言"></span>

# Get the home sample language

```{raw} html
<div class="mo-api-page-show-toc" aria-hidden="true"></div>
```

`GET /workspaces/{id}/agent-home-guide/sample-locale` uses an ordinary product identity. There is no request body or language selection parameter. The generated service boundary requires regular access; a workspace path does not exempt authentication.


<span id="请求参数"></span>

## Request parameters

:::::::{div} mo-api-tabs
::::::{tab-set}
:::::{tab-item} Request example

```text
GET https://api.moi.matrixorigin.cn/v5/workspaces/{id}/agent-home-guide/sample-locale
```

:::::
:::::{tab-item} Parameters

An ordinary product identity for the current workspace is required. No business request body or language selection parameters.

:::::
::::::
:::::::


<span id="成功字段"></span>

## Success fields

:::::::{div} mo-api-tabs mo-api-response-tabs
::::::{tab-set}
:::::{tab-item} Fields

Returns the `writeOK` string `code: "OK"` envelope. `data` contains:

| Field | Type | Meaning |
| --- | --- | --- |
| `region` | string | Effective deployment region: `cn` or `global` |
| `language` | string | `zh-CN` or `en-US`, respectively |

The interface language does not affect the result. This method neither updates user preferences nor initializes or uploads samples. Its GET handler shares the file-resolution error mapper, but the locale implementation only reads validated configuration. The method itself does not trigger every file-missing error.

:::::
::::::
:::::::

<span id="验证边界"></span>

## Verification boundaries

Source fields and service cases for both regions have been checked. Local service results do not establish an end-to-end GET pass.
