# 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 `slides` entry 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)](https://developers.facebook.com/docs/instagram-platform/instagram-graph-api/reference/error-codes), read 2026-12-05 |
| Most items | 20 | "Carousels can have up to 20 total images, videos, or a mix" | [IG User Media reference](https://developers.facebook.com/docs/instagram-platform/instagram-graph-api/reference/ig-user/media), 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](https://developers.facebook.com/docs/instagram-platform/instagram-graph-api/reference/ig-user/media), 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.

```http
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)](https://developers.facebook.com/docs/instagram-platform/instagram-graph-api/reference/error-codes), read 2026-12-05
- [IG User Media reference](https://developers.facebook.com/docs/instagram-platform/instagram-graph-api/reference/ig-user/media), read 2026-12-05

## Related

- [Instagram publishing API](https://pubnio.com/platforms/instagram)
- [Instagram Reels](https://pubnio.com/platforms/instagram/reels)
- [Instagram Stories](https://pubnio.com/platforms/instagram/stories)
- [Instagram MCP server](https://pubnio.com/instagram-mcp)
- [Instagram network guide](https://pubnio.com/docs/networks/instagram/)
- [Instagram error codes](https://pubnio.com/docs/errors/instagram/)
- [Instagram rate limits](https://pubnio.com/docs/providers/instagram/limits/)
- [Instagram media specs](https://pubnio.com/docs/providers/instagram/media/)
- [Instagram OAuth scopes](https://pubnio.com/docs/providers/instagram/scopes/)
- [Instagram token lifetimes](https://pubnio.com/docs/providers/instagram/tokens/)
- [Instagram app review](https://pubnio.com/docs/providers/instagram/app-review/)
- [Instagram API quota](https://pubnio.com/docs/providers/instagram/quota/)
- [Instagram API versions](https://pubnio.com/docs/providers/instagram/versioning/)
- [Rules for every placement](https://pubnio.com/docs/capabilities/)
- [All platforms](https://pubnio.com/platforms)

