cURL
curl --request POST \ --url https://api.example.com/v0/api-user/memories/upsert \ --header 'Content-Type: application/json' \ --data ' { "expert_id": 123, "end_user_id": "<string>", "layer": "<string>", "key": "<string>", "value": {} } '
Create or update a memory for one of your end-users (tenant-scoped)
end_user_id
expert_id
BBOT-API-Key
X-API-Key
curl --location 'https://api.b-bot.space/api/v0/api-user/memories/upsert' \ --header 'Content-Type: application/json' \ --header 'BBOT-API-Key: <your-bbot-api-key>' \ --data '{ "expert_id": 42, "end_user_id": "user-123", "layer": "long", "key": "long_custom_001", "value": { "text": "User prefers email over phone.", "tags": ["preference"] } }'