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:
- ➡️ POST /x/articles/draft — get article_id
- PUT /x/articles/{article_id}/cover — (optional) set cover image
- PUT /x/articles/{article_id}/title — set title
- PUT /x/articles/{article_id}/content — set body (Markdown)
- 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
Response
Successful Response
Changes
No recorded changes to this operation across all 1 revision of this API.