---
title: "Reply in a comment thread"
---

> 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.

# Reply in a comment thread

Path: CloudRaker Paperwork API › Redline

`POST /v1/redline/{sessionId}/comments/{commentId}/reply`

Adds a reply under an existing comment, by its `c` id.

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

## Authentication

- `bearerAuth`, http, header `Authorization`

## Path parameters

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

## Request body

_Required._

- `body` (`replyRedlineComment.body`; string, required)
  - minLength 1; example `"Agreed, updated."`
- `author` (`replyRedlineComment.author`; string, optional)
  - minLength 1

## Example request

```json
{
  "body": "Agreed, updated.",
  "author": "string"
}
```

## Code samples

### cURL

```bash
curl --request POST \
  --url 'https://api.cloudraker.com/v1/redline/<sessionId>/comments/<commentId>/reply' \
  --header 'Authorization: Bearer <token>' \
  --header 'Content-Type: application/json' \
  --data '
{
  "body": "Agreed, updated.",
  "author": "string"
}
'
```

### TypeScript

```typescript
const url = 'https://api.cloudraker.com/v1/redline/<sessionId>/comments/<commentId>/reply';
const options = {
  method: 'POST',
  headers: {'Content-Type': 'application/json', Authorization: 'Bearer <token>'},
  body: JSON.stringify({body: 'Agreed, updated.', author: 'string'})
};

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/<commentId>/reply"

payload = {
    "body": "Agreed, updated.",
    "author": "string"
}
headers = {
    "Content-Type": "application/json",
    "Authorization": "Bearer <token>"
}

response = requests.post(url, json=payload, headers=headers)

print(response.text)
```

## Responses

### 201

The reply id and revision.

#### Example

```json
{
  "revision": -9007199254740991,
  "result": {
    "commentId": "c2",
    "resolved": true
  },
  "summary": {
    "paragraphCount": -9007199254740991,
    "comments": -9007199254740991,
    "trackedChanges": -9007199254740991
  }
}
```

- `revision` (`replyRedlineComment.response.201.revision`; integer, required)
  - min -9007199254740991; max 9007199254740991
- `result` (`replyRedlineComment.response.201.result`; object, required)
  - `commentId` (`replyRedlineComment.response.201.result.commentId`; string, required)
    - example `"c2"`
  - `resolved` (`replyRedlineComment.response.201.result.resolved`; boolean, optional)
- `summary` (`replyRedlineComment.response.201.summary`; object, required)
  - `paragraphCount` (`replyRedlineComment.response.201.summary.paragraphCount`; integer, required)
    - min -9007199254740991; max 9007199254740991
  - `comments` (`replyRedlineComment.response.201.summary.comments`; integer, required)
    - min -9007199254740991; max 9007199254740991
  - `trackedChanges` (`replyRedlineComment.response.201.summary.trackedChanges`; integer, required)
    - min -9007199254740991; max 9007199254740991

### 400

Validation Error

#### Example

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

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

### 404

Unknown session or comment.

### 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` (`replyRedlineComment.response.429.code`; string, required)
  - one of `"rate_limited"`
- `message` (`replyRedlineComment.response.429.message`; string, required)
- `retryable` (`replyRedlineComment.response.429.retryable`; boolean, required)
  - one of `true`
- `requestId` (`replyRedlineComment.response.429.requestId`; string, required)
- `docUrl` (`replyRedlineComment.response.429.docUrl`; string, optional)


Source: https://docs.cloudraker.com/paperwork/api/redline/reply-redline-comment/index.md
