Get embedding routing through the root-level API¶
Read embedding model routing configuration for the current Workspace.
GET https://api.moi.matrixorigin.cn/v5/embedding/router
Before you call this API¶
Set BASE_URL to the product API prefix https://api.moi.matrixorigin.cn/v5. For private deployments, use the corresponding product API URL.
Configure identity, Workspace, and object permissions in the same environment.
Request¶
curl --request GET \
"$BASE_URL/embedding/router" \
--header "X-API-Key: $MOI_KEY" \
--header "X-Workspace-ID: $WORKSPACE_ID"
Parameter |
Location |
Type |
Required |
Description |
|---|---|---|---|---|
|
Headers |
string |
Yes |
Workspace ID in the same environment. |
Requires Workspace model_router.read. With no owner configuration row, returns temporary defaults: ROUND_ROBIN, interval 30, retries 2, affinity false. Returned defaults do not establish persistence or actual model callability.
Successful response¶
{
"code": "OK",
"msg": "OK",
"data": {
"strategy": "ROUND_ROBIN",
"health_check_interval": 30,
"max_retries": 2,
"session_affinity": false
}
}
HTTP 200。
Field |
Type |
Description |
|---|---|---|
|
string |
OK on success. |
|
string |
OK on success. |
|
object |
Error responses¶
Errors and result confirmation distinguishes the two protocols. Parse omitted fields, SDK zero values, and empty HTTP responses separately. Confirm writes using the corresponding read operation.