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

# Stream job output

> Streams pipeline output in real time using Server-Sent Events. Only available for pipelines with a preview sink.

Each event contains `column_names` and a `data` array of rows.




## OpenAPI

````yaml /openapi/ingest.yaml get /pipelines/{pipeline_id}/jobs/{job_id}/output
openapi: 3.1.0
info:
  title: Ingest Engine HTTP API
  version: '1.0'
  description: >
    The Ingest Engine exposes an HTTP API for managing pipelines, connections,
    and jobs programmatically.


    All responses are JSON. Errors return an object with an `error` message.


    List endpoints use cursor-based pagination. Responses contain a `data` array
    and a `has_more` flag.

    Pass `?starting_after=<last_id>&limit=10` to get the next page.
servers:
  - url: http://{controllerHost}:8000/api/v1
    description: The Ingest Engine controller.
    variables:
      controllerHost:
        default: localhost
        description: Host name of the Ingest Engine controller.
security:
  - bearerAuth: []
tags:
  - name: Pipelines
    description: Create, update, restart, and delete pipelines.
  - name: Jobs
    description: >-
      A job is a single execution of a pipeline. Each time a pipeline starts or
      restarts, a new job is created.
  - name: Connection profiles
    description: >-
      A connection profile stores reusable connection credentials, such as Kafka
      bootstrap servers and authentication.
  - name: Connection tables
    description: >-
      A connection table defines a specific source or sink, binding a connector,
      connection profile, schema, and table-specific configuration together.
  - name: Connectors
    description: Metadata about available connectors.
  - name: Health
    description: Health checks.
paths:
  /pipelines/{pipeline_id}/jobs/{job_id}/output:
    get:
      tags:
        - Jobs
      summary: Stream job output
      description: >
        Streams pipeline output in real time using Server-Sent Events. Only
        available for pipelines with a preview sink.


        Each event contains `column_names` and a `data` array of rows.
      operationId: streamJobOutput
      parameters:
        - $ref: '#/components/parameters/PipelineId'
        - $ref: '#/components/parameters/JobId'
      responses:
        '200':
          description: >-
            A stream of Server-Sent Events. Each event's data is a JSON object
            with `column_names` and `data`.
          content:
            text/event-stream:
              schema:
                type: object
                properties:
                  column_names:
                    type: array
                    items:
                      type: string
                  data:
                    type: array
                    items:
                      type: array
                      items:
                        type: string
              example:
                column_names:
                  - id
                  - name
                  - amount
                data:
                  - - '1'
                    - Alice
                    - '100'
                  - - '2'
                    - Bob
                    - '200'
        default:
          $ref: '#/components/responses/Error'
components:
  parameters:
    PipelineId:
      name: pipeline_id
      in: path
      required: true
      description: The pipeline ID.
      schema:
        type: string
    JobId:
      name: job_id
      in: path
      required: true
      description: The job ID.
      schema:
        type: string
  responses:
    Error:
      description: Error.
      content:
        application/json:
          schema:
            $ref: '#/components/schemas/Error'
  schemas:
    Error:
      type: object
      properties:
        error:
          type: string
          description: Descriptive error message.
      example:
        error: descriptive error message
  securitySchemes:
    bearerAuth:
      type: http
      scheme: bearer
      description: 'Send the API token as `Authorization: Bearer <token>`.'

````

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