---
title: "Get thread messages"
url: https://docs.gleap.ai/en/reference/rest-api/get-thread-messages
method: GET
path: "/messages/{messageId}/thread"
api: "API Reference"
tag: "Messages"
operationId: "GetThreadMessages"
updatedAt: "2026-11-01T18:40:15.677Z"
language: en
---

# Get thread messages

`GET https://api.gleap.io/v3/messages/{messageId}/thread`

Get the replies of a thread as a cursor-paged envelope `{ items, hasMore, nextBefore }`, paged like `GET /messages` with `paginated=true`: the first page holds the newest `limit` replies (default 50, max 100), each page is oldest-first, and `before=<nextBefore>` fetches the next older page until `hasMore` is `false`. If the cursor message was deleted between two calls, the request fails with 409; restart from the newest page. Only messages with a `thread` object have replies.

## Authorization

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

## Path parameters

- `messageId` (string, required)

## Query parameters

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

## Headers

- `project` (string, required)

## Example request

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

## Responses

### 200 (`application/json`)

Ok
