List plugin account connections¶
List plugin account connections visible to the current user.
GET https://api.moi.matrixorigin.cn/v5/workspaces/{workspace_id}/plugin-connections
Before you call this API¶
Prepare the target Workspace ID and a personal access token that can access the resources and perform this operation. Use the actual resource identifier for workspace_id in the path, and also supply the Workspace ID in X-Workspace-ID. See Shared objects and inputs for environment variable sources.
Query parameters¶
curl -X GET "https://api.moi.matrixorigin.cn/v5/workspaces/$WORKSPACE_ID/plugin-connections" \
-H "X-API-Key: $AI_STUDIO_API_KEY" \
-H "X-Workspace-ID: $WORKSPACE_ID" \
--get \
--data-urlencode "limit=20" \
--data-urlencode "offset=0"
Set $NEXT_OFFSET to the previous offset plus the current page’s items count. Request another page only while it is less than total.
curl -X GET "https://api.moi.matrixorigin.cn/v5/workspaces/$WORKSPACE_ID/plugin-connections" \
-H "X-API-Key: $AI_STUDIO_API_KEY" \
-H "X-Workspace-ID: $WORKSPACE_ID" \
--get \
--data-urlencode "limit=20" \
--data-urlencode "offset=$NEXT_OFFSET"
The list is restricted to the current user’s plugin connections and current permissions. Save id and version; query authorization state separately. Paginate using offset and total.
Field |
Type |
Required |
Description |
|---|---|---|---|
|
integer |
No |
1–100 items per page, default 20. Each parameter name may appear only once. |
|
integer |
No |
Zero-based offset, default 0; must not be negative. Each parameter name may appear only once. |
Successful response¶
{
"code": 0,
"data": {
"items": [],
"total": 0
}
}
Field |
Type |
Description |
|---|---|---|
|
integer |
0 on success. |
|
object |
Data returned by this operation. |
|
array |
Results on this page; read fields according to the resource object. |
|
integer |
Total records under current filters. |
Error responses¶
Handle numeric business-error code, message, and details.reason separately from authorization-layer string codes. See Errors and states. On a state or version conflict, read the current resource first; do not automatically change identifiers or retry writes.