Get Profile Schema

Updated at:

Get details of a specified profile schema

Gets details of a specified profile schema, including field definitions and configuration information.

Endpoint

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

Replace {WorkspaceId} with your actual workspace ID.

Path parameters

profile_schema_idstringRequired

Profile schema ID

Location: Path

Query parameters

memory_library_idstringOptional

Memory library ID

Location: Query

Response fields

request_idstring

Request ID

namestring

Profile schema name

descriptionstring

Profile schema description

plan_versionstring

Billing plan

extract_scenestring

Extraction mode

attributesarray

List of profile attributes

attributes[].attribute_idstring

Attribute ID

attributes[].namestring

Attribute name

attributes[].descriptionstring

Attribute description

Request examples

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

Response example

{
  "attributes": [
    {"attribute_id": "04eb06f5f04a437b82d07ceb088103f9", "description": "The user's interests and hobbies", "name": "Hobbies"},
    {"attribute_id": "2eff4652a6bc47b0803635033b1e08dd", "description": "The user's occupation", "name": "Occupation"},
    {"attribute_id": "bb28e6cd522443fc9bf7e75b1377bf9d", "description": "The user's age", "name": "Age"}
  ],
  "description": "User information including age and interests",
  "extract_scene": "efficient",
  "name": "Basic user profile",
  "plan_version": "pro",
  "request_id": "5eb49009-6782-95f4-85da-c5f20d288d9a"
}

ImportantTo update a schema, use UpdateProfileSchema.