Get the profile attributes of a specified user
Gets the profile attributes of a specified user. Profile extraction is asynchronous. After calling AddMemory, the first query may not contain attribute values, so retry according to your application's retry policy.
If all returned attribute values are empty, verify that AddMemory was called with the same
profile_schema. Without that parameter, profile extraction is not triggered.Method and endpoint
GET https://dashscope.aliyuncs.com/api/v2/apps/memory/profile_schemas/{profile_schema_id}/user_profile
Request parameters
| Parameter | Type | Required | Location | Description |
|---|---|---|---|---|
profile_schema_id | string | Yes | Path | Profile schema ID |
user_id | string | Yes | Query | Memory entity ID |
memory_library_id | string | No | Query | Memory library ID |
Response
| Field | Type | Description |
|---|---|---|
request_id | string | Request ID |
profile.schema_name | string | Profile schema name |
profile.schema_description | string | Profile schema description |
profile.attributes | array | Profile attribute list |
profile.attributes[].id | string | Attribute ID |
profile.attributes[].name | string | Attribute name |
profile.attributes[].value | string | Attribute value |