---
title: "Resume Team Run Stream"
method: POST
path: "/teams/{team_id}/runs/{run_id}/resume"
tags: ["Teams"]
---

# Resume Team Run Stream

`POST /teams/{team_id}/runs/{run_id}/resume`

## Request

- The document declares no server URL.
- Auth: HTTP bearer
- TypeScript: <https://skmtc.dev/agno/apis/agno-api-reference/docs/teams/:team_id/runs/:run_id/resume/post.ts> (a function with typed inputs; its response is checked against the schema)

Resume an SSE stream for a team run after disconnection.

Sends missed events since `last_event_index`, then continues streaming live events if the run is still active.

**Three reconnection paths:**
1. **Run still active**: Sends catch-up events + continues live streaming
2. **Run completed (in buffer)**: Replays missed buffered events
3. **Run completed (in database)**: Replays events from database

**Client usage:**
Track `event_index` from each SSE event. On reconnection, pass the last received `event_index` as `last_event_index`.

## Path parameters

- `team_id` string, required
- `run_id` string, required

## Request body `application/x-www-form-urlencoded`

- BodyResumeTeamRunStream
  - `last_event_index` integer, nullable: Index of last event received by client (0-based)
  - `session_id` string, nullable: Session ID for database fallback

## Response `200`

SSE stream of catch-up and/or live events

- unknown

## Other responses

- `400`: Not supported for remote teams
- `401`: Unauthorized
- `404`: Team not found
- `422`: Validation Error
- `500`: Internal Server Error

---

[API](https://skmtc.dev/agno/apis/agno-api-reference.md) - [All operations](https://skmtc.dev/agno/apis/agno-api-reference/llms.txt) - [OpenAPI document](https://skmtc.dev/agno/apis/agno-api-reference/revisions/5f6149d395d0?raw)
