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

# List Conversations

> Get a paginated list of conversations.

Get a paginated list of conversations.

### Query parameters

**page** `integer`

Page number

**page\_size** `integer`

Items per page

**agent\_id** `string,null`

Filter by agent ID

### Response

`ConversationListResponse-Input`

**request\_id** `string,null`

Request tracking ID

**timestamp** `string (date-time)`

Response timestamp

**total** `integer` *required*

Total number of items

**page** `integer`

Current page number

**page\_size** `integer`

Items per page

**has\_next** `boolean`

Whether there are more pages

**has\_prev** `boolean`

Whether there are previous pages

**items** `ConversationSummary[]`

List of conversations

**ConversationSummary**

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

Conversation identifier

**agent\_id** `string` *required*

Associated agent ID

**message\_count** `integer`

Number of messages

**created\_at** `string (date-time)` *required*

Creation timestamp

**last\_message\_at** `string (date-time),null`

Last message timestamp

**total\_tokens** `integer`

Total tokens used

### Status codes

| Code | Meaning |
| - | - |
| `200` | List of conversations |
| `401` | Authentication required |
| `422` | Validation Error |
| `429` | Rate limit exceeded |

```bash cURL theme={null}
curl --request GET \
  --url 'http://localhost:8000/conversations' \
  --header "Authorization: Bearer $STATESET_AGENTS_API_KEY"
```

```json 200 theme={null}
{
  "request_id": "3fa85f64-5717-4562-b3fc-2c963f66afa6",
  "timestamp": "2026-08-31T14:22:05Z",
  "total": 102,
  "page": 1,
  "page_size": 20,
  "has_next": false,
  "has_prev": false,
  "items": [
    {
      "conversation_id": "3fa85f64-5717-4562-b3fc-2c963f66afa6",
      "agent_id": "3fa85f64-5717-4562-b3fc-2c963f66afa6",
      "message_count": 0,
      "created_at": "2026-08-31T14:22:05Z",
      "last_message_at": "2026-08-31T14:22:05Z",
      "total_tokens": 0
    }
  ]
}
```


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