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

# List runs of a scenario

> Its graded runs across every benchmark, newest first. A deleted scenario is 404 even though its runs stay.



## OpenAPI

````yaml /0.17/openapi.json get /api/v1/scenarios/{id}/runs
openapi: 3.0.3
info:
  title: 2501 Public API
  version: v1
  description: >-
    The stable, versioned HTTP API for driving 2501 as code. See the API
    Overview for authentication, the org_id rule, cursor pagination, and the
    error envelope.
servers:
  - url: https://{command_center_host}
    variables:
      command_center_host:
        default: your-command-center-host
        description: Your Command Center host
security:
  - bearerAuth: []
paths:
  /api/v1/scenarios/{id}/runs:
    get:
      tags:
        - Scenarios
      summary: List runs of a scenario
      description: >-
        Its graded runs across every benchmark, newest first. A deleted scenario
        is 404 even though its runs stay.
      parameters:
        - schema:
            type: string
          required: true
          name: id
          in: path
        - schema:
            type: string
            default: '25'
          required: false
          name: limit
          in: query
        - schema:
            type: string
          required: false
          name: starting_after
          in: query
        - schema:
            type: string
          required: false
          name: ending_before
          in: query
        - schema:
            anyOf:
              - type: string
                enum:
                  - total_count
              - type: array
                items:
                  type: string
                  enum:
                    - total_count
          required: false
          name: include
          in: query
      responses:
        '200':
          description: A page of the scenario's runs
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/BenchmarkRunList'
        '400':
          description: >-
            Bad request - a field is missing, malformed, or not allowed
            (VALIDATION_FAILED, BAD_REQUEST, INVALID_CURSOR)
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/Error'
        '401':
          description: >-
            No credentials, or a key that is invalid, revoked, or expired
            (UNAUTHORIZED)
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/Error'
        '403':
          description: >-
            Authenticated but not allowed (FORBIDDEN, ORG_ACCESS_DENIED,
            STEP_UP_REFUSED, TWO_FACTOR_ENROLLMENT_REQUIRED,
            LICENSE_CAP_REACHED, LICENSE_EXPIRED)
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/Error'
        '404':
          description: No such row that this caller can see (NOT_FOUND)
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/Error'
components:
  schemas:
    BenchmarkRunList:
      type: object
      properties:
        object:
          type: string
          enum:
            - list
        data:
          type: array
          items:
            $ref: '#/components/schemas/BenchmarkRun'
        has_more:
          type: boolean
        total_count:
          type: integer
          description: Present only when include=total_count is set
      required:
        - object
        - data
        - has_more
    Error:
      type: object
      properties:
        code:
          type: string
          example: VALIDATION_FAILED
        message:
          type: string
          example: Validation failed
        request_id:
          type: string
          example: req_3702b7e7-...
        field:
          type: string
          description: Set when one input is at fault
        errors:
          type: array
          items:
            type: object
            properties:
              field:
                type: string
              message:
                type: string
            required:
              - field
              - message
          description: Set when several inputs are at fault
        details:
          type: object
          additionalProperties:
            nullable: true
      required:
        - code
        - message
        - request_id
    BenchmarkRun:
      type: object
      properties:
        id:
          type: string
          example: scr_ca850e32-...
        benchmark_id:
          type: string
          example: bch_0f4a6d1b-...
        scenario_id:
          type: string
          nullable: true
          description: Null on a report the CLI runner filed
        resource_version_id:
          type: string
          nullable: true
          description: The scenario version the run executed
        key:
          type: string
          nullable: true
        title:
          type: string
          nullable: true
        description:
          type: string
          nullable: true
        tags:
          type: array
          items:
            type: string
        ticket_title:
          type: string
          nullable: true
        ticket_body:
          type: string
          nullable: true
        status:
          type: string
          enum:
            - queued
            - running
            - completed
            - failed
            - cancelled
        execution_status:
          type: string
          enum:
            - queued
            - running
            - completed
            - failed
            - cancelled
        evaluation_status:
          type: string
          enum:
            - not_evaluated
            - passed
            - failed
            - unknown
        passing:
          type: boolean
          nullable: true
        compliance_score:
          type: number
          nullable: true
        remediation:
          type: boolean
          nullable: true
        validation:
          nullable: true
        agents:
          nullable: true
        execution_time_ms:
          type: integer
          nullable: true
        errors:
          nullable: true
        job_id:
          type: string
          nullable: true
        restore_status:
          type: string
          nullable: true
          enum:
            - not_required
            - pending
            - running
            - completed
            - failed
            - null
        restore_failed:
          type: boolean
          nullable: true
        total_tokens:
          type: integer
          description: Input plus output tokens of the job the run opened
        live_step:
          type: string
          nullable: true
          description: The stage a run still going is in; null once it has ended
        workflow_status:
          type: string
          nullable: true
        org_id:
          type: string
          example: org_460b541c-...
        tenant_id:
          type: string
          example: ten_115bea44-...
        started_at:
          type: string
          nullable: true
          format: date-time
          example: '2026-08-26T10:00:26.380Z'
        completed_at:
          type: string
          nullable: true
          format: date-time
          example: '2026-08-26T10:00:26.380Z'
        created_at:
          type: string
          format: date-time
          example: '2026-08-26T10:00:26.380Z'
        updated_at:
          type: string
          format: date-time
          example: '2026-08-26T10:00:26.380Z'
      required:
        - id
        - benchmark_id
        - scenario_id
        - resource_version_id
        - key
        - title
        - description
        - tags
        - ticket_title
        - ticket_body
        - status
        - execution_status
        - evaluation_status
        - passing
        - compliance_score
        - remediation
        - execution_time_ms
        - job_id
        - restore_status
        - restore_failed
        - total_tokens
        - live_step
        - workflow_status
        - org_id
        - tenant_id
        - started_at
        - completed_at
        - created_at
        - updated_at
  securitySchemes:
    bearerAuth:
      type: http
      scheme: bearer
      description: >-
        An API key minted in Command Center (Settings -> API Keys), sent as
        `Authorization: Bearer 2501_ak_...`. A Command Center session cookie is
        also accepted.

````

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