curl -X PATCH 'https://api.memchat.io/profile/bio' \
-H 'X-API-Key: YOUR_API_KEY' \
-H 'Content-Type: application/json' \
-d '{
"bio": "A passionate software engineer specializing in AI applications for healthcare...",
"format": "full",
"style": "professional"
}'
import requests
url = "https://api.memchat.io/profile/bio"
headers = {
"X-API-Key": "YOUR_API_KEY",
"Content-Type": "application/json"
}
data = {
"bio": "A passionate software engineer specializing in AI applications for healthcare...",
"format": "full",
"style": "professional"
}
response = requests.patch(url, headers=headers, json=data)
bio = response.json()
const response = await fetch('https://api.memchat.io/profile/bio', {
method: 'PATCH',
headers: {
'X-API-Key': 'YOUR_API_KEY',
'Content-Type': 'application/json',
},
body: JSON.stringify({
bio: 'A passionate software engineer specializing in AI applications for healthcare...',
format: 'full',
style: 'professional'
}),
});
const bio = await response.json();
{
"bio": "A passionate software engineer specializing in AI applications for healthcare, currently working at an innovative tech startup in San Francisco. With expertise in Python and machine learning, I collaborate with medical professionals to develop solutions that improve patient outcomes.",
"format": "professional",
"style": "formal",
"word_count": 38,
"character_count": 253,
"is_manual": true,
"updated_at": "2024-01-15T16:45:00Z"
}
User Profiles
Update User Bio
Update or customize the user’s biographical summary
PATCH
/
profile
/
bio
curl -X PATCH 'https://api.memchat.io/profile/bio' \
-H 'X-API-Key: YOUR_API_KEY' \
-H 'Content-Type: application/json' \
-d '{
"bio": "A passionate software engineer specializing in AI applications for healthcare...",
"format": "full",
"style": "professional"
}'
import requests
url = "https://api.memchat.io/profile/bio"
headers = {
"X-API-Key": "YOUR_API_KEY",
"Content-Type": "application/json"
}
data = {
"bio": "A passionate software engineer specializing in AI applications for healthcare...",
"format": "full",
"style": "professional"
}
response = requests.patch(url, headers=headers, json=data)
bio = response.json()
const response = await fetch('https://api.memchat.io/profile/bio', {
method: 'PATCH',
headers: {
'X-API-Key': 'YOUR_API_KEY',
'Content-Type': 'application/json',
},
body: JSON.stringify({
bio: 'A passionate software engineer specializing in AI applications for healthcare...',
format: 'full',
style: 'professional'
}),
});
const bio = await response.json();
{
"bio": "A passionate software engineer specializing in AI applications for healthcare, currently working at an innovative tech startup in San Francisco. With expertise in Python and machine learning, I collaborate with medical professionals to develop solutions that improve patient outcomes.",
"format": "professional",
"style": "formal",
"word_count": 38,
"character_count": 253,
"is_manual": true,
"updated_at": "2024-01-15T16:45:00Z"
}
Allows users to customize their auto-generated bio or provide manual overrides for specific sections.
curl -X PATCH 'https://api.memchat.io/profile/bio' \
-H 'X-API-Key: YOUR_API_KEY' \
-H 'Content-Type: application/json' \
-d '{
"bio": "A passionate software engineer specializing in AI applications for healthcare...",
"format": "full",
"style": "professional"
}'
import requests
url = "https://api.memchat.io/profile/bio"
headers = {
"X-API-Key": "YOUR_API_KEY",
"Content-Type": "application/json"
}
data = {
"bio": "A passionate software engineer specializing in AI applications for healthcare...",
"format": "full",
"style": "professional"
}
response = requests.patch(url, headers=headers, json=data)
bio = response.json()
const response = await fetch('https://api.memchat.io/profile/bio', {
method: 'PATCH',
headers: {
'X-API-Key': 'YOUR_API_KEY',
'Content-Type': 'application/json',
},
body: JSON.stringify({
bio: 'A passionate software engineer specializing in AI applications for healthcare...',
format: 'full',
style: 'professional'
}),
});
const bio = await response.json();
Request Body
string
Custom biographical text to replace auto-generated content
string
Format for the bio. Options:
full, short, bullets, professionalstring
Writing style for auto-generation. Options:
narrative, factual, casual, formalboolean
default:"false"
Whether to regenerate the bio using updated parameters
boolean
default:"false"
Whether this is a manual override (prevents auto-regeneration)
array
Specific categories to include in bio generation
array
Categories to exclude from bio generation
Response
string
Updated biographical text
string
Format of the bio
string
Writing style used
number
Number of words in the updated bio
number
Number of characters in the updated bio
boolean
Whether this is a manual override
string
ISO 8601 timestamp when bio was updated
{
"bio": "A passionate software engineer specializing in AI applications for healthcare, currently working at an innovative tech startup in San Francisco. With expertise in Python and machine learning, I collaborate with medical professionals to develop solutions that improve patient outcomes.",
"format": "professional",
"style": "formal",
"word_count": 38,
"character_count": 253,
"is_manual": true,
"updated_at": "2024-01-15T16:45:00Z"
}
Error Responses
object
Invalid request data
{
"error": "Bio text too long",
"code": "BIO_TOO_LONG",
"max_length": 500,
"current_length": 650
}
object
Unauthorized access
{
"error": "Invalid or expired API key",
"code": "UNAUTHORIZED"
}

