How to add Instagram posting to your SaaS: Reels, carousels and Stories
A SaaS adds Instagram posting without its own Meta App Review by connecting each customer's Business or Creator account through easyCoexistence's hosted link, then calling POST /channels/{id}/posts once per post: a JPEG photo, a carousel of 2 to 10 items, a Reel or a Story, now or up to 90 days ahead. Instagram allows 100 API-published posts per account in 24 hours, and a signed event reports each one live.
easyCoexistence is social media infrastructure for AI agents: its Partner API connects your customers' WhatsApp, Instagram, Facebook and TikTok accounts to your product, with no app review on your side.
API-published posts an Instagram account can make in a moving 24 hours; a carousel counts as one.
Largest JPEG image Instagram's API accepts, with an aspect ratio between 4:5 and 1.91:1.
Longest Reel the API publishes, from 3 seconds, as a MOV or MP4 file of up to 300 MB.
Longest Story video the API publishes; the shortest is 3 seconds, and the file can reach 100 MB.
How far ahead easyCoexistence's posts endpoint schedules an Instagram post; the earliest time is 1 minute away.
How does a customer connect Instagram for posting?
Through a connect session with channel set to instagram. The hosted page shows your name and Continue with Instagram, which opens Instagram's own login in the same tab; the customer signs in with a Business or Creator account, allows access and lands on your redirect_url with a channel_id. A personal account switches to one of those for free in the Instagram app first, and no Facebook Page is needed. Store the channel_id next to your customer, since every post names its channel. The Instagram token stays with easyCoexistence, which renews it before its 60 days run out, so your backend publishes through easyCoexistence's posts API with one ec_live_ key for every customer instead of calling Meta's publishing endpoints itself.
What does an Instagram post request look like?
One POST to /channels/{id}/posts per post and per customer account, with the caption in text and the files in media, each as {url, type} or {media_id}. Leave out publish_at to post now, or send an ISO 8601 time with its offset, at least a minute and at most 90 days away. An Idempotency-Key header makes a repeated request return the same post instead of posting twice. The answer is 201 with the post, or 422 with Instagram's reason when a post meant for now was refused. A single image like this one goes out as a photo post:
curl -X POST https://easycoexistence.com/api/v1/channels/<channel_id>/posts \
-H "Authorization: Bearer ec_live_..." -H "Content-Type: application/json" \
-H "Idempotency-Key: 5f0c9a52-launch-friday" \
-d '{
"text": "New collection is in",
"media": [{ "url": "https://example.com/new-collection.jpg", "type": "image" }],
"publish_at": "2026-12-18T09:00:00-03:00"
}'Which Instagram formats can a post be?
Four, set by ig_type or worked out from the media when you leave it out: several files make a carousel, one video makes a Reel and one image makes a photo post. A Story is never worked out, so send ig_type STORIES for one. Images must be JPEG, the caption takes up to 2,200 characters, and an Instagram post has no link field, so a URL goes in the text. easyCoexistence checks these rules before the post is queued and refuses a request that breaks one with a message naming the rule, so your composer can show it while your user is still editing:
Where does the media have to live?
At a public HTTPS address, or in easyCoexistence's storage. Instagram downloads each file itself, so when a post is scheduled easyCoexistence copies its files, images up to 30 MB and videos up to 1 GB, and your link only has to work at that moment; a page instead of a file, a missing file or the wrong type is refused then, not on the morning of the post. For files your users upload, POST /media takes the file as the request body with its Content-Type, or {"url"} to copy it, and returns a media_id that waits 48 hours for a post. Instagram's own limits apply when it processes the file: a JPEG over 8 MB, or a Reel outside 3 seconds to 15 minutes, fails there with failure_kind refused.
How do you know an Instagram post is live?
From the post's status and from events. A post moves from scheduled to publishing, then to processing while Instagram prepares the media in a container, then to published. A post with a video, such as a Reel, is handed to Instagram 10 minutes before its time so processing ends by then, and easyCoexistence checks on it every 20 seconds and publishes the container at publish_at. A photo posted now usually comes back published in the 201. Your events URL then receives post.published with the post and its channel, or post.failed with Instagram's reason, both signed with X-EC-Signature, and GET /posts/{id} shows network_post_id and permalink once it is live. A failed post names the cause in failure_kind: refused, uncertain, reconnect, rate_limited or internal. A video Instagram is still processing 2 hours after its time fails as refused. A post that fails in the background also emails your account, at most once per channel every 3 hours, and a live post later deleted on Instagram gets deleted_on_network_at but still counts as published.
What happens at Instagram's limit of 100 posts a day?
Instagram counts API-published posts per account in a moving 24 hours, a carousel counting as one, and refuses the 101st with error subcode 2207042. easyCoexistence reads that answer as a rate limit: the post returns to scheduled and is tried again after 5 minutes, 30 minutes and 2 hours, then fails with failure_kind rate_limited. The cap belongs to each account, so one customer's busy calendar never uses up another's. Your product can still change plans while posts wait: PATCH /posts/{id} moves publish_at or edits the text of a scheduled post, DELETE /posts/{id} cancels it, and POST /posts/{id}/retry publishes a failed one again, with confirm set to true when may_be_published says Instagram may already have it.
How to set it up
- Connect the accountCreate a connect session with channel instagram and store the channel_id your customer comes back with.
- Prepare the mediaConvert images to JPEG, then pass public HTTPS links, or upload files with POST /media for a media_id.
- Create the postPOST /channels/{id}/posts with text, media, ig_type when it is a Story, publish_at and an Idempotency-Key.
- Listen for the resultHandle post.published and post.failed on your events URL, and show failure_kind to your user when a post fails.
Common mistakes
- Sending PNG or WebP images. Instagram's API publishes JPEG only, and the post is refused before it is queued, so convert images in your upload step.
- Leaving out ig_type for a Story. One image is read as a photo post and one video as a Reel, so a Story needs ig_type STORIES.
- Planning more than 100 posts a day for one account. Instagram caps API publishing per account in a moving 24 hours, and posts past the cap fail after three retries.
- Scheduling images over 8 MB. easyCoexistence copies images up to 30 MB, but Instagram refuses a JPEG over 8 MB when it processes the post, so resize before scheduling.
easyCoexistence adds Instagram posting to your SaaS: your customers connect their Business or Creator accounts through a hosted link, and your backend publishes photos, carousels, Reels and Stories now or later, hears when each one is live and receives the comments that follow. The same posts API covers Facebook Pages and TikTok, with every connection monitored 24/7. US$ 9 to US$ 0.75 per connection per month, falling as you add connections, with the first 3 days free.
easyCoexistence is a multichannel API and MCP server that connects AI agents such as Claude and ChatGPT to WhatsApp, Instagram, TikTok, Facebook, Google Business Profile and more. On WhatsApp it uses Coexistence: the business keeps using its number in the WhatsApp Business app while the AI works through Meta's official API.
Frequently asked questions
Can my SaaS schedule Instagram posts through the API?
Yes. Instagram's publishing API has no scheduling of its own, so easyCoexistence keeps the post in its queue and publishes it at publish_at, from 1 minute to 90 days ahead.
Can my SaaS publish Instagram Stories?
Yes. Send ig_type STORIES with one JPEG image or one video, now or with publish_at. A Story stays up for 24 hours, as it does when posted in the app.
Do personal Instagram accounts work?
Not as they are. Instagram's API serves Business and Creator accounts, and a personal account switches to one for free in the Instagram app before it connects.
How much does easyCoexistence cost per Instagram account?
Each Instagram account your customers connect costs US$ 9 to US$ 0.75 a month, by the band of your total connections, with the first 3 days free.
Keep reading
Connect your first channel in two minutes.
No platform reviews to wait for. Connect WhatsApp, Instagram, TikTok or another channel, then ask your AI to post, reply or report, and watch it work.
- 3 days free
- Cancel any time
- Official APIs only
- Monitored 24/7
Verified on