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

# Resume an agent run

> Streams AG-UI events for an existing run, starting after `after` (the last `seq` the client already applied). The stream follows a run that is still executing on this server until it ends. A finished run is replayed from the data store, when store requests is enabled, and the response closes.



## OpenAPI

````yaml /api-reference/agents.json get /v1/agent/{agent_id}/runs/{run_id}/stream
openapi: 3.1.0
info:
  title: SynapsAI Agents API
  version: 1.0.0
servers:
  - url: https://api.synapsai.cloud
    description: Production server
security: []
paths:
  /v1/agent/{agent_id}/runs/{run_id}/stream:
    get:
      summary: Resume an agent run
      description: >-
        Streams AG-UI events for an existing run, starting after `after` (the
        last `seq` the client already applied). The stream follows a run that is
        still executing on this server until it ends. A finished run is replayed
        from the data store, when store requests is enabled, and the response
        closes.
      operationId: streamAgentRun
      parameters:
        - name: agent_id
          in: path
          required: true
          schema:
            type: string
        - name: run_id
          in: path
          required: true
          schema:
            type: string
        - name: after
          in: query
          required: false
          schema:
            type: integer
            minimum: 0
            default: 0
          description: Last event seq already received. Events with a higher seq are sent.
      responses:
        '200':
          description: >-
            AG-UI Server-Sent Events. The response ends when the run is
            terminal.
          headers:
            X-Run-Id:
              schema:
                type: string
          content:
            text/event-stream:
              schema:
                type: string
        '404':
          description: Run not found

````

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