# Stream live changes

`GET /api/v1/events`

Live changes of the workspace as server-sent events: `incident`, `check`, `chat`, and `resync` when the stream fell behind and the data should be read again. The stream carries changes, not history.

Sign-in: a dashboard session only. API tokens and OAuth sign-ins get `403 token.not_allowed`.

Section: Event stream. Operation id in openapi.json: `stream_events`.

## Parameters

| Name | In | Required | Type | Description |
|---|---|---|---|---|
| `workspaceId` | query | yes | string (uuid) | The workspace whose changes to stream. |

## Responses

Errors are `application/problem+json` (`Problem`); branch on `type`.

### 200

Server-sent events

`text/event-stream`: any

### 400

Bad Request.

- `request.malformed`: the body or a parameter is not of the expected shape
- `auth.credentials_conflict`: the request carries both a session cookie and a token

### 401

Unauthorized.

- `auth.unauthenticated`, `auth.session_expired`: no session, or it ended
- `token.invalid`: the token is malformed, unknown, revoked or expired, or its creator left the workspace

### 403

Forbidden.

- `auth.forbidden`: your role is too low for this
- `token.not_allowed`: this operation needs a signed-in session; tokens cannot call it

### 422

Unprocessable Entity.

- `field.invalid`, `field.required`: a parameter breaks a rule; `errors` points at it

Schemas named above are listed with their fields in [the schema list](https://docs.monitorly.cloud/api/reference/schemas.md).
