Skip to main content
POST
Create draft Article

Authorizations

Authorization
string
header
required

The access token received from the authorization server in the OAuth 2.0 flow.

FlowAuthorization Code
Authorization URL
https://api.x.com/2/oauth2/authorize
Token URL
https://api.x.com/2/oauth2/token
Scopes1
tweet.write
Create and repost on your behalf.

Body

application/json

Create a draft Article.

content_state
object
required

DraftJS content state representing the article body. Special formatting (markdown/code/tables, dividers, LaTeX, emoji, images, embedded posts) uses atomic blocks with entity_ranges pointing into entities.

title
string
required

The title of the Article.

Minimum string length: 1
cover_media
object

Optional cover media for the Article.

Response

The request has succeeded.

data
object
errors
object[]