---
title: "List messages"
url: https://docs.gleap.ai/en/reference/rest-api/list-messages
method: GET
path: "/s2s/conversations/{conversationId}/messages"
api: "API Reference"
tag: "S2S Conversations"
operationId: "ListMessages"
updatedAt: "2026-11-01T18:40:15.677Z"
language: en
---

# List messages

`GET https://api.gleap.io/v3/s2s/conversations/{conversationId}/messages`

Read the conversation's messages, oldest first, cursor-paginated (max 100 per page). Pass `after` = the last message id you have. Reading messages does NOT mark the conversation read — use the explicit read receipt.

## Authorization

- `Authorization` (header, required): `Bearer <token>`

## Path parameters

- `conversationId` (string, required)

## Query parameters

- `after` (string)
- `limit` (number<double>)

## Example request

```bash
curl --request GET \
  --url 'https://api.gleap.io/v3/s2s/conversations/{conversationId}/messages' \
  --header 'Authorization: Bearer <token>'
```

## Responses

### 200 (`application/json`)

Ok

- `next_after` (string | null, required)
- `has_more` (boolean, required)
- `items` (object[], required)
  - `id` (string, required)
  - `conversationId` (string, required)
  - `text` (string)
  - `author` (object, required)
    - `type` (enum<string>, required): One of: `contact`, `agent`, `bot`, `system`.
    - `id` (string)
    - `name` (string)
    - `avatar` (string)
  - `attachments` (object[], required)
    - `url` (string, required)
    - `name` (string)
    - `contentType` (string)
  - `replyToMessageId` (string)
  - `rating` (string)
  - `unread` (boolean, required)
  - `createdAt` (string<date-time>, required)

```json
{
  "next_after": "string",
  "has_more": true,
  "items": [
    {
      "id": "string",
      "conversationId": "string",
      "text": "string",
      "author": {
        "type": "contact",
        "id": "string",
        "name": "string",
        "avatar": "string"
      },
      "attachments": [
        {
          "url": "string",
          "name": "string",
          "contentType": "string"
        }
      ],
      "replyToMessageId": "string",
      "rating": "string",
      "unread": true,
      "createdAt": "2026-01-01T12:00:00Z"
    }
  ]
}
```
