List experiments
curl --request GET \
--url https://api.pictify.io/experiments/api \
--header 'Authorization: Bearer <token>'const options = {method: 'GET', headers: {Authorization: 'Bearer <token>'}};
fetch('https://api.pictify.io/experiments/api', options)
.then(res => res.json())
.then(res => console.log(res))
.catch(err => console.error(err));import requests
url = "https://api.pictify.io/experiments/api"
headers = {"Authorization": "Bearer <token>"}
response = requests.get(url, headers=headers)
print(response.text)package main
import (
"fmt"
"net/http"
"io"
)
func main() {
url := "https://api.pictify.io/experiments/api"
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))
}require 'uri'
require 'net/http'
url = URI("https://api.pictify.io/experiments/api")
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{
"experiments": [
{
"uid": "exp_abc123",
"slug": "homepage-hero-test",
"name": "Homepage Hero A/B Test",
"variants": [
{
"id": "variant-a",
"weight": 5000,
"name": "New Design",
"templateUid": "<string>",
"variables": {},
"isDefault": false,
"conditions": {
"children": "<array>",
"property": "<string>",
"value": "<unknown>"
},
"schedule": {
"startAt": "2023-11-07T05:31:56Z",
"endAt": "2023-11-07T05:31:56Z",
"recurrence": {
"type": "none",
"cronExpression": "<string>",
"timezone": "America/New_York"
}
},
"impressions": 123,
"clicks": 123
}
],
"createdAt": "2023-11-07T05:31:56Z",
"updatedAt": "2023-11-07T05:31:56Z",
"templateUid": "tmpl_xyz789",
"goalConfig": {
"type": "impressions_only",
"destinationUrl": "<string>"
},
"banditConfig": {
"enabled": false,
"algorithm": "thompson_sampling",
"warmupImpressions": 50,
"recomputeIntervalMinutes": 15
},
"hypothesis": "<string>",
"minimumSampleSize": 1000,
"confidenceThreshold": 0.95,
"minimumRunDays": 7,
"winnerVariantId": "<string>",
"winnerDeclaredAt": "2023-11-07T05:31:56Z",
"fallbackImageUrl": "<string>",
"outputConfig": {
"format": "png",
"quality": 90
}
}
],
"total": 123,
"page": 123,
"limit": 123
}{
"type": "https://docs.pictify.io/errors/invalid-api-key",
"title": "Invalid API Key",
"status": 401,
"detail": "The provided API key is invalid or has been revoked.",
"instance": "/image"
}Experiments
List Experiments
Retrieve all experiments for the authenticated team.
GET
/
experiments
/
api
List experiments
curl --request GET \
--url https://api.pictify.io/experiments/api \
--header 'Authorization: Bearer <token>'const options = {method: 'GET', headers: {Authorization: 'Bearer <token>'}};
fetch('https://api.pictify.io/experiments/api', options)
.then(res => res.json())
.then(res => console.log(res))
.catch(err => console.error(err));import requests
url = "https://api.pictify.io/experiments/api"
headers = {"Authorization": "Bearer <token>"}
response = requests.get(url, headers=headers)
print(response.text)package main
import (
"fmt"
"net/http"
"io"
)
func main() {
url := "https://api.pictify.io/experiments/api"
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))
}require 'uri'
require 'net/http'
url = URI("https://api.pictify.io/experiments/api")
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{
"experiments": [
{
"uid": "exp_abc123",
"slug": "homepage-hero-test",
"name": "Homepage Hero A/B Test",
"variants": [
{
"id": "variant-a",
"weight": 5000,
"name": "New Design",
"templateUid": "<string>",
"variables": {},
"isDefault": false,
"conditions": {
"children": "<array>",
"property": "<string>",
"value": "<unknown>"
},
"schedule": {
"startAt": "2023-11-07T05:31:56Z",
"endAt": "2023-11-07T05:31:56Z",
"recurrence": {
"type": "none",
"cronExpression": "<string>",
"timezone": "America/New_York"
}
},
"impressions": 123,
"clicks": 123
}
],
"createdAt": "2023-11-07T05:31:56Z",
"updatedAt": "2023-11-07T05:31:56Z",
"templateUid": "tmpl_xyz789",
"goalConfig": {
"type": "impressions_only",
"destinationUrl": "<string>"
},
"banditConfig": {
"enabled": false,
"algorithm": "thompson_sampling",
"warmupImpressions": 50,
"recomputeIntervalMinutes": 15
},
"hypothesis": "<string>",
"minimumSampleSize": 1000,
"confidenceThreshold": 0.95,
"minimumRunDays": 7,
"winnerVariantId": "<string>",
"winnerDeclaredAt": "2023-11-07T05:31:56Z",
"fallbackImageUrl": "<string>",
"outputConfig": {
"format": "png",
"quality": 90
}
}
],
"total": 123,
"page": 123,
"limit": 123
}{
"type": "https://docs.pictify.io/errors/invalid-api-key",
"title": "Invalid API Key",
"status": 401,
"detail": "The provided API key is invalid or has been revoked.",
"instance": "/image"
}Authorizations
API key obtained from the Pictify dashboard
Query Parameters
Filter by experiment type
Available options:
ab_test, smart_link, scheduled Filter by status
Available options:
draft, running, paused, completed Page number
Required range:
x >= 1Number of results per page
Required range:
1 <= x <= 100⌘I