POST /v1/datasets/{dataset_id}/generate
Generate Items
POST /v1/datasets/{dataset_id}/generate
curl --request POST \
--url https://api.getbluejay.ai/v1/datasets/{dataset_id}/generateimport requests
url = "https://api.getbluejay.ai/v1/datasets/{dataset_id}/generate"
response = requests.post(url)
print(response.text)const options = {method: 'POST'};
fetch('https://api.getbluejay.ai/v1/datasets/{dataset_id}/generate', 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.getbluejay.ai/v1/datasets/{dataset_id}/generate",
CURLOPT_RETURNTRANSFER => true,
CURLOPT_ENCODING => "",
CURLOPT_MAXREDIRS => 10,
CURLOPT_TIMEOUT => 30,
CURLOPT_HTTP_VERSION => CURL_HTTP_VERSION_1_1,
CURLOPT_CUSTOMREQUEST => "POST",
]);
$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.getbluejay.ai/v1/datasets/{dataset_id}/generate"
req, _ := http.NewRequest("POST", url, nil)
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.getbluejay.ai/v1/datasets/{dataset_id}/generate")
.asString();require 'uri'
require 'net/http'
url = URI("https://api.getbluejay.ai/v1/datasets/{dataset_id}/generate")
http = Net::HTTP.new(url.host, url.port)
http.use_ssl = true
request = Net::HTTP::Post.new(url)
response = http.request(request)
puts response.read_bodyQueue writing draft items from a brief. The speech worker writes them and creates the personas they need, one persona per speaker in each conversation.
Path parameters
Headers
Request body
Response
Status codes
| Status | Meaning |
|---|---|
201 | Successful Response |
422 | Validation Error |
Example request
curl --request POST \
--url https://api.getbluejay.ai/v1/datasets/{dataset_id}/generate \
--header 'X-API-Key: <api-key>' \
--header 'Content-Type: application/json' \
--data '{
"description": "<string>",
"count": 123,
"length_minutes": {
"min": 1.5,
"max": 1.5
},
"language": "en",
"speakers": [
{
"role": "<string>",
"persona_id": "3c90c3cc-0d44-4b50-8888-8dd25736052a"
}
],
"environments": [
{
"weight": 123,
"environment": {
"background": "<string>",
"level": "quiet",
"device": "close_mic"
}
}
],
"use_vocabulary": true,
"build_audio": false
}'
Example response
201
{
"id": "3c90c3cc-0d44-4b50-8888-8dd25736052a",
"status": "queued",
"count": 123,
"items_written": 123,
"items_failed": 123,
"error": "<string>",
"created_at": "2026-01-01T00:00:00Z",
"started_at": "2026-01-01T00:00:00Z",
"finished_at": "2026-01-01T00:00:00Z"
}
Last modified on November 24, 2026
⌘I
POST /v1/datasets/{dataset_id}/generate
curl --request POST \
--url https://api.getbluejay.ai/v1/datasets/{dataset_id}/generateimport requests
url = "https://api.getbluejay.ai/v1/datasets/{dataset_id}/generate"
response = requests.post(url)
print(response.text)const options = {method: 'POST'};
fetch('https://api.getbluejay.ai/v1/datasets/{dataset_id}/generate', 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.getbluejay.ai/v1/datasets/{dataset_id}/generate",
CURLOPT_RETURNTRANSFER => true,
CURLOPT_ENCODING => "",
CURLOPT_MAXREDIRS => 10,
CURLOPT_TIMEOUT => 30,
CURLOPT_HTTP_VERSION => CURL_HTTP_VERSION_1_1,
CURLOPT_CUSTOMREQUEST => "POST",
]);
$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.getbluejay.ai/v1/datasets/{dataset_id}/generate"
req, _ := http.NewRequest("POST", url, nil)
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.getbluejay.ai/v1/datasets/{dataset_id}/generate")
.asString();require 'uri'
require 'net/http'
url = URI("https://api.getbluejay.ai/v1/datasets/{dataset_id}/generate")
http = Net::HTTP.new(url.host, url.port)
http.use_ssl = true
request = Net::HTTP::Post.new(url)
response = http.request(request)
puts response.read_body