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

# List runs for all workflows in a project (cursor-paginated, newest first)

> GET /v1/projects/{project}/runs



## OpenAPI

````yaml /openapi/v1.json get /projects/{project}/runs
openapi: 3.1.0
info:
  title: HASP AI API
  version: '2026-07-12'
  description: >-
    The HASP Public AI API is the regulated-AI substrate for healthcare and
    other

    regulated industries — identity, policy, audit, compliance, and PHI handling

    for AI inference, exposed via two surfaces:


    - **Native (`/v1/ai/*`)**: HASP-native chat with full event taxonomy, run
    lifecycle,
      and PHI metadata.
    - **Anthropic-compat (`/v1/messages`)**: Drop-in replacement for
    `@anthropic-ai/sdk` —
      change only `baseURL`. All Gateway compliance checks (BAA, credits, PHI policy) apply.

    All requests require an API key (`Authorization: Bearer
    hasp_api_live_<key>`). See

    [Authentication](https://docs.usehasp.com/ai-api/authentication) for key
    management.
servers:
  - url: https://api.usehasp.com/v1
    description: Production
security:
  - http: []
paths:
  /projects/{project}/runs:
    get:
      tags:
        - WorkflowRun
      summary: >-
        List runs for all workflows in a project (cursor-paginated, newest
        first)
      description: GET /v1/projects/{project}/runs
      operationId: v1.runs.index
      parameters:
        - name: project
          in: path
          required: true
          description: The project slug
          schema:
            type: string
        - name: cursor
          in: query
          schema:
            type: string
      responses:
        '200':
          description: A page of workflow runs for the project, newest first.
          content:
            application/json:
              schema:
                type: object
                examples:
                  - data:
                      - object: workflow_run
                        id: run_01JQREQ7XZQK5N6PZ1VVXHYB8T
                        workflow_id: 01JQREQ7XZQK5N6PZ1VVXHYB8U
                        status: completed
                        trigger_source: api
                        env: production
                        caller_id: key_01JQREQ7XZQK5N6PZ1VVXHYB8V
                        created_at: '2026-07-12T16:00:00Z'
                        started_at: '2026-07-12T16:00:01Z'
                        completed_at: '2026-07-12T16:00:04Z'
                        failed_reason: null
                    meta:
                      next_cursor: null
                      has_more: false
                properties:
                  data:
                    type: array
                    items:
                      $ref: '#/components/schemas/WorkflowRunResource'
                  meta:
                    type: object
                    properties:
                      next_cursor:
                        type:
                          - string
                          - 'null'
                      has_more:
                        type: boolean
                    required:
                      - next_cursor
                      - has_more
                required:
                  - data
                  - meta
        '401':
          description: Bearer token is missing, malformed, or revoked.
          content:
            application/json:
              schema:
                type: object
                example:
                  success: false
                  error:
                    type: authentication
                    code: INVALID_API_KEY
                    message: Bearer token is missing, malformed, or revoked.
                    param: null
                    details: null
                    retryable: false
                    request_id: 01JQREQ7XZQK5N6PZ1VVXHYB8T
                  meta:
                    request_id: 01JQREQ7XZQK5N6PZ1VVXHYB8T
        '403':
          description: >-
            The caller is authenticated but lacks the scope or capability this
            route requires.
          content:
            application/json:
              schema:
                type: object
                example:
                  success: false
                  error:
                    type: permission
                    code: MISSING_SCOPE
                    message: >-
                      The caller is authenticated but lacks the scope or
                      capability this route requires.
                    param: null
                    details: null
                    retryable: false
                    request_id: 01JQREQ7XZQK5N6PZ1VVXHYB8T
                  meta:
                    request_id: 01JQREQ7XZQK5N6PZ1VVXHYB8T
        '404':
          $ref: '#/components/responses/ModelNotFoundException'
components:
  schemas:
    WorkflowRunResource:
      type: object
      additionalProperties: {}
      title: WorkflowRunResource
  responses:
    ModelNotFoundException:
      description: Not found
      content:
        application/json:
          schema:
            type: object
            properties:
              message:
                type: string
                description: Error overview.
            required:
              - message
  securitySchemes:
    http:
      type: http
      scheme: bearer

````