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:
- Automated Container Polling: When publishing Reels or video URLs through MuxPost's Instagram adapter (
v21.0), MuxPost creates the media container, polls processing status untilFINISHEDorPUBLISHED, and triggersmedia_publishautomatically. - 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. - 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.