cURL
curl --request GET \
--url https://api.embeddables.com/projects/{projectId}/experimentsimport requests
url = "https://api.embeddables.com/projects/{projectId}/experiments"
response = requests.get(url)
print(response.text)const options = {method: 'GET'};
fetch('https://api.embeddables.com/projects/{projectId}/experiments', 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.embeddables.com/projects/{projectId}/experiments",
CURLOPT_RETURNTRANSFER => true,
CURLOPT_ENCODING => "",
CURLOPT_MAXREDIRS => 10,
CURLOPT_TIMEOUT => 30,
CURLOPT_HTTP_VERSION => CURL_HTTP_VERSION_1_1,
CURLOPT_CUSTOMREQUEST => "GET",
]);
$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.embeddables.com/projects/{projectId}/experiments"
req, _ := http.NewRequest("GET", url, nil)
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.embeddables.com/projects/{projectId}/experiments")
.asString();require 'uri'
require 'net/http'
url = URI("https://api.embeddables.com/projects/{projectId}/experiments")
http = Net::HTTP.new(url.host, url.port)
http.use_ssl = true
request = Net::HTTP::Get.new(url)
response = http.request(request)
puts response.read_body[
{
"id": "exp_abc123",
"experimentId": "exp_abc123",
"flowId": "flow_123",
"name": "Button Color A/B Test",
"hypothesis": "Changing button color will improve conversion rates",
"impact_metrics": [
"conversion_rate",
"click_through_rate"
],
"no_impact_metrics": [
"bounce_rate"
],
"created_at": "2024-01-01T00:00:00Z",
"updated_at": "2024-01-01T00:00:00Z",
"observations": "Users seem to prefer blue buttons",
"outcome": "Blue variant shows 15% higher conversion",
"attachments": "[{\"url\":\"/project/pr_rIu92Y0RXzLYemTB/library/?libraryItemId=recmqyMdB2FHK0WOC\",\"name\":\"HIMS - Weight Loss Plans\"}]",
"variants": "{\"control\": {\"name\": \"Control (Red)\", \"color\": \"#ff0000\"}, \"variant_a\": {\"name\": \"Blue Button\", \"color\": \"#0000ff\"}}",
"flow_ids": [
"flow_123",
"flow_456"
],
"paused_showing_variant": null,
"winner_variant": "variant_a",
"status": "running"
},
{
"id": "exp_def456",
"experimentId": "exp_def456",
"flowId": "flow_789",
"name": "Headline Test",
"hypothesis": "Different headlines will affect engagement",
"impact_metrics": [
"engagement_rate"
],
"no_impact_metrics": [],
"created_at": "2024-01-02T00:00:00Z",
"updated_at": "2024-01-02T00:00:00Z",
"observations": null,
"outcome": null,
"attachments": "[]",
"variants": "{\"control\": {\"headline\": \"Original\"}, \"variant_a\": {\"headline\": \"New\"}}",
"flow_ids": [
"flow_789"
],
"paused_showing_variant": null,
"winner_variant": null,
"status": "draft"
}
]{
"error": {
"code": "<string>",
"message": "<string>"
},
"projectId": "<string>"
}Experiments
Get Experiments
Retrieve all experiments in a project with optional status filtering
GET
/
projects
/
{projectId}
/
experiments
cURL
curl --request GET \
--url https://api.embeddables.com/projects/{projectId}/experimentsimport requests
url = "https://api.embeddables.com/projects/{projectId}/experiments"
response = requests.get(url)
print(response.text)const options = {method: 'GET'};
fetch('https://api.embeddables.com/projects/{projectId}/experiments', 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.embeddables.com/projects/{projectId}/experiments",
CURLOPT_RETURNTRANSFER => true,
CURLOPT_ENCODING => "",
CURLOPT_MAXREDIRS => 10,
CURLOPT_TIMEOUT => 30,
CURLOPT_HTTP_VERSION => CURL_HTTP_VERSION_1_1,
CURLOPT_CUSTOMREQUEST => "GET",
]);
$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.embeddables.com/projects/{projectId}/experiments"
req, _ := http.NewRequest("GET", url, nil)
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.embeddables.com/projects/{projectId}/experiments")
.asString();require 'uri'
require 'net/http'
url = URI("https://api.embeddables.com/projects/{projectId}/experiments")
http = Net::HTTP.new(url.host, url.port)
http.use_ssl = true
request = Net::HTTP::Get.new(url)
response = http.request(request)
puts response.read_body[
{
"id": "exp_abc123",
"experimentId": "exp_abc123",
"flowId": "flow_123",
"name": "Button Color A/B Test",
"hypothesis": "Changing button color will improve conversion rates",
"impact_metrics": [
"conversion_rate",
"click_through_rate"
],
"no_impact_metrics": [
"bounce_rate"
],
"created_at": "2024-01-01T00:00:00Z",
"updated_at": "2024-01-01T00:00:00Z",
"observations": "Users seem to prefer blue buttons",
"outcome": "Blue variant shows 15% higher conversion",
"attachments": "[{\"url\":\"/project/pr_rIu92Y0RXzLYemTB/library/?libraryItemId=recmqyMdB2FHK0WOC\",\"name\":\"HIMS - Weight Loss Plans\"}]",
"variants": "{\"control\": {\"name\": \"Control (Red)\", \"color\": \"#ff0000\"}, \"variant_a\": {\"name\": \"Blue Button\", \"color\": \"#0000ff\"}}",
"flow_ids": [
"flow_123",
"flow_456"
],
"paused_showing_variant": null,
"winner_variant": "variant_a",
"status": "running"
},
{
"id": "exp_def456",
"experimentId": "exp_def456",
"flowId": "flow_789",
"name": "Headline Test",
"hypothesis": "Different headlines will affect engagement",
"impact_metrics": [
"engagement_rate"
],
"no_impact_metrics": [],
"created_at": "2024-01-02T00:00:00Z",
"updated_at": "2024-01-02T00:00:00Z",
"observations": null,
"outcome": null,
"attachments": "[]",
"variants": "{\"control\": {\"headline\": \"Original\"}, \"variant_a\": {\"headline\": \"New\"}}",
"flow_ids": [
"flow_789"
],
"paused_showing_variant": null,
"winner_variant": null,
"status": "draft"
}
]{
"error": {
"code": "<string>",
"message": "<string>"
},
"projectId": "<string>"
}Path Parameters
The unique identifier for a Project in the database
Query Parameters
The current status of the experiment
Available options:
draft, running, paused, winner_picked, completed, discarded Response
Example:
"exp_abc123"
Example:
"exp_abc123"
The unique identifier for a flow
A Date + Time string in ISO format
A Date + Time string in ISO format
The current status of the experiment
Available options:
draft, running, paused, winner_picked, completed, discarded Was this page helpful?
⌘I

