curl --request POST \
--url https://api.tented.ai/v1/tents/bulk \
--header 'Authorization: Bearer <token>' \
--header 'Content-Type: application/json' \
--data '
{
"template_id": "<string>",
"items": [
{
"client_item_id": "<string>",
"tent_name": "<string>",
"custom_page_alias": "<string>",
"token_data": {},
"prompt": "<string>",
"input_data": {},
"instructions": "<string>",
"include_brand": true
}
],
"client_job_descriptor": "<string>",
"default_tent_name_prefix": "<string>",
"start_index": 1,
"auto_publish": true,
"metadata": {}
}
'import requests
url = "https://api.tented.ai/v1/tents/bulk"
payload = {
"template_id": "<string>",
"items": [
{
"client_item_id": "<string>",
"tent_name": "<string>",
"custom_page_alias": "<string>",
"token_data": {},
"prompt": "<string>",
"input_data": {},
"instructions": "<string>",
"include_brand": True
}
],
"client_job_descriptor": "<string>",
"default_tent_name_prefix": "<string>",
"start_index": 1,
"auto_publish": True,
"metadata": {}
}
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({
template_id: '<string>',
items: [
{
client_item_id: '<string>',
tent_name: '<string>',
custom_page_alias: '<string>',
token_data: {},
prompt: '<string>',
input_data: {},
instructions: '<string>',
include_brand: true
}
],
client_job_descriptor: '<string>',
default_tent_name_prefix: '<string>',
start_index: 1,
auto_publish: true,
metadata: {}
})
};
fetch('https://api.tented.ai/v1/tents/bulk', 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.tented.ai/v1/tents/bulk",
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([
'template_id' => '<string>',
'items' => [
[
'client_item_id' => '<string>',
'tent_name' => '<string>',
'custom_page_alias' => '<string>',
'token_data' => [
],
'prompt' => '<string>',
'input_data' => [
],
'instructions' => '<string>',
'include_brand' => true
]
],
'client_job_descriptor' => '<string>',
'default_tent_name_prefix' => '<string>',
'start_index' => 1,
'auto_publish' => true,
'metadata' => [
]
]),
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.tented.ai/v1/tents/bulk"
payload := strings.NewReader("{\n \"template_id\": \"<string>\",\n \"items\": [\n {\n \"client_item_id\": \"<string>\",\n \"tent_name\": \"<string>\",\n \"custom_page_alias\": \"<string>\",\n \"token_data\": {},\n \"prompt\": \"<string>\",\n \"input_data\": {},\n \"instructions\": \"<string>\",\n \"include_brand\": true\n }\n ],\n \"client_job_descriptor\": \"<string>\",\n \"default_tent_name_prefix\": \"<string>\",\n \"start_index\": 1,\n \"auto_publish\": true,\n \"metadata\": {}\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.tented.ai/v1/tents/bulk")
.header("Authorization", "Bearer <token>")
.header("Content-Type", "application/json")
.body("{\n \"template_id\": \"<string>\",\n \"items\": [\n {\n \"client_item_id\": \"<string>\",\n \"tent_name\": \"<string>\",\n \"custom_page_alias\": \"<string>\",\n \"token_data\": {},\n \"prompt\": \"<string>\",\n \"input_data\": {},\n \"instructions\": \"<string>\",\n \"include_brand\": true\n }\n ],\n \"client_job_descriptor\": \"<string>\",\n \"default_tent_name_prefix\": \"<string>\",\n \"start_index\": 1,\n \"auto_publish\": true,\n \"metadata\": {}\n}")
.asString();require 'uri'
require 'net/http'
url = URI("https://api.tented.ai/v1/tents/bulk")
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 \"template_id\": \"<string>\",\n \"items\": [\n {\n \"client_item_id\": \"<string>\",\n \"tent_name\": \"<string>\",\n \"custom_page_alias\": \"<string>\",\n \"token_data\": {},\n \"prompt\": \"<string>\",\n \"input_data\": {},\n \"instructions\": \"<string>\",\n \"include_brand\": true\n }\n ],\n \"client_job_descriptor\": \"<string>\",\n \"default_tent_name_prefix\": \"<string>\",\n \"start_index\": 1,\n \"auto_publish\": true,\n \"metadata\": {}\n}"
response = http.request(request)
puts response.read_body{
"bulk_job_id": "<string>",
"status": "<string>",
"items": [
{
"index": 123,
"status": "accepted",
"client_item_id": "<string>",
"tent_id": "3c90c3cc-0d44-4b50-8888-8dd25736052a",
"tent_name": "<string>",
"custom_page_alias": "<string>",
"publication_status": "pending",
"published_url": "<string>",
"error_code": "INVALID_ITEM",
"message": "<string>"
}
],
"template_id": "<string>",
"auto_publish": true,
"accepted_count": 123,
"rejected_count": 123,
"metadata": {},
"created_at": "2023-11-07T05:31:56Z"
}{
"error": "<string>",
"error_code": "<string>",
"message": "<string>",
"code": "<string>",
"details": {},
"limit": 123,
"current": 123
}{
"error": "<string>",
"error_code": "<string>",
"message": "<string>",
"code": "<string>",
"details": {},
"limit": 123,
"current": 123
}{
"error": "<string>",
"error_code": "<string>",
"message": "<string>",
"code": "<string>",
"details": {},
"limit": 123,
"current": 123
}Create tents in bulk
Create up to 25 tents from one approved template in a single request. Admission supports partial success: valid items are accepted and queued, invalid ones are rejected item-by-item. Poll GET /v1/bulk-jobs/{bulkJobId} for progress.
curl --request POST \
--url https://api.tented.ai/v1/tents/bulk \
--header 'Authorization: Bearer <token>' \
--header 'Content-Type: application/json' \
--data '
{
"template_id": "<string>",
"items": [
{
"client_item_id": "<string>",
"tent_name": "<string>",
"custom_page_alias": "<string>",
"token_data": {},
"prompt": "<string>",
"input_data": {},
"instructions": "<string>",
"include_brand": true
}
],
"client_job_descriptor": "<string>",
"default_tent_name_prefix": "<string>",
"start_index": 1,
"auto_publish": true,
"metadata": {}
}
'import requests
url = "https://api.tented.ai/v1/tents/bulk"
payload = {
"template_id": "<string>",
"items": [
{
"client_item_id": "<string>",
"tent_name": "<string>",
"custom_page_alias": "<string>",
"token_data": {},
"prompt": "<string>",
"input_data": {},
"instructions": "<string>",
"include_brand": True
}
],
"client_job_descriptor": "<string>",
"default_tent_name_prefix": "<string>",
"start_index": 1,
"auto_publish": True,
"metadata": {}
}
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({
template_id: '<string>',
items: [
{
client_item_id: '<string>',
tent_name: '<string>',
custom_page_alias: '<string>',
token_data: {},
prompt: '<string>',
input_data: {},
instructions: '<string>',
include_brand: true
}
],
client_job_descriptor: '<string>',
default_tent_name_prefix: '<string>',
start_index: 1,
auto_publish: true,
metadata: {}
})
};
fetch('https://api.tented.ai/v1/tents/bulk', 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.tented.ai/v1/tents/bulk",
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([
'template_id' => '<string>',
'items' => [
[
'client_item_id' => '<string>',
'tent_name' => '<string>',
'custom_page_alias' => '<string>',
'token_data' => [
],
'prompt' => '<string>',
'input_data' => [
],
'instructions' => '<string>',
'include_brand' => true
]
],
'client_job_descriptor' => '<string>',
'default_tent_name_prefix' => '<string>',
'start_index' => 1,
'auto_publish' => true,
'metadata' => [
]
]),
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.tented.ai/v1/tents/bulk"
payload := strings.NewReader("{\n \"template_id\": \"<string>\",\n \"items\": [\n {\n \"client_item_id\": \"<string>\",\n \"tent_name\": \"<string>\",\n \"custom_page_alias\": \"<string>\",\n \"token_data\": {},\n \"prompt\": \"<string>\",\n \"input_data\": {},\n \"instructions\": \"<string>\",\n \"include_brand\": true\n }\n ],\n \"client_job_descriptor\": \"<string>\",\n \"default_tent_name_prefix\": \"<string>\",\n \"start_index\": 1,\n \"auto_publish\": true,\n \"metadata\": {}\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.tented.ai/v1/tents/bulk")
.header("Authorization", "Bearer <token>")
.header("Content-Type", "application/json")
.body("{\n \"template_id\": \"<string>\",\n \"items\": [\n {\n \"client_item_id\": \"<string>\",\n \"tent_name\": \"<string>\",\n \"custom_page_alias\": \"<string>\",\n \"token_data\": {},\n \"prompt\": \"<string>\",\n \"input_data\": {},\n \"instructions\": \"<string>\",\n \"include_brand\": true\n }\n ],\n \"client_job_descriptor\": \"<string>\",\n \"default_tent_name_prefix\": \"<string>\",\n \"start_index\": 1,\n \"auto_publish\": true,\n \"metadata\": {}\n}")
.asString();require 'uri'
require 'net/http'
url = URI("https://api.tented.ai/v1/tents/bulk")
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 \"template_id\": \"<string>\",\n \"items\": [\n {\n \"client_item_id\": \"<string>\",\n \"tent_name\": \"<string>\",\n \"custom_page_alias\": \"<string>\",\n \"token_data\": {},\n \"prompt\": \"<string>\",\n \"input_data\": {},\n \"instructions\": \"<string>\",\n \"include_brand\": true\n }\n ],\n \"client_job_descriptor\": \"<string>\",\n \"default_tent_name_prefix\": \"<string>\",\n \"start_index\": 1,\n \"auto_publish\": true,\n \"metadata\": {}\n}"
response = http.request(request)
puts response.read_body{
"bulk_job_id": "<string>",
"status": "<string>",
"items": [
{
"index": 123,
"status": "accepted",
"client_item_id": "<string>",
"tent_id": "3c90c3cc-0d44-4b50-8888-8dd25736052a",
"tent_name": "<string>",
"custom_page_alias": "<string>",
"publication_status": "pending",
"published_url": "<string>",
"error_code": "INVALID_ITEM",
"message": "<string>"
}
],
"template_id": "<string>",
"auto_publish": true,
"accepted_count": 123,
"rejected_count": 123,
"metadata": {},
"created_at": "2023-11-07T05:31:56Z"
}{
"error": "<string>",
"error_code": "<string>",
"message": "<string>",
"code": "<string>",
"details": {},
"limit": 123,
"current": 123
}{
"error": "<string>",
"error_code": "<string>",
"message": "<string>",
"code": "<string>",
"details": {},
"limit": 123,
"current": 123
}{
"error": "<string>",
"error_code": "<string>",
"message": "<string>",
"code": "<string>",
"details": {},
"limit": 123,
"current": 123
}Authorizations
Workspace API key, e.g. Authorization: Bearer tented_.... Create keys in Workspace Settings → API Keys.
Body
Approved template used for every item.
Items to create (1–25). Each item must provide token_data and/or prompt.
1 - 25 elementsShow child attributes
Show child attributes
Label for the bulk job.
Name prefix used when an item omits tent_name.
Starting counter for generated names.
x >= 1Publish every generated tent automatically. Applies to the whole batch.
Reasoning effort for the generation pass.
min, medium, high, max Job-level metadata, echoed back in responses.
Response
Batch admitted (possibly with per-item rejections).
Bulk job ID — poll GET /v1/bulk-jobs/{bulkJobId}.
Always accepted.
Admission result per item, in request order.
Show child attributes
Show child attributes
Template used.
Whether the batch auto-publishes.
Items admitted.
Items rejected at admission.
Echoed job metadata.
Job creation time.