Instagram API without Meta Graph plumbing
Meta’s Instagram Graph API makes you juggle Page-linked tokens, two-step media containers, carousel child IDs, status polling loops and strict aspect-ratio rejections. PostSyncer turns Reels, Stories, mixed carousels, collaborators, people tags and live comments into one REST API.
- Feed photos, Reels, Stories and mixed photo/video carousels up to 20 items
- Invite up to 3 collaborators, tag up to 20 users with (x, y) coordinates and set audio_name
- Real-time incoming comments, replies, hide/unhide and timed first comments
- Cancel anytime
- Unlimited posts on paid plans
curl -X POST "https://postsyncer.com/api/v1/posts" \
-H "Authorization: Bearer $POSTSYNCER_API_KEY" \
-H "Content-Type: application/json" \
-d '{
"workspace_id": 4815,
"schedule_type": "schedule",
"schedule_for": {
"date": "2026-12-08",
"time": "11:00",
"timezone": "America/Los_Angeles"
},
"content": [
{
"text": "Behind the espresso bar: dialing in our spring Guji harvest.",
"media": [
"https://cdn.postsyncer.com/examples/rosetta-pour.mp4"
],
"cover_image": {
"thumbnail": "https://cdn.postsyncer.com/examples/rosetta-cover.jpg"
}
},
{
"text": "Full tasting notes and brew recipe linked in bio.",
"is_first_comment": true,
"first_comment_delay": 1
}
],
"accounts": [
{
"id": 16235,
"settings": {
"post_type": "REELS",
"share_to_feed": true,
"collaborators": [
"millstreetbakery"
],
"audio_name": "Morning Pour Ambient",
"ai_generated": false
}
}
]
}'PostSyncer orchestrates Meta’s container creation, video processing polls, cover thumbnail upload and delayed first comment automatically.
01 Quick start
Live on Instagram in three steps
- 1
Connect Instagram accounts
Link Instagram Business or Creator accounts inside PostSyncer or send clients a 7-day OAuth URL from
POST /accounts/connect-links. - 2
Send Reels, Stories or carousels in one POST
Choose
post_type(POST, REELS or STORIES), attach up to 20 media URLs or library IDs, and pass collaborators,user_tagsor a delayed first comment. - 3
Automate comments and track analytics
Instagram pushes new comments to PostSyncer as they arrive. Reply, hide, unhide or delete via
/commentsand read reach, saves andprofile_visitsvia/analytics.
02 Endpoints
Instagram endpoints on one REST API
Every Instagram operation runs on https://postsyncer.com/api/v1 with Bearer API keys and resource:action permissions.
| Endpoint | Permission | What it does |
|---|---|---|
POST/api/v1/posts | posts:create / schedule / publish | Publish or schedule Instagram feed photos, mixed carousels (up to 20), Reels, Stories and timed first comments. |
PUT/api/v1/posts/{id} | posts:update / schedule / publish | Update a post: send workspace_id and the whole content, which replaces the old one, plus any collaborators, user_tags, post_type or publish time to change. |
GET/api/v1/comments | comments:read | Read live Instagram comments pushed by Meta webhooks without waiting for scheduled polling. |
POST/api/v1/comments | comments:create | Reply to an Instagram comment directly from the connected Business or Creator account. |
PATCH/api/v1/comments/{id}/hide | comments:update | Hide spam comments on Instagram or pass hidden: false to show them again. |
GET/api/v1/analytics/posts/{id} | analytics:read | Fetch impressions, likes, comments, shares, saves, reach and profile_visits. |
03 Media and text specs
What you can publish to Instagram
Verified media limits, text caps and platform behaviors PostSyncer enforces when sending to Instagram.
| Type | Formats | Limit | Notes |
|---|---|---|---|
| Carousel / files | JPG, PNG, GIF, WebP, MP4, MOV, WebM | Up to 20 files | Carousels can mix photos and videos; every photo matches the first photo’s crop ratio. |
| Feed / Story photo | JPG, PNG, GIF, WebP | Up to 8 MB | Converted to JPEG; feed photos auto-crop to 4:5, 1:1 or 1.91:1 at 1080px wide. Stories are not cropped. |
| Reel video | MP4, MOV, WebM | 3s–15 min · 300 MB | Auto re-encoded to H.264/HEVC MP4 + AAC when outside 1920px, 23–60 fps or 25 Mbps. |
| Story video | MP4, MOV, WebM | 1 file · 3s–60s · 100 MB | Stories accept exactly one photo or video; multiple files are refused. |
| Caption & first comment | Plain text | 2,200 characters | First comments are text only; media on an Instagram first comment returns 422. |
Platform behavior
Instagram at a glance
- platform key
- Media required
- Yes — every Instagram post needs at least one photo or video.
- First comment
- Supported as a text-only comment posted
first_comment_delayminutes after publish (default 1). - Deleting posts
- Instagram’s API does not delete live posts;
DELETE /posts/{id} removes PostSyncer’s copy only. - Comments API
- Live webhook push from Instagram; reply (text), hide, unhide (hidden: false) and delete supported.
- Analytics metrics
- impressions, likes, comments, shares, saves, reach and
profile_visits.
04 Capabilities and settings
Everything the Instagram API handles for you
Beyond basic image publishing, PostSyncer exposes Instagram’s native growth and collaboration controls without forcing you to manage Meta Graph container states.
Smart aspect-ratio cropping & tag preservation
Feed and carousel photos automatically crop to 4:5, 1:1 or 1.91:1 at 1080px wide, and PostSyncer recalculates (x, y) people tag coordinates so tagged users stay inside the frame.
Mixed 20-item carousels
Combine photos and 3–60 second videos in a single carousel with per-item
user_tagspinned bymedia_idor 1-based item index so tags survive reordering.Collaborators & non-follower Reel distribution
Invite up to 3 Instagram collaborator usernames on feed posts, carousels and Reels, or enable
reel_trial_enabledwithgraduation_strategy(MANUAL or SS_PERFORMANCE) to test Reels with non-followers first.Custom Reel covers & audio naming
Set a Reel cover image via
cover_image.thumbnail or a frame viavideo_cover_timestamp_ms, toggleshare_to_feedand name original audio withaudio_name.Delayed first comments
Add a second content[] object with
is_first_comment: true andfirst_comment_delayto keep hashtags, credits or calls to action cleanly out of the main caption.Live comment webhooks & moderation
New comments stream into PostSyncer in real time from Instagram so your app can reply, hide, unhide or delete comments through
/commentsendpoints.
Instagram per-post settings keys
Pass any of these optional keys inside accounts[].settings on POST /posts or PATCH /posts/{id}. Keys for other networks are ignored when cross-posting.
| Setting key | Value | What it controls |
|---|---|---|
post_type | "POST" | "REELS" | "STORIES" | Selects feed/carousel (POST), Reels (REELS) or Stories (STORIES). Aliases like REEL and STORY are accepted. |
caption | string (cut at 2,200 chars) | Instagram-specific caption overriding the shared post text. |
collaborators | string[] (max 3) | Up to 3 Instagram usernames to invite as post or Reel collaborators (not available on Stories). |
user_tags | object[] (max 20/file) | Tag accounts with username plus optional photo coordinates (x, y from 0 to 1) and carousel item or media_id. |
share_to_feed | boolean | Reels only. Set false to publish only in the Reels tab; defaults to true. |
audio_name | string | Reels only. Custom name for the Reel’s original audio track. |
reel_trial_enabled | boolean | Publish a single video Reel to non-followers first before expanding to followers. |
graduation_strategy | "MANUAL" | "SS_PERFORMANCE" | Controls whether a non-follower Reel graduates manually or automatically on performance. |
ai_generated | boolean | Marks the post, Reel or carousel with Instagram’s Made with AI label. |
media | number[] | Use Instagram-specific media library IDs instead of the shared post media. |
Eliminating Meta Graph container loops and token headaches
Publishing a 10-slide mixed carousel or a Reel directly against the Instagram Graph API requires creating individual child containers, polling each container’s status_code until FINISHED, creating a parent carousel container, polling again, and finally calling media_publish — all while managing Facebook Page linkages and 60-day token refreshes.
PostSyncer collapses that entire choreography into one POST /api/v1/posts call. Your server sends the final creative URLs or library IDs and the desired schedule_for timestamp; PostSyncer creates containers, transcodes WebM or over-spec videos to compliant H.264 MP4 with AAC audio, and retries transient Meta API hiccups automatically.
Coordinate-safe people tagging and carousel validation
Instagram rejects feed photos with unsupported aspect ratios and drops user tags whose coordinates fall outside the final frame. PostSyncer center-crops feed and carousel photos to the nearest supported ratio (4:5, 1:1 or 1.91:1) and shifts each user_tags (x, y) coordinate to match the crop, clamping edge tags cleanly so nobody disappears from the photo.
In carousels, pin tags by media_id instead of numeric item index whenever your app supports drag-and-drop slide reordering. If Instagram declines a specific username at publish time, the post still goes live and PostSyncer records a setting_not_applied note naming the skipped handle.
05 Response and MCP
Same Instagram rules over REST and MCP
Use the REST API from your backend or connect an AI agent to the Instagram MCP server using the same accounts, permissions and rate limits.
AI agent alternative
Run Instagram Reels, carousels and comments from an AI agent
Connect ChatGPT, Claude, Claude Code, Cursor or Codex to PostSyncer’s MCP server so your agent can schedule Reels, add collaborators, answer live Instagram comments and check saves and reach.
“Schedule our latte pour video as an Instagram Reel for Tuesday at 11 AM, invite @millstreetbakery as a collaborator and add the tasting notes as a first comment.”
PostSyncer MCP server
https:// postsyncer.com/ mcpCross-posting
Ship Instagram plus all 12 networks from one schema
Add more account IDs to the same POST /posts request to publish to Instagram, Instagram, YouTube, LinkedIn, X and the rest together. Each account reads its own settings block while sharing the media upload and schedule.
Limits and plans
What each plan allows
The Instagram REST API is available on every PostSyncer plan, Free included. Paid plans remove the monthly post cap; every plan shares 60 requests a minute.
| Plan | Social accounts | Posts | API posts a day, per network |
|---|---|---|---|
| Free | 2 | 20 a month | Within the 20 |
| Starter$29 a month | 10 | Unlimited | Unlimited |
| Pro$49 a month | 30 | Unlimited | Unlimited |
| Agency$99 a month | 100, then $1/mo each | Unlimited | Unlimited |
Every plan: 60 requests a minute for each PostSyncer user, across all their keys, the API and the MCP server together.
401The API key is missing, wrong or past its end date.403The key lacks the resource:action permission, or the plan limit was reached (plan_limit_reached).422A field failed validation or the network’s rules refused a file, setting or text length.429Too many requests: more than 60 in a minute across your user’s keys, API and MCP together.
Docs
Read more in the docs
- Instagram platform guideMedia limits, settings, comments and analytics on Instagram
- Create a postFull POST /posts request schema and platform settings
- QuickstartAPI keys, workspace IDs and your first scheduled post
- Authentication and permissionsBearer API keys and resource:action permissions
- Media uploads and video coversURL imports, file uploads and cover frames
- Compare all 12 networksSide-by-side matrix of media, threads, comments and deletes
All 12 networks
Explore every platform API on PostSyncer
FAQ
Instagram API questions
Need help with a specific endpoint or webhook? Ask us in live chat.
Chat with usCan the Instagram API publish Reels, Stories and mixed carousels?
Yes. Set settings.post_type to POST (feed photo or up to 20-item mixed carousel), REELS (single video or video carousel) or STORIES (single photo or 3–60s video).
Does PostSyncer support Instagram collaborator invites and user tags?
Yes. Pass up to 3 usernames in settings.collaborators (feed, carousels and Reels) and up to 20 accounts per file in settings.user_tags with optional (x, y) photo coordinates.
Can I schedule an Instagram first comment automatically?
Yes. Include a second item in content[] with is_first_comment: true and optional first_comment_delay in minutes (defaults to 1). Instagram first comments are text only.
How quickly do Instagram comments appear in the API?
Instagram pushes new comments to PostSyncer as they are posted, so they appear without waiting for scheduled polling. You can reply, hide, unhide and delete comments via the /comments endpoints.
Can I delete a live Instagram post via the API?
No. Meta’s Instagram Graph API does not allow third-party apps to delete published Instagram posts. DELETE /posts/{id} cancels scheduled posts and removes PostSyncer’s record.
What happens if my video is WebM or above Instagram’s bitrate limit?
PostSyncer automatically re-encodes WebM files and videos over 1920px wide, outside 23–60 fps or above 25 Mbps into compliant MP4 before publishing. Video duration must already fit Instagram’s limits (3s–15m for Reels, 3s–60s for Stories and carousels).
Automate Instagram publishing without Graph API boilerplate.
Generate a scoped API key in Settings → API and ship Reels, carousels, Stories and comment replies from one endpoint.
- No card for free
- Cancel anytime
- Unlimited posts on paid plans
Real-time Instagram comments and full funnel metrics
Unlike networks that require scheduled polling, Instagram pushes new comments directly to PostSyncer as they happen. Your application can subscribe to comment webhooks, list threads via
GET /comments, post text replies viaPOST /comments, toggle visibility withPATCH /comments/{id}/hide(including hidden: false to unhide), or permanently remove comments viaDELETE /comments/{id}.For reporting dashboards,
GET /analytics/posts/{id} returns impressions, likes, comments, shares, saves, reach andprofile_visitsin a consistent JSON envelope alongside your other connected networks.