Troubleshooting

X API Error Codes: What They Mean and How to Fix Them

Last updated: May 1, 2026

Reference guide for common X (Twitter) API error codes: 187, 401, 403, 429, and how to resolve each in OpenTweet.

When a tweet fails to post in OpenTweet, the dashboard shows an X API error code. This reference explains each code and how to fix it.

Quick Answer: Common X API errors in OpenTweet: 401 Unauthorized (reconnect your X account in Settings), 403 Forbidden (policy violation or suspended account), 429 Too Many Requests (rate limited — wait for reset), 187 Duplicate Status (modify tweet text slightly). Find failed tweets in the dashboard under the Failed filter.

What are the most common X API error codes?

Error CodeMeaningHow to Fix
400Bad Request — malformed request (tweet too long, invalid characters)Check tweet text length (280 char limit for standard accounts). Remove unsupported characters.
401Unauthorized — OAuth token expired or revokedGo to Settings → X Account → Reconnect. Complete the OAuth flow to get a fresh token.
403Forbidden — account restricted, policy violation, or API tier limitationCheck if your X account is in good standing. Ensure tweet content complies with X's automation policies.
187Duplicate status — identical tweet text posted recentlyModify the tweet text slightly. Even changing punctuation or adding an emoji makes it unique.
226Account flagged as automated — X suspects spam behaviorReduce posting frequency. Review your posting patterns. Contact X Support if the flag is incorrect.
261Write actions revoked — X revoked the app's write accessDisconnect and reconnect your X account in Settings to run the OAuth flow and restore write access.
429Too Many Requests — rate limit exceededOpenTweet auto-retries after the rate window resets (15 min for per-minute, midnight UTC for daily).

How do I fix error 401?

Error 401 Unauthorized means your X OAuth token has expired or been revoked. This happens when you change your X password, revoke app access, or after a long period of inactivity. Fix: go to Settings → X Account → Reconnect. OpenTweet runs the OAuth flow and generates a fresh token. Retry failed tweets afterward.

How do I fix error 187?

Error 187 means X rejected your tweet as a duplicate. X's duplicate filter applies when tweet text is identical or near-identical to content posted within approximately the past 24-48 hours. Fix: modify the tweet text by changing a word, adjusting punctuation, or adding/removing an emoji. Even minor changes resolve the duplicate check.

How do I fix error 429?

Error 429 means you've hit X's rate limit. OpenTweet automatically retries rate-limited tweets after the window resets: 15 minutes for per-minute limits, midnight UTC for daily limits. To prevent recurring 429 errors, reduce your scheduled post frequency or upgrade your OpenTweet plan.

Ready to Try OpenTweet?

Start your 7-day free trial. Schedule tweets, use AI, set up connectors — all in one place.