> ## 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.

# Get a run

> `reportId` is the `run_id` a launch answered with. Three independent states: whether the run got through, how it was graded, and whether the host was put back.



## OpenAPI

````yaml /0.16/openapi.json get /api/v1/scenarios/{id}/runs/{reportId}
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/{reportId}:
    get:
      tags:
        - Scenarios
      summary: Get a run
      description: >-
        `reportId` is the `run_id` a launch answered with. Three independent
        states: whether the run got through, how it was graded, and whether the
        host was put back.
      parameters:
        - schema:
            type: string
          required: true
          name: id
          in: path
        - schema:
            type: string
          required: true
          name: reportId
          in: path
      responses:
        '200':
          description: The run, with its step records
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/ScenarioRun'
        '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:
    ScenarioRun:
      type: object
      properties:
        status:
          type: string
          enum:
            - created
            - pending
            - queued
            - running
            - cancelling
            - completed
            - failed
            - cancelled
        execution_status:
          type: string
          nullable: true
          enum:
            - queued
            - running
            - completed
            - failed
            - cancelled
            - null
        evaluation_status:
          type: string
          enum:
            - not_evaluated
            - passed
            - failed
            - unknown
        passing:
          type: boolean
          nullable: true
        restore_failed:
          type: boolean
          nullable: true
        restore_status:
          type: string
          nullable: true
          enum:
            - not_required
            - pending
            - running
            - completed
            - failed
            - null
        errors:
          type: array
          nullable: true
          items:
            type: string
        job_id:
          type: string
          nullable: true
        workflow_id:
          type: string
          nullable: true
        workflow_status:
          type: string
          nullable: true
        steps:
          type: array
          items:
            type: object
            properties:
              name:
                type: string
                example: prepare:stop nginx
              status:
                type: string
              error:
                type: string
                nullable: true
              duration_ms:
                type: integer
                nullable: true
              record:
                nullable: true
                description: >-
                  What the step did: command (secrets redacted), rc, stdout and
                  stderr
            required:
              - name
              - status
              - error
              - duration_ms
      required:
        - status
        - execution_status
        - evaluation_status
        - passing
        - restore_failed
        - restore_status
        - errors
        - job_id
        - workflow_id
        - workflow_status
        - steps
    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
  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.