List LLM endpoints through the Workspace API¶
List currently readable endpoints for an LLM backend.
GET https://api.moi.matrixorigin.cn/v5/workspaces/{workspace_id}/llm/backends/{backend_id}/endpoints
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/workspaces/$WORKSPACE_ID/llm/backends/$BACKEND_ID/endpoints" \
--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. |
|
Path |
integer |
Yes |
Positive ID returned by an earlier read. |
Requires backend read permission. Sorts by endpoint ID ascending and includes online entries only; backend details also filter offline entries. Retain creation IDs; an empty collection does not prove deletion. data is directly an array, [] when empty.
Successful response¶
{
"code": 0,
"data": [
{
"id": 21,
"backend_id": 12,
"address": "https://provider.example.invalid/v1",
"created_at": 1794445200,
"updated_at": 1794445200
}
]
}
HTTP 200。
Field |
Type |
Description |
|---|---|---|
|
integer |
0 on success. |
|
array (objects) |
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.