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

# List A/B tests



## OpenAPI

````yaml /openapi.yaml get /v1/ab_tests
openapi: 3.1.0
info:
  title: VTurb API
  version: v1
  description: |
    Public REST API for VTurb. Dev-first and agents-first: every documented
    response is recorded from the API's real behavior.
  contact:
    name: VTurb API
    url: https://vturb.com
servers:
  - url: https://api.vturb.com
security:
  - bearerAuth: []
paths:
  /v1/ab_tests:
    get:
      tags:
        - A/B tests
      summary: List A/B tests
      parameters:
        - name: cursor
          in: query
          required: false
          schema:
            type: string
          example: nonsense
        - name: folder_id
          in: query
          required: false
          schema:
            type: string
          example: fold_1
        - name: per_page
          in: query
          required: false
          schema:
            type: integer
          example: 20
      responses:
        '200':
          description: >-
            Optional query params: folder_id scopes to a folder; cursor +
            per_page drive the cursor pagination. A test created seconds ago may
            take a moment to appear in the list.
          content:
            application/json:
              schema:
                type: object
                properties:
                  ab_tests:
                    type: array
                    items:
                      type: object
                      properties:
                        id:
                          type: string
                        status:
                          type: string
                        name:
                          type: string
                        folder_id:
                          type:
                            - string
                            - 'null'
                        started_at:
                          type:
                            - string
                            - 'null'
                        created_at:
                          type:
                            - string
                            - 'null'
                        updated_at:
                          type:
                            - string
                            - 'null'
                        variants:
                          type: array
                          items:
                            type: object
                            properties:
                              video_id:
                                type: string
                              traffic_percentage:
                                type: number
                                format: float
                              locked:
                                type: boolean
                              started_at:
                                type:
                                  - string
                                  - 'null'
                            required:
                              - video_id
                              - traffic_percentage
                              - locked
                              - started_at
                      required:
                        - id
                        - status
                        - name
                        - folder_id
                        - started_at
                        - created_at
                        - updated_at
                        - variants
                required:
                  - ab_tests
              example:
                ab_tests:
                  - id: 68c1f0a0000000000000ab01
                    status: draft
                    name: Home page test
                    folder_id: null
                    started_at: null
                    created_at: '2026-09-01T12:00:00.000Z'
                    updated_at: '2026-09-02T12:00:00.000Z'
                    variants:
                      - video_id: 68c1f0a00000000000000e01
                        traffic_percentage: 60
                        locked: false
                        started_at: null
                      - video_id: 68c1f0a00000000000000e02
                        traffic_percentage: 40
                        locked: false
                        started_at: null
        '401':
          description: Missing API credential.
          content:
            application/problem+json:
              schema:
                type: object
                properties:
                  type:
                    type: string
                  code:
                    type: string
                  message:
                    type: string
                  request_id:
                    type: string
                required:
                  - type
                  - code
                  - message
                  - request_id
              example:
                type: https://docs.vturb.com/errors/unauthorized
                code: unauthorized
                message: >-
                  Missing or invalid API credential. Send a vt_ token in the
                  Authorization header.
                request_id: 00000000-0000-0000-0000-000000000000
        '403':
          description: The credential is missing the ab_tests scope this action requires.
          content:
            application/problem+json:
              schema:
                type: object
                properties:
                  type:
                    type: string
                  code:
                    type: string
                  message:
                    type: string
                  request_id:
                    type: string
                required:
                  - type
                  - code
                  - message
                  - request_id
              example:
                type: https://docs.vturb.com/errors/forbidden
                code: forbidden
                message: The credential is missing the scope this action requires.
                request_id: 00000000-0000-0000-0000-000000000000
        '422':
          description: The cursor is not a valid pagination cursor.
          content:
            application/problem+json:
              schema:
                type: object
                properties:
                  type:
                    type: string
                  code:
                    type: string
                  message:
                    type: string
                  request_id:
                    type: string
                  errors:
                    type: array
                    items:
                      type: object
                      properties:
                        field:
                          type: string
                        message:
                          type: string
                      required:
                        - field
                        - message
                required:
                  - type
                  - code
                  - message
                  - request_id
                  - errors
              example:
                type: https://docs.vturb.com/errors/unprocessable_content
                code: unprocessable_content
                message: Invalid cursor.
                request_id: 00000000-0000-0000-0000-000000000000
                errors:
                  - field: cursor
                    message: is not a valid cursor
components:
  securitySchemes:
    bearerAuth:
      type: http
      scheme: bearer
      description: >-
        Paste your VTurb API token (vt_...). Sent as `Authorization: Bearer
        <token>`.

````