Create Posts from the API
Publish or schedule a post across multiple social platforms in a single API call, with per-platform content and media.
https://post.adaptlypost.com/post/api/v1/social-postsCreate a new social media post. Posts can be published immediately, scheduled for later, or saved as drafts.
posts.draft is enough when saveAsDraft is true. A future scheduledAt needs posts.schedule. No scheduledAt, or a time already past, publishes now and needs posts.publish. A Contributor key can therefore only save drafts.
Body Parameters
| Parameter | Type | Description |
|---|---|---|
platforms | PlatformType[] | Target platforms (e.g. TWITTER, LINKEDIN, INSTAGRAM). Each one also needs its connection IDs. Required unless accountIds is sent |
accountIds | string[] | Account ids (or Facebook pageIds) from /social-accounts to post to. AdaptlyPost adds each account's platform to platforms and its id to the matching connection id list, so you can send these instead of platforms and the per-platform lists, or alongside them. An id that is not connected to the workspace returns 400 |
contentTypeREQUIRED | ContentType | TEXT, IMAGE, VIDEO, CAROUSEL, or DOCUMENT. DOCUMENT is LinkedIn only: exactly one PDF, PPT, PPTX, DOC or DOCX file in mediaUrls, shown as a swipeable document |
text | string | Post text content. On LinkedIn, mention a company page with @[Page Name](urn:li:organization:<id>), using the page name exactly as LinkedIn shows it. LinkedIn only allows mentions of company pages, not people. GET /api/v1/linkedin-organizations/lookup (see Social Accounts) returns that mention for a page URL or vanity name |
platformTexts | PlatformText[] | Per-platform text overrides |
mediaUrls | string[] | URLs of uploaded media files |
mediaAltTexts | string[] | Alt text for each image, in the same order as mediaUrls. Max 1000 characters each; use an empty string to skip an image. Sent to X, Bluesky, Mastodon, Tumblr, WordPress, LinkedIn, Facebook, Instagram and Threads. Pinterest uses the first one, cut to 500 characters. TikTok, YouTube, Google Business Profile and videos ignore it. |
thumbnailUrl | string | Thumbnail of a video post, as an https URL or an image data URI. Every platform that takes a thumbnail uses it unless platformThumbnails overrides it |
thumbnailTimestampMs | number | Video frame to use as the thumbnail, in milliseconds from the start. Works on YOUTUBE, FACEBOOK, INSTAGRAM, LINKEDIN, PINTEREST, TELEGRAM and TIKTOK. A thumbnailUrl sent with it wins everywhere except TIKTOK, which takes only a frame. platformThumbnails overrides both |
platformThumbnails | PlatformThumbnail[] | A different thumbnail for one platform of a video post, as { platform, thumbnailUrl?, thumbnailTimestampMs? }. YOUTUBE, FACEBOOK, INSTAGRAM, LINKEDIN, PINTEREST and TELEGRAM take an image or a frame, and use the image when both are sent. TIKTOK takes only a frame. Platforms without an entry use thumbnailUrl and thumbnailTimestampMs |
platformMedia | PlatformMedia[] | Its own media for one platform, for when the post media does not fit it, such as a video too long for TikTok or a carousel with more images than X takes. Send { platform, mediaUrls, mediaAltTexts? }, one entry per platform the post goes to. mediaUrls are uploaded https URLs, not data URIs, and must match contentType: one video for VIDEO, one image for IMAGE, one document for DOCUMENT, two or more items for CAROUSEL. TEXT posts take none. mediaAltTexts follows the order of the entry's mediaUrls, max 1000 characters each. The entry is checked against that platform's limits instead of mediaUrls, and the platform takes its thumbnail only from platformThumbnails. Platforms without an entry use mediaUrls |
platformAspectRatios | PlatformAspectRatio[] | Reframe every image of an IMAGE or CAROUSEL post to one shape on a platform, as { platform, aspectRatio, fit? }. One entry per platform. aspectRatio is SQUARE (1:1), PORTRAIT (4:5), VERTICAL (9:16) or LANDSCAPE (1.91:1): INSTAGRAM takes SQUARE, PORTRAIT or LANDSCAPE, TIKTOK all four. fit is CROP (the default, cut from the center) or PAD (keep the whole image and fill the rest with a blurred copy). Other platforms, video posts, Instagram stories and a second entry for one platform return a 400. Platforms without an entry keep their images as uploaded |
firstComments | PlatformFirstComment[] | A comment posted under the published post from the same account, as { platform, text, delayMinutes }. One entry per platform. LINKEDIN takes up to 1250 characters, TWITTER 280, THREADS 500, BLUESKY 300, MASTODON 500, YOUTUBE 10000 (not on private or made-for-kids videos), FACEBOOK 8000 and INSTAGRAM 2200 (not on stories). Other platforms return a 400. A Facebook Page or Instagram account connected before first comments came to them needs one reconnect; until then its comment fails with firstCommentError. Add delayMinutes (0 to 10080, which is 7 days) to post the comment that many minutes after the platform publishes. Leave it out or send 0 to post it right away. Deleting the post before then cancels the comment |
threadReplies | PlatformThreadReplies[] | Turns the post into a thread, as { platform, texts, mediaUrls }: the post opens it and each text goes out as a reply to the one before, from the same account. One entry per platform, up to 25 texts. TWITTER takes 280 characters per reply (more on X Premium), THREADS 500, BLUESKY 300 and MASTODON 500 (or the instance limit). mediaUrls is optional and parallel to texts: up to 4 JPEG, PNG, GIF or WEBP images per reply, from POST /upload-urls, and [] for a reply without images. A reply with images may leave its text empty. Other platforms, a reply with neither text nor images, a too long reply, more than 4 images or a video on a reply and a platform that also has a first comment return a 400 |
scheduledAt | string | ISO 8601 date for scheduling. Omit to publish immediately. With saveAsDraft: true it is the draft's planned date and the post stays a draft. |
timezoneREQUIRED | string | IANA timezone (e.g. America/New_York) |
saveAsDraft | boolean | Save as draft instead of publishing. Add scheduledAt to keep the date the draft should go out; nothing is published until you call Publish Draft. |
recurrence | Recurrence | Repeats the post on a schedule. Needs a future scheduledAt. See Recurring Posts below |
twitterConnectionIds | string[] | Twitter account connection IDs |
twitterKeepLinks | boolean | Keep links in the X text clickable. By default every link in X text is broken up (example.com becomes example. com), because X charges over 10 times more for a post with a link. Only AppSumo lifetime deal accounts can turn this on: a kept link costs 20 credits instead of 2, also for an X first comment, and without enough credits the X post fails. true on any other plan returns a 400. Ignored when the X text has no link |
linkedinConnectionIds | string[] | LinkedIn account connection IDs |
instagramConnectionIds | string[] | Instagram account connection IDs |
tiktokConnectionIds | string[] | TikTok account connection IDs |
youtubeConnectionIds | string[] | YouTube channel connection IDs |
pinterestConnectionIds | string[] | Pinterest account connection IDs |
blueskyConnectionIds | string[] | Bluesky account connection IDs |
mastodonConnectionIds | string[] | Mastodon account connection IDs |
googleBusinessConnectionIds | string[] | Google Business Profile location connection IDs |
googleBusinessConfigs | GoogleBusinessConfig[] | Google Business Profile post settings per location: post type (update, event or offer), button, event dates and offer details. See Platform Configs for schema |
tumblrConnectionIds | string[] | Tumblr blog connection IDs |
wordpressConnectionIds | string[] | WordPress site connection IDs |
telegramConnectionIds | string[] | Telegram channel and group connection IDs |
tumblrConfigs | TumblrConfig[] | Tumblr post settings per blog: tags, title and source link. See Platform Configs for schema |
wordpressConfigs | WordPressConfig[] | WordPress post settings per site: title, excerpt, categories, tags and status. See Platform Configs for schema |
threadsConnectionIds | string[] | Threads account connection IDs |
pageIds | string[] | Facebook pages to post to. Accepts either the account id or the pageId from /social-accounts |
pinterestConfigs | PinterestConfig[] | Settings for this platform, one object per account, each naming the connectionId it applies to (pageId for Facebook). See Platform Configs |
tiktokConfigs | TikTokConfig[] | Settings for this platform, one object per account, each naming the connectionId it applies to (pageId for Facebook). See Platform Configs |
instagramConfigs | InstagramConfig[] | Settings for this platform, one object per account, each naming the connectionId it applies to (pageId for Facebook). See Platform Configs |
facebookConfigs | FacebookConfig[] | Settings for this platform, one object per account, each naming the connectionId it applies to (pageId for Facebook). See Platform Configs |
youtubeConfigs | YouTubeConfig[] | Settings for this platform, one object per account, each naming the connectionId it applies to (pageId for Facebook). See Platform Configs |
linkedinConfigs | LinkedInConfig[] | Settings for this platform, one object per account, each naming the connectionId it applies to (pageId for Facebook). See Platform Configs |
twitterConfigs | TwitterConfig[] | Settings for this platform, one object per account, each naming the connectionId it applies to (pageId for Facebook). See Platform Configs |
Platform-Specific Text
Use platformTexts to customize content per platform while sharing the same post.
One Account per Platform
Only one account per platform is allowed per post. For example, you cannot include two Twitter connection IDs in the same request. This restriction is enforced to comply with platform Terms of Service. Violating this rule will return a 400 error.Recurring Posts
Add a recurrence object to repeat the post. The post at scheduledAt is the first one of the series and sets the time of day, in the timezone you send. Only the next post of the series exists at any time. AdaptlyPost creates it about 24 hours before it goes out.
Recurrence Object
| Parameter | Type | Description |
|---|---|---|
frequencyREQUIRED | RecurrenceFrequency | DAILY, WEEKLY, MONTHLY or YEARLY. YEARLY posts on the same date every year; a series started on February 29 posts on February 28 in other years |
interval | number | Repeat every N days, weeks, months or years (1-30, default: 1) |
weekdays | Weekday[] | WEEKLY only. The days to post on, MONDAY to SUNDAY. The weekday of scheduledAt is always included |
endsOn | string | Last day a post may go out on, as YYYY-MM-DD. Must be on or after the day of the first post. Cannot be combined with maxOccurrences |
maxOccurrences | number | Total number of posts the series publishes (2-365). Cannot be combined with endsOn. Send neither to repeat until you pause or delete the series |
Recurring Post Rules
A recurring post cannot use saveAsDraft: true or include a TikTok account. Each of these returns 400. Dates missed while the series is paused are skipped, never published late. X and LinkedIn reject text that matches an earlier post, so add spintax like {Hi|Hello} to make each post different.When a post is refused
A post refused for its content answers 400 with code post_validation_failed and issues, which lists every problem found at once, in the same shape as the issues of Check Post. message is the text of the problem when there is one, and a list of texts when there are several.
1{2 "statusCode": 400,3 "error": "Bad Request",4 "code": "post_validation_failed",5 "message": [6 "Text exceeds maximum length for Twitter/X. Maximum is 280 characters",1curl --request POST \2 --url https://post.adaptlypost.com/post/api/v1/social-posts \3 --header 'Authorization: Bearer <api-key>' \4 --header 'Content-Type: application/json' \5 --data '{6 "platforms": ["TWITTER", "LINKEDIN"],