Get parser routing configuration

Read parser routing configuration.

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

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.

Request

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

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.

Successful response

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

Field

Type

Description

code

string

HTTP 200; OK on success.

msg

string

OK on success.

data

object

Actual object or null; do not infer from LLM wrappers.

Error response

Errors and result confirmation distinguishes actual inputs, object admission, and business results.

Last updated on