Get embedding routing configuration through the workspace API¶
Read embedding routing configuration for the current workspace.
GET https://api.moi.matrixorigin.cn/v5/workspaces/{workspace_id}/embeddings/router-config
Before you call this API¶
Set BASE_URL to the product API prefix https://api.moi.matrixorigin.cn/v5; use the corresponding product API URL for a dedicated deployment.
Configure identity, workspace, and object permissions in the same environment.
Request¶
curl --request GET \
"$BASE_URL/workspaces/$WORKSPACE_ID/embeddings/router-config" \
--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. |
|
Path |
string |
Yes |
Workspace ID in the same environment. |
Requires workspace model_router.read. Without an owner configuration row, returns temporary defaults: ROUND_ROBIN, interval 30, retry 2, affinity false. Returned defaults do not establish persistence or actual model availability.
Successful response¶
{
"code": 0,
"data": {
"config": {
"id": 1,
"health_check_interval_seconds": 30,
"max_retries": 2,
"created_at": 1794445200,
"updated_at": 1794445200
}
}
}
HTTP 200。
Field |
Type |
Description |
|---|---|---|
|
integer |
0 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 with the corresponding reads.