Query the agent that references this skill¶
Lists the agents in the current workspace that are effectively bound to the specified skills. The response only contains the agent display summary and does not return the complete agent definition.
GET $CLOUDSIGMA_API_BASE/workspaces/{workspace_id}/skills/{skill_id}/referencing-agents
Before you call¶
Configure the CloudSigma regional endpoint and authentication before calling. The endpoint, credentials, workspace, and resource IDs must belong to the same region. First query the skill list to obtain the skill ID. Prepare the personal access token, target workspace ID, and skill ID that can access the target workspace.
Request parameters¶
curl "$CLOUDSIGMA_API_BASE/workspaces/$WORKSPACE_ID/skills/$SKILL_ID/referencing-agents?limit=20" \
-H "X-API-Key: $CLOUDSIGMA_API_KEY" \
-H "X-Workspace-ID: $WORKSPACE_ID"
Path parameters
Parameter |
Type |
Required |
Description |
|---|---|---|---|
|
string |
Yes |
Query the current workspace ID of the reference relationship. |
|
string |
Yes |
The skill ID being referenced. |
Query parameters
Parameter |
Type |
Required |
Description |
|---|---|---|---|
|
string |
No |
The workspace to which the resource in the reference belongs. Matches the current workspace when omitted or empty. The explicit value must be a legal workspace identifier. This parameter does not trigger a system catalog rollback. |
|
integer |
No |
Quantity per page. Default |
|
string |
No |
|
Successful response¶
{
"code": 0,
"data": {
"items": [
{
"id": "agent_01",
"workspace_id": "ws_01",
"name": "数据助手",
"status": "active",
"description": "",
"updated_at": "2026-01-02T15:04:05Z",
"knowledge_base_count": 1
}
],
"limit": 20,
"next_cursor": "cursor_01"
}
}
Field |
Type |
Description |
|---|---|---|
|
integer |
|
|
object |
The result of this request. |
|
array |
Result list. |
|
string |
agent ID. Can be omitted if empty or not set. |
|
string |
The identity of the workspace to which it belongs. Can be omitted if empty or not set. |
|
string |
Name. Can be omitted if empty or not set. |
|
string |
Description. Can be omitted if empty or not set. |
|
string |
status. Can be omitted if empty or not set. |
|
string |
Last updated time. Use RFC 3339 format. Can be omitted if empty or not set. |
|
integer |
The number of bound knowledge bases. Can be omitted if empty or not set. |
|
integer |
The actual return quantity limit this time. |
|
string |
Next page cursor. Can be omitted if empty or not set. |
Error response¶
{
"code": 2,
"message": "<错误信息>"
}
Common HTTP errors
HTTP status code |
error code |
Description |
|---|---|---|
|
|
Common reasons: The skill ID, |
|
|
Common Cause: Valid identity credentials are missing. Recommended Action: Check the API Key. |
|
|
Common reasons: The current identity does not have permission to read skills or candidate agents. Recommended Action: Check the workspace authorization. |
|
|
Common reasons: The skill or agent reference service is temporarily unavailable. Recommended Action: Try again later. |