Publish one post to several connected accounts in a single request. Shared
content and media go to every account in platforms; each entry can
override them and add that platform's own options. Adeli validates every
account's post exactly as the single-platform endpoints
would, accepts the publication durably, and publishes to every account in the
background.
Body
profileIduuid- The profile. Optional: every accountId names its profile, and they must all agree.
contentstring- The post's text: each platform's caption, message, text, or commentary. YouTube's title defaults to its first line and TikTok photo posts' title to its first 90 characters.
mediaarray- Shared media, in order: { upload_id } from Prepare media uploads (name every target platform in its platforms), or { url } for a public HTTPS video.
platformsarrayRequired- 1–20 targets.
platforms[].platformstringRequired- instagram, facebook, tiktok, youtube, x, bluesky, or linkedin.
platforms[].accountIduuidRequired- The connected account to post from.
platforms[].kindstring- image, carousel, video, reel, or story. Inferred from the media when omitted: one video is a Reel on Instagram and Facebook and a video elsewhere.
platforms[].contentstring- Replaces content for this account, for example a shorter caption for X.
platforms[].mediaarray- Replaces media for this account. Items may carry the platform's per-item fields, such as Instagram altText and userTags.
platforms[].optionsobject- This platform's create-post fields other than its text and media: TikTok's music_usage_confirmed and privacy_level, YouTube's privacy_status and made_for_kids, Instagram's collaborators, and so on.
scheduledForstring- Publish later instead of now: ISO 8601 with a UTC offset, from one minute to 365 days ahead.
timeZonestring- The IANA zone the scheduled time was chosen in, such as America/New_York. Kept only so the time can be shown back the same way.
draftboolean- Save the publication as a draft instead of publishing it. Not with scheduledFor.
Every target is validated before anything is written. An invalid target answers
400 with each problem's path under platforms[i]; an account that is not in
the profile answers 404. Nothing is published in either case.
Scheduling and drafts
With scheduledFor, the publication is stored with status: "scheduled" and
answered with 201. Adeli publishes it within about a minute of that time, as
if it had been created then, and each account's post also appears in List
posts with status: "scheduled" until it goes out.
With draft: true, it is stored as a draft and published only when you
publish it or give it a time with
Update a publication. Either can be
canceled before it starts.
Adeli keeps the staged media of a scheduled publication or draft until it is
published or canceled, so staged uploads' one-day expiry does not apply to it.
{ url } media is fetched when the publication is published, so the URL must
still work then. Accounts are checked again at that time: an account that was
disconnected or lost a permission in the meantime fails on its own, with its
reason, and the rest still publish.
Send an Idempotency-Key header to make retries safe. Repeating a key with the
same body returns the original publication with 200 and publishes nothing new;
the same key with a different body returns 409 idempotency_conflict.
On Free and Starter, every target counts as one post against the workspace's
limit. If they don't all fit, the request returns
402 usage_limit_reached and nothing is
published.
The 202 response (or 201 for a scheduled publication or draft) is the publication. Poll its statusUrl with
Publication status until status is
published, partial, or failed. You can stop polling at any time: the
platforms keep publishing.