查询连接列表¶
查询当前工作区保存的智能体连接。
GET https://moi.matrixorigin.cn/newmoi/workspaces/{workspace_id}/connections
调用前准备¶
准备具有目标工作区访问权限的个人访问令牌和目标工作区 ID。
请求参数¶
curl "https://moi.matrixorigin.cn/newmoi/workspaces/$WORKSPACE_ID/connections" -H "X-API-Key: $AI_STUDIO_API_KEY" -H "X-Workspace-ID: $WORKSPACE_ID"
此接口没有额外请求参数。
成功响应¶
成功时返回 200 和连接列表。
{"code":0,"data":{"items":[],"total":0}}
字段 |
类型 |
说明 |
|---|---|---|
|
integer |
匹配总数。 |
字段 |
类型 |
说明 |
|---|---|---|
|
array |
当前页连接。 |
错误响应¶
{"code":6,"message":"unauthenticated"}
字段 |
类型 |
说明 |
|---|---|---|
|
integer |
错误代码。 |
|
string |
面向调用者的错误信息。 |
最后更新于