infipostdocs
Posts

Create Post

POST /posts — Infipost Public API

POST/public/v1/posts

Create or schedule a new post. Each social media platform has its own settings schema.

cURL
curl --request POST \
  --url 'https://api.infipost.asia/public/v1/posts' \
  --header 'Authorization: YOUR_API_KEY' \
  --header 'Content-Type: application/json' \
  --data '{
  "type": "schedule",
  "date": "2024-12-14T10:00:00.000Z",
  "shortLink": false,
  "tags": [],
  "posts": [
    {
      "integration": {
        "id": "your-integration-id"
      },
      "value": [
        {
          "content": "Hello world!",
          "image": []
        }
      ],
      "settings": {
        "__type": "bluesky"
      }
    }
  ]
}'

Authorization

Authorizationstring · headerrequired

Workspace API key or OAuth access token. Send the token directly without a Bearer prefix.

Body

typestringrequired

Post type

"draft""schedule""now"
datestringrequired

Publish date in UTC ISO format

shortLinkbooleanrequired

Whether to use short links

orderstring

Order of posts

internumber

Interval between posts

tagsarray[]required
Show child attributes
valuestringrequired
labelstringrequired
postsarray[]

Required if type is not 'draft'

Show child attributes
integrationobjectrequired
Show child attributes
idstringrequired

Integration ID

valuearray[]required
Show child attributes
contentstringrequired

Post text content

idstring

Post ID (for updates)

imagearray[]
Show child attributes
idstringrequired
pathstringrequired
thumbnailTimestampnumber

Milliseconds into the video to use as the cover/thumbnail frame. Supported by Instagram, Instagram Standalone, TikTok Business, and TikTok (Direct Post only, not the UPLOAD/inbox flow); other providers ignore it. For TikTok, in our testing the cover was applied only to public posts (privacy_level PUBLIC_TO_EVERYONE).

groupstring

Group ID for related posts

settingsunion

Provider-specific settings

Show child attributes
__typestringrequired

Must be 'x'

"x"
who_can_reply_poststringrequired

Who can reply to the post

"everyone""following""mentionedUsers""subscribers""verified"
communitystring

X Community URL (format: https://x.com/i/communities/123)

Response

Post created successfully

application/json
[
  {
    "postId": "post-123",
    "integration": "integration-456"
  }
]
postIdstring
integrationstring

Post type: now, schedule, or draft

The top-level type field controls when (and whether) the post is published:

ValueBehaviour
"now"Publish immediately. date is ignored.
"schedule"Publish at the time given in date (ISO 8601).
"draft"Save as a draft. The post is created and stored against the integration but not scheduled or published. You can promote it to a real post later from the Infipost UI.

Drafts are how you stage content via the API without committing to a publish time, useful for content review workflows or pre-filling a calendar from an external CMS.

Duplicating a post

There is no dedicated duplicate / clone endpoint. To copy an existing post, fetch it with GET /posts and submit the content as a new POST /posts request.

Before re-submitting, strip the server-managed fields from the fetched object, re-sending them either causes validation errors or, worse, accidentally updates the original. At minimum drop:

  • id and any nested post IDs
  • createdAt, updatedAt, and any other timestamps
  • state / status / releaseId (these are assigned by the scheduler)
  • Anything else the API didn't ask you to provide when you originally created the post

Then set a fresh type (now, schedule, or draft) and date, and POST the cleaned object.

Image alt text (alt)

Each media object in a post's image array accepts an optional alt field: a text description of the image for accessibility.

json
{
  "image": [{ "id": "img-123", "path": "https://uploads.postiz.com/sunset.jpg", "alt": "A sunset over the sea" }]
}

Providers that support alt text (Instagram, Instagram Standalone, Bluesky, Mastodon, Slack, Tumblr) send it with the image; other providers ignore the field. Instagram applies it to images only (single images and carousel items, up to 1000 characters), not to videos or stories.

Video cover frame (thumbnailTimestamp)

Each media object in a post's image array accepts an optional thumbnailTimestamp field: the number of milliseconds into the video to use as the cover/thumbnail frame.

json
{
  "image": [{ "id": "vid-123", "path": "https://uploads.postiz.com/video.mp4", "thumbnailTimestamp": 3000 }]
}

Supported providers: Instagram, Instagram Standalone, TikTok Business, and TikTok (Direct Post only: the UPLOAD/inbox flow does not support cover selection). Other providers ignore the field.

For TikTok, in our testing the cover was applied only to public posts (privacy_level: "PUBLIC_TO_EVERYONE"); posts published with a restricted privacy level kept the first frame as the cover.

Provider-Specific Settings

When creating posts, each social media platform requires different settings. The settings object must include a __type field that identifies the platform.

All 27 Supported Platforms

Platform__typeRequired Settings
X (Twitter)xwho_can_reply_post (optional: community, made_with_ai, paid_partnership)
LinkedInlinkedin-
LinkedIn Pagelinkedin-page-
Facebookfacebook- (optional: url, made_with_ai)
Instagram (FB-linked)instagrampost_type (optional: made_with_ai)
Instagram Standaloneinstagram-standalonepost_type (optional: made_with_ai)
Threadsthreads- (optional: made_with_ai)
Blueskybluesky-
Mastodonmastodon-
Warpcast (Farcaster)warpcast- (optional: subreddit[] for channels)
Nostrnostr-
VKvk-

Platforms Without Custom Settings

These platforms only need the __type field:

json
{
  "settings": {
    "__type": "threads"
  }
}

Platforms: threads, mastodon, bluesky, telegram, nostr, vk

Detailed Provider Settings

See the Provider Settings section for detailed schemas and examples for each platform.