---
title: "List the comments"
---

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

# List the comments

Path: CloudRaker Paperwork API › Redline

`GET /v1/redline/{sessionId}/comments`

Lists every comment in the document — author, date, body, the block it anchors to, and whether its thread is resolved. Replies carry a `parentId` pointing at the comment they answer.

`?openOnly=true` returns only unresolved threads.

Comment ids (`cN`) are stable across edits — unlike `tc` suggestion ids, they never renumber.

**Learn more:** [Redlining](https://docs.cloudraker.com/paperwork/developers/file-tools)

## Authentication

- `bearerAuth`, http, header `Authorization`

## Path parameters

- `sessionId` (`listRedlineComments.path.sessionId`; string, required)
  - minLength 1

## Query parameters

- `openOnly` (`listRedlineComments.query.openOnly`; string, optional)

## Code samples

### cURL

```bash
curl --request GET \
  --url 'https://api.cloudraker.com/v1/redline/<sessionId>/comments' \
  --header 'Authorization: Bearer <token>'
```

### TypeScript

```typescript
const url = 'https://api.cloudraker.com/v1/redline/<sessionId>/comments';
const options = {method: 'GET', headers: {Authorization: 'Bearer <token>'}};

fetch(url, options)
  .then(res => res.json())
  .then(json => console.log(json))
  .catch(err => console.error(err));
```

### Python

```python
import requests

url = "https://api.cloudraker.com/v1/redline/<sessionId>/comments"

headers = {"Authorization": "Bearer <token>"}

response = requests.get(url, headers=headers)

print(response.text)
```

## Responses

### 200

The comments.

#### Example

```json
{
  "object": "list",
  "data": [
    {
      "id": "c2",
      "author": "Counsel",
      "date": "string",
      "body": "string",
      "resolved": true,
      "parentId": "c0",
      "blockId": "p3"
    }
  ]
}
```

- `object` (`listRedlineComments.response.200.object`; string, required)
- `data` (`listRedlineComments.response.200.data`; array<object>, required)
  - `id` (`listRedlineComments.response.200.data.id`; string, required)
    - example `"c2"`
  - `author` (`listRedlineComments.response.200.data.author`; string, required)
    - example `"Counsel"`
  - `date` (`listRedlineComments.response.200.data.date`; string, required)
  - `body` (`listRedlineComments.response.200.data.body`; string, required)
  - `resolved` (`listRedlineComments.response.200.data.resolved`; boolean, required)
  - `blockId` (`listRedlineComments.response.200.data.blockId`; string, required)
    - example `"p3"`
  - `parentId` (`listRedlineComments.response.200.data.parentId`; string, optional)
    - example `"c0"`

### 400

Validation Error

#### Example

```json
{
  "success": false,
  "error": [
    null
  ],
  "data": null
}
```

- `success` (`listRedlineComments.response.400.success`; boolean, required)
  - one of `false`
- `error` (`listRedlineComments.response.400.error`; array<unknown>, required)
- `data` (`listRedlineComments.response.400.data`; unknown, required)

### 404

Unknown or expired session.

### 429

Rate limited. The `/v1` API allows at least **67 requests per minute per organization** (about 1,000 requests per 15 minutes) — a guaranteed floor, enforced per edge location, so a geographically spread caller may get more. Wait for the `Retry-After` interval and retry — the error is `retryable`.

#### Example

```json
{
  "code": "rate_limited",
  "message": "string",
  "retryable": true,
  "requestId": "string",
  "docUrl": "string"
}
```

- `code` (`listRedlineComments.response.429.code`; string, required)
  - one of `"rate_limited"`
- `message` (`listRedlineComments.response.429.message`; string, required)
- `retryable` (`listRedlineComments.response.429.retryable`; boolean, required)
  - one of `true`
- `requestId` (`listRedlineComments.response.429.requestId`; string, required)
- `docUrl` (`listRedlineComments.response.429.docUrl`; string, optional)


Source: https://docs.cloudraker.com/paperwork/api/redline/list-redline-comments/index.md
