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

> List an agent's simulation runs with their generated test calls.

Each run includes its simulation calls, pass/fail counts, and the evals and
intents it was configured with. Filter by `status` to poll for completion.



## OpenAPI

````yaml https://api.usetuner.ai/public/openapi.json get /api/v1/workspaces/{workspace_id}/agents/{agent_id}/simulation-runs
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:
    get:
      tags:
        - simulation
      summary: List Runs
      description: >-
        List an agent's simulation runs with their generated test calls.


        Each run includes its simulation calls, pass/fail counts, and the evals
        and

        intents it was configured with. Filter by `status` to poll for
        completion.
      operationId: >-
        list_simulation_runs_api_v1_workspaces__workspace_id__agents__agent_id__simulation_runs_get
      parameters:
        - 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.
        - name: status
          in: query
          required: false
          schema:
            anyOf:
              - type: string
              - type: 'null'
            title: Status
        - name: page
          in: query
          required: false
          schema:
            type: integer
            minimum: 1
            default: 1
            title: Page
        - name: page_size
          in: query
          required: false
          schema:
            type: integer
            maximum: 100
            minimum: 1
            default: 20
            title: Page Size
      responses:
        '200':
          description: Successful Response
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/SimulationRunsDetailResponse'
        '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 not found.
          content:
            application/json:
              example:
                detail: Agent with ID 17 not found
              schema:
                $ref: '#/components/schemas/ErrorResponse'
        '422':
          description: Validation Error
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/HTTPValidationError'
      security:
        - Bearer: []
components:
  schemas:
    SimulationRunsDetailResponse:
      properties:
        simulation_runs:
          items:
            $ref: '#/components/schemas/SimulationRunDetailItem'
          type: array
          title: Simulation Runs
        total:
          type: integer
          title: Total
        page:
          type: integer
          title: Page
        page_size:
          type: integer
          title: Page Size
        total_pages:
          type: integer
          title: Total Pages
      type: object
      required:
        - simulation_runs
        - total
        - page
        - page_size
        - total_pages
      title: SimulationRunsDetailResponse
    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
    SimulationRunDetailItem:
      properties:
        id:
          type: integer
          title: Id
        status:
          type: string
          title: Status
        created_at:
          type: string
          format: date-time
          title: Created At
        failure_reason:
          anyOf:
            - type: string
            - type: 'null'
          title: Failure Reason
        functional_count:
          type: integer
          title: Functional Count
        adversarial_count:
          type: integer
          title: Adversarial Count
        generated_count:
          type: integer
          title: Generated Count
        caller_persona_id:
          anyOf:
            - type: integer
            - type: 'null'
          title: Caller Persona Id
        caller_persona:
          anyOf:
            - $ref: '#/components/schemas/CallerPersonaResponse'
            - type: 'null'
        simulation_profile_id:
          anyOf:
            - type: integer
            - type: 'null'
          title: Simulation Profile Id
        simulation_profile_name:
          anyOf:
            - type: string
            - type: 'null'
          title: Simulation Profile Name
        simulation_profile_snapshot:
          anyOf:
            - additionalProperties: true
              type: object
            - type: 'null'
          title: Simulation Profile Snapshot
        selected_evals:
          items:
            $ref: '#/components/schemas/CriteriaItem'
          type: array
          title: Selected Evals
        selected_intents:
          items:
            $ref: '#/components/schemas/CriteriaItem'
          type: array
          title: Selected Intents
        passed_count:
          type: integer
          title: Passed Count
        failed_count:
          type: integer
          title: Failed Count
        in_progress_count:
          type: integer
          title: In Progress Count
        simulation_calls:
          items:
            $ref: '#/components/schemas/SimulationCallDetailResponse'
          type: array
          title: Simulation Calls
      type: object
      required:
        - id
        - status
        - created_at
        - failure_reason
        - functional_count
        - adversarial_count
        - generated_count
        - caller_persona_id
        - caller_persona
        - selected_evals
        - selected_intents
        - passed_count
        - failed_count
        - in_progress_count
        - simulation_calls
      title: SimulationRunDetailItem
    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
    CallerPersonaResponse:
      properties:
        id:
          type: integer
          title: Id
        name:
          type: string
          title: Name
        language:
          type: string
          title: Language
        language_code:
          type: string
          title: Language Code
        accent:
          type: string
          title: Accent
        label:
          type: string
          title: Label
        country_code:
          type: string
          title: Country Code
      type: object
      required:
        - id
        - name
        - language
        - language_code
        - accent
        - label
        - country_code
      title: CallerPersonaResponse
    CriteriaItem:
      properties:
        id:
          type: integer
          title: Id
        name:
          type: string
          title: Name
      type: object
      required:
        - id
        - name
      title: CriteriaItem
    SimulationCallDetailResponse:
      properties:
        id:
          type: integer
          title: Id
        scenario_id:
          type: integer
          title: Scenario Id
        type:
          type: string
          title: Type
        status:
          anyOf:
            - type: string
            - type: 'null'
          title: Status
        duration:
          anyOf:
            - type: number
            - type: 'null'
          title: Duration
        outcome:
          anyOf:
            - $ref: '#/components/schemas/OutcomeDetail'
            - type: 'null'
        intent:
          anyOf:
            - type: string
            - type: 'null'
          title: Intent
        evals:
          items:
            $ref: '#/components/schemas/SimulationCallEvalResult'
          type: array
          title: Evals
        call_id:
          anyOf:
            - type: integer
            - type: 'null'
          title: Call Id
        analysis_stopped:
          type: boolean
          title: Analysis Stopped
          default: false
        target_eval_label:
          anyOf:
            - type: string
            - type: 'null'
          title: Target Eval Label
        target_ai_evaluation:
          anyOf:
            - additionalProperties: true
              type: object
            - type: 'null'
          title: Target Ai Evaluation
      type: object
      required:
        - id
        - scenario_id
        - type
        - status
        - duration
        - outcome
        - intent
        - evals
        - call_id
      title: SimulationCallDetailResponse
    OutcomeDetail:
      properties:
        value:
          anyOf:
            - type: string
            - type: 'null'
          title: Value
        type:
          anyOf:
            - type: string
            - type: 'null'
          title: Type
      type: object
      required:
        - value
        - type
      title: OutcomeDetail
    SimulationCallEvalResult:
      properties:
        label:
          type: string
          title: Label
        value:
          anyOf:
            - type: string
            - type: 'null'
          title: Value
        evidence:
          anyOf:
            - type: string
            - type: 'null'
          title: Evidence
      type: object
      required:
        - label
        - value
        - evidence
      title: SimulationCallEvalResult
  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

````