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

> List an agent's replay runs with their replayed test calls.

Each run includes its simulation calls, pass/fail counts, and the clip sets and
evals 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}/replay-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: simulation
    x-group: Simulation
  - name: agent-settings
    x-group: Agent Settings
  - name: agents
    x-group: Agents
  - name: traces
    x-group: Traces
  - name: providers
    x-group: Providers
paths:
  /api/v1/workspaces/{workspace_id}/agents/{agent_id}/replay-runs:
    get:
      tags:
        - simulation
      summary: List Replay Runs
      description: >-
        List an agent's replay runs with their replayed test calls.


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

        evals it was configured with. Filter by `status` to poll for completion.
      operationId: >-
        list_replay_runs_api_v1_workspaces__workspace_id__agents__agent_id__replay_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/ReplayRunsDetailResponse'
        '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:
    ReplayRunsDetailResponse:
      properties:
        replay_runs:
          items:
            $ref: '#/components/schemas/ReplayRunDetailItem'
          type: array
          title: Replay 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:
        - replay_runs
        - total
        - page
        - page_size
        - total_pages
      title: ReplayRunsDetailResponse
    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
    ReplayRunDetailItem:
      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
        generated_count:
          type: integer
          title: Generated Count
        voice_clip_sets:
          items:
            $ref: '#/components/schemas/VoiceClipSetRef'
          type: array
          title: Voice Clip Sets
        replay_repeat_count:
          anyOf:
            - type: integer
            - type: 'null'
          title: Replay Repeat Count
        replay_settings:
          anyOf:
            - additionalProperties: true
              type: object
            - type: 'null'
          title: Replay Settings
        evals_expected:
          type: boolean
          title: Evals Expected
          default: true
        selected_evals:
          items:
            $ref: '#/components/schemas/CriteriaItem'
          type: array
          title: Selected Evals
        passed_count:
          type: integer
          title: Passed Count
        failed_count:
          type: integer
          title: Failed Count
        in_progress_count:
          type: integer
          title: In Progress Count
        ran_count:
          type: integer
          title: Ran Count
          default: 0
        simulation_calls:
          items:
            $ref: '#/components/schemas/SimulationCallDetailResponse'
          type: array
          title: Simulation Calls
      type: object
      required:
        - id
        - status
        - created_at
        - failure_reason
        - generated_count
        - selected_evals
        - passed_count
        - failed_count
        - in_progress_count
        - simulation_calls
      title: ReplayRunDetailItem
      description: >-
        Detail view of a single replay run, returned by `GET /replay-runs`.


        A trimmed-down sibling of `SimulationRunDetailItem`: drops the fields
        that are

        meaningless for a replay (persona, profile, functional/adversarial
        counts, intents,

        and `scenario_source` itself -- redundant since the endpoint already
        implies it).
    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
    VoiceClipSetRef:
      properties:
        id:
          type: integer
          title: Id
        name:
          type: string
          title: Name
      type: object
      required:
        - id
        - name
      title: VoiceClipSetRef
      description: >-
        A voice clip set referenced by a run, as it was at launch time.


        Sourced from each scenario's `generated_scenario` snapshot rather than a
        live join to

        `voice_clip_sets`, so a run still shows the set it played even after
        that set is

        later soft-deleted.
    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
        clip_set_name:
          anyOf:
            - type: string
            - type: 'null'
          title: Clip Set Name
        repetition:
          anyOf:
            - type: integer
            - type: 'null'
          title: Repetition
      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

````