curl -X GET 'https://api.memchat.io/profile' \
-H 'X-API-Key: YOUR_API_KEY'
import requests
url = "https://api.memchat.io/profile"
headers = {
"X-API-Key": "YOUR_API_KEY"
}
response = requests.get(url, headers=headers)
profile = response.json()
const response = await fetch('https://api.memchat.io/profile', {
method: 'GET',
headers: {
'X-API-Key': 'YOUR_API_KEY',
},
});
const profile = await response.json();
{
"user_id": "user_123abc",
"bio": {
"summary": "A passionate software engineer and AI enthusiast based in San Francisco. Currently working at a tech startup focused on machine learning applications in healthcare. Enjoys hiking, reading about emerging technologies, and spending time with family. Has a strong interest in sustainable technology and frequently travels for both work and leisure. Values continuous learning and meaningful relationships.",
"generated_at": "2024-01-15T16:30:00Z",
"confidence": 0.92,
"word_count": 67
},
"categories": {
"career": {
"title": "Software Engineer & AI Enthusiast",
"summary": "Works at a tech startup focused on ML applications in healthcare",
"key_skills": ["Python", "Machine Learning", "Healthcare Technology"],
"memory_count": 45,
"last_updated": "2024-01-15T14:20:00Z"
},
"interests": {
"primary_interests": ["Technology", "Hiking", "Reading", "Sustainability"],
"emerging_interests": ["Medical Imaging", "Green Technology"],
"memory_count": 32,
"last_updated": "2024-01-15T13:45:00Z"
},
"relationships": {
"close_connections": ["Sarah Johnson", "Dr. Martinez", "Alex Chen"],
"professional_network": ["Team members", "Healthcare professionals"],
"memory_count": 28,
"last_updated": "2024-01-15T15:10:00Z"
}
},
"insights": [
{
"insight_id": "insight_456def",
"title": "Strong Learning Orientation",
"description": "Shows consistent pattern of seeking new knowledge and skills, particularly in AI and healthcare domains",
"category": "learning",
"confidence": 0.88,
"generated_at": "2024-01-15T16:00:00Z",
"memory_count": 12
}
],
"traits": [
{
"trait": "Curiosity",
"strength": 0.91,
"evidence_count": 15,
"category": "learning"
},
{
"trait": "Collaboration",
"strength": 0.85,
"evidence_count": 23,
"category": "relationships"
}
],
"stats": {
"total_memories": 142,
"by_category": {
"career": 45,
"interests": 32,
"relationships": 28,
"learning": 25,
"travel": 12
},
"by_type": {
"semantic": 89,
"episodic": 53
},
"date_range": {
"first_memory": "2023-11-01T09:00:00Z",
"last_memory": "2024-01-15T16:30:00Z"
},
"avg_importance": 0.72,
"top_participants": ["Sarah Johnson", "Dr. Martinez", "Alex Chen"],
"top_locations": ["San Francisco", "Stanford Medical Center", "Office"]
},
"privacy_settings": {
"bio_public": false,
"categories_public": ["interests", "career"],
"insights_enabled": true,
"trait_analysis_enabled": true
},
"last_updated": "2024-01-15T16:30:00Z"
}
User Profiles
Get User Profile
Retrieve the user’s complete profile including auto-generated bio, category profiles, and insights
GET
/
profile
curl -X GET 'https://api.memchat.io/profile' \
-H 'X-API-Key: YOUR_API_KEY'
import requests
url = "https://api.memchat.io/profile"
headers = {
"X-API-Key": "YOUR_API_KEY"
}
response = requests.get(url, headers=headers)
profile = response.json()
const response = await fetch('https://api.memchat.io/profile', {
method: 'GET',
headers: {
'X-API-Key': 'YOUR_API_KEY',
},
});
const profile = await response.json();
{
"user_id": "user_123abc",
"bio": {
"summary": "A passionate software engineer and AI enthusiast based in San Francisco. Currently working at a tech startup focused on machine learning applications in healthcare. Enjoys hiking, reading about emerging technologies, and spending time with family. Has a strong interest in sustainable technology and frequently travels for both work and leisure. Values continuous learning and meaningful relationships.",
"generated_at": "2024-01-15T16:30:00Z",
"confidence": 0.92,
"word_count": 67
},
"categories": {
"career": {
"title": "Software Engineer & AI Enthusiast",
"summary": "Works at a tech startup focused on ML applications in healthcare",
"key_skills": ["Python", "Machine Learning", "Healthcare Technology"],
"memory_count": 45,
"last_updated": "2024-01-15T14:20:00Z"
},
"interests": {
"primary_interests": ["Technology", "Hiking", "Reading", "Sustainability"],
"emerging_interests": ["Medical Imaging", "Green Technology"],
"memory_count": 32,
"last_updated": "2024-01-15T13:45:00Z"
},
"relationships": {
"close_connections": ["Sarah Johnson", "Dr. Martinez", "Alex Chen"],
"professional_network": ["Team members", "Healthcare professionals"],
"memory_count": 28,
"last_updated": "2024-01-15T15:10:00Z"
}
},
"insights": [
{
"insight_id": "insight_456def",
"title": "Strong Learning Orientation",
"description": "Shows consistent pattern of seeking new knowledge and skills, particularly in AI and healthcare domains",
"category": "learning",
"confidence": 0.88,
"generated_at": "2024-01-15T16:00:00Z",
"memory_count": 12
}
],
"traits": [
{
"trait": "Curiosity",
"strength": 0.91,
"evidence_count": 15,
"category": "learning"
},
{
"trait": "Collaboration",
"strength": 0.85,
"evidence_count": 23,
"category": "relationships"
}
],
"stats": {
"total_memories": 142,
"by_category": {
"career": 45,
"interests": 32,
"relationships": 28,
"learning": 25,
"travel": 12
},
"by_type": {
"semantic": 89,
"episodic": 53
},
"date_range": {
"first_memory": "2023-11-01T09:00:00Z",
"last_memory": "2024-01-15T16:30:00Z"
},
"avg_importance": 0.72,
"top_participants": ["Sarah Johnson", "Dr. Martinez", "Alex Chen"],
"top_locations": ["San Francisco", "Stanford Medical Center", "Office"]
},
"privacy_settings": {
"bio_public": false,
"categories_public": ["interests", "career"],
"insights_enabled": true,
"trait_analysis_enabled": true
},
"last_updated": "2024-01-15T16:30:00Z"
}
Retrieves the user’s comprehensive profile, which includes an auto-generated bio, category-specific profiles, derived insights, and statistics about their stored memories.
curl -X GET 'https://api.memchat.io/profile' \
-H 'X-API-Key: YOUR_API_KEY'
import requests
url = "https://api.memchat.io/profile"
headers = {
"X-API-Key": "YOUR_API_KEY"
}
response = requests.get(url, headers=headers)
profile = response.json()
const response = await fetch('https://api.memchat.io/profile', {
method: 'GET',
headers: {
'X-API-Key': 'YOUR_API_KEY',
},
});
const profile = await response.json();
Query Parameters
string
Comma-separated list of sections to include. Options:
bio, categories, insights, stats, traits
Default: bio,categories,statsstring
Filter to specific category profile. One of:
identity, career, interests, relationships, health, finance, learning, travel, productivity, privateboolean
default:"false"
Whether to regenerate the profile from latest memories (may take longer)
Response
string
Unique identifier of the user
object
object
Category-specific profile information
Show Category Profiles
Show Category Profiles
object
Identity and personal information profile
object
Professional and career-related profile
object
Hobbies and interests profile
object
Social connections and relationships profile
object
Health and wellness profile
object
Financial information profile
object
Education and learning profile
object
Travel experiences and preferences profile
object
Work habits and productivity profile
object
Private memories profile summary
array
AI-derived insights about the user
Show Insight Properties
Show Insight Properties
array
object
Statistics about the user’s memories
object
string
ISO 8601 timestamp when profile was last updated
{
"user_id": "user_123abc",
"bio": {
"summary": "A passionate software engineer and AI enthusiast based in San Francisco. Currently working at a tech startup focused on machine learning applications in healthcare. Enjoys hiking, reading about emerging technologies, and spending time with family. Has a strong interest in sustainable technology and frequently travels for both work and leisure. Values continuous learning and meaningful relationships.",
"generated_at": "2024-01-15T16:30:00Z",
"confidence": 0.92,
"word_count": 67
},
"categories": {
"career": {
"title": "Software Engineer & AI Enthusiast",
"summary": "Works at a tech startup focused on ML applications in healthcare",
"key_skills": ["Python", "Machine Learning", "Healthcare Technology"],
"memory_count": 45,
"last_updated": "2024-01-15T14:20:00Z"
},
"interests": {
"primary_interests": ["Technology", "Hiking", "Reading", "Sustainability"],
"emerging_interests": ["Medical Imaging", "Green Technology"],
"memory_count": 32,
"last_updated": "2024-01-15T13:45:00Z"
},
"relationships": {
"close_connections": ["Sarah Johnson", "Dr. Martinez", "Alex Chen"],
"professional_network": ["Team members", "Healthcare professionals"],
"memory_count": 28,
"last_updated": "2024-01-15T15:10:00Z"
}
},
"insights": [
{
"insight_id": "insight_456def",
"title": "Strong Learning Orientation",
"description": "Shows consistent pattern of seeking new knowledge and skills, particularly in AI and healthcare domains",
"category": "learning",
"confidence": 0.88,
"generated_at": "2024-01-15T16:00:00Z",
"memory_count": 12
}
],
"traits": [
{
"trait": "Curiosity",
"strength": 0.91,
"evidence_count": 15,
"category": "learning"
},
{
"trait": "Collaboration",
"strength": 0.85,
"evidence_count": 23,
"category": "relationships"
}
],
"stats": {
"total_memories": 142,
"by_category": {
"career": 45,
"interests": 32,
"relationships": 28,
"learning": 25,
"travel": 12
},
"by_type": {
"semantic": 89,
"episodic": 53
},
"date_range": {
"first_memory": "2023-11-01T09:00:00Z",
"last_memory": "2024-01-15T16:30:00Z"
},
"avg_importance": 0.72,
"top_participants": ["Sarah Johnson", "Dr. Martinez", "Alex Chen"],
"top_locations": ["San Francisco", "Stanford Medical Center", "Office"]
},
"privacy_settings": {
"bio_public": false,
"categories_public": ["interests", "career"],
"insights_enabled": true,
"trait_analysis_enabled": true
},
"last_updated": "2024-01-15T16:30:00Z"
}
Error Responses
object
Unauthorized access
{
"error": "Invalid or expired token",
"code": "UNAUTHORIZED"
}
object
Profile not found (new user)
{
"error": "Profile not yet generated",
"code": "PROFILE_NOT_FOUND",
"suggestion": "Store some memories first to generate a profile"
}
object
Rate limit exceeded for profile generation
{
"error": "Too many profile requests",
"code": "RATE_LIMIT_EXCEEDED",
"retry_after": 60
}
Profile Generation
Profiles are automatically generated when:- User has stored at least 5 memories
- At least 24 hours have passed since last generation
- User explicitly requests refresh with
refresh=true
Privacy Controls
Use the Update Profile Privacy endpoint to modify which parts of the profile are public or can be shared with integrations.⌘I

