A/B tests
List A/B tests
GET
/
v1
/
ab_tests
List A/B tests
curl --request GET \
--url https://api.vturb.com/v1/ab_tests \
--header 'Authorization: Bearer <token>'import requests
url = "https://api.vturb.com/v1/ab_tests"
headers = {"Authorization": "Bearer <token>"}
response = requests.get(url, headers=headers)
print(response.text)const options = {method: 'GET', headers: {Authorization: 'Bearer <token>'}};
fetch('https://api.vturb.com/v1/ab_tests', options)
.then(res => res.json())
.then(res => console.log(res))
.catch(err => console.error(err));<?php
$curl = curl_init();
curl_setopt_array($curl, [
CURLOPT_URL => "https://api.vturb.com/v1/ab_tests",
CURLOPT_RETURNTRANSFER => true,
CURLOPT_ENCODING => "",
CURLOPT_MAXREDIRS => 10,
CURLOPT_TIMEOUT => 30,
CURLOPT_HTTP_VERSION => CURL_HTTP_VERSION_1_1,
CURLOPT_CUSTOMREQUEST => "GET",
CURLOPT_HTTPHEADER => [
"Authorization: Bearer <token>"
],
]);
$response = curl_exec($curl);
$err = curl_error($curl);
curl_close($curl);
if ($err) {
echo "cURL Error #:" . $err;
} else {
echo $response;
}package main
import (
"fmt"
"net/http"
"io"
)
func main() {
url := "https://api.vturb.com/v1/ab_tests"
req, _ := http.NewRequest("GET", url, nil)
req.Header.Add("Authorization", "Bearer <token>")
res, _ := http.DefaultClient.Do(req)
defer res.Body.Close()
body, _ := io.ReadAll(res.Body)
fmt.Println(string(body))
}HttpResponse<String> response = Unirest.get("https://api.vturb.com/v1/ab_tests")
.header("Authorization", "Bearer <token>")
.asString();require 'uri'
require 'net/http'
url = URI("https://api.vturb.com/v1/ab_tests")
http = Net::HTTP.new(url.host, url.port)
http.use_ssl = true
request = Net::HTTP::Get.new(url)
request["Authorization"] = 'Bearer <token>'
response = http.request(request)
puts response.read_body{
"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
}
]
}
]
}{
"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"
}{
"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"
}{
"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"
}
]
}Authorizations
Paste your VTurb API token (vt_...). Sent as Authorization: Bearer <token>.
Response
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.
Show child attributes
Show child attributes
Was this page helpful?
⌘I
List A/B tests
curl --request GET \
--url https://api.vturb.com/v1/ab_tests \
--header 'Authorization: Bearer <token>'import requests
url = "https://api.vturb.com/v1/ab_tests"
headers = {"Authorization": "Bearer <token>"}
response = requests.get(url, headers=headers)
print(response.text)const options = {method: 'GET', headers: {Authorization: 'Bearer <token>'}};
fetch('https://api.vturb.com/v1/ab_tests', options)
.then(res => res.json())
.then(res => console.log(res))
.catch(err => console.error(err));<?php
$curl = curl_init();
curl_setopt_array($curl, [
CURLOPT_URL => "https://api.vturb.com/v1/ab_tests",
CURLOPT_RETURNTRANSFER => true,
CURLOPT_ENCODING => "",
CURLOPT_MAXREDIRS => 10,
CURLOPT_TIMEOUT => 30,
CURLOPT_HTTP_VERSION => CURL_HTTP_VERSION_1_1,
CURLOPT_CUSTOMREQUEST => "GET",
CURLOPT_HTTPHEADER => [
"Authorization: Bearer <token>"
],
]);
$response = curl_exec($curl);
$err = curl_error($curl);
curl_close($curl);
if ($err) {
echo "cURL Error #:" . $err;
} else {
echo $response;
}package main
import (
"fmt"
"net/http"
"io"
)
func main() {
url := "https://api.vturb.com/v1/ab_tests"
req, _ := http.NewRequest("GET", url, nil)
req.Header.Add("Authorization", "Bearer <token>")
res, _ := http.DefaultClient.Do(req)
defer res.Body.Close()
body, _ := io.ReadAll(res.Body)
fmt.Println(string(body))
}HttpResponse<String> response = Unirest.get("https://api.vturb.com/v1/ab_tests")
.header("Authorization", "Bearer <token>")
.asString();require 'uri'
require 'net/http'
url = URI("https://api.vturb.com/v1/ab_tests")
http = Net::HTTP.new(url.host, url.port)
http.use_ssl = true
request = Net::HTTP::Get.new(url)
request["Authorization"] = 'Bearer <token>'
response = http.request(request)
puts response.read_body{
"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
}
]
}
]
}{
"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"
}{
"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"
}{
"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"
}
]
}