Works with all AI agents

Connect your AI agent

Choose your AI agent and connect in seconds.

19 AI agents supported

Claude

Works on every Claude plan, including free.

Claude is easiest to connect on a computer. Start your trial here and finish there.

Start 7-day free trial

$0 due today, cancel anytime

Or add to Claude on this phone
  1. 1

    Add to Claude

    One click from Claude’s connector directory.

  2. 2

    Sign in or start your free trial

    New here? Create an account and start a 7-day free trial. It’s $0 today, and a card is needed. Then allow access and you’re sent back.

  3. 3

    Ask Claude

    “Plan and schedule my posts for next week.”

PostEverywhere Instagram API Guide

PostEverywhere API reference for Instagram: request fields, media rules and examples for feed posts, Reels, Stories, Trial Reels and carousels.

Publish Instagram Feed Posts, Reels, Stories, and Trial Reels through a single API call. PostEverywhere handles media uploads, aspect ratio validation, and Instagram's content publishing API so you can focus on your content. For a general overview of all supported platforms, see the Introduction.

Connect your Instagram account to PostEverywhere

Connect Instagram from the dashboard with OAuth, or headlessly from code: mint a connect link and hand it to the account owner - no dashboard session needed. Both flows are covered in Connecting Accounts.

What you can post to Instagram

Content Type Media Required Description
Post Image(s) Standard feed post. Default when an image is attached. Supports up to 10 images for carousels.
Reels Video Short-form video (3 seconds to 15 minutes). Default when a video is attached.
Story Image or video Disappears after 24 hours. Must be set explicitly via contentType.
Trial Reel Video Reel shared with a smaller audience first to test engagement.

Instagram-specific options in the API

Use the platform_content.instagram object to customise your Instagram post:

{
  "platform_content": {
    "instagram": {
      "content": "Instagram-specific caption with #hashtags",
      "contentType": "Post",
      "settings": {
        "altText": "Image description for accessibility",
        "locationId": "110843418940484",
        "collaborators": ["partnerbrand"]
      }
    }
  }
}

Settings Reference

Setting Type Description
content string Override the default caption with an Instagram-specific version.
contentType string One of "Post", "Reels", "Story", or "Trial Reel". If omitted, images default to "Post" and videos default to "Reels".
settings.altText string Alt text for a single image post and for each image in a carousel, up to 1,000 characters. Not used on Reels or Stories. In a carousel, an image's own alt text is used first. alt_text is also accepted.
settings.locationId string Instagram location ID: the numeric ID of a Facebook Page that has an address. Tags that place on a feed post, carousel or Reel. Not on Stories. The ID on its own is enough. location_id is also accepted.
settings.location string Optional name of the place, shown in PostEverywhere only.
settings.collaborators array Up to 3 Instagram usernames, without the @. Feed posts, Reels and carousels, not Stories. See Add collaborators.
settings.userTags array Up to 20 people to tag: usernames, or { "username": "...", "x": 0.5, "y": 0.5 } objects with x and y from 0 to 1. Single photo or Reel only, not carousels or Stories. Tagged accounts must be public. user_tags is also accepted. See Tag people.
cover_photo (top-level) object { "url": "...", "timestamp": 3.5 }: the frame (in seconds) or custom image to use as the Reel cover. Give url (a public https JPG or PNG) or media_id (an image you uploaded with the media endpoints) in its place; one of them is required. A settings.coverPhotoTimestamp on its own is ignored.

Publish to Instagram: a working request

Schedule an Instagram Reel

curl -X POST https://app.posteverywhere.ai/api/v1/posts \
  -H "Authorization: Bearer $POSTEVERYWHERE_API_KEY" \
  -H "Content-Type: application/json" \
  -d '{
    "content": "Check out our latest product walkthrough!",
    "account_ids": [2280],
    "media_ids": ["a1b2c3d4-e5f6-7890-abcd-ef1234567890"],
    "scheduled_for": "2026-04-15T14:00:00Z",
    "timezone": "America/New_York",
    "platform_content": {
      "instagram": {
        "content": "New product walkthrough is live! Watch to the end for a surprise 🎁\n\n#productlaunch #tutorial #newfeature",
        "contentType": "Reels"
      }
    }
  }'

Schedule an Instagram Story

curl -X POST https://app.posteverywhere.ai/api/v1/posts \
  -H "Authorization: Bearer $POSTEVERYWHERE_API_KEY" \
  -H "Content-Type: application/json" \
  -d '{
    "content": "Behind the scenes today!",
    "account_ids": [2280],
    "media_ids": ["b2c3d4e5-f6a7-8901-bcde-f12345678901"],
    "platform_content": {
      "instagram": {
        "contentType": "Story"
      }
    }
  }'

Schedule an Instagram Trial Reel

Trial Reels let you test a Reel with non-followers first. Instagram only shows it to your existing followers if it performs well: useful for A/B testing or de-risking new content directions.

curl -X POST https://app.posteverywhere.ai/api/v1/posts \
  -H "Authorization: Bearer $POSTEVERYWHERE_API_KEY" \
  -H "Content-Type: application/json" \
  -d '{
    "content": "Testing a new content angle 🎬",
    "account_ids": [2280],
    "media_ids": ["c3d4e5f6-a7b8-9012-cdef-123456789012"],
    "platform_content": {
      "instagram": {
        "contentType": "Trial Reel"
      }
    }
  }'

Under the hood, PostEverywhere passes Instagram's documented trial_params (graduation_strategy: SS_PERFORMANCE) to the Graph API. The Reel is shown only to non-followers initially and graduates to your follower feed automatically if engagement metrics clear Instagram's thresholds.

Add collaborators to an Instagram post

Set settings.collaborators to up to 3 Instagram usernames, without the @. It works on feed posts, Reels and carousels, not Stories. Instagram sends each account an invite. The post shows on their profile when they accept: that is Instagram's own rule. In the app this is the Collaborators field.

{
  "platform_content": {
    "instagram": {
      "contentType": "Reels",
      "settings": {
        "collaborators": ["partnerbrand", "guestcreator"]
      }
    }
  }
}

Tag people in an Instagram post

Set settings.userTags (or user_tags) to the accounts to tag. Give a username, or an object with username, x and y to place the tag on the photo. x and y go from 0 to 1. People tags work on a single photo or a Reel, not on a carousel or a Story. Tagged accounts must be public. In the app this is the Tag people field.

{
  "platform_content": {
    "instagram": {
      "contentType": "Post",
      "settings": {
        "userTags": [
          "partnerbrand",
          { "username": "guestcreator", "x": 0.3, "y": 0.6 }
        ]
      }
    }
  }
}

If Instagram refuses a tag, the post still goes out, but without tags. The post then carries an instagram_tags_dropped warning, also shown in the warnings array of GET /v1/posts/:id/results. Product tags are not supported, and interactive Story stickers are not possible through Instagram's API.

Add a location to an Instagram post

Set settings.locationId (or location_id) to the numeric ID of a Facebook Page that has an address, for example 110843418940484. It works on feed posts, carousels and Reels, not Stories. In the app this is the Location ID field.

{
  "platform_content": {
    "instagram": {
      "contentType": "Post",
      "settings": {
        "locationId": "110843418940484"
      }
    }
  }
}

Instagram limits: characters, media and video

Requirement Limit
Caption length 2,200 characters (longer is refused with 400 content_too_long)
Hashtags per post 30 maximum
Alt text length 1,000 characters (single images and carousel images)
Image formats JPEG, PNG, WebP, HEIC
Image max file size 20 MB
Video format MP4 (H.264)
Video max file size 500 MB
Video duration (Reels) 3 seconds to 15 minutes
Video duration (Story) 3 to 60 seconds. A Story video outside that range is refused with a 400 when the post is created
Carousel images 2 - 10 images
Collaborators Up to 3 usernames (feed posts, Reels and carousels; not Stories)
People tags Up to 20; single photo or Reel only; not carousels or Stories. Public accounts only
Location Feed posts, carousels and Reels; not Stories
Recommended image ratio 1:1 (square), 4:5 (portrait), 1.91:1 (landscape)
Recommended Reels ratio 9:16 (vertical)

Getting better results on Instagram

  • Put hashtags in the caption or the first comment. settings.firstComment (or first_comment) is posted as a comment right after a feed post, carousel, Reel or Trial Reel goes live. Stories cannot have one: a first comment sent with a Story is not posted. More than 30 hashtags in the caption returns 400 instagram_hashtag_limit_exceeded.
  • Add alt text to images. settings.altText goes on a single image and on each carousel image. Reels and Stories do not take alt text.
  • Set contentType explicitly for Stories. Without it, images default to Feed Post and videos default to Reels. Stories must be requested via "contentType": "Story".
  • Test with Trial Reels first. Use "contentType": "Trial Reel" to share a Reel with a smaller audience before committing to a full publish. This is useful for A/B testing content.

Common questions about posting to Instagram

Can I schedule Instagram Reels via the API?

Yes. Set contentType to "Reels" in the platform_content.instagram object when creating a post. Attach a video file (MP4, 3 seconds to 15 minutes for Reels) using the Upload Media endpoint.

What image sizes does Instagram support?

Instagram accepts square (1:1), landscape (1.91:1) and portrait (4:5) images, and the API enforces that aspect-ratio range (0.8 to 1.91). Images outside it are smart-cropped automatically when PostEverywhere hosts them; otherwise the request is rejected with 400 aspect_ratio_unsupported. Minimum size is 320x320 pixels.

Can I post Instagram carousels via the API?

Yes. Attach multiple images (2 to 10) to your post using the media_ids array. Set contentType to "Post" or omit it -- images default to a feed post, and Instagram automatically creates a carousel when multiple images are attached.

Can the API post a first comment on Instagram?

Yes, on feed posts, carousels, Reels and Trial Reels, not Stories. Send settings.firstComment under platform_content.instagram. It works for both connection types (through a Facebook Page, or Login with Instagram). An account connected before 1 December 2026 must be reconnected once; until then the post publishes without the comment and the result warnings say so.

What happens if Instagram refuses part of a post?

If the post still goes out, the problem shows as a warning on the post instead of being dropped silently. The warnings array in GET /v1/posts/:id/results carries the same message. For example, if Instagram refuses a people tag, the post goes out without tags and carries an instagram_tags_dropped warning.

How do I publish a Trial Reel via the API?

Set contentType to "Trial Reel" inside platform_content.instagram. See the Trial Reel example above for the full request shape. Trial Reels require a video (3-90 seconds, MP4) and a Reel-eligible Instagram account.

Do you support share_mode or TRIAL_REELS_DONT_SHARE_TO_FOLLOWERS?

We support the functionality these names describe (a Reel shown to non-followers first), but not under those names: they aren't part of Instagram's documented Graph API. The Meta-supported way to publish a Trial Reel is via trial_params with graduation_strategy: SS_PERFORMANCE, which is exactly what PostEverywhere sends when you set contentType: "Trial Reel". The TRIAL_REELS_DONT_SHARE_TO_FOLLOWERS identifier you may have seen elsewhere is an internal Meta constant, not a public API parameter.

Can I edit an Instagram post after it's published?

No. PATCH /v1/posts/:id rejects edits on published posts with 400 invalid_post_status: only scheduled and draft posts can be modified. Instagram's Graph API also doesn't expose endpoints for editing a published feed post's caption or media. To change a live post, edit the caption directly in the Instagram app, or delete and recreate.

Can I delete an Instagram post after it's published?

Yes. DELETE /v1/posts/:id?delete_on_platforms=instagram deletes the post in PostEverywhere and its published copy on Instagram. Each copy's result is in instagram_deletion, with deleted and any error. This works for accounts connected through a Facebook Page. An account connected before deleting was allowed needs to be reconnected once. Leave out delete_on_platforms to keep the post live on Instagram.

Other platforms you can publish to

  • TikTok -- short-form vertical video, similar to Reels
  • Facebook -- cross-post Reels and image content to Facebook Pages
  • Threads -- text-first companion platform by Meta

Related: Instagram media requirements · Instagram token health · scheduling Instagram posts with an API · what the PostEverywhere API covers · generate captions with AI