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

# Fetch an A/B test



## OpenAPI

````yaml /openapi.yaml get /v1/ab_tests/{id}
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/{id}:
    get:
      tags:
        - A/B tests
      summary: Fetch an A/B test
      parameters:
        - name: id
          in: path
          required: true
          schema:
            type: string
          example: 68c1f0a0000000000000ab01
      responses:
        '200':
          description: >-
            The A/B test with its variants. A started test is running and splits
            traffic; each variant carries its own started_at.
          content:
            application/json:
              schema:
                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
              example:
                id: 68c1f0a0000000000000ab01
                status: running
                name: Home page test
                folder_id: 68c1f0a00000000000000f01
                started_at: '2026-09-03T12:00:00.000Z'
                created_at: '2026-09-01T12:00:00.000Z'
                updated_at: '2026-09-03T12:00:00.000Z'
                variants:
                  - video_id: 68c1f0a00000000000000e01
                    traffic_percentage: 60
                    locked: false
                    started_at: '2026-09-03T12:00:00.000Z'
                  - video_id: 68c1f0a00000000000000e02
                    traffic_percentage: 40
                    locked: true
                    started_at: '2026-09-03T12:00:00.000Z'
        '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
        '404':
          description: No A/B test with that id.
          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/not_found
                code: not_found
                message: Resource not found.
                request_id: 00000000-0000-0000-0000-000000000000
components:
  securitySchemes:
    bearerAuth:
      type: http
      scheme: bearer
      description: >-
        Paste your VTurb API token (vt_...). Sent as `Authorization: Bearer
        <token>`.

````