Instagram API Reference
Publish images, videos, carousels, and Reels to Instagram via the API.
Quick reference
| auth | OAuth 2.0 (Meta) |
| text Limit | 2,200 characters |
| max Media | 10 items (carousel) |
| media Rule | Media is required — no text-only posts |
| max Video Duration | 90 s |
| entity Selection | None |
| first Comment | Supported — 1,000 bytes (UTF-8); skipped on Stories |
Content types
Not supported — media is always required
JPEG, PNG, WebP. Max 100 MB.
MP4 or MOV. Max 500 MB. Up to 90 seconds.
Up to 10 images/videos per carousel
Short-form video. Same limits as video.
Media requirements
Constraints enforced by Instagram's API. Requests that violate these limits will be rejected.
| Constraint | Value |
|---|---|
| Max image size | 100 MB |
| Max video size | 500 MB |
| Image formats | JPEG, PNG, WEBP |
| Video formats | MP4, QUICKTIME |
| Max video duration | 1 min 30 s |
| Image aspect ratio | 4:5 to 1.91:1 |
| Min image dimensions | 320x320 px |
| Max media items | 10 |
| GIF support | No |
Platform settings
Pass these fields inside platformSettings.instagram in the request body.
| Name | Type | Required | Description |
|---|---|---|---|
postType | string | Optional | Type of Instagram post.Default: postpoststoryreelcarousel |
collaborators | string[] | Optional | Up to 3 Instagram usernames invited as co-authors (letters, numbers, dots and underscores; the @ is optional; no duplicates). Each name is checked with Instagram when the post is created, and a name Instagram can't find returns 400 "Instagram can't find @name. Check the spelling." Not available on Stories. Needs an account connected with the new Instagram login (supports.collaborators on GET /api/v1/accounts). |
music | object | Optional | A song for a Reel: { audioId, title?, artist?, durationMs?, artworkUrl? }. audioId is required and comes from GET /api/v1/instagram/audio; the other fields from the same result name the song on the post. Only with postType "reel" and a single video. Needs an account connected with the new Instagram login (supports.music on GET /api/v1/accounts). If Instagram refuses the song when publishing, the Reel posts without it and platforms[].warning says so. |
postTypestringOptionalType of Instagram post.
Default: post
poststoryreelcarouselcollaboratorsstring[]OptionalUp to 3 Instagram usernames invited as co-authors (letters, numbers, dots and underscores; the @ is optional; no duplicates). Each name is checked with Instagram when the post is created, and a name Instagram can't find returns 400 "Instagram can't find @name. Check the spelling." Not available on Stories. Needs an account connected with the new Instagram login (supports.collaborators on GET /api/v1/accounts).
musicobjectOptionalA song for a Reel: { audioId, title?, artist?, durationMs?, artworkUrl? }. audioId is required and comes from GET /api/v1/instagram/audio; the other fields from the same result name the song on the post. Only with postType "reel" and a single video. Needs an account connected with the new Instagram login (supports.music on GET /api/v1/accounts). If Instagram refuses the song when publishing, the Reel posts without it and platforms[].warning says so.
Collaborators and music cannot be changed with PATCH /api/v1/posts/:id: delete the post and create it again. The Posts API page lists every error these two return.
Code examples
Basic post
curl -X POST https://schedulala.com/api/v1/posts \-H "Authorization: Bearer sk_live_YOUR_KEY" \-H "Content-Type: application/json" \-d '{"content": "Beautiful sunset today #photography","platforms": [{ "platform": "instagram", "accountId": "acc_456" }],"mediaItems": [{ "type": "image", "url": "https://example.com/sunset.jpg" }],"publishNow": true}'
Post with media
curl -X POST https://schedulala.com/api/v1/posts \-H "Authorization: Bearer sk_live_YOUR_KEY" \-H "Content-Type: application/json" \-d '{"content": "Travel highlights #travel","platforms": [{ "platform": "instagram", "accountId": "acc_456" }],"mediaItems": [{ "type": "image", "url": "https://example.com/photo1.jpg" },{ "type": "image", "url": "https://example.com/photo2.jpg" },{ "type": "image", "url": "https://example.com/photo3.jpg" }],"publishNow": true}'
Quirks & gotchas
Media is required on every post — no text-only posts allowed.
Max 30 hashtags per caption.
Image aspect ratio must be between 4:5 (portrait) and 1.91:1 (landscape).
Minimum image dimensions: 320x320 px.
GIFs are not supported — convert to MP4 first.
Carousel posts automatically detected when multiple media items are included.
Collaborators (up to 3) and a song on Reels need an account connected with the new Instagram login.