---
title: "Stream the items"
---

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

# Stream the items

Path: cloudraker.run API

`GET /_cv/{cv}/stream`

The output items as SSE. Read it with `fetch`: `EventSource` cannot send the `Authorization` header.

## Authentication

- `session`, http, header `Authorization`

## Path parameters

- `cv` (`streamConversation.path.cv`; string, required) — The conversation id (`cv_...`).

## Query parameters

- `after` (`streamConversation.query.after`; integer, optional) — Replay the durable items after this `seq`.
  - default `0`

## Header parameters

- `Last-Event-ID` (`streamConversation.header.Last-Event-ID`; integer, optional) — Resume after this `seq`.

## Code samples

### cURL

```bash
curl --request GET \
  --url 'https://your-org.cloudraker.run/_cv/<cv>/stream' \
  --header 'Authorization: Bearer <token>'
```

### TypeScript

```typescript
const url = 'https://your-org.cloudraker.run/_cv/<cv>/stream';
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://your-org.cloudraker.run/_cv/<cv>/stream"

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

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

print(response.text)
```

## Responses

### 200

The item stream.

#### Example

```text
string
```

### 401

Error. See the `code` table in the guides.

#### Example

```json
{
  "error": {
    "code": "run_busy",
    "message": "string",
    "run_id": "string",
    "details": null
  }
}
```

- `error` (`streamConversation.response.401.error`; object, required)
  - `code` (`streamConversation.response.401.error.code`; string, required)
    - example `"run_busy"`
  - `message` (`streamConversation.response.401.error.message`; string, required)
  - `run_id` (`streamConversation.response.401.error.run_id`; string, optional)
  - `details` (`streamConversation.response.401.error.details`; unknown, optional)

### 429

Error. See the `code` table in the guides.

#### Example

```json
{
  "error": {
    "code": "run_busy",
    "message": "string",
    "run_id": "string",
    "details": null
  }
}
```

- `error` (`streamConversation.response.429.error`; object, required)
  - `code` (`streamConversation.response.429.error.code`; string, required)
    - example `"run_busy"`
  - `message` (`streamConversation.response.429.error.message`; string, required)
  - `run_id` (`streamConversation.response.429.error.run_id`; string, optional)
  - `details` (`streamConversation.response.429.error.details`; unknown, optional)


Source: https://docs.cloudraker.com/run/api/stream-conversation/index.md
