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

> List execution runs for a workflow with filtering and pagination. Use when managing deterministic workflow definitions and triggering or inspecting their runs.

# [Beta] List workflow runs



## OpenAPI

````yaml get /workflows/{workflow_id}/runs
openapi: 3.1.0
info:
  title: OpenCX API
  description: >

    OpenCX is an AI-powered, all-in-one platform for customer support and
    outbound communications.


    Use this API to manage your OpenCX organization's AI agents, actions,
    conversations, contacts, and more.


    To get started, generate a new API key from the dashboard.


    ## Authentication

    All API endpoints require authentication using a Bearer token. You can
    generate an API key from your OpenCX dashboard.


    ## Rate Limiting

    API requests are rate limited to ensure fair usage. The current limits are:

    - 100 requests per minute for standard endpoints

    - 1000 requests per minute for streaming endpoints


    ## Error Handling

    The API uses standard HTTP status codes and returns detailed error messages
    in the response body.
  version: 1.0-beta
  license:
    name: MIT
    url: https://opensource.org/licenses/MIT
servers:
  - url: https://api.open.cx
    description: Production
security:
  - bearerAuth: []
paths:
  /workflows/{workflow_id}/runs:
    get:
      tags:
        - Workflows (Beta)
      summary: '[Beta] List workflow runs'
      description: >-
        List execution runs for a workflow with filtering and pagination. Filter
        by status (completed, failed, in_progress, canceled, idle), trigger
        cause (manual, automatic, scheduled), and search by keyword.
      operationId: listWorkflowRuns
      parameters:
        - schema:
            default: 1
            type: number
          in: query
          name: page
          required: false
          description: Page number (1-based)
        - schema:
            default: 20
            type: number
          in: query
          name: limit
          required: false
          description: Results per page (max 50)
        - schema:
            type: string
          in: query
          name: status
          required: false
          description: >-
            Comma-separated statuses: completed, failed, in_progress, canceled,
            idle
        - schema:
            type: string
          in: query
          name: trigger_cause
          required: false
          description: 'Comma-separated causes: manual, automatic, scheduled'
        - schema:
            type: string
          in: path
          name: workflow_id
          required: true
      responses:
        '200':
          description: Default Response
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/ListWorkflowRunsOutput'
        '500':
          description: Internal Server Error
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/ErrorDto'
components:
  schemas:
    ListWorkflowRunsOutput:
      $schema: https://json-schema.org/draft/2020-12/schema
      $id: '#/components/schemas/ListWorkflowRunsOutput'
      type: object
      properties:
        runs:
          type: array
          items:
            $ref: '#/components/schemas/WorkflowRunPublicResponseDto'
        total_items:
          type: number
        total_pages:
          type: number
        has_next_page:
          type: boolean
        current_page:
          type: number
      required:
        - runs
        - total_items
        - total_pages
        - has_next_page
        - current_page
      additionalProperties: false
    ErrorDto:
      type: object
      properties:
        statusCode:
          type: integer
        message:
          type: string
        error:
          type: string
    WorkflowRunPublicResponseDto:
      $schema: https://json-schema.org/draft/2020-12/schema
      $id: '#/components/schemas/WorkflowRunPublicResponseDto'
      type: object
      properties:
        id:
          type: string
          description: Run UUID
        workflow_id:
          type: number
          description: Workflow version serial ID that was executed
        status:
          anyOf:
            - type: string
              enum:
                - canceled
                - completed
                - failed
                - idle
                - in_progress
                - waiting
            - type: 'null'
          description: 'Run status: "idle", "in_progress", "completed", "failed", "canceled"'
        trigger_cause:
          type: string
          enum:
            - automatic
            - manual
            - scheduled
          description: 'What caused the run: "manual", "automatic", "scheduled"'
        duration_in_seconds:
          anyOf:
            - type: number
            - type: 'null'
          description: How long the run took
        run_started_at:
          anyOf:
            - type: string
              format: date-time
            - type: 'null'
        run_ended_at:
          anyOf:
            - type: string
              format: date-time
            - type: 'null'
        is_test_run:
          type: boolean
          description: Whether this was a test run
        created_at:
          type: string
          format: date-time
      required:
        - id
        - workflow_id
        - status
        - trigger_cause
        - duration_in_seconds
        - run_started_at
        - run_ended_at
        - is_test_run
        - created_at
      additionalProperties: false
  securitySchemes:
    bearerAuth:
      type: http
      scheme: bearer
      bearerFormat: JWT

````