列出画像模板

更新时间:
复制 MD 格式

分页查询全部画像模板

分页查询当前用户的全部画像模板。

接口

GEThttps://{WorkspaceId}.cn-beijing.maas.aliyuncs.com/api/v2/apps/memory/profile_schemas

调用时请将 {WorkspaceId} 替换为真实的业务空间 ID。

查询参数

page_numinteger可选

页码,默认 1

位置:Query
page_sizeinteger可选

每页数量,默认 10

位置:Query
memory_library_idstring可选

记忆库 ID

位置:Query

响应字段

profile_schemasarray

画像模板列表

profile_schemas[].profile_schema_idstring

画像模板 ID

profile_schemas[].namestring

画像模板名称

profile_schemas[].descriptionstring

画像模板描述

profile_schemas[].plan_versionstring

收费计划

profile_schemas[].extract_scenestring

提取场景

request_idstring

请求 ID

totalinteger

画像模板总数

请求示例

curl -X GET "https://{WorkspaceId}.cn-beijing.maas.aliyuncs.com/api/v2/apps/memory/profile_schemas?page_size=10&page_num=1" \
  --header "Authorization: Bearer $DASHSCOPE_API_KEY" \
  --header "Content-Type: application/json"

响应示例

{
  "profile_schemas": [
    {
      "description": "包含年龄和兴趣的用户信息",
      "extract_scene": "efficient",
      "name": "用户基础画像",
      "plan_version": "pro",
      "profile_schema_id": "50edf54eaa5842e891d959ae115205be"
    },
    {
      "description": "系统自动创建的默认画像模板",
      "extract_scene": "efficient",
      "name": "默认画像",
      "plan_version": "pro",
      "profile_schema_id": "976e2e6e59f64ed0b25e6ca0268624bb"
    }
  ],
  "request_id": "3c46983f-85fd-92a5-8440-2e459cc91b2f",
  "total": 2
}

重要查看单个模板详情使用 GetProfileSchema。