Article Endpoints

[Step 1/5] Create a new article draft

Step 1 of 5 — Create an empty draft and get an article_id.

The article_id returned here is required by all subsequent steps.

Full flow:

  1. ➡️ POST /x/articles/draft — get article_id
  2. PUT /x/articles/{article_id}/cover — (optional) set cover image
  3. PUT /x/articles/{article_id}/title — set title
  4. PUT /x/articles/{article_id}/content — set body (Markdown)
  5. POST /x/articles/{article_id}/publish — publish and get tweet_id

💡 Tip: For full control (e.g. preview before publish, retry individual steps), use the step-by-step flow above. Use POST /x/articles/publish only for quick one-shot publishing.

post/x/articles/draft

Request

  • Base URL: https://api.twexapi.io
  • URL: https://api.twexapi.io/x/articles/draft
  • Auth: HTTP bearer

Request body

cookiestring required

The user's own authorized Twitter session credentials or auth_token (BYOC — Bring Your Own Cookie). Stateless proxy execution with zero credential retention. See Authentication Security and How to get Cookie.

Response

Successful Response

codeinteger required

200 = success, 429 = rate limit, 500 = server error

msgstring required

Human-readable result message

Changes

No recorded changes to this operation across all 1 revision of this API.