curl --request POST \
--url https://api.app.hrizn.io/v1/public/social/posts \
--header 'Content-Type: application/json' \
--header 'X-API-Key: <api-key>' \
--data '
{
"content": "<string>",
"platforms": [
{
"account_id": "<string>",
"custom_content": "<string>",
"custom_media": [
{
"url": "<string>"
}
],
"platform_specific_data": "<string>",
"article_component_id": "3c90c3cc-0d44-4b50-8888-8dd25736052a"
}
]
}
'import requests
url = "https://api.app.hrizn.io/v1/public/social/posts"
payload = {
"content": "<string>",
"platforms": [
{
"account_id": "<string>",
"custom_content": "<string>",
"custom_media": [{ "url": "<string>" }],
"platform_specific_data": "<string>",
"article_component_id": "3c90c3cc-0d44-4b50-8888-8dd25736052a"
}
]
}
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({
content: '<string>',
platforms: [
{
account_id: '<string>',
custom_content: '<string>',
custom_media: [{url: '<string>'}],
platform_specific_data: '<string>',
article_component_id: '3c90c3cc-0d44-4b50-8888-8dd25736052a'
}
]
})
};
fetch('https://api.app.hrizn.io/v1/public/social/posts', 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({
content: '<string>',
platforms: [
{
account_id: '<string>',
custom_content: '<string>',
custom_media: [{url: '<string>'}],
platform_specific_data: '<string>',
article_component_id: '3c90c3cc-0d44-4b50-8888-8dd25736052a'
}
]
})
};
fetch('https://api.app.hrizn.io/v1/public/social/posts', 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/social/posts",
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([
'content' => '<string>',
'platforms' => [
[
'account_id' => '<string>',
'custom_content' => '<string>',
'custom_media' => [
[
'url' => '<string>'
]
],
'platform_specific_data' => '<string>',
'article_component_id' => '3c90c3cc-0d44-4b50-8888-8dd25736052a'
]
]
]),
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": {
"id": "<string>",
"status": "<string>",
"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>"
}
}Create / schedule / publish a social post
Create a post for one or more connected platforms. Provide
scheduled_for to schedule, or publish_now: true to publish
immediately. Publishing is asynchronous; status is reflected on the
post record and via social.post.* webhooks.
curl --request POST \
--url https://api.app.hrizn.io/v1/public/social/posts \
--header 'Content-Type: application/json' \
--header 'X-API-Key: <api-key>' \
--data '
{
"content": "<string>",
"platforms": [
{
"account_id": "<string>",
"custom_content": "<string>",
"custom_media": [
{
"url": "<string>"
}
],
"platform_specific_data": "<string>",
"article_component_id": "3c90c3cc-0d44-4b50-8888-8dd25736052a"
}
]
}
'import requests
url = "https://api.app.hrizn.io/v1/public/social/posts"
payload = {
"content": "<string>",
"platforms": [
{
"account_id": "<string>",
"custom_content": "<string>",
"custom_media": [{ "url": "<string>" }],
"platform_specific_data": "<string>",
"article_component_id": "3c90c3cc-0d44-4b50-8888-8dd25736052a"
}
]
}
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({
content: '<string>',
platforms: [
{
account_id: '<string>',
custom_content: '<string>',
custom_media: [{url: '<string>'}],
platform_specific_data: '<string>',
article_component_id: '3c90c3cc-0d44-4b50-8888-8dd25736052a'
}
]
})
};
fetch('https://api.app.hrizn.io/v1/public/social/posts', 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({
content: '<string>',
platforms: [
{
account_id: '<string>',
custom_content: '<string>',
custom_media: [{url: '<string>'}],
platform_specific_data: '<string>',
article_component_id: '3c90c3cc-0d44-4b50-8888-8dd25736052a'
}
]
})
};
fetch('https://api.app.hrizn.io/v1/public/social/posts', 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/social/posts",
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([
'content' => '<string>',
'platforms' => [
[
'account_id' => '<string>',
'custom_content' => '<string>',
'custom_media' => [
[
'url' => '<string>'
]
],
'platform_specific_data' => '<string>',
'article_component_id' => '3c90c3cc-0d44-4b50-8888-8dd25736052a'
]
]
]),
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": {
"id": "<string>",
"status": "<string>",
"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>"
}
}Authorizations
Your Hrizn API key (prefix hzk_)
Headers
Optional idempotency key. Repeats with the same key + body within 24h return the original response instead of creating a duplicate.
Body
Shared post body (per-platform overrides via platforms[].custom_content)
1Hide child attributes
Hide child attributes
twitter, facebook, instagram, linkedin, googlebusiness Zernio account id (from /social/accounts)
Platform-specific content overriding the shared body
JSON-encoded string of platform-specific options. By platform: googlebusiness — {"locationId":"<gbp-location-id>"} (required to target a specific Google Business location; see location_id on /social/reviews); linkedin — {"organizationUrn":"urn:li:organization:<id>"} to override the account's default organization (the connected organization_urn from /social/accounts is used automatically when omitted); twitter — {"poll":{"options":["A","B"],"duration_minutes":1440}}.
Schedule for this time. Omit (with publish_now) for immediate publishing.
IANA timezone for the scheduled time
Publish immediately instead of scheduling
Hide child attributes
Hide child attributes
x >= 1week, month x >= 1