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

# Per-job events stream (SSE)

> Server-Sent Events stream scoped to a single job. Emits `progress`, `page`, `error`, and `done` events as the job makes progress. Stream closes automatically when the job reaches a terminal state.

Stream events for a single job over a long-lived HTTP connection. Events fire as pages complete and the stream closes automatically when the job reaches a terminal state.

## Event types

| Event      | Payload                                                     |
| ---------- | ----------------------------------------------------------- |
| `progress` | `{ status, completed, total }`: periodic progress snapshots |
| `page`     | A completed page result (same shape as a sync scrape)       |
| `error`    | `{ url, error }`: a single page failed                      |
| `done`     | `{ status, completed, total }`: final event, stream closes  |

The SDK clients wrap this as `reader.stream(jobId)` returning an async iterator. See [SSE streaming](/home/guides/async-workflows/sse-streaming).

For a workspace-wide stream of every job's events, use [`GET /v1/events`](/api-reference/jobs/events) instead.


## OpenAPI

````yaml openapi.json GET /v1/jobs/{id}/stream
openapi: 3.1.0
info:
  title: Reader API
  version: 1.0.0
  description: >-
    Reader turns any URL into clean markdown for LLMs. One endpoint (`POST
    /v1/read`) handles scrape, batch, and crawl operations. See
    https://reader.dev/docs for concepts and guides.
servers:
  - url: https://api.reader.dev
    description: Production
security: []
tags:
  - name: Read
    description: Scrape, batch, and crawl operations
  - name: Jobs
    description: Async job management
  - name: Webhooks
    description: Event subscriptions
  - name: Account
    description: API keys, credits, and usage
paths:
  /v1/jobs/{id}/stream:
    get:
      tags:
        - Jobs
      summary: Per-job events stream (SSE)
      description: >-
        Server-Sent Events stream scoped to a single job. Emits `progress`,
        `page`, `error`, and `done` events as the job makes progress. Stream
        closes automatically when the job reaches a terminal state.
      parameters:
        - schema:
            type: string
          required: true
          name: id
          in: path
      responses:
        '200':
          description: SSE stream that closes when the job terminates
          content:
            text/event-stream:
              schema:
                $ref: '#/components/schemas/SseStream'
        '401':
          description: Unauthenticated
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/ErrorEnvelope'
              example:
                success: false
                error:
                  code: unauthenticated
                  message: Missing or invalid API key
                  docsUrl: https://reader.dev/docs/home/concepts/errors#unauthenticated
              examples:
                unauthenticated:
                  summary: Unauthenticated
                  value:
                    success: false
                    error:
                      code: unauthenticated
                      message: Missing or invalid API key
                      docsUrl: >-
                        https://reader.dev/docs/home/concepts/errors#unauthenticated
        '404':
          description: Job not found
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/ErrorEnvelope'
              example:
                success: false
                error:
                  code: not_found
                  message: Job not found
                  docsUrl: https://reader.dev/docs/home/concepts/errors#not-found
              examples:
                not_found:
                  summary: Job not found
                  value:
                    success: false
                    error:
                      code: not_found
                      message: Job not found
                      docsUrl: https://reader.dev/docs/home/concepts/errors#not-found
      security:
        - ApiKeyAuth: []
components:
  schemas:
    SseStream:
      type: string
      description: >-
        Server-Sent Events stream. Each frame is a line-delimited event with an
        `event:` line, a `data:` line (JSON payload), and a trailing blank line.
        Keep-alive comments (`: ping`) are sent every 30 seconds. See
        [Events](/home/concepts/events) for the full event catalog.
      example: >+
        event: job:progress

        data: {"jobId":"j_abc","status":"processing","completed":45,"total":100}


        event: job:completed

        data:
        {"jobId":"j_abc","status":"completed","completed":100,"total":100,"creditsUsed":100}

    ErrorEnvelope:
      type: object
      properties:
        success:
          type: boolean
          enum:
            - false
        error:
          type: object
          properties:
            code:
              $ref: '#/components/schemas/ErrorCode'
            message:
              type: string
            details:
              type: object
              additionalProperties: {}
            docsUrl:
              type: string
              format: uri
          required:
            - code
            - message
            - docsUrl
      required:
        - success
        - error
    ErrorCode:
      type: string
      enum:
        - invalid_request
        - unauthenticated
        - insufficient_credits
        - url_blocked
        - not_found
        - conflict
        - rate_limited
        - concurrency_limited
        - internal_error
        - upstream_unavailable
        - scrape_timeout
  securitySchemes:
    ApiKeyAuth:
      type: apiKey
      in: header
      name: x-api-key

````