Send application/json and provide exactly one of image, images, reel,
story, or carousel. For local files, first prepare direct uploads and use { "upload_id": "..." } in each ordered media position. Images may also use legacy JPEG/PNG/WebP base64; video may use legacy MP4 base64 or a public HTTPS URL. Every compatibility source is copied into Adeli's S3 boundary before Meta receives a verified CloudFront URL.
Body
platform"instagram"RequiredaccountIduuidRequired- A connected Instagram account in your organization.
profileIduuid- Optional, because accountId names its profile. If you pass both, they must agree.
captionstring- Feed posts, Reels, and carousel parents only. Up to 2,200 characters, 30 hashtags, and 20
@mentions. imageobject- One image:
{ contentType, base64, altText?, userTags? }. imagesobject[]- The backwards-compatible image-only carousel spelling: 2–10 objects shaped like
image. reelobject- One Reel, using the same video source shapes. Inline Reels must be 3 seconds–15 minutes.
shareToFeedboolean- Reels only.
falseasks Instagram to keep it out of Feed; Reels-tab placement is still Meta's decision. storyobject- One image or video Story. Video Stories must be 3–60 seconds. Stories expire after 24 hours and may return no permalink.
carouselobject[]- 2–10 image/video items in order. Reels cannot be carousel children.
altTextstring- Up to 1,000 characters. Feed images and carousel image children only.
userTagsobject[]- Up to 20. Images use
{ username, x, y }; videos use{ username }; Stories allow either. Coordinates are 0–1 fractions from the top-left. thumbOffsetMsinteger- Non-negative thumbnail offset for Reels and carousel video children.
collaboratorsstring[]- Up to 3 usernames on images, Reels, and carousel parents. Not supported on Stories.
isAiGeneratedboolean- Adds Instagram's AI-generated label to the published container. It is not accepted on an individual carousel child.
A Reel can use inline MP4 or a public URL and adds Reel-level controls:
{
"platform": "instagram",
"accountId": "00000000-0000-0000-0000-000000000000",
"caption": "Morning flight",
"collaborators": ["centralparkbirders"],
"shareToFeed": true,
"reel": { "contentType": "video/mp4", "base64": "..." }
}Stories take an image or video. They do not accept a caption, collaborators, alt text, or Reel controls:
{
"platform": "instagram",
"accountId": "00000000-0000-0000-0000-000000000000",
"story": {
"url": "https://media.example.com/story.mp4",
"userTags": [{ "username": "birder" }]
}
}An image Story uses base64 and may place a tag with both coordinates:
{
"platform": "instagram",
"accountId": "00000000-0000-0000-0000-000000000000",
"story": {
"contentType": "image/jpeg",
"base64": "...",
"userTags": [{ "username": "birder", "x": 0.3, "y": 0.7 }]
}
}Use carousel for videos or mixed media. images remains supported for
existing image-only clients:
{
"platform": "instagram",
"accountId": "00000000-0000-0000-0000-000000000000",
"caption": "Two backyard birds #birding",
"collaborators": ["centralparkbirders"],
"carousel": [
{ "contentType": "image/webp", "base64": "...", "altText": "A cardinal on a snowy branch" },
{ "url": "https://media.example.com/titmouse.mp4", "thumbOffsetMs": 500 }
]
}Unknown or media-incompatible fields are rejected with 400 invalid_request
rather than ignored. A tagged person or collaborator Instagram cannot resolve
fails with 422 provider_rejected and Instagram's safe end-user explanation.
When every media item is a staged { "upload_id": "..." }, Adeli durably
accepts the request with 202. A Vercel Workflow continues Meta container
processing and publication after the request ends. Instagram is currently the
only provider whose Adeli publishing path uses Vercel Workflow; other providers'
202 responses describe provider-side processing. Poll the returned
statusUrl; see Instagram publish status.
Legacy base64 and public-URL inputs remain synchronous and return the normalized
post with 201 during the compatibility migration. GET /api/v1/posts does
not list Stories because Meta exposes active Stories separately.
The signed-in Post page supports the same Reel, Story, and mixed carousel choices with local files. It accepts MP4 video (up to 300 MiB, or 100 MiB for a video Story), uploads directly to S3, and reports durable acceptance. Instagram continues processing after the user closes the page.
Errors — 402 usage_limit_reached, 400 invalid_request, 413 invalid_request,
415 unsupported_media_type, 422 invalid_image, 422 invalid_video,
422 connection_expired, 422 provider_not_configured,
422 provider_rejected, 404 account_not_found, 404 profile_not_found,
502 provider_error.