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

# Comment Thread by ID

> Retrieve a specific comment thread via gamma.comments.getCommentById.

`client.gamma.comments.getCommentById` fetches the root comment and its replies for the supplied ID.

## Request

```ts theme={null}
const thread = await client.gamma.comments.getCommentById(id, params);
```

### Parameters

| Name            | Type           | Required | Notes                                  |
| --------------- | -------------- | -------- | -------------------------------------- |
| `id`            | `number` (≥ 0) | ✅        | Comment ID.                            |
| `get_positions` | `boolean`      |          | Include position data within profiles. |

## Response

An array of `Comment` objects identical to [`List Comments`](/gamma/comments-list). The first element
is the root comment.

## Usage example

```ts theme={null}
const thread = await client.gamma.comments.getCommentById(1975918, { get_positions: true });

console.log(thread[0]?.body);
```

## Failure modes

* `id` must be numeric.
