Skip to content
Twexapi
English
Esc
navigateopen⌘Jpreview

[Step 4/5] Set article content from Markdown

Step 4 of 5 — Set the article body by providing Markdown text.

  • article_id: obtained from Step 1
  • markdown: supports headings, bold/italic, lists, code blocks, and inline images (![alt](url))

Inline images are automatically uploaded to X and embedded in the article.

Back to API Reference
/Article Endpoints
PUT/x/articles/{article_id}/content
Authorization
AuthorizationBearer token · headerrequired
Global API Bearer Token for TwexAPI. Included as: Authorization: Bearer <YOUR_TWEXAPI_KEY>.
Path Parameters
article_idstringrequired
Request Body
requiredapplication/json
cookiestringrequired
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](/authentication#write-operations--byoc-bring-your-own-cookie) and [How to get Cookie](https://youtube-promotion.pages.dev/how-to-get-twitter-cookie).
markdownstringrequired
Article body in Markdown format
Responses
200Successful Response
codeintegerrequired
200 = success, 429 = rate limit, 500 = server error
msgstringrequired
Human-readable result message
dataArticleContentData | any
Show properties
Any of:
ArticleContentData
blocksintegerrequired
Number of content blocks parsed from the Markdown (paragraphs, headings, images, etc.)
any
any
422Validation Error
detailValidationError[]
Show properties
Array of ValidationError
locstring | integer[]required
Show properties
Array of string | integer
Any of:
string
string
integer
integer
msgstringrequired
typestringrequired
inputany
ctxobject
429Daily tweet limit reached
500Server error
Interactive ConsolePUT
Interactive Console / Try APIPUT
Live Console
🌐Target Server:https://api.twexapi.io
● Production Ready
✍️
Write Operation Credentials Guide (TwexAPI Key + Twitter Cookie)

1. TwexAPI Platform Key (Bearer Token): Enter under "API Authorization" below for request billing & authentication.

2. Twitter Account Cookie: For write operations (tweet, like, follow, etc.), provide the target Twitter account's Cookie (e.g. auth_token=...; ct0=...) in the cookie field of Request Body below.

🔑API Authorization
⚙️Parameters (1)
📝Request Bodyapplication/json
📡
No Response Yet

Configure parameters in the Request tab and click Send Request below.

Request
curl -X PUT "https://api.twexapi.io/x/articles/string/content" \
  -H "Authorization: Bearer YOUR_TOKEN" \
  -H "Content-Type: application/json" \
  -d '{
  "cookie": "string",
  "markdown": "string"
}'
Response
{
  "code": 0,
  "msg": "string",
  "data": {
    "blocks": 0
  }
}