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

# Get Conversation Messages

> Load a conversation's history

## Overview

Returns a conversation's messages, oldest first: each of your messages followed by the assistant's reply.

Operation name: `conversation.messages`. Member keys can call it.

## Authorization

**x-api-key** `string` *required*

Your Composer API key

## Headers

**Content-Type** `string` *required*

Must be set to application/json

## Body

**conversation\_id** `string` *required*

The conversation to load.

```json Example theme={null}
"conversation_id": "9a2b7c1e-4d3f-4e8a-b6c5-1f0e2d3c4b5a"
```

**limit** `integer`

Maximum number of turns to return. Default 200.

```json Example theme={null}
"limit": 50
```

```json Example Request theme={null}
{
  "conversation_id": "9a2b7c1e-4d3f-4e8a-b6c5-1f0e2d3c4b5a",
  "limit": 50
}
```

***

## Response

**messages** `array`

Oldest first. Each has `role` (`you` or `ea`) and `text`.

**messages\[].files** `array`

On your messages: the names of files attached to that turn.

**messages\[].run\_id** `string`

On assistant messages: the run behind the reply.

**messages\[].graphics** `array`

Pictures or charts the assistant drew in that reply.

**messages\[].places** `array`

Places the assistant found on the map: `id`, `name`, `address`, `phone`, `website`, `maps_url`, `open_now`, `rating`. A place's small map is served at `GET /lab/api/v1/place/{id}/map`.

**messages\[].stopped** `boolean`

True when the reply was stopped before it finished.

```json Example Success Response theme={null}
{
  "messages": [
    {
      "role": "you",
      "text": "What's on tomorrow?"
    },
    {
      "role": "ea",
      "text": "Tomorrow you have the dentist at 9:30 and Emma's swimming at 4pm.",
      "run_id": "3f8e2a1b-7c6d-4e5f-9a8b-0c1d2e3f4a5b"
    }
  ]
}
```

***

## Example cURL

```bash cURL theme={null}
curl --request POST 'https://composer.personal.ai/lab/api/v1/op/conversation.messages' \
--header 'Content-Type: application/json' \
--header 'x-api-key: <your-api-key>' \
--data '{"conversation_id": "9a2b7c1e-4d3f-4e8a-b6c5-1f0e2d3c4b5a", "limit": 50}'
```

***

## Error Codes

| Code | Description |
| - | - |
| 400 | The body doesn't match the fields above, or the operation failed. The response body says why. |
| 401 | Missing or invalid API key |
| 403 | This key isn't allowed to call this operation |


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