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

# List Scenarios

> List the generated test-call scenarios for a simulation run.

Scenarios are generated asynchronously after a run starts, so this returns an
empty list until generation completes.



## OpenAPI

````yaml https://api.usetuner.ai/public/openapi.json get /api/v1/workspaces/{workspace_id}/agents/{agent_id}/simulation-runs/{simulation_run_id}/scenarios
openapi: 3.1.0
info:
  title: My Public API
  version: 1.0.0
servers:
  - url: https://api.usetuner.ai
security: []
tags:
  - name: calls
    x-group: Calls
  - name: workspaces
    x-group: Workspaces
  - name: agent-settings
    x-group: Agent Settings
  - name: agents
    x-group: Agents
  - name: simulation
    x-group: Simulation
  - name: providers
    x-group: Providers
paths:
  /api/v1/workspaces/{workspace_id}/agents/{agent_id}/simulation-runs/{simulation_run_id}/scenarios:
    get:
      tags:
        - simulation
      summary: List Scenarios
      description: >-
        List the generated test-call scenarios for a simulation run.


        Scenarios are generated asynchronously after a run starts, so this
        returns an

        empty list until generation completes.
      operationId: >-
        list_simulation_scenarios_api_v1_workspaces__workspace_id__agents__agent_id__simulation_runs__simulation_run_id__scenarios_get
      parameters:
        - name: simulation_run_id
          in: path
          required: true
          schema:
            type: integer
            description: ID of the simulation run
            title: Simulation Run Id
          description: ID of the simulation run
        - name: agent_id
          in: path
          required: true
          schema:
            type: integer
            description: Tuner's internal numeric ID for the agent.
            title: Agent Id
          description: Tuner's internal numeric ID for the agent.
        - name: workspace_id
          in: path
          required: true
          schema:
            type: integer
            description: Workspace ID. Find this in Workspace > General Settings.
            title: Workspace Id
          description: Workspace ID. Find this in Workspace > General Settings.
      responses:
        '200':
          description: Successful Response
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/SimulationScenariosListResponse'
        '401':
          description: Missing or invalid API key.
          content:
            application/json:
              example:
                detail: Not authenticated
              schema:
                $ref: '#/components/schemas/ErrorResponse'
        '403':
          description: You do not have access to this workspace.
          content:
            application/json:
              example:
                detail: User does not have access to workspace 42
              schema:
                $ref: '#/components/schemas/ErrorResponse'
        '404':
          description: Agent or simulation run not found.
          content:
            application/json:
              example:
                detail: Simulation run with ID 31 not found
              schema:
                $ref: '#/components/schemas/ErrorResponse'
        '422':
          description: Validation Error
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/HTTPValidationError'
      security:
        - Bearer: []
components:
  schemas:
    SimulationScenariosListResponse:
      properties:
        scenarios:
          items:
            $ref: '#/components/schemas/SimulationScenarioResponse'
          type: array
          title: Scenarios
        total:
          type: integer
          title: Total
      type: object
      required:
        - scenarios
        - total
      title: SimulationScenariosListResponse
    ErrorResponse:
      properties:
        detail:
          type: string
          title: Detail
          description: Human-readable description of what went wrong.
      type: object
      required:
        - detail
      title: ErrorResponse
      description: Error body returned when a request fails.
    HTTPValidationError:
      properties:
        detail:
          items:
            $ref: '#/components/schemas/ValidationError'
          type: array
          title: Detail
      type: object
      title: HTTPValidationError
    SimulationScenarioResponse:
      properties:
        id:
          type: integer
          title: Id
        simulation_run_id:
          type: integer
          title: Simulation Run Id
        type:
          type: string
          title: Type
        status:
          type: string
          title: Status
        generated_scenario:
          additionalProperties: true
          type: object
          title: Generated Scenario
        target_ai_evaluation:
          anyOf:
            - additionalProperties: true
              type: object
            - type: 'null'
          title: Target Ai Evaluation
      type: object
      required:
        - id
        - simulation_run_id
        - type
        - status
        - generated_scenario
        - target_ai_evaluation
      title: SimulationScenarioResponse
    ValidationError:
      properties:
        loc:
          items:
            anyOf:
              - type: string
              - type: integer
          type: array
          title: Location
        msg:
          type: string
          title: Message
        type:
          type: string
          title: Error Type
        input:
          title: Input
        ctx:
          type: object
          title: Context
      type: object
      required:
        - loc
        - msg
        - type
      title: ValidationError
  securitySchemes:
    Bearer:
      type: http
      description: >-
        Use Tuner API key (tr_api_...) or user session token. Find your API key
        in Workspace Settings > API Keys.
      scheme: bearer

````