Article Endpoints

[Quick] One-step article publish

Publish a complete X Article in a single call. Suitable for simple, one-shot use cases.

⚠️ Recommended: use the step-by-step flow instead. The step-by-step flow gives you full control — preview the draft before publishing, retry individual steps on failure, and reuse the same article_id across multiple calls.

Step-by-step endpoints:

  1. POST /x/articles/draft → get article_id
  2. PUT /x/articles/{article_id}/cover (optional)
  3. PUT /x/articles/{article_id}/title
  4. PUT /x/articles/{article_id}/content
  5. POST /x/articles/{article_id}/publish → get tweet_id

Returns article_id and tweet_id on success.

post/x/articles/publish

Request

  • Base URL: https://api.twexapi.io
  • URL: https://api.twexapi.io/x/articles/publish
  • 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.

titlestring required

Article title

markdownstring required

Article body in Markdown format

cover_imagestring nullable

Cover image: https URL or local file path (optional)

visibilitystring

Visibility: Public / Followers / Mentioned

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.