查询回调规则列表¶
查询工作区中的回调路由规则。
GET https://moi.matrixorigin.cn/newmoi/workspaces/{workspace_id}/callback-rules
调用前准备¶
准备具有目标工作区访问权限的个人访问令牌和目标工作区 ID。
请求参数¶
curl "https://moi.matrixorigin.cn/newmoi/workspaces/$WORKSPACE_ID/callback-rules" -H "X-API-Key: $AI_STUDIO_API_KEY" -H "X-Workspace-ID: $WORKSPACE_ID"
此接口没有额外请求参数。
成功响应¶
成功时返回 200 和回调规则列表。
{"code":0,"data":{"items":[]}}
字段 |
类型 |
说明 |
|---|---|---|
|
integer |
本次返回的最大数量。 |
|
integer |
本次返回的起始位置。 |
字段 |
类型 |
说明 |
|---|---|---|
|
integer |
匹配规则总数。 |
字段 |
类型 |
说明 |
|---|---|---|
|
array |
当前页回调规则。 |
|
string |
回调规则 ID;可用于查看、更新或删除该规则。 |
错误响应¶
{"code":6,"message":"unauthenticated"}
字段 |
类型 |
说明 |
|---|---|---|
|
integer |
错误代码。 |
|
string |
面向调用者的错误信息。 |
最后更新于