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

# Get a run's output

> Returns the output a completed run's Download Output step captured. JSON output is returned as a JSON value; text formats (CSV, XML, YAML, plain text) as a string; binary formats as a base64 string with `isBase64` set. Without `nodeId` the most recently started Download Output step answers.

Requires the `runs:read` [scope](/api-reference/authentication#scopes). Returns what the run's [Download Output](/nodes/download-output) node captured. See [polling a run](/api-reference/polling-runs#4-collect-the-output) for how each output format is returned.


## OpenAPI

````yaml GET /runs/{runId}/output
openapi: 3.1.1
info:
  title: Ingestly API
  description: >-
    Public Ingestly API. Authenticate every request with an API key in the
    `X-Api-Key` header. A key belongs to one organization and carries scopes
    (such as `workflows:trigger` or `runs:read`); each operation requires one
    scope, and a key without it is rejected with 403. Errors use RFC 7807
    problem details.
  version: 1.0.0
servers:
  - url: https://api.ingestly.ai
security:
  - ApiKey: []
tags:
  - name: Workflows
  - name: Runs
  - name: Review Tasks
  - name: Events
  - name: Documents
paths:
  /runs/{runId}/output:
    get:
      tags:
        - Runs
      summary: Get a run's output
      description: >-
        Returns the output a completed run's Download Output step captured. JSON
        output is returned as a JSON value; text formats (CSV, XML, YAML, plain
        text) as a string; binary formats as a base64 string with `isBase64`
        set. Without `nodeId` the most recently started Download Output step
        answers.
      operationId: getRunOutput
      parameters:
        - name: runId
          in: path
          required: true
          schema:
            type: string
            format: uuid
        - name: nodeId
          in: query
          schema:
            type: string
      responses:
        '200':
          description: OK
          headers:
            X-Correlation-ID:
              description: >-
                Server-generated request identifier. Quote it when contacting
                support.
              schema:
                type: string
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/GetRunOutputResponse'
        '400':
          description: Bad Request
          content:
            application/problem+json:
              schema:
                $ref: '#/components/schemas/ProblemDetailResponse'
        '401':
          description: >-
            Unauthorized. The API key is missing, invalid, expired or
            deactivated.
          content:
            application/problem+json:
              schema:
                $ref: '#/components/schemas/ProblemDetailResponse'
        '403':
          description: >-
            Forbidden. The API key lacks the `runs:read` scope, or the plan does
            not include API access.
          content:
            application/problem+json:
              schema:
                $ref: '#/components/schemas/ProblemDetailResponse'
        '404':
          description: >-
            Not Found. No run with this id exists in the key's organization and
            environment, or `nodeId` is not a node of the graph the run
            executed.
          content:
            application/problem+json:
              schema:
                $ref: '#/components/schemas/ProblemDetailResponse'
        '409':
          description: >-
            Conflict. The run has not completed, no Download Output step
            captured an output, or the captured output is empty.
          content:
            application/problem+json:
              schema:
                $ref: '#/components/schemas/ProblemDetailResponse'
        '413':
          description: >-
            Content Too Large. The output exceeds the 10 MB that can be returned
            inline.
          content:
            application/problem+json:
              schema:
                $ref: '#/components/schemas/ProblemDetailResponse'
        '429':
          description: >-
            Too Many Requests. The plan's rate limit was exceeded; retry after
            the seconds in Retry-After.
          headers:
            Retry-After:
              description: Seconds until the rate limit window resets.
              schema:
                type: integer
          content:
            application/problem+json:
              schema:
                $ref: '#/components/schemas/ProblemDetailResponse'
        '500':
          description: Internal Server Error
          content:
            application/problem+json:
              schema:
                $ref: '#/components/schemas/ProblemDetailResponse'
components:
  schemas:
    GetRunOutputResponse:
      required:
        - contentType
        - isBase64
        - output
      type: object
      properties:
        contentType:
          examples:
            - application/json
          type: string
        filename:
          examples:
            - invoice-parser-po-1182-pdf-0199a6c2.json
          type:
            - 'null'
            - string
        isBase64:
          type: boolean
        output:
          oneOf:
            - type: 'null'
            - $ref: '#/components/schemas/JsonElement'
    ProblemDetailResponse:
      required:
        - status
        - title
        - type
        - instance
        - traceId
      type: object
      properties:
        status:
          type: integer
          format: int32
        title:
          type: string
        type:
          type: string
        instance:
          type: string
        traceId:
          type: string
        detail:
          type:
            - 'null'
            - string
        errors:
          type:
            - 'null'
            - object
          additionalProperties:
            type: array
            items:
              type: string
    JsonElement: {}
  securitySchemes:
    ApiKey:
      type: apiKey
      name: X-Api-Key
      in: header

````

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