curl --request PATCH \
--url https://api.bland.ai/v1/memory/contact/{memory_id}/facts \
--header 'Content-Type: application/json' \
--header 'authorization: <authorization>' \
--data '{
"facts": {}
}'{
"data": {
"id": "mem-aaaaaaaa-bbbb-cccc-dddd-eeeeeeeeeeee",
"org_id": "11111111-2222-3333-4444-555555555555",
"contact_id": "aaaaaaaa-bbbb-cccc-dddd-eeeeeeeeeeee",
"persona_id": "persona-12345678",
"agent_number": null,
"summary": "Customer is a premium plan subscriber.",
"facts": {
"name": "John Doe",
"company": "Acme Corp",
"role": "CTO",
"preferred_contact": "phone",
"timezone": "America/New_York"
},
"recent_messages": [...],
"created_at": "2025-07-20T10:30:00.000Z",
"updated_at": "2025-07-22T16:00:00.000Z"
},
"errors": null
}
Update structured facts for a contact memory. Facts are merged with existing data (new keys added, existing keys updated). This is Tier 3 memory for stable contact information.
curl --request PATCH \
--url https://api.bland.ai/v1/memory/contact/{memory_id}/facts \
--header 'Content-Type: application/json' \
--header 'authorization: <authorization>' \
--data '{
"facts": {}
}'{
"data": {
"id": "mem-aaaaaaaa-bbbb-cccc-dddd-eeeeeeeeeeee",
"org_id": "11111111-2222-3333-4444-555555555555",
"contact_id": "aaaaaaaa-bbbb-cccc-dddd-eeeeeeeeeeee",
"persona_id": "persona-12345678",
"agent_number": null,
"summary": "Customer is a premium plan subscriber.",
"facts": {
"name": "John Doe",
"company": "Acme Corp",
"role": "CTO",
"preferred_contact": "phone",
"timezone": "America/New_York"
},
"recent_messages": [...],
"created_at": "2025-07-20T10:30:00.000Z",
"updated_at": "2025-07-22T16:00:00.000Z"
},
"errors": null
}
{
"facts": {
"name": "John Doe",
"company": "Acme Corp",
"role": "CTO",
"preferred_contact": "phone",
"timezone": "America/New_York",
"plan": "premium",
"account_number": "ACC-12345"
}
}
{
"data": {
"id": "mem-aaaaaaaa-bbbb-cccc-dddd-eeeeeeeeeeee",
"org_id": "11111111-2222-3333-4444-555555555555",
"contact_id": "aaaaaaaa-bbbb-cccc-dddd-eeeeeeeeeeee",
"persona_id": "persona-12345678",
"agent_number": null,
"summary": "Customer is a premium plan subscriber.",
"facts": {
"name": "John Doe",
"company": "Acme Corp",
"role": "CTO",
"preferred_contact": "phone",
"timezone": "America/New_York"
},
"recent_messages": [...],
"created_at": "2025-07-20T10:30:00.000Z",
"updated_at": "2025-07-22T16:00:00.000Z"
},
"errors": null
}
Was this page helpful?