On this page
- How to Read an Instagram API Error
- Quick Reference: Instagram DM Error Codes
- The Four Kinds of Error
- Messaging Window and Private Reply Errors
- Recipient Errors
- Permission, Account and Token Errors
- Rate Limits and Restrictions
- Conversation Ownership Errors
- Message Content and Attachment Errors
- A Retry Policy That Does Not Make Things Worse
- Example: Debugging a Comment-to-DM Campaign
- Test Before You Go Live
- How Errors Show Up in OnlySocial
- Prevention Checklist
- FAQ
- What does Instagram API error code 10 mean?
- Why does my automation say “outside of allowed window”?
- How many private replies can I send to one comment?
- Should I retry failed Instagram messages?
- What is error 551 on Instagram?
- What is the Instagram messaging rate limit?
- Where do I see why a DM failed in OnlySocial?
- Can I DM someone who never messaged my account?
- Do these errors affect my account’s standing?
- How do I fix error 190?
- The Short Version
Instagram DM automation looks simple: someone comments a keyword and a message lands in their inbox. Underneath, every message is a call to Meta’s messaging API, and any call can be refused. When that happens, Meta sends back a small block of JSON with a code such as 10, a subcode such as 2534022 and a one-line message like “This message is sent outside of allowed window.”
Read properly, an Instagram API error code tells you three things: what went wrong, who can fix it, and whether trying again will ever work. A rate limit clears if you slow down. A window error never succeeds however often you retry. A token error needs a person to reconnect the account. Treating them all the same way is the most common reason DM automations either hammer Meta’s servers or quietly stop working. This guide uses the codes Meta publishes in its Messenger Platform and Graph API documentation, and it is written for marketers running comment-to-DM campaigns, agencies managing many Instagram accounts and developers building on the messaging API. Each section says what the error means, who can fix it and whether a retry will help.
How to Read an Instagram API Error
Every error Meta returns has the same shape, and the code and subcode matter most. The Instagram messaging API is part of Meta’s Messenger Platform, so a failed send returns an error object like this:
{
"error": {
"message": "(#10) This message is sent outside of allowed window.",
"type": "OAuthException",
"code": 10,
"error_subcode": 2534022,
"is_transient": false,
"fbtrace_id": "AbC1dEfGhIjKlMn"
}
}
The code is the broad family: 10 is “permission denied”, 100 an invalid parameter, 190 an access token problem, and 4, 17 and 613 are about volume. The error_subcode gives the exact reason, so always look up the pair. The message is for logs, not logic, because its wording can change. is_transient is Meta’s hint that a later retry may work, and fbtrace_id is the request ID Meta support asks for.

Quick Reference: Instagram DM Error Codes
These are the errors you are most likely to see when sending Instagram messages, private replies and comment-to-DM replies. Codes and meanings come from Meta’s Messenger Platform error reference and Graph API error handling guide.
| Code | Subcode | Meaning | Retry? | What to do |
|---|---|---|---|---|
| 10 | 2534022 | Message sent outside the allowed window | No | Wait for the person to message you again |
| 10 | 2018278 | Outside the window under the newer policy | No | Same as above |
| 100 | 2534025 | Comment cannot get a private reply | No | Already replied, too old, or comment removed |
| 551 | none | This person is not receiving messages from you | No | Stop sending to this contact |
| 551 or 200 | 1545041 | This person is not available right now | No | Account deactivated or unreachable |
| 10 | 2018108 | This person cannot receive messages right now | Later | One try much later, not in a loop |
| 100 | 2018001, 2534014 | No matching user | No | Use the Instagram-scoped ID (IGSID) |
| 200 | 2534041 | Owner has turned off access to messages | No | Turn on “Allow access to messages” |
| 1 | 99 | Unknown error, often a missing permission | Once | Check permissions and app access |
| 10, 200 to 299 | none | Permission errors | No | Reconnect and approve every permission |
| 100 | 2534013 | Page is not linked to an Instagram account | No | Link the account to its Facebook Page |
| 10 | 2534077 | Cannot verify the Instagram, user and Page link | No | Re-check roles and two-factor prompts |
| 36103 | none | Instagram account not eligible yet | Later | Wait and connect again later |
| 100 | 2534029 | Business blocked from Instagram messaging API | No | Contact Meta Business Support |
| 190 | 458 to 492 | Access token invalid or expired | No | Reconnect the account |
| 4, 17 | none | App or user request limit reached | Slowly | Back off and spread calls out |
| 613 | 2534040 | Calls exceed the rate limit | Slowly | Queue and send at a steady pace |
| 613 | 2018338 | Behaviour may be seen as bothersome | No | Change what and how often you send |
| 10 | 1893063 | Account temporarily restricted from sending | No | Pause until it lifts |
| 368 | none | Temporarily blocked for policy violations | No | Stop, review content, wait |
| 10 | 2018300 | Another app controls this conversation | No | Wait for thread control to pass back |
| 100 | 2534037 | Your app is not the thread owner | No | Check conversation routing |
| 100 | 2534015 | Invalid message data | After fix | Fix the message payload |
| 100 | 2018008 | Failed to fetch the file from the URL | After fix | Make the file public and reachable |
| 100 | 2018047 | Attachment type does not match the file | After fix | Match the declared type |
| 100 | 2018109 | Attachment too big | After fix | Send a smaller file or a link |
| 100 | 2018294 | Video upload timed out | After fix | Smaller or faster-hosted video |
| 9000001 | none | Message deleted | No | Nothing to do |
| 1, 2 | none | Unknown or unexpected server error | Yes | Retry with backoff |
The Four Kinds of Error
Almost every Instagram DM error falls into one of four groups, and each group needs a different response. Sort the error first; that one decision prevents most of the damage bad error handling causes.
- Temporary: retry later. Codes 1 and 2, and anything marked transient. Retry after a short wait, a few times at most.
- Volume: slow down. Codes 4, 17 and 613 with 2534040. Retrying at once makes it worse; pause, then send more slowly.
- Rule: do not retry. Window, private reply, recipient and spam errors. The only fix is a change in circumstances, usually the person writing to you first.
- Setup: a person must act. Token, permission and account link errors. Nothing works for that account until someone reconnects it or changes a setting.

The costliest mistake is retrying a rule error. A tool that resends a window error every minute will never succeed, burns through rate limits and can make the account look like spam.
Messaging Window and Private Reply Errors
These are the errors comment-to-DM automations hit most, and none of them is fixed by sending again. They come from two clocks Meta runs on every conversation.
The 24-hour window. When someone messages your account, you can reply freely, automated or by hand, for 24 hours; each new message from them restarts it. After that, automated messages are refused. A person typing replies may get up to seven days with Meta’s human agent permission, but automations always have 24 hours.
The 7-day private reply. A private reply is the DM sent in response to a public comment. Meta allows one per comment, within seven days of the comment. If the person writes back, the normal 24-hour window opens.

Code 10, subcode 2534022: outside of allowed window
The most common DM automation error. You messaged someone whose 24-hour window had closed, or who never opened one. Typical causes are follow-up steps with long delays, broadcasts to people who have not written recently, flows started by orders or dates, and a second message after a private reply nobody answered. Do not retry. Keep automated steps inside 24 hours and make the first message invite a reply. Subcode 2018278 is the same problem under Meta’s newer policy wording; handle it the same way.
Reaching people after the window closes
A closed window is not the end of the relationship, only of automated DMs. Reply publicly to their comment, mention the offer in your next post or Story so they message you again, or ask them in the first DM for an email address or phone number while the window is open. Anything that invites them to write starts a fresh 24 hours.
Code 100, subcode 2534025: comment not valid for a private reply
The comment already received a private reply, is older than seven days, or was deleted or hidden. Do not retry. Make sure only one flow watches each post for each keyword, switch comment-to-DM on when the post goes live rather than days later, and reply to the newest comment when someone comments twice. A setting such as “only respond once per contact”, which OnlySocial has, prevents most duplicate attempts.
Recipient Errors
These errors are about the person on the other end, and the right response is almost always to stop messaging them.
- 551: not receiving messages from you. They blocked or restricted your account. Stop, mark the contact so future flows skip them, and never try another account.
- 551 or 200 with 1545041: not available. The account may be deactivated or suspended. Skip it.
- 10 with 2018108: cannot receive messages right now. Possibly temporary, so one attempt hours later is reasonable, inside the window.
- 100 with 2018001 or 2534014: no matching user. Instagram messaging needs the Instagram-scoped ID (IGSID) that arrives with the person’s message or comment, not their username. Store it from the webhook and use it unchanged.
Permission, Account and Token Errors
Setup errors stop every message for an account, so they deserve an alert, not a quiet log line.
- 200 with 2534041: access to messages is off. In the Instagram app’s message controls for connected tools, the owner must switch on Allow access to messages. Until then every tool fails.
- 10, or 200 to 299: permission denied. Usually the account was connected for publishing only; messaging needs its own permissions. Reconnect and accept everything on Meta’s screen.
- 1 with 99: unknown error. Often a missing permission or access level. Retry once, then check permissions.
- 100 with 2534013, or 10 with 2534077: account link problems. With Facebook Login, the Instagram professional account must be linked to the right Page and the person connecting needs the right role. Complete any security prompts, then reconnect.
- 36103: not eligible yet. Some new professional accounts cannot use the messaging API straight away. Wait and try later.
- 100 with 2534029: business blocked. An enforcement decision. Stop sending and contact Meta Business Support.
Code 190: access token invalid or expired
Only a reconnect fixes this. Meta’s subcodes give the cause:
| Subcode | Meaning |
|---|---|
| 458 | The person removed your app’s access |
| 459 | Security checkpoint: log in to the app first |
| 460 | Password changed |
| 463 | Token expired |
| 464 | Unconfirmed user |
| 467 | Invalid access token |
| 492 | Invalid session, often no role on the Page |
Accounts can be connected to tools through a Facebook Page or with an Instagram login, and both use tokens that can expire or be revoked. A good tool marks the account disconnected, stops sending and tells the owner, rather than logging hundreds of identical failures. If a client changes their Instagram password, expect to reconnect.
Rate Limits and Restrictions
Volume errors tell you to slow down; restriction errors tell you to stop and change what you send.
Codes 4 and 17 mean too many calls for your app or for one account. Back off and avoid bursts. Code 613 with 2534040 is the messaging rate limit: Meta’s documentation caps private replies to post and Reel comments at 750 an hour per account, which a viral post can reach. Queue every comment and send at a steady pace; private replies stay valid for seven days, so an hour’s delay is fine.
613 with 2018338 warns that your messages look unwanted. 10 with 1893063 is a temporary sending restriction, and 368 a temporary block for policy violations. For all three: do not retry, pause the automations, and review what you send. Identical messages to many people, messages nobody asked for and repeated follow-ups are typical causes.
Conversation Ownership Errors
Only one connected app can answer a conversation at a time. 10 with 2018300 means another app controls the thread; yours must wait until control is passed back. 100 with 2534037 means your app is not the thread owner. Set the default owner in the account’s conversation routing settings in Meta Business Suite and remove tools you no longer use. Our guide to fixing the not-thread-owner error walks through it.
Message Content and Attachment Errors
These can be fixed: change the message or file and send again.
- 100 with 2534015: invalid message data. Empty text after variables, or a message type Instagram does not support. Instagram has no call or webview buttons, quick replies are text only, and Meta documents a 1,000-character limit for message text. Give variables a fallback, such as
{{first_name|there}}. - 100 with 2018008: file could not be fetched. The URL must be public, HTTPS and return the file itself, not a login or preview page.
- 100 with 2018047: type mismatch. The declared attachment type does not match the file.
- 100 with 2018109 or 2018294: too big, or video timed out. Compress the file, host it somewhere faster, or send a link.
- 9000001: message deleted. Nothing to fix.
Codes 1 and 2 are temporary server errors: retry after a short wait. Meta notes code 2 can also mean the recipient blocked the business, so if one contact keeps producing it, treat it as a recipient error.
A Retry Policy That Does Not Make Things Worse
Retry only when it can help, wait longer each time, and give up gracefully.
- Decide by code and subcode, never by message text.
- Retry temporary errors with exponential backoff and a little random jitter. Stop after about three tries.
- Queue volume errors. Pause sends for the account and resume more slowly.
- Never retry rule errors. Record them on the contact so the next flow knows.
- Turn setup errors into alerts the owner will see.
- Respect the windows on every retry. A send that failed at hour 20 must not be retried at hour 25.
- Make sends safe to repeat. After a timeout, check the conversation or use an idempotency key so a retry never sends twice, and log the account, contact, step, code, subcode and fbtrace_id.
What to log for every failure
Record the account, the contact, the flow and step, the code, the subcode, the message, whether Meta marked it transient, the fbtrace_id and the time. With those fields you can group failures by cause in seconds, spot an account whose token has expired, and give Meta support exactly what it asks for. Without them, every failure looks the same and the only tool left is guessing.

Example: Debugging a Comment-to-DM Campaign
Here is how the codes point straight to the fix in a real campaign. A skincare brand posts a Reel saying “comment GLOW for the routine”. In the first hour, 600 people comment. Most receive the DM, but the activity log shows three clusters of failures.
About 40 failures with 613 and 2534040. The account hit the messaging rate limit during the burst. Nothing is wrong with the flow; the sends need to queue and go out over the next hour. Because private replies stay valid for seven days, a reply that arrives forty minutes later still works.
About a dozen failures with 100 and 2534025. An older GLOW flow from last month’s campaign was still live and watching all posts. Both flows tried to send a private reply to the same comments, and Meta refused the second one each time. Pausing the old flow, and pointing the new one at this Reel only, stops these attempts.
A steady trickle of 10 and 2534022 the next day. The flow had a follow-up step, “Did you try the routine?”, set to send 30 hours after the first DM. Anyone who never replied had no open window by then. The fix is to move the follow-up inside 24 hours and send it only to people who wrote back, or drop it.
None of these needed a developer. Each code said whether to wait, change a setting or redesign a step, and that is the habit worth building: read the subcode, then fix the cause rather than the symptom.
Test Before You Go Live
A five-minute test from a second account catches most setup errors before your audience does.
- Comment the keyword from another account and check that both the public reply and the DM arrive.
- Reply to the DM and confirm the next step runs, which proves the 24-hour window is working as expected.
- Comment again from the same account and confirm nothing is sent twice.
- Open every link and file in the DM from a phone that is not logged in to anything, to catch private or expiring URLs.
- Check the failed runs list after the test. It should be empty; if not, the reason tells you what to fix.
If the test account receives nothing at all, the usual suspects are a connection without messaging permissions, Allow access to messages switched off, or another tool owning the conversation.
How Errors Show Up in OnlySocial
OnlySocial turns Meta’s codes into plain reasons and puts them where you will see them.
- Recent failed runs. A flow’s Analytics lists failed runs with the reason and the step where each stopped, for example “The channel is not connected right now.”
- Activity log. Under Salesbot, then More, then Activity, filter Status to Error and Platform to Instagram to see every failed send.
- The conversation. A message that failed shows the reason under it in the inbox.
- Notifications and reconnect prompts. The Automation failed notification tells you when a run stops, and an account whose connection does not allow messages shows Reconnect to enable messages.
In practice, the reasons map onto the four kinds of error above. “The channel is not connected right now” and “Reconnect to enable messages” are setup errors: reconnect the account and allow every permission. “The connected provider rejected the request. Check its connection and this step’s settings.” covers refusals such as permission and content errors: check the connection first, then the step. Window problems show up as messages that cannot be delivered outside the window, and the fix is in the flow’s timing, not in sending again. When the same reason repeats across many runs, fix it once at the source rather than retrying each run.
The flow builder also helps prevent window errors: automated Instagram messages are held to the 24-hour window, the builder warns when a flow is likely to message people outside it, and each comment gets at most one private reply.

Prevention Checklist
- Connect with every messaging permission and turn on Allow access to messages.
- Keep automated messages inside 24 hours, with no automated follow-ups to people who never replied.
- Send one private reply per comment and switch comment-to-DM on when the post goes live.
- Give every variable a fallback and host media on public HTTPS links.
- Pace big campaigns through a queue instead of a burst.
- Reconnect accounts after password changes and security checks, before a campaign rather than during it.
- Remove old automation tools from the account so none of them holds conversations.
- Send messages people asked for, and check your failed sends weekly for patterns.
FAQ
What does Instagram API error code 10 mean?
Code 10 is “permission denied”. On its own it usually means a missing permission. With 2534022 or 2018278 it means outside the messaging window, with 1893063 a sending restriction, and with 2018300 another app controls the conversation.
Why does my automation say “outside of allowed window”?
Automated messages can only go to people who messaged you in the last 24 hours, or as one private reply to a comment within seven days. Shorten delays and stop automated follow-ups to people who have not written back.
How many private replies can I send to one comment?
One, within seven days of the comment. A second attempt returns 100 with 2534025.
Should I retry failed Instagram messages?
Only temporary errors, a few times with growing waits, and rate-limited sends after a pause. Never retry window, recipient or policy errors, and fix setup errors by reconnecting.
What is error 551 on Instagram?
Code 551 means the person is not receiving messages from you, usually because they blocked or restricted your account. With subcode 1545041 the account is unavailable. Stop messaging that contact.
What is the Instagram messaging rate limit?
Meta sets per-account limits on messaging calls, including 750 private replies an hour for post and Reel comments. Going over returns code 4, 17 or 613; wait and resend at a slower pace.
Where do I see why a DM failed in OnlySocial?
In the flow’s Analytics under Recent failed runs, in the Salesbot activity log filtered to errors, and under the failed message in the inbox conversation.
Can I DM someone who never messaged my account?
Only through a private reply to something they did, such as a comment on your post, and only once per comment within seven days. Otherwise an automated message needs them to have written to you in the last 24 hours. Tools cannot get around this rule, so be wary of any that claim to.
Do these errors affect my account’s standing?
Ordinary failures such as a closed window do not. Repeated attempts after refusals, and messages people do not want, can lead to the bothersome-behaviour warnings and sending restrictions described above, so a clean retry policy also protects the account.
How do I fix error 190?
Reconnect the Instagram account. The token expired or was revoked, often after a password change or security check.
The Short Version
Read the code and subcode together and sort the error into one of four groups. Retry temporary errors with backoff, slow down for rate limits, never retry window or policy errors, and send setup errors to the account owner. Keep automations inside the 24-hour window and send one private reply per comment within seven days, and most of these errors never happen.
Run Instagram DM automation without reading JSON. OnlySocial’s Salesbot handles comment-to-DM, keyword replies and AI replies inside Meta’s rules, and shows every failed run with a plain reason, next to your scheduler and unified inbox.
Posts, Reels and Stories that fail to publish return different errors from the Content Publishing API. See our guide to Instagram publishing error codes and how to fix them.




