Instagram Carousels publishing API
An Instagram carousel is 2 to 20 images or videos in one post, sent with placement: "carousel". slides sets alt text and tags per item, in attachment order. Instagram's rules below were read 2026-12-05.
Rules for Instagram Carousels
| Rule | Value |
|---|---|
| Placement | carousel |
| Media | image, video |
| Items per post | 2 to 20 |
| Caption limit | 2,200 characters |
- Validation rejects a carousel with fewer than 2 items or more than 20 with
media_count. - Each
slidesentry matches the attachment at the same position; alt text applies to images. - PubNio's capability catalog lists a carousel's maximum, 20, but not its minimum. Publish validation enforces both. Meta's own pages disagree on the maximum: its media reference says 20, its error message says 10.
| Fact | Value | Their words | Source |
|---|---|---|---|
| Fewest items | 2 | "Your post won't work as a carousel. Carousels need at least 2 photos/videos and no more than 10 photos/videos." | Instagram Platform error codes (subcode 2207028), read 2026-12-05 |
| Most items | 20 | "Carousels can have up to 20 total images, videos, or a mix" | IG User Media reference, read 2026-12-05 |
| Media containers per 24 hours | 400 | "can only create 400 containers within a rolling 24 hour period" | IG User Media reference, read 2026-12-05 |
Settings
Set these under the target's settings. All are optional unless marked required.
| Field | What it does |
|---|---|
isAiGenerated | Label the content as AI-generated. |
firstComment | A comment PubNio posts under the published post. |
commentsEnabled | Turn comments on or off. |
collaborators | Up to 3 usernames to invite as collaborators. |
locationId | A numeric location ID to tag. |
isPaidPartnership | Label the post a paid partnership. |
brandedContentSponsors | One or two sponsor accounts, by ID or username; sets the paid partnership label, and conflicts with isPaidPartnership: false. |
muteAudio | Publish the video without its sound. |
slides | Per-item altText and userTags, in attachment order. |
Publish request
Two images and a video, with alt text on the images.
POST /api/v1/posts?workspaceId=4e5f6a7b-8c9d-4e0f-9a1b-2c3d4e5f6a7b
Authorization: Bearer pn_live_***
Idempotency-Key: instagram-carousel-workshop
Content-Type: application/json
{
"text": "Inside the workshop.",
"publishNow": true,
"targets": [
{
"accountId": "7f3c2a10-5b4e-4d6f-8a9b-0c1d2e3f4a5b",
"provider": "instagram",
"placement": "carousel",
"settings": {
"slides": [
{
"altText": "Oak workbench under a window"
},
{
"altText": "Chisels hung on a pegboard"
},
{}
]
},
"media": [
{
"url": "https://cdn.example.com/bench.jpg"
},
{
"url": "https://cdn.example.com/tools.jpg"
},
{
"url": "https://cdn.example.com/lathe.mp4"
}
]
}
]
}
Limits
- Alt text works on image slides only, and an image tag needs x and y coordinates.
Sources
- Instagram Platform error codes (subcode 2207028), read 2026-12-05
- IG User Media reference, read 2026-12-05
Related
- Instagram publishing API
- Instagram Reels
- Instagram Stories
- Instagram MCP server
- Instagram network guide
- Instagram error codes
- Instagram rate limits
- Instagram media specs
- Instagram OAuth scopes
- Instagram token lifetimes
- Instagram app review
- Instagram API quota
- Instagram API versions
- Rules for every placement
- All platforms

