Queue Configuration
curl --request POST \
--url https://api.heybee.app/v1/experiments/{experiment_id}/configurations \
--header 'Authorization: Bearer <token>' \
--header 'Content-Type: application/json' \
--data '
{
"parameters": {},
"anchor_value": "<string>",
"expires_in_hours": 8760,
"strategy": "manual"
}
'import requests
url = "https://api.heybee.app/v1/experiments/{experiment_id}/configurations"
payload = {
"parameters": {},
"anchor_value": "<string>",
"expires_in_hours": 8760,
"strategy": "manual"
}
headers = {
"Authorization": "Bearer <token>",
"Content-Type": "application/json"
}
response = requests.post(url, json=payload, headers=headers)
print(response.text)const options = {
method: 'POST',
headers: {Authorization: 'Bearer <token>', 'Content-Type': 'application/json'},
body: JSON.stringify({
parameters: {},
anchor_value: '<string>',
expires_in_hours: 8760,
strategy: 'manual'
})
};
fetch('https://api.heybee.app/v1/experiments/{experiment_id}/configurations', 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.heybee.app/v1/experiments/{experiment_id}/configurations",
CURLOPT_RETURNTRANSFER => true,
CURLOPT_ENCODING => "",
CURLOPT_MAXREDIRS => 10,
CURLOPT_TIMEOUT => 30,
CURLOPT_HTTP_VERSION => CURL_HTTP_VERSION_1_1,
CURLOPT_CUSTOMREQUEST => "POST",
CURLOPT_POSTFIELDS => json_encode([
'parameters' => [
],
'anchor_value' => '<string>',
'expires_in_hours' => 8760,
'strategy' => 'manual'
]),
CURLOPT_HTTPHEADER => [
"Authorization: Bearer <token>",
"Content-Type: application/json"
],
]);
$response = curl_exec($curl);
$err = curl_error($curl);
curl_close($curl);
if ($err) {
echo "cURL Error #:" . $err;
} else {
echo $response;
}package main
import (
"fmt"
"strings"
"net/http"
"io"
)
func main() {
url := "https://api.heybee.app/v1/experiments/{experiment_id}/configurations"
payload := strings.NewReader("{\n \"parameters\": {},\n \"anchor_value\": \"<string>\",\n \"expires_in_hours\": 8760,\n \"strategy\": \"manual\"\n}")
req, _ := http.NewRequest("POST", url, payload)
req.Header.Add("Authorization", "Bearer <token>")
req.Header.Add("Content-Type", "application/json")
res, _ := http.DefaultClient.Do(req)
defer res.Body.Close()
body, _ := io.ReadAll(res.Body)
fmt.Println(string(body))
}HttpResponse<String> response = Unirest.post("https://api.heybee.app/v1/experiments/{experiment_id}/configurations")
.header("Authorization", "Bearer <token>")
.header("Content-Type", "application/json")
.body("{\n \"parameters\": {},\n \"anchor_value\": \"<string>\",\n \"expires_in_hours\": 8760,\n \"strategy\": \"manual\"\n}")
.asString();require 'uri'
require 'net/http'
url = URI("https://api.heybee.app/v1/experiments/{experiment_id}/configurations")
http = Net::HTTP.new(url.host, url.port)
http.use_ssl = true
request = Net::HTTP::Post.new(url)
request["Authorization"] = 'Bearer <token>'
request["Content-Type"] = 'application/json'
request.body = "{\n \"parameters\": {},\n \"anchor_value\": \"<string>\",\n \"expires_in_hours\": 8760,\n \"strategy\": \"manual\"\n}"
response = http.request(request)
puts response.read_body{
"created_at": "2023-11-07T05:31:56Z",
"expires_at": "2023-11-07T05:31:56Z",
"parameters": {},
"suggestion_id": "3c90c3cc-0d44-4b50-8888-8dd25736052a",
"anchor_value": "<string>",
"consumed_at": "2023-11-07T05:31:56Z",
"consumed_sample_id": "3c90c3cc-0d44-4b50-8888-8dd25736052a"
}{
"detail": [
{
"loc": [
"<string>"
],
"msg": "<string>",
"type": "<string>"
}
]
}Experiments
Queue Configuration
Queue a generation configuration for an external generator.
The configuration remains traceable from creation through the sample it produces, and can expire automatically when it is no longer relevant.
POST
/
v1
/
experiments
/
{experiment_id}
/
configurations
Queue Configuration
curl --request POST \
--url https://api.heybee.app/v1/experiments/{experiment_id}/configurations \
--header 'Authorization: Bearer <token>' \
--header 'Content-Type: application/json' \
--data '
{
"parameters": {},
"anchor_value": "<string>",
"expires_in_hours": 8760,
"strategy": "manual"
}
'import requests
url = "https://api.heybee.app/v1/experiments/{experiment_id}/configurations"
payload = {
"parameters": {},
"anchor_value": "<string>",
"expires_in_hours": 8760,
"strategy": "manual"
}
headers = {
"Authorization": "Bearer <token>",
"Content-Type": "application/json"
}
response = requests.post(url, json=payload, headers=headers)
print(response.text)const options = {
method: 'POST',
headers: {Authorization: 'Bearer <token>', 'Content-Type': 'application/json'},
body: JSON.stringify({
parameters: {},
anchor_value: '<string>',
expires_in_hours: 8760,
strategy: 'manual'
})
};
fetch('https://api.heybee.app/v1/experiments/{experiment_id}/configurations', 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.heybee.app/v1/experiments/{experiment_id}/configurations",
CURLOPT_RETURNTRANSFER => true,
CURLOPT_ENCODING => "",
CURLOPT_MAXREDIRS => 10,
CURLOPT_TIMEOUT => 30,
CURLOPT_HTTP_VERSION => CURL_HTTP_VERSION_1_1,
CURLOPT_CUSTOMREQUEST => "POST",
CURLOPT_POSTFIELDS => json_encode([
'parameters' => [
],
'anchor_value' => '<string>',
'expires_in_hours' => 8760,
'strategy' => 'manual'
]),
CURLOPT_HTTPHEADER => [
"Authorization: Bearer <token>",
"Content-Type: application/json"
],
]);
$response = curl_exec($curl);
$err = curl_error($curl);
curl_close($curl);
if ($err) {
echo "cURL Error #:" . $err;
} else {
echo $response;
}package main
import (
"fmt"
"strings"
"net/http"
"io"
)
func main() {
url := "https://api.heybee.app/v1/experiments/{experiment_id}/configurations"
payload := strings.NewReader("{\n \"parameters\": {},\n \"anchor_value\": \"<string>\",\n \"expires_in_hours\": 8760,\n \"strategy\": \"manual\"\n}")
req, _ := http.NewRequest("POST", url, payload)
req.Header.Add("Authorization", "Bearer <token>")
req.Header.Add("Content-Type", "application/json")
res, _ := http.DefaultClient.Do(req)
defer res.Body.Close()
body, _ := io.ReadAll(res.Body)
fmt.Println(string(body))
}HttpResponse<String> response = Unirest.post("https://api.heybee.app/v1/experiments/{experiment_id}/configurations")
.header("Authorization", "Bearer <token>")
.header("Content-Type", "application/json")
.body("{\n \"parameters\": {},\n \"anchor_value\": \"<string>\",\n \"expires_in_hours\": 8760,\n \"strategy\": \"manual\"\n}")
.asString();require 'uri'
require 'net/http'
url = URI("https://api.heybee.app/v1/experiments/{experiment_id}/configurations")
http = Net::HTTP.new(url.host, url.port)
http.use_ssl = true
request = Net::HTTP::Post.new(url)
request["Authorization"] = 'Bearer <token>'
request["Content-Type"] = 'application/json'
request.body = "{\n \"parameters\": {},\n \"anchor_value\": \"<string>\",\n \"expires_in_hours\": 8760,\n \"strategy\": \"manual\"\n}"
response = http.request(request)
puts response.read_body{
"created_at": "2023-11-07T05:31:56Z",
"expires_at": "2023-11-07T05:31:56Z",
"parameters": {},
"suggestion_id": "3c90c3cc-0d44-4b50-8888-8dd25736052a",
"anchor_value": "<string>",
"consumed_at": "2023-11-07T05:31:56Z",
"consumed_sample_id": "3c90c3cc-0d44-4b50-8888-8dd25736052a"
}{
"detail": [
{
"loc": [
"<string>"
],
"msg": "<string>",
"type": "<string>"
}
]
}Authorizations
BearerAuthApiKeyAuth
Bearer authentication header of the form Bearer <token>, where <token> is your auth token.
Path Parameters
Body
application/json
Request payload to hand-author and enqueue a generation configuration.
A queued config becomes a manual generation_suggestion row that an
external driver later generates into a sample. Manual queued configs are
long-lived so they are not garbage-expired before the driver picks them up.

