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.

Live · platform rules read 2026-12-05View as Markdown

Rules for Instagram Carousels

RuleValue
Placementcarousel
Mediaimage, video
Items per post2 to 20
Caption limit2,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.
FactValueTheir wordsSource
Fewest items2"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 items20"Carousels can have up to 20 total images, videos, or a mix"IG User Media reference, read 2026-12-05
Media containers per 24 hours400"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.

FieldWhat it does
isAiGeneratedLabel the content as AI-generated.
firstCommentA comment PubNio posts under the published post.
commentsEnabledTurn comments on or off.
collaboratorsUp to 3 usernames to invite as collaborators.
locationIdA numeric location ID to tag.
isPaidPartnershipLabel the post a paid partnership.
brandedContentSponsorsOne or two sponsor accounts, by ID or username; sets the paid partnership label, and conflicts with isPaidPartnership: false.
muteAudioPublish the video without its sound.
slidesPer-item altText and userTags, in attachment order.

Publish request

Two images and a video, with alt text on the images.

instagram-carousels-request.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