# Stream provider-neutral request events (/api-reference/data-api/getDataRequestsByIdEventsStream)

Opens a bounded Server-Sent Events stream for a pending or protected request. Reconnect with Last-Event-ID after a disconnect. Each event uses the same provider-neutral payload as the request event history; the stream closes after completed, failed, or cancelled.

## GET /api/v1/data/requests/{id}/events/stream

Stream provider-neutral request events

- Operation ID: `getDataRequestsByIdEventsStream`

- Tags: `Data API`

Opens a bounded Server-Sent Events stream for a pending or protected request. Reconnect with Last-Event-ID after a disconnect. Each event uses the same provider-neutral payload as the request event history; the stream closes after completed, failed, or cancelled.

### Security

- Required scope: `requests:read`

- `ApiKey` (apiKey, X-API-Key)

- `ApiKeyBearer` (http)

### Parameters

- `id` (path, required) — string (uuid); UUID of the target request or batch, as returned in the id field when it was created or listed.

- `Last-Event-ID` (header) — integer; Last event id received by the client; use it to resume an SSE stream after reconnecting.

### Responses

- **200** — Server-Sent Events stream. Reconnect with Last-Event-ID. Error body uses the documented PublicError DTO.

  - `text/event-stream`: string

  - `application/json`: #/components/schemas/OpenApiResource

  - Example: `{
  "id": "9a20bd58-ed33-4a5b-b63f-b52bb1a62248",
  "status": "pending"
}`

- **400** — Invalid public UUID or Last-Event-ID Error body uses the documented PublicError DTO.

  - `application/json`: #/components/schemas/PublicError

  - Example: `{
  "error": "Request failed",
  "code": "INVALID_LAST_EVENT_ID",
  "message": "Request validation failed",
  "requestId": "req_01J2QG"
}`

- **404** — Not found in this tenant Error body uses the documented PublicError DTO.

  - `application/json`: #/components/schemas/PublicError

  - Example: `{
  "error": "Request failed",
  "code": "REQUEST_NOT_FOUND",
  "message": "Resource not found",
  "requestId": "req_01J2QG"
}`

### Referenced OpenAPI components

#### `#/components/parameters/PublicId`

```json

{
  "name": "id",
  "in": "path",
  "required": true,
  "description": "UUID of the target request or batch, as returned in the id field when it was created or listed.",
  "schema": {
    "type": "string",
    "format": "uuid"
  }
}

```

#### `#/components/parameters/LastEventId`

```json

{
  "name": "Last-Event-ID",
  "in": "header",
  "required": false,
  "description": "Last event id received by the client; use it to resume an SSE stream after reconnecting.",
  "schema": {
    "type": "integer",
    "minimum": 0
  }
}

```

#### `#/components/schemas/OpenApiResource`

```json

{
  "type": "object",
  "description": "A documented JSON DTO returned by the operation. See the operation description and its source DTO fields.",
  "additionalProperties": true
}

```

#### `#/components/schemas/PublicError`

```json

{
  "type": "object",
  "additionalProperties": false,
  "required": [
    "error",
    "code",
    "message",
    "requestId"
  ],
  "properties": {
    "error": {
      "type": "string"
    },
    "code": {
      "type": "string",
      "description": "Stable public error code. PROXY_QUOTE_EXPIRED means the optional quote_version supplied at admission is no longer current; refresh the pricing view and submit again."
    },
    "message": {
      "type": "string"
    },
    "requestId": {
      "type": "string"
    }
  }
}

```

### Complete operation object

```json

{
  "operationId": "getDataRequestsByIdEventsStream",
  "tags": [
    "Data API"
  ],
  "summary": "Stream provider-neutral request events",
  "description": "Opens a bounded Server-Sent Events stream for a pending or protected request. Reconnect with Last-Event-ID after a disconnect. Each event uses the same provider-neutral payload as the request event history; the stream closes after completed, failed, or cancelled.",
  "security": [
    {
      "ApiKey": []
    },
    {
      "ApiKeyBearer": []
    }
  ],
  "x-required-scope": "requests:read",
  "x-mcp-exclude": true,
  "parameters": [
    {
      "$ref": "#/components/parameters/PublicId"
    },
    {
      "$ref": "#/components/parameters/LastEventId"
    }
  ],
  "responses": {
    "200": {
      "description": "Server-Sent Events stream. Reconnect with Last-Event-ID. Error body uses the documented PublicError DTO.",
      "content": {
        "text/event-stream": {
          "schema": {
            "type": "string"
          }
        },
        "application/json": {
          "schema": {
            "$ref": "#/components/schemas/OpenApiResource"
          },
          "example": {
            "id": "9a20bd58-ed33-4a5b-b63f-b52bb1a62248",
            "status": "pending"
          }
        }
      }
    },
    "400": {
      "description": "Invalid public UUID or Last-Event-ID Error body uses the documented PublicError DTO.",
      "content": {
        "application/json": {
          "schema": {
            "$ref": "#/components/schemas/PublicError"
          },
          "example": {
            "error": "Request failed",
            "code": "INVALID_LAST_EVENT_ID",
            "message": "Request validation failed",
            "requestId": "req_01J2QG"
          }
        }
      },
      "x-docs-retryable": false
    },
    "404": {
      "description": "Not found in this tenant Error body uses the documented PublicError DTO.",
      "content": {
        "application/json": {
          "schema": {
            "$ref": "#/components/schemas/PublicError"
          },
          "example": {
            "error": "Request failed",
            "code": "REQUEST_NOT_FOUND",
            "message": "Resource not found",
            "requestId": "req_01J2QG"
          }
        }
      },
      "x-docs-retryable": false
    }
  },
  "servers": [
    {
      "url": "https://api.runharvester.com",
      "description": "RunHarvester public API"
    }
  ]
}

```