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

# List Workflow Runs

> List a workflow's runs, newest first.

```bash cURL theme={null}
curl --request GET \
  --url "https://api.roe-ai.com/v1/workflows/YOUR_WORKFLOW_ID/runs/" \
  --header "Authorization: Bearer YOUR_API_KEY"
```


## OpenAPI

````yaml GET /v1/workflows/{workflow_id}/runs/
openapi: 3.1.0
info:
  title: Roe API
  version: 1.0.0
  description: Complete API documentation for Roe platform
servers:
  - url: https://api.roe-ai.com
    description: Production API
security: []
paths:
  /v1/workflows/{workflow_id}/runs/:
    get:
      tags:
        - v1
      summary: List workflow runs
      description: List a workflow's runs, newest first.
      operationId: v1_workflows_runs_list
      parameters:
        - name: limit
          required: false
          in: query
          description: >-
            Maximum number of most-recent jobs to consider and count. Caps the
            reported total so pagination stays fast for agents with large job
            histories. Defaults to 100000; pass 0 for no cap (full count,
            slower).
          schema:
            type: integer
            default: 100000
            minimum: 0
            maximum: 1000000
        - name: page
          required: false
          in: query
          description: A page number within the paginated result set.
          schema:
            type: integer
        - name: page_size
          required: false
          in: query
          description: Number of results to return per page.
          schema:
            type: integer
        - in: path
          name: workflow_id
          schema:
            type: string
            format: uuid
          required: true
        - name: organization_id
          in: query
          required: false
          schema:
            type: string
            format: uuid
          description: >-
            Organization ID. This is required for access control. It can be
            provided via query or request body depending on the endpoint.
      responses:
        '200':
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/PaginatedWorkflowRunList'
          description: ''
      security:
        - apiKeyAuth: []
components:
  schemas:
    PaginatedWorkflowRunList:
      type: object
      required:
        - count
        - results
      properties:
        count:
          type: integer
          example: 123
        next:
          type: string
          nullable: true
          format: uri
          example: http://api.example.org/accounts/?page=4
        previous:
          type: string
          nullable: true
          format: uri
          example: http://api.example.org/accounts/?page=2
        results:
          type: array
          items:
            $ref: '#/components/schemas/WorkflowRun'
    WorkflowRun:
      type: object
      properties:
        id:
          type: string
          format: uuid
        workflow_id:
          type: string
          format: uuid
        version_id:
          type:
            - string
            - 'null'
          format: uuid
        status:
          $ref: '#/components/schemas/WorkflowRunStatusEnum'
        error_message:
          type:
            - string
            - 'null'
        created_at:
          type: string
          format: date-time
      required:
        - created_at
        - error_message
        - id
        - status
        - version_id
        - workflow_id
    WorkflowRunStatusEnum:
      enum:
        - pending
        - running
        - succeeded
        - failed
        - cancelled
      type: string
      description: |-
        * `pending` - pending
        * `running` - running
        * `succeeded` - succeeded
        * `failed` - failed
        * `cancelled` - cancelled
  securitySchemes:
    apiKeyAuth:
      type: http
      scheme: bearer
      description: >-
        Organization API key passed as a Bearer token. This is the scheme used
        by the public SDK surface.

````

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