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

# List recent sandbox test runs

> The caller storefront's durable Murph sandbox test-run history (agent E2E diagnostics) — the same rows the Murph test-runs widget renders, exposed on the storefront surface so external MCP-UI hosts can hydrate it via `storefront_api_call`. Tenant scope (customer) is always derived from auth. The optional `storefrontId` query param narrows the listing to a single storefront for multi-storefront sellers.



## OpenAPI

````yaml /v2/storefront-api-v2.yaml get /test-runs
openapi: 3.0.0
info:
  title: Scope3 Storefront API
  version: 2.0.0
  description: |-
    REST API for partners to manage storefronts, inventory sources, and billing.

    ## Authentication

    All endpoints require a Bearer token in the Authorization header:
    ```
    Authorization: Bearer your-api-key
    ```

    ## Base URL

    `https://api.interchange.io/api/v2/storefront`

    ## For AI Agents

    AI agents can use the MCP endpoint at `/mcp/v2/storefront` with three tools:
    - `initialize`: Start an MCP session
    - `api_call`: Make REST API calls
    - `ask_about_capability`: Learn about API features
servers:
  - url: https://api.interchange.io/api/v2/storefront
    description: Production server
security: []
tags:
  - name: Account
    description: Account management, service tokens, and preferences
  - name: Storefront
    description: Manage storefront and inventory sources
  - name: Storefront Agents
    description: List and manage registered sales, signals, and outcomes agents
  - name: Storefront Activity
    description: Audit log of configuration and inventory changes on the storefront
  - name: Storefront Billing
    description: Payout bank details and billing configuration for storefronts
  - name: AI Usage
    description: Storefront AI token usage visibility by model
  - name: MCP
    description: Model Context Protocol endpoints
paths:
  /test-runs:
    get:
      tags:
        - Storefront
      summary: List recent sandbox test runs
      description: >-
        The caller storefront's durable Murph sandbox test-run history (agent
        E2E diagnostics) — the same rows the Murph test-runs widget renders,
        exposed on the storefront surface so external MCP-UI hosts can hydrate
        it via `storefront_api_call`. Tenant scope (customer) is always derived
        from auth. The optional `storefrontId` query param narrows the listing
        to a single storefront for multi-storefront sellers.
      operationId: listStorefrontAgentTestRuns
      parameters:
        - in: query
          name: take
          schema:
            default: 5
            type: integer
            maximum: 20
            minimum: 1
        - in: query
          name: storefrontId
          schema:
            type: integer
            maximum: 9007199254740991
            minimum: 1
        - in: query
          name: runUid
          schema:
            type: string
            format: uuid
            pattern: >-
              ^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$
      responses:
        '200':
          description: List recent sandbox test runs
          content:
            application/json:
              schema:
                type: object
                properties:
                  runs:
                    type: array
                    items:
                      type: object
                      properties:
                        id:
                          type: string
                        runUid:
                          type: string
                          format: uuid
                          pattern: >-
                            ^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$
                        customerId:
                          type: integer
                          minimum: -9007199254740991
                          maximum: 9007199254740991
                        userId:
                          nullable: true
                          type: integer
                          minimum: -9007199254740991
                          maximum: 9007199254740991
                        conversationUid:
                          nullable: true
                          type: string
                          format: uuid
                          pattern: >-
                            ^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$
                        toolName:
                          type: string
                        status:
                          type: string
                          enum:
                            - planned
                            - partial
                            - passed
                            - failed
                        stage:
                          nullable: true
                          type: string
                        sandbox:
                          type: boolean
                        storefrontId:
                          nullable: true
                          type: integer
                          minimum: -9007199254740991
                          maximum: 9007199254740991
                        advertiserId:
                          nullable: true
                          type: integer
                          minimum: -9007199254740991
                          maximum: 9007199254740991
                        campaignId:
                          nullable: true
                          type: string
                        discoveryId:
                          nullable: true
                          type: string
                        executedCampaign:
                          type: boolean
                        discoveredProductCount:
                          nullable: true
                          type: integer
                          minimum: -9007199254740991
                          maximum: 9007199254740991
                        selectedProductCount:
                          nullable: true
                          type: integer
                          minimum: -9007199254740991
                          maximum: 9007199254740991
                        summary:
                          type: object
                          additionalProperties: {}
                        artifacts:
                          type: object
                          additionalProperties: {}
                        diagnostics:
                          type: object
                          additionalProperties: {}
                        steps:
                          type: array
                          items:
                            type: object
                            properties:
                              key:
                                type: string
                              label:
                                type: string
                              status:
                                type: string
                                enum:
                                  - completed
                                  - failed
                                  - not_checked
                              operation:
                                nullable: true
                                type: string
                              httpStatus:
                                nullable: true
                                type: integer
                                minimum: -9007199254740991
                                maximum: 9007199254740991
                              endpoint:
                                nullable: true
                                type: string
                              message:
                                nullable: true
                                type: string
                            required:
                              - key
                              - label
                              - status
                              - operation
                              - httpStatus
                              - endpoint
                              - message
                            additionalProperties: false
                        createdAt:
                          type: string
                        updatedAt:
                          type: string
                      required:
                        - id
                        - runUid
                        - customerId
                        - userId
                        - conversationUid
                        - toolName
                        - status
                        - stage
                        - sandbox
                        - storefrontId
                        - advertiserId
                        - campaignId
                        - discoveryId
                        - executedCampaign
                        - discoveredProductCount
                        - selectedProductCount
                        - summary
                        - artifacts
                        - diagnostics
                        - steps
                        - createdAt
                        - updatedAt
                      additionalProperties: false
                required:
                  - runs
                additionalProperties: false
        '400':
          description: Bad request
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/ErrorResponse'
        '401':
          description: Unauthorized
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/ErrorResponse'
        '500':
          description: Internal server error
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/ErrorResponse'
      security:
        - bearerAuth: []
components:
  schemas:
    ErrorResponse:
      description: Standard error response
      type: object
      properties:
        data:
          type: string
          nullable: true
          enum:
            - null
        error:
          $ref: '#/components/schemas/ApiError'
      required:
        - data
        - error
      additionalProperties: false
    ApiError:
      description: Structured error object
      type: object
      properties:
        code:
          description: Machine-readable error code
          type: string
        message:
          description: Human-readable error message
          type: string
        field:
          description: Field path associated with the error
          type: string
        details:
          description: Additional error context
          type: object
          additionalProperties: {}
      required:
        - code
        - message
      additionalProperties: false
  securitySchemes:
    bearerAuth:
      type: http
      scheme: bearer
      description: API key or access token

````