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
Post and repost on your behalf.

Body

application/json
content_state
object
required

DraftJS content state representing the article body.

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

The newly created draft Article.

errors
object[]
Minimum array length: 1

An HTTP Problem Details object, as defined in IETF RFC 7807 (https://tools.ietf.org/html/rfc7807).