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

# List runs

> Returns a cursor-paginated list of run summaries. The list response does not include conversation messages or execution steps.



## OpenAPI

````yaml api-reference/openapi.json GET /api/v1/runs
openapi: 3.0.3
info:
  title: Duckie API
  version: 1.0.0
  description: >-
    Read-only API for exporting Duckie runs, tool catalog data, agents,
    guidelines, guardrails, and runbooks.
servers:
  - url: https://app.useduckie.ai
    description: Duckie app
security:
  - DuckieApiKey: []
tags:
  - name: Runs
    description: Run history, run detail, and run filter helpers.
  - name: Tools
    description: Built-in, app, custom, and MCP tools available to the organization.
  - name: Agents
    description: Agent configuration data.
  - name: Guidelines
    description: Published guidelines.
  - name: Guardrails
    description: Escalation and restriction guardrails.
  - name: Runbooks
    description: Published, non-deleted runbooks.
paths:
  /api/v1/runs:
    get:
      tags:
        - Runs
      summary: List runs
      description: >-
        Returns a cursor-paginated list of run summaries. The list response does
        not include conversation messages or execution steps.
      operationId: listRuns
      parameters:
        - $ref: '#/components/parameters/RunsLimit'
        - $ref: '#/components/parameters/Cursor'
        - name: created_after
          in: query
          description: Return runs created at or after this ISO timestamp.
          schema:
            type: string
            format: date-time
        - name: created_before
          in: query
          description: Return runs created before this ISO timestamp.
          schema:
            type: string
            format: date-time
        - name: status
          in: query
          description: >-
            Filter by one or more run statuses. Repeat the parameter for OR
            matching.
          style: form
          explode: true
          schema:
            type: array
            items:
              $ref: '#/components/schemas/RunStatus'
            maxItems: 200
        - name: ticket_id
          in: query
          description: >-
            Filter by exact source ticket or conversation ID. Repeat the
            parameter for OR matching.
          style: form
          explode: true
          schema:
            type: array
            items:
              type: string
              maxLength: 200
            maxItems: 200
        - name: agent_id
          in: query
          description: Filter by agent UUID. Repeat the parameter for OR matching.
          style: form
          explode: true
          schema:
            type: array
            items:
              type: string
              format: uuid
            maxItems: 200
        - name: source
          in: query
          description: Filter by exact run source. Repeat the parameter for OR matching.
          style: form
          explode: true
          schema:
            type: array
            items:
              type: string
              maxLength: 120
            maxItems: 200
        - name: resolution_type
          in: query
          description: >-
            Filter by one or more resolution types. Repeat the parameter for OR
            matching.
          style: form
          explode: true
          schema:
            type: array
            items:
              $ref: '#/components/schemas/ResolutionType'
            maxItems: 200
        - name: duration[eq]
          in: query
          description: Filter by exact run duration in seconds.
          schema:
            type: integer
            minimum: 0
        - name: duration[gt]
          in: query
          description: Filter for runs longer than this duration in seconds.
          schema:
            type: integer
            minimum: 0
        - name: duration[gte]
          in: query
          description: Filter for runs at least this many seconds long.
          schema:
            type: integer
            minimum: 0
        - name: duration[lt]
          in: query
          description: Filter for runs shorter than this duration in seconds.
          schema:
            type: integer
            minimum: 0
        - name: duration[lte]
          in: query
          description: Filter for runs no longer than this duration in seconds.
          schema:
            type: integer
            minimum: 0
        - name: tool_name
          in: query
          description: >-
            Filter by exact recorded tool name from tool-call steps. Repeat the
            parameter for OR matching.
          style: form
          explode: true
          schema:
            type: array
            items:
              type: string
              maxLength: 200
            maxItems: 200
        - name: search
          in: query
          description: Search ticket title, ticket ID, and agent name.
          schema:
            type: string
            maxLength: 300
        - name: metadata.<key>
          in: query
          description: >-
            Filter by metadata key/value. Replace `<key>` with a metadata key
            containing only letters, numbers, dots, underscores, dashes, or
            colons.
          schema:
            type: string
            maxLength: 500
      responses:
        '200':
          description: Run summaries.
          headers:
            X-RateLimit-Limit:
              $ref: '#/components/headers/XRateLimitLimit'
            X-RateLimit-Remaining:
              $ref: '#/components/headers/XRateLimitRemaining'
            X-RateLimit-Reset:
              $ref: '#/components/headers/XRateLimitReset'
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/RunListResponse'
        '400':
          $ref: '#/components/responses/BadRequest'
        '401':
          $ref: '#/components/responses/Unauthorized'
        '403':
          $ref: '#/components/responses/Forbidden'
        '429':
          $ref: '#/components/responses/RateLimited'
        '500':
          $ref: '#/components/responses/InternalError'
components:
  parameters:
    RunsLimit:
      name: limit
      in: query
      description: Maximum number of runs to return. Defaults to 50 and is capped at 100.
      schema:
        type: integer
        minimum: 1
        maximum: 100
        default: 50
    Cursor:
      name: cursor
      in: query
      description: Opaque cursor from the previous page's `pagination.next_cursor` value.
      schema:
        type: string
  schemas:
    RunStatus:
      type: string
      enum:
        - completed
        - running
        - failed
        - cancelled
        - paused
    ResolutionType:
      type: string
      enum:
        - deflected
        - resolved
        - escalated
        - pending
    RunListResponse:
      type: object
      required:
        - data
        - pagination
      properties:
        data:
          type: array
          items:
            $ref: '#/components/schemas/RunSummary'
        pagination:
          $ref: '#/components/schemas/Pagination'
    RunSummary:
      type: object
      required:
        - id
        - object
        - created_at
        - updated_at
        - status
        - source
        - duration_seconds
        - ticket
        - agent
        - category
        - resolution
        - trigger
        - approval
        - scheduled_resume_at
      properties:
        id:
          type: string
          format: uuid
        object:
          type: string
          enum:
            - run
        created_at:
          type: string
          format: date-time
        updated_at:
          type: string
          format: date-time
        status:
          type: string
          nullable: true
        source:
          type: string
        duration_seconds:
          type: number
        ticket:
          $ref: '#/components/schemas/RunTicket'
        agent:
          $ref: '#/components/schemas/NullableEntityRef'
        category:
          $ref: '#/components/schemas/NullableEntityRef'
        resolution:
          $ref: '#/components/schemas/NullableResolution'
        trigger:
          $ref: '#/components/schemas/RunTriggerSummary'
        approval:
          $ref: '#/components/schemas/RunApproval'
        scheduled_resume_at:
          type: string
          format: date-time
          nullable: true
    Pagination:
      type: object
      required:
        - limit
        - next_cursor
        - has_more
      properties:
        limit:
          type: integer
        next_cursor:
          type: string
          nullable: true
        has_more:
          type: boolean
    ErrorResponse:
      type: object
      required:
        - error
      properties:
        error:
          $ref: '#/components/schemas/Error'
    RunTicket:
      type: object
      required:
        - id
        - title
        - url
      properties:
        id:
          type: string
        title:
          type: string
        url:
          type: string
          format: uri
          nullable: true
    NullableEntityRef:
      type: object
      nullable: true
      required:
        - id
        - name
      properties:
        id:
          type: string
          nullable: true
        name:
          type: string
          nullable: true
    NullableResolution:
      type: object
      nullable: true
      required:
        - type
        - summary
      properties:
        type:
          type: string
        summary:
          type: string
    RunTriggerSummary:
      type: object
      properties:
        event_type:
          type: string
          nullable: true
        source:
          type: string
          nullable: true
        timestamp:
          type: string
          nullable: true
        ticket_status:
          type: string
          nullable: true
        ticket_priority:
          type: string
          nullable: true
        ticket_tags:
          type: array
          items:
            type: string
          nullable: true
        trigger_message_type:
          type: string
          nullable: true
        internal_notes_only:
          type: boolean
          nullable: true
        is_messaging_ticket:
          type: boolean
          nullable: true
        customer_name:
          type: string
          nullable: true
    RunApproval:
      type: object
      required:
        - waiting_for_approval
        - pending
      properties:
        waiting_for_approval:
          type: boolean
        pending:
          $ref: '#/components/schemas/NullablePendingApproval'
    Error:
      type: object
      required:
        - code
        - message
        - request_id
      properties:
        code:
          type: string
          enum:
            - invalid_request
            - unauthenticated
            - permission_denied
            - not_found
            - rate_limited
            - internal_error
        message:
          type: string
        request_id:
          type: string
        retry_after:
          type: integer
          minimum: 1
    NullablePendingApproval:
      type: object
      nullable: true
      properties:
        step_id:
          type: string
          nullable: true
        tool_id:
          type: string
          nullable: true
        tool_name:
          type: string
          nullable: true
        tool_type:
          type: string
          nullable: true
        params:
          description: Redacted and truncated approval parameters.
          nullable: true
        redacted:
          type: boolean
        truncated:
          type: boolean
  headers:
    XRateLimitLimit:
      description: Request limit for the active rate-limit bucket.
      schema:
        type: integer
    XRateLimitRemaining:
      description: Requests remaining in the active rate-limit bucket.
      schema:
        type: integer
    XRateLimitReset:
      description: Unix timestamp when the active rate-limit bucket resets.
      schema:
        type: integer
    RetryAfter:
      description: Seconds to wait before retrying.
      schema:
        type: integer
        minimum: 1
  responses:
    BadRequest:
      description: The request was invalid.
      content:
        application/json:
          schema:
            $ref: '#/components/schemas/ErrorResponse'
    Unauthorized:
      description: The request is missing a valid API key.
      content:
        application/json:
          schema:
            $ref: '#/components/schemas/ErrorResponse'
    Forbidden:
      description: The API key does not have the required scope.
      content:
        application/json:
          schema:
            $ref: '#/components/schemas/ErrorResponse'
    RateLimited:
      description: A rate limit was exceeded.
      headers:
        Retry-After:
          $ref: '#/components/headers/RetryAfter'
        X-RateLimit-Limit:
          $ref: '#/components/headers/XRateLimitLimit'
        X-RateLimit-Remaining:
          $ref: '#/components/headers/XRateLimitRemaining'
        X-RateLimit-Reset:
          $ref: '#/components/headers/XRateLimitReset'
      content:
        application/json:
          schema:
            $ref: '#/components/schemas/ErrorResponse'
    InternalError:
      description: The API could not complete the request.
      content:
        application/json:
          schema:
            $ref: '#/components/schemas/ErrorResponse'
  securitySchemes:
    DuckieApiKey:
      type: http
      scheme: bearer
      description: API key created in Duckie Settings -> API Access.

````