X API Articles: 429 Too Many Requests on drafts and publishes

X caps long-form Articles per user, per day, and documents neither number. A failed attempt spends one of them, so a few bad requests can use up a whole day.

Start free →

Made with Hermoso

X Articles are created in two steps: POST /2/articles/draft, then POST /2/articles/{id}/publish. Both run on the tweet.write scope you already have for posting. Both also carry a daily cap that is not in X's rate-limit documentation, and when it runs out the response tells you almost nothing.

The exact error

X answers HTTP 429 with a bare "Too Many Requests" body and no explanation.

The useful information is in the response headers, which we read off X's own responses:

Endpointx-user-limit-24hour-limit
POST /2/articles/draft10
POST /2/articles/{id}/publish5

Alongside it, x-user-limit-24hour-remaining counts down, and x-user-limit-24hour-reset gives the reset time in epoch seconds.

What it means

The X account has used its 24-hour allowance for Article drafts or Article publishes. It is a per-user limit, not a per-app one: a completely different app authorised by the same user reported the same counter, while other users on your app were unaffected. It is also separate from the app-level x-rate-limit-limit header, which is much higher and is not the limit you hit here. Ordinary posts keep working.

Why it happens

  • Failed attempts count. We measured it: five failed draft attempts and five successful ones used exactly the ten. A request with an empty title costs a tenth of the day.
  • Format errors. X takes a DraftJS content_state, not markdown or HTML. A converter that gets offsets or block types wrong burns drafts on rejected requests.
  • Agents drafting in a loop. Ten drafts is a morning of work for an AI agent that revises by re-drafting.

How to fix it

  1. Read the headers on every Article call, successful or not, and keep the remaining count.
  2. Wait for the reset given in x-user-limit-24hour-reset. Retrying earlier fails and tells you nothing new.
  3. Validate locally before calling: a non-empty title, a non-empty body, and a content_state with valid block types and offsets.
  4. Revise in your own editor, then draft once, rather than drafting every revision on X.
  5. Publish deliberately. Five publishes a day is the tighter of the two limits.

How Hermoso handles it

Hermoso turns your markdown into X's content_state and refuses anything X cannot represent by name, before any call, so a formatting problem never spends your allowance. Empty titles and bodies are refused the same way, for free.

Every Article call reports how many drafts or publishes the account has left and when the allowance resets. When X does answer 429, Hermoso names which of the two budgets ran out and when it lifts, says it is X's cap on the account and not a connection problem, and that ordinary posts still work. The published Article is read back from X, title and links included, rather than reported from what was sent. See the X scheduler and X API pricing.

Related

Every platform error we have documented is on the error reference. For app reviews and access levels, see how to get API access.

Sources

Frequently asked questions

How many X Articles can I draft per day through the API?

We measured 10 drafts and 5 publishes per X user per 24 hours, read from the x-user-limit-24hour-limit header. X does not document these numbers.

Do failed Article requests count toward the limit?

Yes. In our measurement five failed drafts and five successful ones used the full ten.

Is the Articles limit per app or per user?

Per user. A different app authorised by the same user saw the same counter.

Skip the error hunting: connect your accounts to Hermoso free, no card.

Start free →   See pricing