Get Agent assets

Updated at:

Count Agents and their mounted resources by business space. Agent-centric: each value is the deduplicated count of resources mounted on Agents.

Prerequisites

Configure the endpoint and authentication first. See API overview and authentication.

Endpoint

GET/asset_summary

Count Agents and their mounted resources by business space. No input parameters. Agent-centric: each value is the deduplicated count of resources mounted on Agents.

Response fields

agent_countinteger

Total number of Agents (Managed Agent + Agent 1.0/2.0)

modelinteger

Number of mounted models (deduplicated)

toolinteger

Number of mounted MCP tools (deduplicated)

skillinteger

Number of mounted skills (deduplicated, Managed Agent only)

knowledge_baseinteger

Number of mounted knowledge bases (deduplicated, Agent 1.0/2.0 only)

memoryinteger

Number of mounted memory bases (deduplicated, Agent 1.0/2.0 only)

channelinteger

Number of publishing channels (excluding deleted and expired)

networkinteger

Number of web search types (deduplicated by model, only counted when enable_web_search=true)

identityinteger

Number of persona types (deduplicated by name)

NoteFields with no available data return null instead of 0.

Request example

curl -X GET "$BASE_URL/asset_summary" \
  -H "Authorization: Bearer $BAILIAN_API_KEY"

BASE_URL is https://{workspace_id}.cn-beijing.maas.aliyuncs.com/api/v1/agentstudio/security, and BAILIAN_API_KEY is your Alibaba Cloud Bailian API Key.

Response example

{
  "success": true,
  "data": {
    "agent_count": 42,
    "model": 7,
    "tool": 13,
    "skill": 5,
    "knowledge_base": 3,
    "memory": 2,
    "channel": 8,
    "network": 2,
    "identity": 4
  }
}