---
title: "Follow a run’s events – Superbot API"
canonical_url: "https://superbot.gg/developers/runs#listRunEvents"
last_updated: "2026-10-01"
summary: "With `Accept: text/event-stream`, server-sent events (`id` is the event `seq`; reconnect with `Last-Event-ID` to resume); the stream ends once the run is final. Otherwise JSON: the events after `after`, long-polled up to `wait` seconds."
---

> Markdown twin of https://superbot.gg/developers/runs#listRunEvents (the HTML page is canonical).
> The site index for agents is /llms.txt; every content page has a twin at its path plus `.md`.

# Follow a run’s events

`GET /v1/runs/{run_id}/events`

With `Accept: text/event-stream`, server-sent events (`id` is the event `seq`; reconnect with `Last-Event-ID` to resume); the stream ends once the run is final. Otherwise JSON: the events after `after`, long-polled up to `wait` seconds.

- Operation id: `listRunEvents`
- Group: [Runs](https://superbot.gg/developers/runs.md)
- Auth: A caller key holding `runs:read` (`Authorization: Bearer sbc_…` or `x-api-key: sbc_…`), or a signed-in session.
- Scopes: `runs:read`

## Path parameters

| Name | Type | Required | Description |
| --- | --- | --- | --- |
| `run_id` | string | required | The run id (a Run `id`). |

## Query parameters

| Name | Type | Required | Description |
| --- | --- | --- | --- |
| `after` | string | optional | Only events with a greater `seq`. `Last-Event-ID` wins when both are sent. |
| `wait` | string | optional | Long-poll: hold the request up to this many seconds (max 25) for a new event. JSON replies only. |

## Response 200

The events.

`application/json`: RunEventList.

- `object` (string, required): One of `list`.
- `data` (array of RunEvent, required)
  - `object` (string, required): One of `run.event`.
  - `run_id` (string, required)
  - `seq` (integer, required): Per-run sequence number; the SSE `id`, and what `after` / `Last-Event-ID` resume from.
  - `type` (string, required): One of `status`, `result`, `pr`, `note_queued`, `note_delivered`.
  - `created_at` (string, required)
  - `note_id` (string): On `note_queued` / `note_delivered`: the note’s id (never its text).
  - `length` (integer): On `note_queued` / `note_delivered`: the note’s length in characters.
  - `status` (string): One of `queued`, `running`, `done`, `failed`, `needs_merge`, `cancelled`.
  - `branch` (string)
  - `landed_commit` (string)
  - `usd_spent` (number)
  - `summary` (string | null): On `result` only: the runner’s end-of-run diagnostic, as `summary` on the run (not a title or an answer). Null under zero data retention.
  - `pr_url` (string)
  - `pr_number` (integer)
  - `pr_state` (string)
  - `publish_error` (string)
- `next_after` (integer, required): Pass as `after` on the next poll.
- `done` (boolean, required): True once nothing more will happen to the run.

`text/event-stream`: string.

## Errors

Every refusal carries `error`, `message`, `doc_url` and `request_id`; the gateway routes answer in the dialect you dialed.

| Status | Codes | When |
| --- | --- | --- |
| 400 | [`invalid_request`](https://superbot.gg/developers#errors-invalid_request) | The request is malformed or a parameter is invalid; `param` names the field. |
| 401 | [`unauthorized`](https://superbot.gg/developers#errors-unauthorized) | The bearer is missing, malformed or unknown. |
| 403 | [`insufficient_scope`](https://superbot.gg/developers#errors-insufficient_scope) | The key lacks a scope (insufficient_scope), is revoked, or may not call this route. |
| 404 | [`not_found`](https://superbot.gg/developers#errors-not_found) | No such resource on this account. |
| 429 | [`rate_limited`](https://superbot.gg/developers#errors-rate_limited) | Over the per-key request bucket; retry after x-ratelimit-reset. |

## Examples

```sh
curl -sS -X GET "https://superbot.gg/v1/runs/$RUN_ID/events" \
  -H "Authorization: Bearer $SUPERBOT_API_KEY"
```

```js
const runId = 'RUN_ID';
const res = await fetch(`https://superbot.gg/v1/runs/${runId}/events`, {
  method: 'GET',
  headers: {
    Authorization: `Bearer ${process.env.SUPERBOT_API_KEY}`,
  },
});
console.log(res.status, await res.json());
```

```python
import os
import requests

run_id = "RUN_ID"
res = requests.request(
    "GET",
    f"https://superbot.gg/v1/runs/{run_id}/events",
    headers={
        "Authorization": f"Bearer {os.environ['SUPERBOT_API_KEY']}",
    },
)
print(res.status_code, res.json())
```
