How to post Reels with the Instagram Graph API
To post a Reel with the Instagram Graph API you make three calls: create a media container with a public video URL, check the container's status until it says FINISHED, then publish it. This guide walks through each call with the fields from Meta's documentation, the permissions you need, the daily limit, and the errors you will hit first.

Quick answer: (1) POST /{ig-user-id}/media with media_type=REELS and a public video_url returns a container ID. (2) GET /{container-id}?fields=status_code until it returns FINISHED. (3) POST /{ig-user-id}/media_publish with creation_id publishes the Reel. The account must be a Business or Creator account. If you would rather not maintain this flow, the PostMyReels Instagram API wraps all three calls in one request.
Before you start
Everything below follows Meta's content publishing documentation, which was checked while writing this guide. Meta changes versions and limits, so confirm details there before you ship.
- A Business or Creator Instagram account. Personal accounts cannot be published to through the API.
- A Meta app and a token. The permissions depend on how users log in. With Facebook Login for Business you need
instagram_basic,instagram_content_publishandpages_read_engagementand use a Page access token ongraph.facebook.com. With Instagram Login the permissions areinstagram_business_basicandinstagram_business_content_publish, with an Instagram User token ongraph.instagram.com. - App review for other people's accounts. For your own test accounts you can use development mode. To publish for customers, the app needs Meta's app review and the permissions above approved.
- A publicly reachable video file. Meta fetches the video from your URL when you create the container, so it must be on a public server at that moment. A signed URL that is still valid works; a localhost URL does not.
- Page Publishing Authorization, if required. If the connected Page needs it, the account cannot publish until it is completed.
Step 1: create the media container
A container is Instagram's way of saying "I received this media and I am processing it". Send a POST to the media edge of the Instagram user ID:
curl -X POST "https://graph.facebook.com/{version}/{ig-user-id}/media" \
-d "media_type=REELS" \
-d "video_url=https://cdn.example.com/reel.mp4" \
-d "caption=Fresh sourdough, step by step #baking" \
-d "access_token={token}"
The response is a container ID: { "id": "17889..." }. The documented fields you will use most are media_type (REELS), video_url and access_token. A caption is optional. Other options, such as a cover image, sharing to the feed, or trial reels (trial_params with a graduation_strategy), are described in the reference for the media edge; check it for the current list, because they have changed over time.
Prepare the file first: vertical video, H.264 MP4 with AAC audio is the safe choice. Most failed containers come from a file that does not meet the format or ratio rules. Check the current Reels specs in Meta's documentation rather than a blog post, ours included.
Step 2: check the container status
Processing is asynchronous. Poll the container:
curl "https://graph.facebook.com/{version}/{container-id}?fields=status_code&access_token={token}"
| status_code | Meaning |
|---|---|
IN_PROGRESS | Still processing. Wait and ask again. |
FINISHED | Ready to publish. |
PUBLISHED | Already published. |
ERROR | Processing failed. Check the file and recreate the container. |
EXPIRED | Not published within 24 hours. Create a new container. |
Meta recommends checking once a minute for no more than five minutes. In code, that is a small loop with a sleep and a cap, which you should write so it fails clearly instead of retrying forever. If publishing returns "media not ready", see the container not ready error.
Step 3: publish the container
curl -X POST "https://graph.facebook.com/{version}/{ig-user-id}/media_publish" \
-d "creation_id={container-id}" \
-d "access_token={token}"
The response contains the ID of the published media. To confirm it went out as a Reel, request media_product_type on that media; its media_type will read VIDEO.
A polling loop you can paste
Here is a small Node version of step 2 with a cap, so a stuck container fails loudly instead of looping forever. It follows the "once a minute, up to five minutes" guidance above; adjust the version and token handling to your setup.
async function waitForContainer(id, token, version) {
for (let i = 0; i < 5; i++) {
const url = "https://graph.facebook.com/" + version + "/" + id +
"?fields=status_code&access_token=" + token;
const { status_code } = await (await fetch(url)).json();
if (status_code === "FINISHED") return;
if (status_code === "ERROR" || status_code === "EXPIRED") {
throw new Error("Container " + status_code);
}
await new Promise(r => setTimeout(r, 60000));
}
throw new Error("Container not ready after 5 checks");
}
Pass the current Graph API version from Meta's changelog as version. Keep the access token out of logs, since it sits in the URL here.
Test before you go live
- Use your own Business or Creator account in development mode and publish one short, harmless Reel.
- Check the result in the app and request
media_product_typeon the published media to confirm it is a Reel. - Break it on purpose. Send a URL that returns 404, then a file in the wrong format, and read the errors. You will recognize them later in production.
- Log the container ID with every request so you can tie a failure to a specific file.
- Submit for app review only after the flow works end to end, with a screencast that shows the real publishing path.
Rate limits to plan around
Meta's documentation states that an account can publish 100 API-published posts in a rolling 24-hour period, enforced at media_publish, and that carousels count as one. The same documentation mentions a 50-post figure in another section, so do not hard-code either number. Query /{ig-user-id}/content_publishing_limit to read the current usage before you queue a batch.
Common errors and fixes
- Container goes to ERROR. The video is usually the problem: ratio, length, codec or an unreachable URL. Re-export, host it publicly and create a new container.
- Publish fails right after creating the container. You did not wait for
FINISHED. Poll first. - Permission or token errors. The token is for the wrong login type, expired, or missing a permission. Reconnect the account and tick every permission box.
- Cannot find the Instagram user ID. It comes from the Page the account is linked to when you use Facebook Login. Without the link there is no ID to publish with.
- EXPIRED container. Containers live 24 hours. Recreate.
- URL works in your browser but the container fails. The server may block Meta's fetcher, require cookies, redirect to a login page or expire the signed link too quickly. Test the URL from outside your network and keep it valid for a few minutes at least.
- Video plays but Instagram rejects it. Re-encode with H.264 video and AAC audio, a vertical ratio and a normal frame rate, then compare against the specs in Meta's documentation.
- Works for you, fails for customers. The app is probably still in development mode or the customer account is not a Business or Creator account.
- Shopping tags or filters not applying. Meta lists them as unsupported for API publishing.
The same flow with PostMyReels
Live Instagram posting through PostMyReels opens after Meta's review; test-mode keys work now. The connect step, the container, the status polling and the retry are handled for you, so a Reel is one request to our API:
curl -X POST https://api.postmyreels.com/api/v1/posts \
-H "Authorization: Bearer pmr_live_xxx" \
-H "Content-Type: application/json" \
-d '{
"platform": ["instagram"],
"media": [{"url": "https://cdn.example.com/reel.mp4"}],
"caption": "Fresh sourdough",
"instagram": { "media_type": "REELS", "share_to_feed": true }
}'
The call returns 202 with a post_id and a delivery per platform. If the container fails you get the cause and a fix, and POST /posts/{id}/retry retries it. A test-mode key (pmr_test_) validates and simulates without posting anything. See the developers page for the full reference, or schedule Reels without code from the dashboard.
Want to try it? Start free
Done? Connect Instagram now and we'll run a test post.
Checked against each platform's current rules. Something changed? Tell us.
Questions
How do I get the Instagram user ID for the API?
With Facebook Login, read the Instagram business account linked to the Facebook Page the user connected. With Instagram Login, the user ID comes back from the login flow. Without a linked account there is nothing to publish to.
Why does my Reel container return ERROR?
Most often the video file or URL is the problem: wrong format or ratio, a link Meta cannot fetch, or a signed URL that expired. Fix the file, host it publicly and create a new container.
Can I schedule a Reel with the Instagram Graph API?
The documented flow publishes when you call media_publish. To schedule, keep the time in your own system and run the three calls then, or use a scheduler that does this for you.
Can the Instagram Graph API post Reels?
Yes. Create a container with media_type=REELS and a public video_url, wait for its status to be FINISHED, then call media_publish with the container ID.
Does the video have to be on a public URL?
Yes. Meta's documentation says the video must be hosted on a publicly accessible server when the publish attempt occurs.
What permissions do I need to publish Reels?
With Facebook Login for Business: instagram_basic, instagram_content_publish and pages_read_engagement. With Instagram Login: instagram_business_basic and instagram_business_content_publish.
How many posts can I publish per day through the API?
Meta's content publishing documentation states 100 API-published posts per rolling 24 hours, but also mentions 50 for carousels. Read the live value from the content_publishing_limit endpoint.
Can I publish to a personal Instagram account?
No. Only Business and Creator accounts can be published to through the API.
How long should I wait for a container to finish?
Meta recommends checking once per minute for no more than 5 minutes. Containers that are not published within 24 hours expire.
Related guides

API for Instagram: publish Reels, carousels and photos with one REST call
An API for Instagram posting: what Meta's Graph API requires (Business account, Page, permissions, containers) and how one REST call to PostMyReels replaces it.
Read →
Instagram post scheduler for Reels, photos and carousels
Schedule Instagram Reels, feed posts and carousels from one dashboard. For Business or Creator accounts. Opens after Meta's review.
Read →
A social media posting API for TikTok, Instagram and YouTube
One REST call posts video to TikTok, Instagram and YouTube, with scheduling, webhooks, test keys and errors that say how to fix them. Free plan.
Read →Post to TikTok, Instagram and YouTube from one place.
Free plan, no card. Connect an account in under a minute.