<span id="读取解析路由配置"></span>

# Get parser routing configuration

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

Read parser routing configuration.


```http
GET https://api.moi.matrixorigin.cn/v5/parser/router
```

<span id="调用前准备"></span>

## Before you call this API

`BASE_URL` uses the product API prefix `https://api.moi.matrixorigin.cn/v5`. For a dedicated deployment, use its corresponding product API address.

[Configure identity, workspace, and privileges in the same environment](objects.md#prepare).

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

## Request

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

```bash
curl --request GET \
  "$BASE_URL/parser/router" \
  --header "X-API-Key: $MOI_KEY" \
  --header "X-Workspace-ID: $WORKSPACE_ID"
```

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

| Parameter | Location | Type | Required | Description |
| --- | --- | --- | --- | --- |
| `X-Workspace-ID` | Header | string | Yes | Workspace ID from the same environment. |

Requires workspace model_router.read. Without a record, the owner supplies temporary ROUND_ROBIN/30/2/false defaults. Reading does not prove persistence or actual routing by strategy.

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

<span id="成功响应"></span>

## Successful response

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

```json
{
  "code": "OK",
  "msg": "OK",
  "data": {
    "strategy": "ROUND_ROBIN",
    "health_check_interval": 30,
    "max_retries": 2,
    "session_affinity": false
  }
}
```

:::::
:::::{tab-item} Fields

| Field | Type | Description |
| --- | --- | --- |
| `code` | string | HTTP 200; OK on success. |
| `msg` | string | OK on success. |
| `data` | object | [Actual object or null](objects.md#responses); do not infer from LLM wrappers. |

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

<span id="错误响应"></span>

## Error response

[Errors and result confirmation](objects.md#errors) distinguishes actual inputs, object admission, and business results.
