[Go to site: main page, start]

REST APIPOST

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.

POSThttps://post.adaptlypost.com/post/api/v1/social-posts

Create a new social media post. Posts can be published immediately, scheduled for later, or saved as drafts.

API Key (Bearer token)
Permission:posts.draftRoles and permissions

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

ParameterTypeDescription
platformsPlatformType[]Target platforms (e.g. TWITTER, LINKEDIN, INSTAGRAM). Each one also needs its connection IDs. Required unless accountIds is sent
accountIdsstring[]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
contentTypeREQUIREDContentTypeTEXT, 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
textstringPost 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
platformTextsPlatformText[]Per-platform text overrides
mediaUrlsstring[]URLs of uploaded media files
mediaAltTextsstring[]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.
thumbnailUrlstringThumbnail 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
thumbnailTimestampMsnumberVideo 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
platformThumbnailsPlatformThumbnail[]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
platformMediaPlatformMedia[]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
platformAspectRatiosPlatformAspectRatio[]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
firstCommentsPlatformFirstComment[]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
threadRepliesPlatformThreadReplies[]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
scheduledAtstringISO 8601 date for scheduling. Omit to publish immediately. With saveAsDraft: true it is the draft's planned date and the post stays a draft.
timezoneREQUIREDstringIANA timezone (e.g. America/New_York)
saveAsDraftbooleanSave as draft instead of publishing. Add scheduledAt to keep the date the draft should go out; nothing is published until you call Publish Draft.
recurrenceRecurrenceRepeats the post on a schedule. Needs a future scheduledAt. See Recurring Posts below
twitterConnectionIdsstring[]Twitter account connection IDs
twitterKeepLinksbooleanKeep 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
linkedinConnectionIdsstring[]LinkedIn account connection IDs
instagramConnectionIdsstring[]Instagram account connection IDs
tiktokConnectionIdsstring[]TikTok account connection IDs
youtubeConnectionIdsstring[]YouTube channel connection IDs
pinterestConnectionIdsstring[]Pinterest account connection IDs
blueskyConnectionIdsstring[]Bluesky account connection IDs
mastodonConnectionIdsstring[]Mastodon account connection IDs
googleBusinessConnectionIdsstring[]Google Business Profile location connection IDs
googleBusinessConfigsGoogleBusinessConfig[]Google Business Profile post settings per location: post type (update, event or offer), button, event dates and offer details. See Platform Configs for schema
tumblrConnectionIdsstring[]Tumblr blog connection IDs
wordpressConnectionIdsstring[]WordPress site connection IDs
telegramConnectionIdsstring[]Telegram channel and group connection IDs
tumblrConfigsTumblrConfig[]Tumblr post settings per blog: tags, title and source link. See Platform Configs for schema
wordpressConfigsWordPressConfig[]WordPress post settings per site: title, excerpt, categories, tags and status. See Platform Configs for schema
threadsConnectionIdsstring[]Threads account connection IDs
pageIdsstring[]Facebook pages to post to. Accepts either the account id or the pageId from /social-accounts
pinterestConfigsPinterestConfig[]Settings for this platform, one object per account, each naming the connectionId it applies to (pageId for Facebook). See Platform Configs
tiktokConfigsTikTokConfig[]Settings for this platform, one object per account, each naming the connectionId it applies to (pageId for Facebook). See Platform Configs
instagramConfigsInstagramConfig[]Settings for this platform, one object per account, each naming the connectionId it applies to (pageId for Facebook). See Platform Configs
facebookConfigsFacebookConfig[]Settings for this platform, one object per account, each naming the connectionId it applies to (pageId for Facebook). See Platform Configs
youtubeConfigsYouTubeConfig[]Settings for this platform, one object per account, each naming the connectionId it applies to (pageId for Facebook). See Platform Configs
linkedinConfigsLinkedInConfig[]Settings for this platform, one object per account, each naming the connectionId it applies to (pageId for Facebook). See Platform Configs
twitterConfigsTwitterConfig[]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.

When a platform has no entry in platformTexts, the default text field is used.

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

ParameterTypeDescription
frequencyREQUIREDRecurrenceFrequencyDAILY, 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
intervalnumberRepeat every N days, weeks, months or years (1-30, default: 1)
weekdaysWeekday[]WEEKLY only. The days to post on, MONDAY to SUNDAY. The weekday of scheduledAt is always included
endsOnstringLast 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
maxOccurrencesnumberTotal number of posts the series publishes (2-365). Cannot be combined with endsOn. Send neither to repeat until you pause or delete the series
The response adds recurringPostId, and postId is the first post of the series. Pass recurringPostId to the Recurring Posts endpoints to pause, resume 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.

JSON
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",
To see these problems without creating anything, send the same body to Check Post (POST /api/v1/social-posts/validate) first.
Example
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"],