curl --request GET \ --url https://api.bland.ai/v1/memory/context \ --header 'authorization: <authorization>'
Copy
Ask AI
{ "data": { "contact_id": "aaaaaaaa-bbbb-cccc-dddd-eeeeeeeeeeee", "recentMessages": [ { "role": "user", "content": "Hi, I'm calling about my order", "channel": "call", "timestamp": "2025-07-22T10:30:00.000Z" }, { "role": "assistant", "content": "I'd be happy to help you with your order. Can you provide your order number?", "channel": "call", "timestamp": "2025-07-22T10:30:05.000Z" } ], "summary": "Customer inquired about order status. Order #12345 is in transit, expected delivery July 25.", "contactFacts": { "name": "John Doe", "preferred_contact": "phone", "timezone": "EST" }, "entities": [], "openItems": [] }, "errors": null}
Contact memory
Get Memory Context
Get memory context for a contact/persona pair. Returns recent messages, summary, facts, and entities.
GET
https://api.bland.ai
/
v1
/
memory
/
context
Get Memory Context
Copy
Ask AI
curl --request GET \ --url https://api.bland.ai/v1/memory/context \ --header 'authorization: <authorization>'
Copy
Ask AI
{ "data": { "contact_id": "aaaaaaaa-bbbb-cccc-dddd-eeeeeeeeeeee", "recentMessages": [ { "role": "user", "content": "Hi, I'm calling about my order", "channel": "call", "timestamp": "2025-07-22T10:30:00.000Z" }, { "role": "assistant", "content": "I'd be happy to help you with your order. Can you provide your order number?", "channel": "call", "timestamp": "2025-07-22T10:30:05.000Z" } ], "summary": "Customer inquired about order status. Order #12345 is in transit, expected delivery July 25.", "contactFacts": { "name": "John Doe", "preferred_contact": "phone", "timezone": "EST" }, "entities": [], "openItems": [] }, "errors": null}
{ "data": { "contact_id": "aaaaaaaa-bbbb-cccc-dddd-eeeeeeeeeeee", "recentMessages": [ { "role": "user", "content": "Hi, I'm calling about my order", "channel": "call", "timestamp": "2025-07-22T10:30:00.000Z" }, { "role": "assistant", "content": "I'd be happy to help you with your order. Can you provide your order number?", "channel": "call", "timestamp": "2025-07-22T10:30:05.000Z" } ], "summary": "Customer inquired about order status. Order #12345 is in transit, expected delivery July 25.", "contactFacts": { "name": "John Doe", "preferred_contact": "phone", "timezone": "EST" }, "entities": [], "openItems": [] }, "errors": null}