Skip to main content
POST
/
social
/
posts
Create / schedule / publish a social post
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 a post for one or more connected platforms. Provide scheduled_for to schedule, or publish_now: true to publish immediately. Publishing is asynchronous; subscribe to social.post.* webhooks for status. Scope required: social:write

Authorizations

X-API-Key
string
header
required

Your Hrizn API key (prefix hzk_)

Headers

X-Idempotency-Key
string

Optional idempotency key. Repeats with the same key + body within 24h return the original response instead of creating a duplicate.

Body

application/json
content
string
required

Shared post body (per-platform overrides via platforms[].custom_content)

platforms
object[]
required
Minimum array length: 1
media_items
object[]
hashtags
string[]
scheduled_for
string<date-time>

Schedule for this time. Omit (with publish_now) for immediate publishing.

scheduled_timezone
string

IANA timezone for the scheduled time

publish_now
boolean

Publish immediately instead of scheduling

recycling
object
article_component_id
string<uuid>

Response

Post accepted for publishing/scheduling

data
object
Last modified on June 30, 2026