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

# Event Stream

> Follow your workspace's events live

## Overview

A live [server-sent events](https://developer.mozilla.org/en-US/docs/Web/API/Server-sent_events) stream of everything happening in your workspace, such as replies being written and recipes running. Pass `run_id` to follow one turn, for example after starting it in the background.

> [!NOTE]
>
> Member keys can't use the event stream.

## Authorization

**x-api-key** `string` *required*

Your Composer API key

## Query

**run\_id** `string`

Only events for this run.

***

## Events

Each event's name is its kind, and its data is the full event as JSON.

***

## Example cURL

```bash cURL theme={null}
curl --no-buffer 'https://composer.personal.ai/lab/api/v1/events?run_id=3f8e2a1b-7c6d-4e5f-9a8b-0c1d2e3f4a5b' \
--header 'x-api-key: <your-api-key>'
```

***

## Error Codes

| Code | Description |
| - | - |
| 401 | Missing or invalid API key |
| 403 | Member keys can't use the event stream |


This documentation is built and hosted on [Mintlify](https://mintlify.com), a developer documentation platform.