Skip to content

Instagram create media container API: POST /{ig-user-id}/media

When PubNio calls Instagram's create media container request, POST /{ig-user-id}/media: the scopes it needs, the errors PubNio handles for it, and its pinned spec revision.

PubNio calls Instagram’s POST /{ig-user-id}/media (IGUser.media) to create the unpublished container an Instagram post starts from. Values checked 2026-12-05.

How PubNio calls it

  • Publishing: POST /api/v1/posts (unless it saves a draft), POST /api/v1/posts/{postId}/publish, or POST /api/v1/posts/{postId}/targets/{targetId}/retry starts the delivery.
  • PubNio creates one container per image or video with image_url or video_url set to a signed link to the stored file, then a carousel container that lists the children.
  • With Instagram Login the request goes to graph.instagram.com; with Facebook Login or Unified Login it goes to graph.facebook.com. The path is the same.
  • When Meta rejects some collaborators, PubNio drops those usernames and creates the container once more without them, and reports the dropped names.
Value Official value Source Checked
Containers per account per day 400 IG User Media reference 2026-12-05

Scopes

  • The pinned spec names no scope. See Instagram scopes and permissions.
  • Before a delivery makes this call, PubNio checks that the account granted the scopes for its sign-in method (Instagram Login: instagram_business_basic and instagram_business_content_publish; Facebook Login: instagram_basic, instagram_content_publish, and pages_read_engagement; Unified Login: instagram_basic and instagram_content_publish).

Errors

Error pages that name this call, by what a publish write that returns the code does:

Spec and changes

IGUser.media in the pinned spec, revision 5c1fa8a1653722b402133f033fcc321d67981bbd.

Refreshed by hand: no weekly change record.

Limits

  • Paid-partnership labels and sponsor IDs are sent only for Facebook Login accounts; with Instagram Login such a post is refused before the call.
  • Any error while creating a container fails the delivery as media_preparation_failed before anything is published.

Sources

Type to search…

↑↓ navigate↵ selectEsc close