ListCustomAgent

Updated at:

ListCustomAgent returns a list of all custom agents from the personal space and workspaces.

Try it now

Try this API in OpenAPI Explorer, no manual signing needed. Successful calls auto-generate SDK code matching your parameters. Download it with built-in credential security for local usage.

Test

RAM authorization

The table below describes the authorization required to call this API. You can define it in a Resource Access Management (RAM) policy. The table's columns are detailed below:

  • Action: The actions can be used in the Action element of RAM permission policy statements to grant permissions to perform the operation.

  • API: The API that you can call to perform the action.

  • Access level: The predefined level of access granted for each API. Valid values: create, list, get, update, and delete.

  • Resource type: The type of the resource that supports authorization to perform the action. It indicates if the action supports resource-level permission. The specified resource must be compatible with the action. Otherwise, the policy will be ineffective.

    • For APIs with resource-level permissions, required resource types are marked with an asterisk (*). Specify the corresponding Alibaba Cloud Resource Name (ARN) in the Resource element of the policy.

    • For APIs without resource-level permissions, it is shown as All Resources. Use an asterisk (*) in the Resource element of the policy.

  • Condition key: The condition keys defined by the service. The key allows for granular control, applying to either actions alone or actions associated with specific resources. In addition to service-specific condition keys, Alibaba Cloud provides a set of common condition keys applicable across all RAM-supported services.

  • Dependent action: The dependent actions required to run the action. To complete the action, the RAM user or the RAM role must have the permissions to perform all dependent actions.

Action

Access level

Resource type

Condition key

Dependent action

dms:ListCustomAgent

list

*All Resource

*

None None

Request syntax

POST  HTTP/1.1

Request parameters

Parameter

Type

Required

Description

Example

WorkspaceId

string

No

The ID of the workspace.

56kv1pvl9uvt9**********bb

SearchKey

string

No

A keyword for a fuzzy search on the names and descriptions of custom agents.

测试Agent

Status

string

No

The status of the custom agent.

Valid values:

  • NEW :

    Created but not published.

  • RELEASED :

    The agent is published.

  • DRAFT :

    An unpublished draft.

  • OFFLINE :

    The agent is no longer published.

RELEASED

QueryAllReleased

boolean

No

Specifies whether to query all published custom agents. The default value is false.

true

PageNumber

integer

No

The page number. Pages start from 1.

1

PageSize

integer

No

The page size. The default value is 20.

20

Response elements

Element

Type

Description

Example

object

The response schema.

RequestId

string

The ID of the request.

67E910F2-4B62-5B0C-ACA3-7547695C****

Success

boolean

Indicates whether the request was successful. Valid values:

  • true: The request was successful.

  • false: The request failed.

true

ErrorCode

string

The error code.

success

ErrorMessage

string

The error message returned if the request fails.

Specified parameter Tid is not valid.

Data

object

The returned data.

Content

array<object>

A list of custom agent objects.

array<object>

A custom agent object.

CustomAgentId

string

The custom agent ID.

ca-4y3ca4khkcu**********ysf

Name

string

The name of the custom agent.

Agent测试名称

Description

string

The description of the custom agent.

Agent测试描述

DataJson

string

The data scope, specified as a JSON string.

{ "tableFlag" : true, "scope" : "personal", "personal" : { "DataSourceType" : "remote_data_center", "FileId" : "f-5qlrwaw10********s3gpw1z", "Database" : "测试表格******.xlsx", "Tables" : [ "Sheet1" ], "TableIds" : [ "******" ], "RegionId" : "cn-hangzhou" } }

Instruction

string

The instructions.

分析框架: 1、需按日、周、月维度监控核心指标(GMV、订单量、UV、转化率),分析趋势变化及同比/环比波动; 2、划分新老客、渠道、地域进行拆解,识别增长来源与短板; 3、结合用户行为路径(浏览→加购→支付)开展漏斗分析,定位流失环节;

Knowledge

string

The provided knowledge.

核心指标定义: 1、GMV(成交总额)指订单金额总和,含已支付及未支付成功订单; 2、订单量为每日有效下单笔数; 3、UV(独立访客)指访问网站或APP的去重用户数; 4、转化率=支付订单数 / UV,反映流量转化效率;

Status

string

The status of the custom agent.

Valid values:

  • NEW :

    Created but not published.

  • RELEASED :

    Published.

  • DRAFT :

    Draft, not published.

  • OFFLINE :

    Taken offline.

RELEASED

ReleaseTime

string

The time when the agent was published.

2025-12-11T14:04:32.000+00:00

OfflineTime

string

The time when the agent was taken offline.

2025-12-11T14:04:32.000+00:00

Modifier

string

The user who last modified the agent.

20372822********

WorkspaceId

string

The workspace ID.

56kv1pvl9uvt9**********bb

Region

string

The region.

cn-hangzhou

AliyunUid

string

The Alibaba Cloud account ID.

20372822********

AliyunParentId

string

The parent Alibaba Cloud account ID.

16738266********

DmsUnit

string

The current DMS unit.

cn-hangzhou

GmtCreated

string

The time when the agent was created.

2025-12-11T14:04:32.000+00:00

GmtModified

string

The time when the agent was last modified.

2025-12-11T14:04:32.000+00:00

KnowledgeConfigList

array<object>

object

AccessType

string

McpServerId

string

KbUuid

string

ExecutionConfig

object

The execution configuration.

SkipPlan

boolean

Indicates whether to skip the plan confirmation step.

true

SkipSqlConfirm

boolean

Indicates whether to skip all SQL confirmations.

true

SkipWebReportConfirm

boolean

Indicates whether to skip the confirmation for generating a web report.

false

SkipAskHuman

boolean

Indicates whether to prevent user inquiries during the process.

false

TextReportConfig

string

The formatting instructions for the text report.

文字报告要求所有数字不使用阿拉伯数字,全部转为中文数字

WebReportConfig

string

The formatting instructions for the web report.

网页报告要求所有数字不使用阿拉伯数字,全部转为中文数字

DefaultAgent

integer

CreatorUserName

string

The name of the creator.

HaoY*****

ModifierUserName

string

The name of the user who last modified the agent.

HaoY*****

DMSUnit

string

The current DMS unit.

cn-hangzhou

IsScheduleTask

boolean

Indicates whether the agent is configured with a recurring task.

true

NextRuntime

integer

If a recurring task is configured, this indicates its next scheduled runtime.

1767715200

ScheduleTaskConfig

object

RelatedSessionId

string

The ID of the referenced historical session.

4m24*****mg7j2v

CronExpression

string

The cron expression for the recurring task.

0 0 0 ? * 1-7

Query

string

The query for the recurring task.

分析一下这份数据,给出简报

CallbackConfig

object

Type

string

ToolId

string

CallbackPrompt

string

CallbackArgs

string

CallbackTime

integer

PageNumber

integer

The page number.

1

PageSize

integer

The number of entries per page.

20

TotalElements

integer

The total number of entries.

5

TotalPages

integer

The total number of pages.

1

Examples

Success response

JSON format

{
  "RequestId": "67E910F2-4B62-5B0C-ACA3-7547695C****",
  "Success": true,
  "ErrorCode": "success",
  "ErrorMessage": "Specified parameter Tid is not valid.",
  "Data": {
    "Content": [
      {
        "CustomAgentId": "ca-4y3ca4khkcu**********ysf",
        "Name": "Agent测试名称",
        "Description": "Agent测试描述",
        "DataJson": "{\n  \"tableFlag\" : true,\n  \"scope\" : \"personal\",\n  \"personal\" : {\n    \"DataSourceType\" : \"remote_data_center\",\n    \"FileId\" : \"f-5qlrwaw10********s3gpw1z\",\n    \"Database\" : \"测试表格******.xlsx\",\n    \"Tables\" : [ \"Sheet1\" ],\n    \"TableIds\" : [ \"******\" ],\n    \"RegionId\" : \"cn-hangzhou\"\n  }\n}",
        "Instruction": "分析框架:\n1、需按日、周、月维度监控核心指标(GMV、订单量、UV、转化率),分析趋势变化及同比/环比波动;\n2、划分新老客、渠道、地域进行拆解,识别增长来源与短板;\n3、结合用户行为路径(浏览→加购→支付)开展漏斗分析,定位流失环节;",
        "Knowledge": "核心指标定义:\n1、GMV(成交总额)指订单金额总和,含已支付及未支付成功订单;\n2、订单量为每日有效下单笔数;\n3、UV(独立访客)指访问网站或APP的去重用户数;\n4、转化率=支付订单数 / UV,反映流量转化效率;",
        "Status": "RELEASED",
        "ReleaseTime": "2025-12-11T14:04:32.000+00:00",
        "OfflineTime": "2025-12-11T14:04:32.000+00:00",
        "Modifier": "20372822********",
        "WorkspaceId": "56kv1pvl9uvt9**********bb",
        "Region": "cn-hangzhou",
        "AliyunUid": "20372822********",
        "AliyunParentId": "16738266********",
        "DmsUnit": "cn-hangzhou",
        "GmtCreated": "2025-12-11T14:04:32.000+00:00",
        "GmtModified": "2025-12-11T14:04:32.000+00:00",
        "KnowledgeConfigList": [
          {
            "AccessType": "",
            "McpServerId": "",
            "KbUuid": ""
          }
        ],
        "ExecutionConfig": {
          "SkipPlan": true,
          "SkipSqlConfirm": true,
          "SkipWebReportConfirm": false,
          "SkipAskHuman": false
        },
        "TextReportConfig": "文字报告要求所有数字不使用阿拉伯数字,全部转为中文数字",
        "WebReportConfig": "网页报告要求所有数字不使用阿拉伯数字,全部转为中文数字",
        "DefaultAgent": 0,
        "CreatorUserName": "HaoY*****",
        "ModifierUserName": "HaoY*****",
        "DMSUnit": "cn-hangzhou",
        "IsScheduleTask": true,
        "NextRuntime": 1767715200,
        "ScheduleTaskConfig": {
          "RelatedSessionId": "4m24*****mg7j2v\n",
          "CronExpression": "0 0 0 ? * 1-7",
          "Query": "分析一下这份数据,给出简报"
        },
        "CallbackConfig": {
          "Type": "",
          "ToolId": "",
          "CallbackPrompt": "",
          "CallbackArgs": "",
          "CallbackTime": 0
        }
      }
    ],
    "PageNumber": 1,
    "PageSize": 20,
    "TotalElements": 5,
    "TotalPages": 1
  }
}

Error codes

See Error Codes for a complete list.

Release notes

See Release Notes for a complete list.