curl --request GET \
--url https://api.bland.ai/v1/memory/contact/{memory_id}/messages \
--header 'authorization: <authorization>'{
"data": [
{
"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"
},
{
"role": "user",
"content": "It's order #12345",
"channel": "sms",
"timestamp": "2025-07-22T11:00:00.000Z"
}
],
"errors": null
}
Get recent messages from a contact memory. Returns the sliding window of cross-channel messages.
curl --request GET \
--url https://api.bland.ai/v1/memory/contact/{memory_id}/messages \
--header 'authorization: <authorization>'{
"data": [
{
"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"
},
{
"role": "user",
"content": "It's order #12345",
"channel": "sms",
"timestamp": "2025-07-22T11:00:00.000Z"
}
],
"errors": null
}
{
"data": [
{
"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"
},
{
"role": "user",
"content": "It's order #12345",
"channel": "sms",
"timestamp": "2025-07-22T11:00:00.000Z"
}
],
"errors": null
}
Was this page helpful?