const options = {
method: 'POST',
headers: {Authorization: 'Bearer <token>', 'Content-Type': 'application/json'},
body: JSON.stringify({containerTag: '<string>'})
};
fetch('https://api.supermemory.ai/v4/profile', options)
.then(res => res.json())
.then(res => console.log(res))
.catch(err => console.error(err));import requests
url = "https://api.supermemory.ai/v4/profile"
payload = { "containerTag": "<string>" }
headers = {
"Authorization": "Bearer <token>",
"Content-Type": "application/json"
}
response = requests.post(url, json=payload, headers=headers)
print(response.text)curl --request POST \
--url https://api.supermemory.ai/v4/profile \
--header 'Authorization: Bearer <token>' \
--header 'Content-Type: application/json' \
--data '
{
"containerTag": "<string>"
}
'{
"profile": {
"static": [
"<string>"
],
"dynamic": [
"<string>"
],
"buckets": {}
},
"searchResults": {
"results": [
"<unknown>"
],
"total": 123,
"timing": 123
}
}{
"error": "Invalid request parameters",
"details": "Query must be at least 1 character long"
}{
"error": "Invalid request parameters",
"details": "Query must be at least 1 character long"
}{
"error": "Invalid request parameters",
"details": "Query must be at least 1 character long"
}{
"error": "Invalid request parameters",
"details": "Query must be at least 1 character long"
}Get user profile
Get user profile with optional search results
const options = {
method: 'POST',
headers: {Authorization: 'Bearer <token>', 'Content-Type': 'application/json'},
body: JSON.stringify({containerTag: '<string>'})
};
fetch('https://api.supermemory.ai/v4/profile', options)
.then(res => res.json())
.then(res => console.log(res))
.catch(err => console.error(err));import requests
url = "https://api.supermemory.ai/v4/profile"
payload = { "containerTag": "<string>" }
headers = {
"Authorization": "Bearer <token>",
"Content-Type": "application/json"
}
response = requests.post(url, json=payload, headers=headers)
print(response.text)curl --request POST \
--url https://api.supermemory.ai/v4/profile \
--header 'Authorization: Bearer <token>' \
--header 'Content-Type: application/json' \
--data '
{
"containerTag": "<string>"
}
'{
"profile": {
"static": [
"<string>"
],
"dynamic": [
"<string>"
],
"buckets": {}
},
"searchResults": {
"results": [
"<unknown>"
],
"total": 123,
"timing": 123
}
}{
"error": "Invalid request parameters",
"details": "Query must be at least 1 character long"
}{
"error": "Invalid request parameters",
"details": "Query must be at least 1 character long"
}{
"error": "Invalid request parameters",
"details": "Query must be at least 1 character long"
}{
"error": "Invalid request parameters",
"details": "Query must be at least 1 character long"
}Authorizations
Bearer authentication header of the form Bearer <token>, where <token> is your auth token.
Body
Tag to filter the profile by. This can be an ID for your user, a project ID, or any other identifier you wish to use to filter memories.
Optional search query to include search results in the response
Threshold for search results. Only results with a score above this threshold will be included.
0 <= x <= 1Optional metadata filters to apply to profile results and search results. Supports complex AND/OR queries with multiple conditions.
- Option 1
- Option 2
Show child attributes
Show child attributes
Profile sections to return. Omit to return all sections. Pass a subset to reduce payload — e.g. ["buckets"] skips static and dynamic entirely.
static, dynamic, buckets Specific bucket keys to return. Omit to return all configured buckets. Only relevant when "buckets" is included.
Was this page helpful?