---
title: "Get a redlining session"
---

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

# Get a redlining session

Path: CloudRaker Paperwork API › Redline

`GET /v1/redline/{sessionId}`

Returns an open session: when it expires, which revision it is at, and how many paragraphs, comments and tracked changes it holds.

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

## Authentication

- `bearerAuth`, http, header `Authorization`

## Path parameters

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

## Code samples

### cURL

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

### TypeScript

```typescript
const url = 'https://api.cloudraker.com/v1/redline/<sessionId>';
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>"

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

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

print(response.text)
```

## Responses

### 200

The session.

#### Example

```json
{
  "id": "string",
  "filename": "string",
  "createdAt": "string",
  "expiresAt": "string",
  "revision": -9007199254740991,
  "summary": {
    "paragraphCount": -9007199254740991,
    "comments": -9007199254740991,
    "trackedChanges": -9007199254740991
  }
}
```

- `id` (`getRedlineSession.response.200.id`; string, required)
- `filename` (`getRedlineSession.response.200.filename`; string, required)
- `createdAt` (`getRedlineSession.response.200.createdAt`; string, required)
- `expiresAt` (`getRedlineSession.response.200.expiresAt`; string, required)
- `revision` (`getRedlineSession.response.200.revision`; integer, required)
  - min -9007199254740991; max 9007199254740991
- `summary` (`getRedlineSession.response.200.summary`; object, required)
  - `paragraphCount` (`getRedlineSession.response.200.summary.paragraphCount`; integer, required)
    - min -9007199254740991; max 9007199254740991
  - `comments` (`getRedlineSession.response.200.summary.comments`; integer, required)
    - min -9007199254740991; max 9007199254740991
  - `trackedChanges` (`getRedlineSession.response.200.summary.trackedChanges`; integer, required)
    - min -9007199254740991; max 9007199254740991

### 400

Validation Error

#### Example

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

- `success` (`getRedlineSession.response.400.success`; boolean, required)
  - one of `false`
- `error` (`getRedlineSession.response.400.error`; array<unknown>, required)
- `data` (`getRedlineSession.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` (`getRedlineSession.response.429.code`; string, required)
  - one of `"rate_limited"`
- `message` (`getRedlineSession.response.429.message`; string, required)
- `retryable` (`getRedlineSession.response.429.retryable`; boolean, required)
  - one of `true`
- `requestId` (`getRedlineSession.response.429.requestId`; string, required)
- `docUrl` (`getRedlineSession.response.429.docUrl`; string, optional)


Source: https://docs.cloudraker.com/paperwork/api/redline/get-redline-session/index.md
