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

# Post to Instagram

> What an Instagram account takes through the API: feed posts, carousels, Reels, trial Reels, Stories, collaborators, people tags, Reel settings and the AI label, media limits, first comments, deletes, comments and analytics.

An Instagram account has `platform` `instagram`. It posts feed photos, carousels, Reels and Stories. Every Instagram post needs a photo or a video.

## What you can post

`settings.post_type` picks the kind of post:

| `post_type` | One photo | One video | Several files |
| - | - | - | - |
| `POST` (the default) | A feed photo | A Reel | A carousel |
| `REELS` | Refused: a Reel needs a video | A Reel | A carousel, when one of the files is a video |
| `STORIES` | A Story | A Story | Refused: a Story takes one file |

A carousel can mix photos and videos. A `REELS` post of photos alone is refused, as a draft too: Instagram would show it as a feed photo. Send a video, or `POST` to share the photos.

## Settings

Every key is optional. [Create a post](/docs/api-reference/posts/create.md#platform-specific-settings) has the full list.

| Key | What it does |
| - | - |
| `post_type` | `POST`, `REELS` or `STORIES`, as above, in any case. `STORY` and `REEL` are read as `STORIES` and `REELS`, and `POSTS`, `FEED`, `PHOTO`, `IMAGE`, `VIDEO`, `CAROUSEL` and `CAROUSEL_ALBUM` as `POST`; any other value is refused with a 422. |
| `caption` | Instagram's own caption, instead of the post's text. |
| `reel_trial_enabled` | Publish a single video as a trial Reel, shown to non-followers first. Ignored for photos, carousels and Stories. |
| `graduation_strategy` | After the trial: `MANUAL` (the default, you decide in Instagram) or `SS_PERFORMANCE` (Instagram shares it with your followers if it does well). |
| `collaborators` | Up to 3 Instagram usernames to invite. Each one accepts in Instagram, then the post shows on their profile too. Not on Stories. A fourth name answers `422`. |
| `user_tags` | People to tag, each with a `username`, and on a photo the spot they're in (`x`, `y`). Up to 20 on one file. See [People tags](#people-tags). |
| `share_to_feed` | Reels only. `false` shows the Reel in the Reels tab only. The default, `true`, shows it in the feed too. |
| `audio_name` | Reels only: a name for the Reel's original audio, shown instead of "Original audio". Instagram lets it be named once. |
| `ai_generated` | `true` labels the post as made with AI. On a carousel, the label goes on the carousel. |
| `media` | This account's own media library ids, instead of the post's media. |

## Text

The caption takes 2,200 characters. PostSyncer cuts a longer caption to 2,200 when it's sent.

## Media

| | Limit |
| - | - |
| Files in one post | Up to 20 photos and videos |
| Photo | Up to 8 MB |
| Reel | 3 seconds to 15 minutes, up to 300 MB |
| Story video | 3 to 60 seconds, up to 100 MB |
| Video in a carousel | 3 to 60 seconds |
| Video types | MP4, MOV, WebM |

* Photos of any type are converted to JPEG when Instagram needs it.
* A feed photo is cropped from the center to the nearest of 4:5, 1:1 or 1.91:1, and sized to 1080 pixels wide. In a carousel, every photo takes the first photo's shape. A Story photo isn't cropped. People tags move with the crop: see [People tags](#people-tags).
* A WebM video, or one outside Instagram's limits (wider than 1920 pixels, outside 23 to 60 frames a second, not H.264 or HEVC with AAC sound, or over 25 Mbps), is re-encoded to MP4 before it's sent. Its length can't be changed: a video of the wrong length is refused.
* Set a video's cover with `cover_image` on the first item: a `thumbnail` picture, which applies to a Reel only (on a Story it's left out, with a `thumbnail_error` note), or `video_cover_timestamp_ms` to use a frame of the video. A video in a carousel keeps Instagram's own cover. See [Video covers](/docs/guides/media.md#video-covers).

## People tags

`user_tags` tags people in the post. Instagram tells them, and the post shows in the Tagged tab of their profile.

* Each tag has a `username` (without `@`; an instagram.com profile link works too). A list of usernames, or one text with commas between them, also works.
* On a photo, `x` and `y` say where the person is: from `0` to `1`, from the top left of the file as you uploaded it. Give both or neither.
* Feed and carousel photos are cropped to Instagram's shape (see [Media](#media)). The spot moves with the crop. A spot in the part cut off goes to the nearest edge, so the person stays tagged.
* A feed or carousel photo tag without a spot goes in the middle of the photo. A Story photo tag without a spot is sent without one.
* Videos and Reels take the usernames only.
* In a carousel, each tag goes on one file: `item` (`1` for the first, the default) or `media_id`, the file's media library id. `media_id` wins, so a tag stays on its photo when the files are moved.
* Up to 20 people on one file, counted on the file each tag lands on. More, a name that isn't a username, a spot outside `0` to `1`, or `x` without `y` answers `422`.
* A tag on a file the post no longer has isn't sent. A tag Instagram refuses is left off, and the post still goes out. Either way, the post's result carries a `setting_not_applied` note that names the people.

```json theme={null}
{
  "settings": {
    "user_tags": [
      { "username": "jane.creator", "x": 0.42, "y": 0.6 },
      { "username": "partner.brand", "item": 2 }
    ]
  }
}
```

## More than one item and first comments

* Instagram has no threads. The items are joined into one caption, with blank lines between them.
* A first comment (`is_first_comment: true`) is a comment under the post, `first_comment_delay` minutes after it goes out (1 when you leave it out). It's text only: a first comment with media answers `422`.

## Delete a post

Instagram can't delete posts through its API. Deleting the post in PostSyncer removes PostSyncer's copy only: delete it in Instagram too.

## Comments

* Instagram sends new comments to PostSyncer as they're written. There's no scheduled read.
* Replies go out from the account, as text. Media on a reply isn't sent to Instagram.
* Hide works, and `"hidden": false` shows a comment again.
* Delete works: the comment is deleted on Instagram.

## Analytics

Instagram gives `impressions`, `likes`, `comments`, `shares`, `saves`, `reach` and `profile_visits`. See [Read analytics](/docs/guides/analytics.md).

## Example

A draft Reel, posted as a trial Reel with one collaborator:

```json theme={null}
{
  "workspace_id": 4815,
  "schedule_type": "draft",
  "content": [
    {
      "text": "How we pour a rosetta.",
      "media": ["https://cdn.postsyncer.com/examples/rosetta-pour.mp4"]
    }
  ],
  "accounts": [
    {
      "id": 16235,
      "settings": {
        "post_type": "REELS",
        "reel_trial_enabled": true,
        "collaborators": ["millstreetbakery"]
      }
    }
  ]
}
```

## Related

> [card] [Facebook](/docs/platforms/facebook.md)
>
> Pages, Reels and Stories on Facebook.

> [card] [Compare the 12 networks](/docs/platforms/overview.md)
>
> How Instagram differs from the other networks.


This documentation is built and hosted on [Mintlify](https://mintlify.com), a developer documentation platform.