> ## Documentation Index
> Fetch the complete documentation index at: https://docs.bland.ai/llms.txt
> Use this file to discover all available pages before exploring further.

# List Recent Messages

> Retrieve the recent message history for a contact memory. Returns cross-channel messages (voice and SMS) in chronological order.

### Headers

**authorization** `string` *required*

Your API key for authentication.

### Path Parameters

**memory\_id** `string` *required*

The unique identifier of the contact memory record.

### Response

**data** `array`

Array of recent messages.

**data\[].role** `string`

Message role: "user" or "assistant".

**data\[].content** `string`

Message content.

**data\[].channel** `string`

Channel the message came from: "call" or "sms".

**data\[].timestamp** `string`

ISO timestamp when the message was recorded.

**errors** `null`

Error array (null on success).

```json Response theme={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
}
```

```json Empty Messages theme={null}
{
  "data": [],
  "errors": null
}
```

***

Docs for agents: [llms.txt](https://docs.bland.ai/llms.txt)


This documentation is built and hosted on [Mintlify](https://mintlify.com), a developer documentation platform.