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

# Read a run's output

> Read what a run from the Code editor printed, while it runs and after it ends.

<Accordion title="Details">
  * Business accounts only, with jobs:read. You read the runs whose job you can read with GET /v1/jobs/\{id}, and any other run is not found.

  * Each chunk is the run's stdout (out) or stderr (err). A cut chunk, with no text, means the run printed more than the 4 MiB kept.

  * Send the last seq you read as after. more is true when more was printed already, so read again at once.

  * Output is kept until 60 minutes after the run ends.

  * **Callers:** an API key, an MCP OAuth token or a Dashboard session.

  * **Permission:** `jobs:read`.

  * **Effect:** Changes nothing.

  * **Errors:** [`business_account_required`](/errors#business_account_required), [`not_found`](/errors#not_found), [`run_view_throttled`](/errors#run_view_throttled), and the [errors any request can get](/errors).
</Accordion>


## OpenAPI

````yaml /api-reference/openapi.json get /v1/code/runs/{id}/output
openapi: 3.1.0
info:
  title: Pomerado API
  version: '1'
  description: >-
    Run and build website tools, follow their jobs, and manage logins, API keys
    and webhooks. Authenticate with a Pomerado API key (pom_…), an MCP OAuth
    token or a Dashboard session as a Bearer token.
servers:
  - url: https://api.pomerado.ai
security: []
tags:
  - name: account
    x-group: Account
  - name: api_keys
    x-group: API keys
  - name: connected_apps
    x-group: Connected apps
  - name: usage
    x-group: Usage
  - name: quota
    x-group: Quota
  - name: billing
    x-group: Billing
  - name: integrations
    x-group: Integrations
  - name: connect
    x-group: Connect
  - name: code
    x-group: Code
  - name: logins
    x-group: Saved logins
  - name: two_factor
    x-group: 2FA
  - name: login_access
    x-group: Login access
  - name: tools
    x-group: Tools
  - name: webhooks
    x-group: Webhooks
  - name: runs
    x-group: Runs
  - name: builds
    x-group: Builds
  - name: jobs
    x-group: Jobs
  - name: files
    x-group: Files
  - name: team
    x-group: Team
paths:
  /v1/code/runs/{id}/output:
    get:
      tags:
        - code
      summary: Read a run's output
      description: >-
        Read what a run from the Code editor printed, while it runs and after it
        ends.
      operationId: code.run_output
      parameters:
        - name: id
          in: path
          required: true
          description: 'a job ID: job_ and 32 lowercase hex digits'
          schema:
            type: string
            examples:
              - job_0f8e2d1c4b3a49e8a7f6e5d4c3b2a190
        - name: after
          in: query
          required: false
          description: >-
            The seq of the last chunk you read; leave it out to read from the
            start
          schema:
            type: string
      responses:
        '200':
          description: What the run printed
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/CodeRunOutput'
        '400':
          description: invalid_request
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/Error'
        '401':
          description: unauthorized, reauthentication_required
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/Error'
        '403':
          description: business_account_required, forbidden
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/Error'
        '404':
          description: not_found
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/Error'
        '429':
          description: run_view_throttled
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/Error'
        '500':
          description: internal_error
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/Error'
        '503':
          description: temporarily_unavailable
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/Error'
      security:
        - bearer: []
components:
  schemas:
    CodeRunOutput:
      type: object
      required:
        - chunks
        - more
      properties:
        chunks:
          type: array
          items:
            type: object
            required:
              - seq
              - stream
              - at
              - text
            properties:
              seq:
                type: integer
                description: The chunk's position; send it as after to read what follows
              stream:
                type: string
                enum:
                  - out
                  - err
                  - cut
                description: >-
                  out: the run's stdout. err: its stderr. cut: the run printed
                  more than the 4 MiB kept
              at:
                $ref: '#/components/schemas/DateFromString'
              text:
                type: string
                description: What the run printed; empty for cut
            additionalProperties: false
        more:
          type: boolean
          description: 'Whether more was printed already: read again at once'
      additionalProperties: false
    Error:
      type: object
      required:
        - error
      properties:
        error:
          type: object
          required:
            - code
            - message
            - retryable
            - docs_url
          properties:
            code:
              type: string
            message:
              type: string
            retryable:
              type: boolean
            docs_url:
              type: string
            details:
              type: object
              required: []
              properties: {}
              additionalProperties:
                $id: /schemas/unknown
          additionalProperties: false
      additionalProperties: false
    DateFromString:
      type: string
      description: a string to be decoded into a Date
  securitySchemes:
    bearer:
      type: http
      scheme: bearer

````

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