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

# List platform runs

> A newest-first, filterable page of the platform runs index.

Enumerated from the ``run_index`` table, so runs are listable without the
observability vendor. With the store OFF the honest answer is the empty page.
Each item carries ``traceId`` for a deep link to the vendor trace view.



## OpenAPI

````yaml /openapi.json get /api/runs
openapi: 3.1.0
info:
  description: The operator HTTP surface served under /api/*.
  title: tai42-skeleton API
  version: 14.0.2
servers: []
security: []
paths:
  /api/runs:
    get:
      tags:
        - runs
      summary: List platform runs
      description: >-
        A newest-first, filterable page of the platform runs index.


        Enumerated from the ``run_index`` table, so runs are listable without
        the

        observability vendor. With the store OFF the honest answer is the empty
        page.

        Each item carries ``traceId`` for a deep link to the vendor trace view.
      operationId: get_api_runs
      parameters:
        - description: Filter to one preset name.
          in: query
          name: preset
          required: false
          schema:
            title: Preset
            type: string
        - description: Filter to one preset version.
          in: query
          name: version
          required: false
          schema:
            title: Version
            type: integer
        - description: Filter to one run user (the attribution user identity).
          in: query
          name: user
          required: false
          schema:
            title: User
            type: string
        - description: Filter to one run session/thread (the attribution session identity).
          in: query
          name: session
          required: false
          schema:
            title: Session
            type: string
        - description: >-
            Filter to one park lifecycle by interaction id — returns the parked
            dispatch's row and its resume dispatch's row.
          in: query
          name: interaction
          required: false
          schema:
            title: Interaction
            type: string
        - description: 'Filter to one outcome: running | success | error | parked | aborted.'
          in: query
          name: outcome
          required: false
          schema:
            title: Outcome
            type: string
        - description: Inclusive lower bound on the run start as an ISO-8601 instant.
          in: query
          name: from
          required: false
          schema:
            title: From
            type: string
        - description: Inclusive upper bound on the run start as an ISO-8601 instant.
          in: query
          name: to
          required: false
          schema:
            title: To
            type: string
        - description: 1-based page number.
          in: query
          name: page
          required: false
          schema:
            default: 1
            minimum: 1
            title: Page
            type: integer
        - description: Items per page; clamped to the deployment cap, never refused.
          in: query
          name: pageSize
          required: false
          schema:
            default: 50
            minimum: 1
            title: Pagesize
            type: integer
      responses:
        '200':
          content:
            application/json:
              schema:
                properties:
                  data:
                    $ref: '#/components/schemas/RunsPage'
                required:
                  - data
                type: object
          description: Success.
        '400':
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/Error'
          description: Malformed request.
        '401':
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/Error'
          description: Missing or invalid api key.
      security:
        - ApiKeyAuth: []
components:
  schemas:
    RunsPage:
      description: >-
        One page of the platform runs index; ``nextPage`` is ``null`` on the
        last

        page.
      properties:
        items:
          items:
            $ref: '#/components/schemas/RunView'
          title: Items
          type: array
        nextPage:
          anyOf:
            - type: integer
            - type: 'null'
          default: null
          title: Nextpage
        page:
          title: Page
          type: integer
      required:
        - items
        - page
      title: RunsPage
      type: object
    Error:
      properties:
        code:
          description: >-
            Stable machine-readable reason a client keys a dedicated error state
            on, present on refusals that opt in (e.g. a 501 not-configured
            refusal). Optional: absent when the error carries only a
            human-readable message.
          type: string
        error:
          type: string
      required:
        - error
      type: object
    RunView:
      description: >-
        One platform-runs-index row. ``traceId`` deep-links the observability
        trace

        (``null`` when the run opened none); ``interactionId`` joins a parked
        run with

        its resume row (``null`` for a plain run); ``endedAt`` is ``null`` while
        the run

        is still running.
      properties:
        endedAt:
          anyOf:
            - type: string
            - type: 'null'
          default: null
          title: Endedat
        interactionId:
          anyOf:
            - type: string
            - type: 'null'
          default: null
          title: Interactionid
        outcome:
          title: Outcome
          type: string
        preset:
          title: Preset
          type: string
        runId:
          title: Runid
          type: string
        session:
          anyOf:
            - type: string
            - type: 'null'
          default: null
          title: Session
        startedAt:
          title: Startedat
          type: string
        traceId:
          anyOf:
            - type: string
            - type: 'null'
          default: null
          title: Traceid
        user:
          anyOf:
            - type: string
            - type: 'null'
          default: null
          title: User
        version:
          anyOf:
            - type: integer
            - type: 'null'
          default: null
          title: Version
      required:
        - runId
        - preset
        - outcome
        - startedAt
      title: RunView
      type: object
  securitySchemes:
    ApiKeyAuth:
      in: header
      name: x-api-key
      type: apiKey

````