List Profile Schemas

Updated at:

Query all profile schemas with pagination

Paginated query of all profile schemas for the current user.

Endpoint

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

Replace {WorkspaceId} with your actual workspace ID.

Query parameters

page_numintegerOptional

Page number; defaults to 1

Location: Query
page_sizeintegerOptional

Number of schemas per page; defaults to 10

Location: Query
memory_library_idstringOptional

Memory library ID

Location: Query

Response fields

profile_schemasarray

List of profile schemas

profile_schemas[].profile_schema_idstring

Profile schema ID

profile_schemas[].namestring

Profile schema name

profile_schemas[].descriptionstring

Profile schema description

profile_schemas[].plan_versionstring

Billing plan

profile_schemas[].extract_scenestring

Extraction mode

request_idstring

Request ID

totalinteger

Total number of profile schemas

Request examples

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"

Response example

{
  "profile_schemas": [
    {
      "description": "User information including age and interests",
      "extract_scene": "efficient",
      "name": "Basic user profile",
      "plan_version": "pro",
      "profile_schema_id": "50edf54eaa5842e891d959ae115205be"
    },
    {
      "description": "Default profile schema created by the system",
      "extract_scene": "efficient",
      "name": "Default profile",
      "plan_version": "pro",
      "profile_schema_id": "976e2e6e59f64ed0b25e6ca0268624bb"
    }
  ],
  "request_id": "3c46983f-85fd-92a5-8440-2e459cc91b2f",
  "total": 2
}

ImportantTo view details of a single schema, use GetProfileSchema.