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

# List workflow runs

> Retrieve all runs for a specific workflow.



## OpenAPI

````yaml GET /api/workflows/{workflow_id}/runs
openapi: 3.0.3
info:
  title: Valendata REST API
  version: 1.0.0
  description: >-
    Trigger Skills, manage Workflows, retrieve Runs, and stream structured
    results from any language using JSON over HTTPS.
servers:
  - url: https://api.valendata.com
    description: Production
security:
  - ApiKeyAuth: []
tags:
  - name: Skills
    description: Execute and inspect published Skills.
  - name: Workflows
    description: Trigger multi-step Workflows and list them.
  - name: Runs
    description: Read past Workflow run history.
paths:
  /api/workflows/{workflow_id}/runs:
    get:
      tags:
        - Runs
      summary: List Workflow runs
      description: >-
        Retrieve the 50 most recent runs for a specific Workflow, ordered most
        recent first, including status, outputs, credits, and per-step results.
      operationId: listWorkflowRuns
      parameters:
        - name: workflow_id
          in: path
          required: true
          schema:
            type: string
            format: uuid
          description: The UUID of the Workflow whose run history you want to retrieve.
      responses:
        '200':
          description: Array of up to 50 WorkflowRun objects
          content:
            application/json:
              schema:
                type: array
                items:
                  $ref: '#/components/schemas/WorkflowRun'
        '401':
          $ref: '#/components/responses/Unauthorized'
        '404':
          $ref: '#/components/responses/NotFound'
        '500':
          $ref: '#/components/responses/InternalError'
      security:
        - SessionAuth: []
components:
  schemas:
    WorkflowRun:
      type: object
      properties:
        id:
          type: string
          format: uuid
        workflow_id:
          type: string
          format: uuid
        status:
          type: string
          enum:
            - completed
            - failed
            - waiting_for_human
        inputs:
          type: object
          nullable: true
          additionalProperties: true
        outputs:
          nullable: true
        error:
          type: string
          nullable: true
        credits_charged:
          type: number
          format: float
        execution_time_ms:
          type: integer
          nullable: true
        started_at:
          type: string
          format: date-time
          nullable: true
        completed_at:
          type: string
          format: date-time
          nullable: true
        created_at:
          type: string
          format: date-time
        step_results:
          type: array
          items:
            $ref: '#/components/schemas/StepResult'
    StepResult:
      type: object
      properties:
        id:
          type: string
        step_id:
          type: string
        step_name:
          type: string
        step_type:
          type: string
          enum:
            - agent
            - code
            - http
            - transform
            - dfuse
            - skill
        sequence_order:
          type: integer
        status:
          type: string
          enum:
            - completed
            - failed
        inputs:
          type: object
          nullable: true
          additionalProperties: true
        output:
          nullable: true
        error:
          type: string
          nullable: true
        execution_time_ms:
          type: integer
          nullable: true
        started_at:
          type: string
          format: date-time
          nullable: true
        completed_at:
          type: string
          format: date-time
          nullable: true
    Error:
      type: object
      properties:
        detail:
          oneOf:
            - type: string
            - type: object
              additionalProperties: true
          description: >-
            Error message. Usually a plain string; may be a structured object
            for some errors.
      example:
        detail: Invalid or expired API key
  responses:
    Unauthorized:
      description: >-
        Unauthorized. The Authorization header is missing, malformed, or the
        credential is invalid or expired.
      content:
        application/json:
          schema:
            $ref: '#/components/schemas/Error'
    NotFound:
      description: Resource not found in your Workspace.
      content:
        application/json:
          schema:
            $ref: '#/components/schemas/Error'
    InternalError:
      description: Internal server error on Valendata's side.
      content:
        application/json:
          schema:
            $ref: '#/components/schemas/Error'
  securitySchemes:
    ApiKeyAuth:
      type: http
      scheme: bearer
      bearerFormat: vd_sk_...
      description: >-
        API key with the `vd_sk_` prefix. Create keys from Settings, API Keys in
        the dashboard.
    SessionAuth:
      type: http
      scheme: bearer
      bearerFormat: JWT
      description: >-
        Session token (JWT) obtained by calling `POST /api/auth/login` with your
        email and password.

````