---
title: "Stream agent run events"
method: GET
path: "/api/agent/runs/{runId}/events"
tags: ["Agent"]
---

# Stream agent run events

`GET /api/agent/runs/{runId}/events`

Streams all events for an agent run using Server-Sent Events (SSE). Replays all historical events, then streams new events until the run completes. Includes keepalive comments every 15 seconds. Only the user who created the run (in the same organization) can access it.

This endpoint is useful for reconnecting to an in-progress run after a page refresh.

## Path parameters

- `runId` string, required

## Headers

- `X-Grafana-Org-Id` string

## Response `200`

Server-Sent Events stream

## Other responses

- `401` — Unauthorized (missing or invalid authentication)
- `403` — Forbidden (insufficient permissions or RBAC violation)
- `404` — Resource not found
- `500` — Internal server error

---

[API](https://skmtc.net/consensys/apis/ask-o11y-ai-powered-observability-assistant-api.md) · [All operations](https://skmtc.net/consensys/apis/ask-o11y-ai-powered-observability-assistant-api/llms.txt) · [OpenAPI document](https://skmtc-service-staging.skmtc.workers.dev/v1/apis/consensys/ask-o11y-ai-powered-observability-assistant-api/versions/3ccc03eccaef/schema)
