<span id="列出工作区嵌入模型"></span>

# List workspace embedding models

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

Calls the same model-list owner, but projects only model/backend_id/backend_name and optional type/dim, without source/system_default/model_type/reasoning_efforts.


```http
GET https://api.moi.matrixorigin.cn/v5/workspaces/{workspace_id}/embeddings/models
```

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

## 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 model information 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/workspaces/$WORKSPACE_ID/embeddings/models" \
  --header "X-API-Key: $MOI_KEY" \
  --header "X-Workspace-ID: $WORKSPACE_ID"
```

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

| Parameter | Location | Type | Required | Description |
| --- | --- | --- | --- | --- |
| `X-Workspace-ID` | Headers | string | Yes | Workspace ID in the same environment. |
| `workspace_id` | Path | string | Yes | Must match the workspace header. |

Calls the same model-list owner, but projects only model/backend_id/backend_name and optional type/dim, without source/system_default/model_type/reasoning_efforts. This entry point does not pass service_slot to the owner. It is not a byte-for-byte alias of root /embedding/models.

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

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

## Successful response

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

```json
{
  "code": 0,
  "data": {
    "models": [
      {
        "model": "bge-m3",
        "backend_id": 13,
        "backend_name": "workspace-embedding"
      }
    ]
  }
}
```

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

| Field | Type | Description |
| --- | --- | --- |
| `code` | integer | 0 on success. |
| `data` | object | [Model, probe, or settings result](objects.md#response). |

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

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

## Error responses

[States and errors](objects.md#errors) distinguishes string and numeric protocols. Confirm probe candidates, persistence, and actual inference separately.
