---
title: "Instagram create media container API: POST /{ig-user-id}/media"
description: "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."
---

> Documentation Index
> Fetch the complete documentation index at: https://pubnio.com/docs/llms.txt
> Use this file to discover all available pages before exploring further.

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

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`](https://pubnio.com/api/v1/docs#tag/posts/POST/api/v1/posts) (unless it saves a draft), [`POST /api/v1/posts/{postId}/publish`](https://pubnio.com/api/v1/docs#tag/posts/POST/api/v1/posts/{postId}/publish), or [`POST /api/v1/posts/{postId}/targets/{targetId}/retry`](https://pubnio.com/api/v1/docs#tag/posts/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](https://developers.facebook.com/docs/instagram-platform/instagram-graph-api/reference/ig-user/media) | 2026-12-05 |

## Scopes

- The pinned spec names no scope. See [Instagram scopes and permissions](https://pubnio.com/docs/providers/instagram/scopes/).
- 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:

- Target fails: [10](https://pubnio.com/docs/errors/instagram/10/), [100](https://pubnio.com/docs/errors/instagram/100/), [190](https://pubnio.com/docs/errors/instagram/190/), [200](https://pubnio.com/docs/errors/instagram/200/)

## 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

- [Meta facebook-business-sdk-codegen API specs](https://github.com/facebook/facebook-business-sdk-codegen/tree/5c1fa8a1653722b402133f033fcc321d67981bbd)
- [IG User Media reference](https://developers.facebook.com/docs/instagram-platform/instagram-graph-api/reference/ig-user/media), checked 2026-12-05

## Related

- [Provider API operations PubNio calls](https://pubnio.com/docs/providers/operations/)
- [Instagram rate limits and quota](https://pubnio.com/docs/providers/instagram/quota/)

Source: https://pubnio.com/docs/providers/instagram/operations/ig-user-media/index.mdx
