Get user profile
POST/v4/profile
Get user profile with optional search results
Body ParametersJSON
containerTag: string
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.
Get user profile
curl https://api.supermemory.ai/v4/profile \
-H 'Content-Type: application/json' \
-H "Authorization: Bearer $SUPERMEMORY_API_KEY" \
-d '{
"containerTag": "containerTag"
}'{
"profile": {
"buckets": {
"foo": [
"string"
]
},
"dynamic": [
"string"
],
"static": [
"string"
]
},
"searchResults": {
"results": [
{
"id": "mem_abc123",
"metadata": {
"source": "bar",
"confidence": "bar"
},
"similarity": 0.89,
"updatedAt": "updatedAt",
"chunk": "This is a chunk of content from a document...",
"chunks": [
{
"content": "This is a chunk of content from the document...",
"documentId": "doc_xyz789",
"position": 0
}
],
"context": {
"children": [
{
"memory": "Later version: API rate limit increased to 100 req/min on the free tier.",
"relation": "extends",
"updatedAt": "updatedAt",
"metadata": {
"foo": "bar"
},
"version": 1
}
],
"parents": [
{
"memory": "Earlier version: API rate limit is 50 req/min on the free tier.",
"relation": "updates",
"updatedAt": "updatedAt",
"metadata": {
"foo": "bar"
},
"version": -1
}
],
"related": [
{
"memory": "memory",
"relation": "extends",
"updatedAt": "updatedAt",
"metadata": {
"foo": "bar"
}
}
]
},
"documents": [
{
"id": "doc_xyz789",
"createdAt": "createdAt",
"updatedAt": "updatedAt",
"metadata": {
"source": "bar",
"language": "bar"
},
"summary": "API rate limit policy: 100 req/min free, 1000 req/min pro.",
"title": "API Rate Limiting Policy",
"type": "web"
}
],
"filepath": "filepath",
"isAggregated": false,
"memory": "The user prefers detailed API responses over minimal ones.",
"rootMemoryId": "mem_abc123",
"version": 3
}
],
"timing": 0,
"total": 0
}
}Returns Examples
{
"profile": {
"buckets": {
"foo": [
"string"
]
},
"dynamic": [
"string"
],
"static": [
"string"
]
},
"searchResults": {
"results": [
{
"id": "mem_abc123",
"metadata": {
"source": "bar",
"confidence": "bar"
},
"similarity": 0.89,
"updatedAt": "updatedAt",
"chunk": "This is a chunk of content from a document...",
"chunks": [
{
"content": "This is a chunk of content from the document...",
"documentId": "doc_xyz789",
"position": 0
}
],
"context": {
"children": [
{
"memory": "Later version: API rate limit increased to 100 req/min on the free tier.",
"relation": "extends",
"updatedAt": "updatedAt",
"metadata": {
"foo": "bar"
},
"version": 1
}
],
"parents": [
{
"memory": "Earlier version: API rate limit is 50 req/min on the free tier.",
"relation": "updates",
"updatedAt": "updatedAt",
"metadata": {
"foo": "bar"
},
"version": -1
}
],
"related": [
{
"memory": "memory",
"relation": "extends",
"updatedAt": "updatedAt",
"metadata": {
"foo": "bar"
}
}
]
},
"documents": [
{
"id": "doc_xyz789",
"createdAt": "createdAt",
"updatedAt": "updatedAt",
"metadata": {
"source": "bar",
"language": "bar"
},
"summary": "API rate limit policy: 100 req/min free, 1000 req/min pro.",
"title": "API Rate Limiting Policy",
"type": "web"
}
],
"filepath": "filepath",
"isAggregated": false,
"memory": "The user prefers detailed API responses over minimal ones.",
"rootMemoryId": "mem_abc123",
"version": 3
}
],
"timing": 0,
"total": 0
}
}