InstagramUpdated

Instagram API error codes and how to fix them

Instagram API errors use Meta's Graph API format: an error object with a code, an error_subcode and a message. 190 is an invalid token, 4 a rate limit, 10 a missing permission, 9004 media Meta could not fetch, 36003 a bad aspect ratio, and 2207042 the account's 24-hour publishing limit. Find your code below, with the fix. Siar, a unified social media API, keeps Instagram’s own code and message on the post and adds the fix below.

Jump to a code: 2207042, 190, 4, 10, 100, 9004, 36003, 9007, 2018278, 551.

Codes and messages are what Instagram returns. Where Instagram documents a code, this page follows its docs.

2207042 · You reached maximum number of posts… · the 24-hour publishing limit

Error 2207042 (code 9) means the Instagram account has used its 24-hour publishing allowance. Meta's page says 100 API-published posts in a moving 24-hour window; carousels count as one. Fix: check GET /{ig-user-id}/content_publishing_limit before publishing, and post again once the oldest post in the window is 24 hours old.

What Siar does with it: Siar treats it as a rate limit and tries again on its own, up to three attempts in all, then keeps the error on the post. Siar also caps posts per Instagram account per day by plan, but posts from other tools on the same account count toward Meta's limit too.

Instagram's message: You reached maximum number of posts that is allowed to be published by Content Publishing API.

190 · Error validating access token · the token is no longer valid

Meta returns code 190 when the access token has expired, been revoked, or was invalidated by a password change or a security reset. Read error_subcode: 463 is expired, 460 a password change, 458 the app removed. Fix: send the user through Facebook Login or Instagram Login again and use the new token.

What Siar does with it: Siar refreshes the token itself where Instagram allows it. If that fails, Siar marks the account as needing reconnection and keeps this error on the post. Later posts to the account stop with "Reconnect this account, then retry the post." until your customer reconnects through the same connect link.

Instagram's message: Error validating access token: The session has been invalidated because the user changed their password or Facebook has changed the session for security reasons.

4 · (#4) Application request limit reached · the app hit its rate limit

The app-level rate limit was hit. Wait for the window to reset, then retry, and lower your call volume.

What Siar does with it: Siar treats it as temporary and tries again on its own, up to three attempts in all. It waits for Instagram's reset time when Siar can read one from the response, otherwise 30 seconds, then 60. These attempts don't use the post's manual retries. If the last attempt fails too, the error stays on the post.

Instagram's message: (#4) Application request limit reached

10 · (#10) Application does not have permission for this action · a permission is missing

A required permission was not granted, or the app lacks Advanced Access. Ask the user to log in again and grant every requested permission; check the app has Advanced Access for it.

What Siar does with it: Siar keeps Instagram's code and message on the post, word for word, marks it "don't retry" or "unknown", and still publishes to the other networks in the post. Fix the cause, then call POST /post/{id}/retry: only the failed networks are sent again, and the retry doesn't count as another post.

Instagram's message: (#10) Application does not have permission for this action

Related: Meta App Review: our dates and lessons

100 · (#100) Invalid parameter · a field is missing or wrong

A parameter was missing or invalid (bad URL, unsupported field, wrong id). Check the post data; the message names the parameter.

What Siar does with it: Siar keeps Instagram's code and message on the post, word for word, marks it "don't retry" or "unknown", and still publishes to the other networks in the post. Fix the cause, then call POST /post/{id}/retry: only the failed networks are sent again, and the retry doesn't count as another post.

Instagram's message: (#100) Invalid parameter

9004 · The media could not be fetched from this uri · Meta couldn't download the media

Meta could not fetch or read the media at the URL. Make sure the media URL is public, returns the file directly (no redirect to a login page) and is a JPEG/PNG image or MP4/MOV video.

What Siar does with it: Siar keeps Instagram's code and message on the post, word for word, marks it "don't retry" or "unknown", and still publishes to the other networks in the post. Fix the cause, then call POST /post/{id}/retry: only the failed networks are sent again, and the retry doesn't count as another post.

Instagram's message: Only photo or video can be accepted as media type.

36003 · The submitted image with aspect ratio … cannot be published · the image shape isn't allowed

The image aspect ratio is outside 4:5–1.91:1. Crop the image to between 4:5 and 1.91:1.

What Siar does with it: Siar keeps Instagram's code and message on the post, word for word, marks it "don't retry" or "unknown", and still publishes to the other networks in the post. Fix the cause, then call POST /post/{id}/retry: only the failed networks are sent again, and the retry doesn't count as another post.

Instagram's message: The aspect ratio is not supported.

9007 · The media is not ready for publishing, please wait for a moment · the container isn't finished

The container was published before Meta finished processing it. Poll the container's `status_code` and publish only when it is `FINISHED`.

What Siar does with it: Siar waits for the container to reach FINISHED before publishing and retries if Meta still answers 9007, so you should not see this one in Siar.

Instagram's message: Media ID is not available

2018278 · (#10) This message is sent outside of allowed window · the 24-hour reply window has closed

Messages can only be sent within 24 hours of the person's last message. Wait for the person to message again, or use an approved message tag.

What Siar does with it: Siar keeps Instagram's code and message on the post, word for word, marks it "don't retry" or "unknown", and still publishes to the other networks in the post. Fix the cause, then call POST /post/{id}/retry: only the failed networks are sent again, and the retry doesn't count as another post.

Instagram's message: (#10) This message is sent outside of allowed window.

551 · This person isn't available right now · the person can't receive messages

The recipient blocked the Page or deactivated messaging. Nothing to fix on your side: the person blocked the Page or turned off messages.

What Siar does with it: Siar keeps Instagram's code and message on the post, word for word, marks it "don't retry" or "unknown", and still publishes to the other networks in the post. Fix the cause, then call POST /post/{id}/retry: only the failed networks are sent again, and the retry doesn't count as another post.

Instagram's message: This person isn't available right now.

Where to see an Instagram error in Siar

Read a failed post with GET /post/{id}. The error field sums it up, errors lists the result per network, and errorsVerbose keeps Instagram's own code, message and HTTP status, a plain-English message, and a retry verdict: retryable, non_retryable or unknown. A signed post.published webhook fires when the post has published or failed, with each network's result. Fix the cause and retry with POST /post/{id}/retry.

Siar, a unified social media API, publishes to Facebook, Instagram, Threads, X, LinkedIn profiles, Bluesky, Mastodon, Discord and Slack today. See each network's status, or go back to Post to Instagram via API.

Error codes for other networks

The same pattern, for each network Siar is built for: social media API error codes, by network. For errors from Siar's own API (a 401 for a missing key, a 429 rate limit), see Siar API errors and status codes.

TikTok API error codes · YouTube API error codes · Facebook API error codes · X (Twitter) API error codes · Threads API error codes · LinkedIn API error codes · Pinterest API error codes · Reddit API error codes · Mastodon API error codes · Discord API error codes · Slack API error codes · Bluesky API error codes · Google Business Profile API error codes · Snapchat API error codes

Frequently asked questions

How many posts can the Instagram API publish in 24 hours?

Meta's content publishing page says 100 API-published posts per Instagram account in a moving 24-hour window, and carousels count as one. The same page says 50 in its carousel section. Check the account's current usage with GET /{ig-user-id}/content_publishing_limit before publishing, and expect error 2207042 when the limit is reached.

Should I retry a failed Instagram API request?

Only if the error is temporary. Rate limits (429 and Instagram's own rate-limit codes) and 5xx errors can be retried after the reset time. Token, permission, duplicate and content errors fail the same way every time, so fix the cause first. Each entry on this page says which kind it is.

Why does the Instagram API reject a request that looks right?

Usually because of something outside the request body: an expired token, a permission the user didn't grant, the account's daily limit, or text the account posted recently. Read the code and message first, then match it to an entry on this page. Validating length and media before sending catches most of the rest.

Does Siar retry failed Instagram posts automatically?

For temporary errors, yes: Siar tries up to three times in all, waiting for the network's reset time when it can read one. Other errors stay on the post with Instagram's own code and message. Fix the cause and retry: only the failed networks are sent again, and the retry doesn't count as another post.

Will retrying a failed post publish it twice?

Not through Siar's retry. Each network in a post is claimed once, and only the networks that failed are sent again. An interrupted send is checked against the account before anything is re-sent. But calling the create endpoint again makes a new post: Siar has no client idempotency key, so check your own records first.

Your first post is one request away.

Start with 20 free posts to try. No card. A one-time allowance, with no time limit.