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

# A pipeline's runs

> Newest first. Runs Airflow knows about but nobody reported are filled
in from Airflow (status and times).



## OpenAPI

````yaml get /api/ingest/pipelines/{pipeline_id}/runs
openapi: 3.1.0
info:
  title: Nx1 AI API
  description: |

    AI API for Nx1 Data Platform Management and Automated Data Tasks.

    Authentication is required via PSK in Authorization header.

    Default PSK is | [ask a friend] |
  version: 0.10.2
servers: []
security: []
paths:
  /api/ingest/pipelines/{pipeline_id}/runs:
    get:
      tags:
        - Ingest pipelines
      summary: A pipeline's runs
      description: |-
        Newest first. Runs Airflow knows about but nobody reported are filled
        in from Airflow (status and times).
      operationId: list_runs_api_ingest_pipelines__pipeline_id__runs_get
      parameters:
        - name: pipeline_id
          in: path
          required: true
          schema:
            type: string
            format: uuid
            description: The pipeline's id.
            title: Pipeline Id
          description: The pipeline's id.
        - name: limit
          in: query
          required: false
          schema:
            type: integer
            maximum: 200
            minimum: 1
            default: 20
            title: Limit
      responses:
        '200':
          description: Successful Response
          content:
            application/json:
              schema:
                type: array
                items:
                  $ref: '#/components/schemas/RunSummary'
                title: Response List Runs Api Ingest Pipelines  Pipeline Id  Runs Get
        '400':
          description: Invalid request.
        '403':
          description: Not allowed.
        '404':
          description: No such pipeline (or file).
        '409':
          description: Conflicts with the pipeline's state.
        '422':
          description: Validation Error
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/HTTPValidationError'
        '502':
          description: Airflow or the source couldn't be reached.
      security:
        - OAuth2AuthorizationCodeBearer: []
        - APIKeyHeader: []
components:
  schemas:
    RunSummary:
      properties:
        id:
          type: string
          format: uuid
          title: Id
        trigger:
          $ref: '#/components/schemas/RunTrigger'
        status:
          $ref: '#/components/schemas/RunStatus'
        phase:
          anyOf:
            - $ref: '#/components/schemas/RunPhase'
            - type: 'null'
        started_at:
          anyOf:
            - type: string
              format: date-time
            - type: 'null'
          title: Started At
        finished_at:
          anyOf:
            - type: string
              format: date-time
            - type: 'null'
          title: Finished At
        duration_s:
          anyOf:
            - type: integer
            - type: 'null'
          title: Duration S
        rows_read:
          anyOf:
            - type: integer
            - type: 'null'
          title: Rows Read
        rows_written:
          anyOf:
            - type: integer
            - type: 'null'
          title: Rows Written
        checks_passed:
          anyOf:
            - type: integer
            - type: 'null'
          title: Checks Passed
        checks_total:
          anyOf:
            - type: integer
            - type: 'null'
          title: Checks Total
        error_kind:
          anyOf:
            - $ref: '#/components/schemas/ErrorKind'
            - type: 'null'
        error:
          anyOf:
            - type: string
            - type: 'null'
          title: Error
        schema_change:
          anyOf:
            - $ref: '#/components/schemas/SchemaChange'
            - type: 'null'
        governance:
          additionalProperties:
            type: string
          type: object
          title: Governance
      type: object
      required:
        - id
        - trigger
        - status
      title: RunSummary
    HTTPValidationError:
      properties:
        detail:
          items:
            $ref: '#/components/schemas/ValidationError'
          type: array
          title: Detail
      type: object
      title: HTTPValidationError
    RunTrigger:
      type: string
      enum:
        - schedule
        - manual
        - create
      title: RunTrigger
    RunStatus:
      type: string
      enum:
        - queued
        - running
        - succeeded
        - failed
      title: RunStatus
    RunPhase:
      type: string
      enum:
        - reading
        - writing
        - checking
        - registering
        - done
      title: RunPhase
    ErrorKind:
      type: string
      enum:
        - schema_drift
        - source_unreachable
        - cast_failed
        - dq_failed
        - permission_denied
        - other
      title: ErrorKind
    SchemaChange:
      properties:
        added:
          items:
            type: string
          type: array
          maxItems: 500
          title: Added
        changed:
          items:
            type: string
          type: array
          maxItems: 500
          title: Changed
      type: object
      title: SchemaChange
    ValidationError:
      properties:
        loc:
          items:
            anyOf:
              - type: string
              - type: integer
          type: array
          title: Location
        msg:
          type: string
          title: Message
        type:
          type: string
          title: Error Type
        input:
          title: Input
        ctx:
          type: object
          title: Context
      type: object
      required:
        - loc
        - msg
        - type
      title: ValidationError
  securitySchemes:
    OAuth2AuthorizationCodeBearer:
      type: oauth2
      flows:
        authorizationCode:
          scopes: {}
          authorizationUrl: >-
            https://sso-rapid.rapid.nx1cloud.com/realms/rapid/protocol/openid-connect/auth
          tokenUrl: >-
            https://sso-rapid.rapid.nx1cloud.com/realms/rapid/protocol/openid-connect/token
    APIKeyHeader:
      type: apiKey
      in: header
      name: Authorization-PSK

````

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