Post

Publishing a Post

Endpoint

Base URL: https://backend.blotato.com/v2

URL: /posts

Method: POST

Rate Limit: 30 requests / minute

Description

Publish a new post to a social media platform. The request must include the post content, target platform, and an accountId (fetched from GET /v2/users/me/accounts).

After submitting, poll Get Post Status with the returned postSubmissionId to track publishing progress.

Before You Start

  1. Fetch your connected accounts: GET /v2/users/me/accounts (docs)

  2. For Facebook/LinkedIn, fetch subaccounts to get pageId: GET /v2/users/me/accounts/{accountId}/subaccounts (docs)

  3. Set content.platform and target.targetType to the same platform value (e.g., both "twitter")


Request Body

Field
Type
Required
Description

post

object

Yes

The post content and metadata.

scheduledTime

string

No

ISO 8601 timestamp for when to publish. If provided, useNextFreeSlot is ignored.

useNextFreeSlot

boolean

No

Schedule at the next available slot time. Defaults to false.

post Object

Field
Type
Required
Description

accountId

string

Yes

The account ID from GET /v2/users/me/accounts.

content

object

Yes

The content of the post. See content below.

target

object

Yes

The target platform and platform-specific fields. See target below.

content Object

Field
Type
Required
Description

text

string

Yes

The text content of the post.

mediaUrls

array of strings

Yes

Array of media URLs. Pass any publicly accessible URL -- no upload step required. Pass [] for text-only posts.

platform

string

Yes

Must match target.targetType. Values: twitter, linkedin, facebook, instagram, pinterest, tiktok, threads, bluesky, youtube, other

additionalPosts

array

No

Additional posts for threads (Twitter, Bluesky, Threads). Each has text and mediaUrls.

target Object

The target object requires targetType and platform-specific fields. Set targetType to match content.platform.

Twitter

Field
Type
Required

targetType

"twitter"

Yes

LinkedIn

Field
Type
Required
Description

targetType

"linkedin"

Yes

pageId

string

No

LinkedIn Company Page ID from subaccounts. Omit to post to personal profile.

Facebook

Field
Type
Required
Description

targetType

"facebook"

Yes

pageId

string

Yes

Facebook Page ID from subaccounts.

mediaType

"video" or "reel"

No

How to upload videos. Only applies when mediaUrls contains a video.

link

string

No

URL to attach as a link preview.

Instagram

Field
Type
Required
Description

targetType

"instagram"

Yes

mediaType

"reel" or "story"

No

Default: "reel". Has no effect on image posts.

altText

string

No

Alt text for images. Up to 1000 characters.

collaborators

array of strings

No

Instagram handles to tag. Do not include the @ sign.

coverImageUrl

string

No

Cover image URL for reels. Max 8MB.

TikTok

Field
Type
Required
Description

targetType

"tiktok"

Yes

privacyLevel

string

Yes

SELF_ONLY, PUBLIC_TO_EVERYONE, MUTUAL_FOLLOW_FRIENDS, or FOLLOWER_OF_CREATOR

disabledComments

boolean

Yes

disabledDuet

boolean

Yes

disabledStitch

boolean

Yes

isBrandedContent

boolean

Yes

isYourBrand

boolean

Yes

isAiGenerated

boolean

Yes

title

string

No

Title for image posts. Max 90 characters. No effect on videos.

autoAddMusic

boolean

No

Add music to photo posts. No effect on videos. Default: false.

isDraft

boolean

No

Post as a draft. Drafts appear in TikTok mobile app notifications, not the Drafts folder.

imageCoverIndex

number

No

Index (starting from 0) of image to use as cover for carousels.

videoCoverTimestamp

number

No

Timestamp in milliseconds to use as video cover.

Pinterest

Field
Type
Required
Description

targetType

"pinterest"

Yes

boardId

string

Yes

Pinterest Board ID. How to get it.

title

string

No

Pin title.

altText

string

No

Pin alt text.

link

string

No

Pin URL link.

Pinterest "description" comes from the content.text field.

Threads

Field
Type
Required
Description

targetType

"threads"

Yes

replyControl

string

No

everyone, accounts_you_follow, or mentioned_only

Bluesky

Field
Type
Required

targetType

"bluesky"

Yes

YouTube

Field
Type
Required
Description

targetType

"youtube"

Yes

title

string

Yes

Video title.

privacyStatus

string

Yes

private, public, or unlisted

shouldNotifySubscribers

boolean

Yes

isMadeForKids

boolean

No

Default: false

containsSyntheticMedia

boolean

No

Whether media contains AI-generated content.

Webhook

Field
Type
Required
Description

targetType

"webhook"

Yes

url

string

Yes

The webhook URL to send the post data.


Response

Status Code: 201 Created

Use postSubmissionId to poll Get Post Status for publishing progress.

Failed posts are visible at https://my.blotato.com/failedarrow-up-right. The most common cause of failed posts is incorrect JSON structure.


Examples

1. Simplest Post (Twitter, text only)

2. Instagram Post with Images

Posting multiple images to Instagram creates a carousel.

3. Facebook Page Post

Get accountId and pageId from the Accounts endpoints.

4. TikTok Post (all required fields)

5. Scheduled Post

6. Twitter Thread

Threads work for Twitter, Bluesky, and Threads.

Last updated