Publish Instagram Photos & Reels in One API Call

With the MuxPost social media posting API, publishing and scheduling Instagram feed photos, multi-image posts, or Reels takes one POST /api/v1/posts request using a single mp_live_ key. Unlike integrating Meta's Graph API directly—where engineers must manage long-lived Page-linked Facebook Login tokens, build two-step /media container creation plus /media_publish finalization, poll Reels video status until FINISHED, and clear Meta's instagram_content_publish App Review—MuxPost handles container orchestration, video polling, and pre-flight validation inside one unified workflow.

Why Developers Choose MuxPost Over Raw Meta Graph API

Direct Meta Graph API integration frequently stalls product launches because Meta requires Business Verification, screencasts, and individual review for instagram_content_publish. Furthermore, Graph API uploads reject plain-text payloads without images/videos and fail silently when video transcoding containers haven't reached FINISHED status before media_publish runs.

MuxPost simplifies Instagram automation in three concrete ways:

  1. Automated Container Polling: When publishing Reels or video URLs through MuxPost's Instagram adapter (v21.0), MuxPost creates the media container, polls processing status until FINISHED or PUBLISHED, and triggers media_publish automatically.
  2. Pre-Flight Media Enforcement: Calling POST /api/v1/validate (or checking drafts on our pre-flight validator) catches missing media attachments or oversized >2,200-character captions before touching Meta's 100 posts/24h quota.
  3. Instant Sandbox Simulation: Test complete Instagram dispatch workflows, webhook payloads, and AI-agent schedules on the $0 Free Sandbox immediately while your production Meta Business assets finalize verification.

Copyable Code Examples (curl, TypeScript, Python)

1. Publish or Schedule an Instagram Photo or Reel via curl

curl -X POST https://muxpost.com/api/v1/posts \
  -H "Authorization: Bearer mp_live_YOUR_API_KEY" \
  -H "Content-Type: application/json" \
  -d '{
    "accountIds": ["acc_ig_brand"],
    "content": "Behind the scenes of our winter release #SaaS #BuildInPublic",
    "mediaUrls": ["https://cdn.example.com/release-reel.mp4"],
    "scheduledAt": "2026-12-12T16:00:00Z",
    "idempotencyKey": "ig-winter-release-01"
  }'

2. Validate Then Publish in TypeScript

const API_BASE = 'https://muxpost.com';
const API_KEY = process.env.MUXPOST_API_KEY!;

async function scheduleInstagramPost(accountId: string, caption: string, mediaUrl: string) {
  const check = await fetch(`${API_BASE}/api/v1/validate`, {
    method: 'POST',
    headers: { 'Content-Type': 'application/json' },
    body: JSON.stringify({ platforms: ['instagram'], content: caption, mediaUrls: [mediaUrl] }),
  }).then((r) => r.json());

  if (!check.data.valid) {
    throw new Error(`Instagram validation failed: ${JSON.stringify(check.data.results)}`);
  }

  const res = await fetch(`${API_BASE}/api/v1/posts`, {
    method: 'POST',
    headers: {
      Authorization: `Bearer ${API_KEY}`,
      'Content-Type': 'application/json',
    },
    body: JSON.stringify({
      accountIds: [accountId],
      content: caption,
      mediaUrls: [mediaUrl],
      idempotencyKey: `ig-${Date.now()}`,
    }),
  });
  return res.json();
}

3. Schedule From Python (requests)

import os
import requests

API_BASE = "https://muxpost.com"
headers = {"Authorization": f"Bearer {os.environ['MUXPOST_API_KEY']}"}

payload = {
    "accountIds": ["acc_ig_brand"],
    "content": "Product tip #14: pre-flight validation saves retries across feeds.",
    "mediaUrls": ["https://cdn.example.com/tip-card.png"],
    "idempotencyKey": "ig-tip-14",
}

resp = requests.post(f"{API_BASE}/api/v1/posts", headers=headers, json=payload, timeout=30)
resp.raise_for_status()
print(resp.json()["data"])

Instagram Publishing Constraints & Adapter Specs

Verify your media URLs are publicly reachable over HTTPS and match the verified Instagram Business/Creator constraints enforced by MuxPost:

Constraint Supported Value / Limit Notes
Account Type Instagram Business or Creator Must be linked to a Facebook Page for Graph API publishing
Caption Max Length 2,200 characters Enforced client-side and in /api/v1/validate
Media Requirement Mandatory (>= 1 image or video URL) Text-only Instagram requests are blocked prior to dispatch
Multi-Image / Carousel Up to 10 images per post Public HTTPS .jpg / .png / .webp URLs recommended
Reels / Video Uploads 1 video per post (.mp4 / .mov) Container polling waits cleanly for FINISHED status
Recommended Aspect Ratios 4:5, 1:1, 9:16 Optimal framing across mobile feed cards and Reels
Upstream Meta Rate Cap Up to 100 published posts / 24h Subject to Meta Content Publishing API limits per IG user

Pair Instagram With Cross-Network Workflows

Once your Instagram workflow is validated, reuse the same POST /api/v1/posts payload to publish simultaneously to LinkedIn using per-platform copy (platformSettings.customCaptions) or connect Claude and Cursor via our Hosted MCP server. Review full REST endpoint signatures in the API docs and inspect multi-tenant account limits on our pricing page. Need BYO Meta App troubleshooting? Contact engineering anytime on our contact page.

Frequently Asked Questions

Do I have to pass Meta App Review before testing my Instagram integration?

You can test Instagram payloads, container rules, and scheduling immediately via MuxPost Sandbox accounts on the $0 Free Sandbox tier. For live publishing to third-party Instagram Business/Creator accounts, Meta requires Business Verification and instagram_content_publish permission on your production Meta App configuration.

Can I schedule Instagram Reels and images through MuxPost?

Yes. MuxPost requires at least one publicly reachable HTTPS image or video URL for Instagram posts (up to 10 images or 1 Reels video), and polls Meta Graph API containers automatically until transcoding reports FINISHED.

What character and media limits apply to the Instagram Posting API?

Instagram enforces a 2,200-character caption cap, mandatory image or video media, 4:5 / 1:1 / 9:16 recommended aspect ratios, and Meta's upstream ceiling of 100 published posts per 24 hours per Business or Creator account.

Does the Instagram API work with personal Instagram profiles?

Instagram Personal accounts cannot publish via Meta Graph API; the channel must be switched to a free Instagram Professional (Business or Creator) account linked to a Facebook Page.

Ready to test your workflow in 60 seconds?

Try the free browser validator, spin up 12-platform Sandbox channels, or wire Claude and Cursor to Hosted MCP.

Run Pre-Flight Validator