curl --request POST \
--url https://api.app.hrizn.io/v1/public/content/batch \
--header 'Content-Type: application/json' \
--header 'X-API-Key: <api-key>' \
--data '
{
"items": [
{
"ideacloud_id": "3c90c3cc-0d44-4b50-8888-8dd25736052a",
"selected_question_ids": [
"<string>"
],
"selected_staff": [
"3c90c3cc-0d44-4b50-8888-8dd25736052a"
],
"brand_voice_id": "<string>",
"title": "<string>",
"language": "English",
"content_intent": "general",
"auto_compliance": false,
"auto_content_tools": false,
"content_length": 2600,
"output_format": "standard",
"selected_template_id": "3c90c3cc-0d44-4b50-8888-8dd25736052a",
"target_geo_overrides": [
{
"element_id": "3c90c3cc-0d44-4b50-8888-8dd25736052a",
"priority": 1
}
]
}
]
}
'import requests
url = "https://api.app.hrizn.io/v1/public/content/batch"
payload = { "items": [
{
"ideacloud_id": "3c90c3cc-0d44-4b50-8888-8dd25736052a",
"selected_question_ids": ["<string>"],
"selected_staff": ["3c90c3cc-0d44-4b50-8888-8dd25736052a"],
"brand_voice_id": "<string>",
"title": "<string>",
"language": "English",
"content_intent": "general",
"auto_compliance": False,
"auto_content_tools": False,
"content_length": 2600,
"output_format": "standard",
"selected_template_id": "3c90c3cc-0d44-4b50-8888-8dd25736052a",
"target_geo_overrides": [
{
"element_id": "3c90c3cc-0d44-4b50-8888-8dd25736052a",
"priority": 1
}
]
}
] }
headers = {
"X-API-Key": "<api-key>",
"Content-Type": "application/json"
}
response = requests.post(url, json=payload, headers=headers)
print(response.text)const options = {
method: 'POST',
headers: {'X-API-Key': '<api-key>', 'Content-Type': 'application/json'},
body: JSON.stringify({
items: [
{
ideacloud_id: '3c90c3cc-0d44-4b50-8888-8dd25736052a',
selected_question_ids: ['<string>'],
selected_staff: ['3c90c3cc-0d44-4b50-8888-8dd25736052a'],
brand_voice_id: '<string>',
title: '<string>',
language: 'English',
content_intent: 'general',
auto_compliance: false,
auto_content_tools: false,
content_length: 2600,
output_format: 'standard',
selected_template_id: '3c90c3cc-0d44-4b50-8888-8dd25736052a',
target_geo_overrides: [{element_id: '3c90c3cc-0d44-4b50-8888-8dd25736052a', priority: 1}]
}
]
})
};
fetch('https://api.app.hrizn.io/v1/public/content/batch', options)
.then(res => res.json())
.then(res => console.log(res))
.catch(err => console.error(err));const options = {
method: 'POST',
headers: {'X-API-Key': '<api-key>', 'Content-Type': 'application/json'},
body: JSON.stringify({
items: [
{
ideacloud_id: '3c90c3cc-0d44-4b50-8888-8dd25736052a',
selected_question_ids: ['<string>'],
selected_staff: ['3c90c3cc-0d44-4b50-8888-8dd25736052a'],
brand_voice_id: '<string>',
title: '<string>',
language: 'English',
content_intent: 'general',
auto_compliance: false,
auto_content_tools: false,
content_length: 2600,
output_format: 'standard',
selected_template_id: '3c90c3cc-0d44-4b50-8888-8dd25736052a',
target_geo_overrides: [{element_id: '3c90c3cc-0d44-4b50-8888-8dd25736052a', priority: 1}]
}
]
})
};
fetch('https://api.app.hrizn.io/v1/public/content/batch', 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.app.hrizn.io/v1/public/content/batch",
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([
'items' => [
[
'ideacloud_id' => '3c90c3cc-0d44-4b50-8888-8dd25736052a',
'selected_question_ids' => [
'<string>'
],
'selected_staff' => [
'3c90c3cc-0d44-4b50-8888-8dd25736052a'
],
'brand_voice_id' => '<string>',
'title' => '<string>',
'language' => 'English',
'content_intent' => 'general',
'auto_compliance' => false,
'auto_content_tools' => false,
'content_length' => 2600,
'output_format' => 'standard',
'selected_template_id' => '3c90c3cc-0d44-4b50-8888-8dd25736052a',
'target_geo_overrides' => [
[
'element_id' => '3c90c3cc-0d44-4b50-8888-8dd25736052a',
'priority' => 1
]
]
]
]
]),
CURLOPT_HTTPHEADER => [
"Content-Type: application/json",
"X-API-Key: <api-key>"
],
]);
$response = curl_exec($curl);
$err = curl_error($curl);
curl_close($curl);
if ($err) {
echo "cURL Error #:" . $err;
} else {
echo $response;
}{
"data": {
"items": [
{
"id": "3c90c3cc-0d44-4b50-8888-8dd25736052a",
"status": "<string>",
"title": "<string>",
"error": "<string>",
"created_at": "2023-11-07T05:31:56Z"
}
],
"message": "<string>"
}
}{
"error": {
"code": "validation_error",
"message": "keyword: Required",
"details": {},
"request_id": "<string>"
}
}{
"error": {
"code": "validation_error",
"message": "keyword: Required",
"details": {},
"request_id": "<string>"
}
}{
"error": {
"code": "validation_error",
"message": "keyword: Required",
"details": {},
"request_id": "<string>"
}
}{
"error": {
"code": "validation_error",
"message": "keyword: Required",
"details": {},
"request_id": "<string>"
}
}{
"error": {
"code": "validation_error",
"message": "keyword: Required",
"details": {},
"request_id": "<string>"
}
}Create content in batch
Creates multiple content items in a single request (1-10 items).
curl --request POST \
--url https://api.app.hrizn.io/v1/public/content/batch \
--header 'Content-Type: application/json' \
--header 'X-API-Key: <api-key>' \
--data '
{
"items": [
{
"ideacloud_id": "3c90c3cc-0d44-4b50-8888-8dd25736052a",
"selected_question_ids": [
"<string>"
],
"selected_staff": [
"3c90c3cc-0d44-4b50-8888-8dd25736052a"
],
"brand_voice_id": "<string>",
"title": "<string>",
"language": "English",
"content_intent": "general",
"auto_compliance": false,
"auto_content_tools": false,
"content_length": 2600,
"output_format": "standard",
"selected_template_id": "3c90c3cc-0d44-4b50-8888-8dd25736052a",
"target_geo_overrides": [
{
"element_id": "3c90c3cc-0d44-4b50-8888-8dd25736052a",
"priority": 1
}
]
}
]
}
'import requests
url = "https://api.app.hrizn.io/v1/public/content/batch"
payload = { "items": [
{
"ideacloud_id": "3c90c3cc-0d44-4b50-8888-8dd25736052a",
"selected_question_ids": ["<string>"],
"selected_staff": ["3c90c3cc-0d44-4b50-8888-8dd25736052a"],
"brand_voice_id": "<string>",
"title": "<string>",
"language": "English",
"content_intent": "general",
"auto_compliance": False,
"auto_content_tools": False,
"content_length": 2600,
"output_format": "standard",
"selected_template_id": "3c90c3cc-0d44-4b50-8888-8dd25736052a",
"target_geo_overrides": [
{
"element_id": "3c90c3cc-0d44-4b50-8888-8dd25736052a",
"priority": 1
}
]
}
] }
headers = {
"X-API-Key": "<api-key>",
"Content-Type": "application/json"
}
response = requests.post(url, json=payload, headers=headers)
print(response.text)const options = {
method: 'POST',
headers: {'X-API-Key': '<api-key>', 'Content-Type': 'application/json'},
body: JSON.stringify({
items: [
{
ideacloud_id: '3c90c3cc-0d44-4b50-8888-8dd25736052a',
selected_question_ids: ['<string>'],
selected_staff: ['3c90c3cc-0d44-4b50-8888-8dd25736052a'],
brand_voice_id: '<string>',
title: '<string>',
language: 'English',
content_intent: 'general',
auto_compliance: false,
auto_content_tools: false,
content_length: 2600,
output_format: 'standard',
selected_template_id: '3c90c3cc-0d44-4b50-8888-8dd25736052a',
target_geo_overrides: [{element_id: '3c90c3cc-0d44-4b50-8888-8dd25736052a', priority: 1}]
}
]
})
};
fetch('https://api.app.hrizn.io/v1/public/content/batch', options)
.then(res => res.json())
.then(res => console.log(res))
.catch(err => console.error(err));const options = {
method: 'POST',
headers: {'X-API-Key': '<api-key>', 'Content-Type': 'application/json'},
body: JSON.stringify({
items: [
{
ideacloud_id: '3c90c3cc-0d44-4b50-8888-8dd25736052a',
selected_question_ids: ['<string>'],
selected_staff: ['3c90c3cc-0d44-4b50-8888-8dd25736052a'],
brand_voice_id: '<string>',
title: '<string>',
language: 'English',
content_intent: 'general',
auto_compliance: false,
auto_content_tools: false,
content_length: 2600,
output_format: 'standard',
selected_template_id: '3c90c3cc-0d44-4b50-8888-8dd25736052a',
target_geo_overrides: [{element_id: '3c90c3cc-0d44-4b50-8888-8dd25736052a', priority: 1}]
}
]
})
};
fetch('https://api.app.hrizn.io/v1/public/content/batch', 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.app.hrizn.io/v1/public/content/batch",
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([
'items' => [
[
'ideacloud_id' => '3c90c3cc-0d44-4b50-8888-8dd25736052a',
'selected_question_ids' => [
'<string>'
],
'selected_staff' => [
'3c90c3cc-0d44-4b50-8888-8dd25736052a'
],
'brand_voice_id' => '<string>',
'title' => '<string>',
'language' => 'English',
'content_intent' => 'general',
'auto_compliance' => false,
'auto_content_tools' => false,
'content_length' => 2600,
'output_format' => 'standard',
'selected_template_id' => '3c90c3cc-0d44-4b50-8888-8dd25736052a',
'target_geo_overrides' => [
[
'element_id' => '3c90c3cc-0d44-4b50-8888-8dd25736052a',
'priority' => 1
]
]
]
]
]),
CURLOPT_HTTPHEADER => [
"Content-Type: application/json",
"X-API-Key: <api-key>"
],
]);
$response = curl_exec($curl);
$err = curl_error($curl);
curl_close($curl);
if ($err) {
echo "cURL Error #:" . $err;
} else {
echo $response;
}{
"data": {
"items": [
{
"id": "3c90c3cc-0d44-4b50-8888-8dd25736052a",
"status": "<string>",
"title": "<string>",
"error": "<string>",
"created_at": "2023-11-07T05:31:56Z"
}
],
"message": "<string>"
}
}{
"error": {
"code": "validation_error",
"message": "keyword: Required",
"details": {},
"request_id": "<string>"
}
}{
"error": {
"code": "validation_error",
"message": "keyword: Required",
"details": {},
"request_id": "<string>"
}
}{
"error": {
"code": "validation_error",
"message": "keyword: Required",
"details": {},
"request_id": "<string>"
}
}{
"error": {
"code": "validation_error",
"message": "keyword: Required",
"details": {},
"request_id": "<string>"
}
}{
"error": {
"code": "validation_error",
"message": "keyword: Required",
"details": {},
"request_id": "<string>"
}
}Authorizations
Your Hrizn API key (prefix hzk_)
Body
1 - 10 elementsHide child attributes
Hide child attributes
basic, qa, expert, modellanding, comparison, salesevent, enhancedcontent Question IDs from the IdeaCloud (UUIDs from GET /ideaclouds/{id}/questions, or legacy q-{timestamp}-{index} format). Defaults to recommended questions.
1Staff element UUIDs from GET /site/staff. Required for qa and expert content unless selected_staff was previously persisted with PATCH /ideaclouds/{id}/settings. The first UUID is used as the interview subject or expert.
1Text generation tone. Ignored when brand_voice_id is provided.
Informative, Authoritative, Persuasive, Confident, Analytical, Empathetic, Witty, Enthusiastic, Inspiring, Motivating, Creative 500Language for generated content
English, Spanish, Mandarin Chinese, Japanese, Korean, Arabic, Farsi, Hebrew, French, Tagalog, Vietnamese, Portuguese, Russian Controls which dealer links are injected inline vs. appended as a cross-department CTA. fixed_ops prioritizes service/parts links, variable prioritizes sales/financing links, general distributes all links evenly.
fixed_ops, variable, general Deprecated. Article length is now driven by content_depth; this field is accepted for backward compatibility but has no effect on the generated output. Remove from your integration when convenient.
200 <= x <= 5000Content depth preset that drives the article body. Five ordered positions: concise (tight, direct prose), steady (efficient and on-point), balanced (default; lets the topic and outline drive depth), substantial (substantively developed with concrete examples), and in-depth (thorough exploration with vivid local color). Replaces the legacy content_length field.
concise, steady, balanced, substantial, in-depth standard, visual Visual design strategy when output_format is visual.
template, custom, user-template Required when visual_design_mode is user-template.
Response
Batch accepted
Hide child attributes
Hide child attributes
Informational message about async processing and webhook configuration
