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

# List past persona split tests for a bot

> Returns deactivated tests, newest first. The current test — running or
just-ended and still marked active — stays on GET /bot/{id}.



## OpenAPI

````yaml https://megastream25-api.closebot.com/swagger/v1/swagger.json get /bot/{id}/persona-split-tests
openapi: 3.0.4
info:
  title: CloseBot API
  version: v1
servers:
  - url: https://api.closebot.com
    description: CloseBot API Endpoint
security:
  - Key: []
tags:
  - name: Account
  - name: AccountNotification
  - name: Agency
  - name: Analytics
  - name: Billing
  - name: Bot
  - name: BotMetric
  - name: BotSourceVariable
  - name: BotTemplate
  - name: BotTesting
  - name: Dashboard
  - name: Hierarchy
  - name: Lead
  - name: Leaderboard
  - name: Library
  - name: LiveDemo
  - name: Notification
  - name: Persona
  - name: Report
  - name: SmartFAQ
  - name: Source
  - name: SourceChannel
  - name: Webhook
paths:
  /bot/{id}/persona-split-tests:
    get:
      tags:
        - Bot
      summary: List past persona split tests for a bot
      description: |-
        Returns deactivated tests, newest first. The current test — running or
        just-ended and still marked active — stays on GET /bot/{id}.
      parameters:
        - name: id
          in: path
          description: The bot ID.
          required: true
          schema:
            type: string
        - name: skip
          in: query
          description: Records to skip. Defaults to 0.
          schema:
            type: integer
            format: int32
            default: 0
        - name: take
          in: query
          description: >-
            Page size, clamped to
            Closebot.Api.Controllers.BotController.MaxSplitTestPageSize.
          schema:
            type: integer
            format: int32
            default: 20
      responses:
        '200':
          description: OK
          content:
            text/plain:
              schema:
                $ref: '#/components/schemas/PersonaSplitTestPageDto'
            application/json:
              schema:
                $ref: '#/components/schemas/PersonaSplitTestPageDto'
            text/json:
              schema:
                $ref: '#/components/schemas/PersonaSplitTestPageDto'
components:
  schemas:
    PersonaSplitTestPageDto:
      type: object
      properties:
        items:
          type: array
          items:
            $ref: '#/components/schemas/PersonaSplitTestDto'
          nullable: true
        total:
          type: integer
          format: int32
        hasMore:
          type: boolean
      additionalProperties: false
      description: >-
        One page of split-test history. An envelope rather than a bare array so

        the client knows when to stop asking;
        Closebot.Api.Controllers.BotController.PersonaSplitTestPageDto.Total is
        what the

        history tray shows in its collapsed bar.
    PersonaSplitTestDto:
      type: object
      properties:
        startedAt:
          type: string
          format: date-time
          nullable: true
        endedAt:
          type: string
          format: date-time
          nullable: true
        personas:
          type: array
          items:
            $ref: '#/components/schemas/PersonaSplitTestPersonaDto'
          nullable: true
        id:
          type: string
          nullable: true
        isActive:
          type: boolean
        metric:
          type: string
          nullable: true
      additionalProperties: false
    PersonaSplitTestPersonaDto:
      type: object
      properties:
        personaId:
          type: string
          nullable: true
        weight:
          type: integer
          format: int32
        order:
          type: integer
          format: int32
        results:
          $ref: '#/components/schemas/BotPersonaSplitTestPersonaResults'
      additionalProperties: false
    BotPersonaSplitTestPersonaResults:
      type: object
      properties:
        personaId:
          type: string
          nullable: true
        personaName:
          type: string
          nullable: true
        splitWeight:
          type: integer
          format: int32
        totalInstances:
          type: integer
          format: int32
        responseCount:
          type: integer
          format: int32
        averageMetric:
          type: number
          format: double
        sources:
          type: array
          items:
            $ref: '#/components/schemas/BotPersonaSplitTestPersonaSourceResult'
          nullable: true
        computedAt:
          type: string
          format: date-time
      additionalProperties: false
    BotPersonaSplitTestPersonaSourceResult:
      type: object
      properties:
        sourceId:
          type: string
          nullable: true
        sourceName:
          type: string
          nullable: true
        totalInstances:
          type: integer
          format: int32
        responseCount:
          type: integer
          format: int32
        averageMetric:
          type: number
          format: double
      additionalProperties: false
  securitySchemes:
    Key:
      type: apiKey
      description: CloseBot API Key Authorization
      name: X-CB-KEY
      in: header

````