TwitterAPIs Docs
API ReferenceWrite Actions

Twitter Write API | Like, Retweet, Bookmark, Follow

Write Actions: Act on behalf of an authenticated account: post, delete, like, retweet, bookmark and follow, each with its undo, plus the compose surface (private drafts and scheduled posts). MOST of these bill at $0.0008 per call, the same as a standard read, but not all: tweet/create, draft/create, draft/edit, draft/list, scheduled/create and scheduled/list are $0.0016. Read the price on the endpoint, never off this line.

Act on behalf of an authenticated account: post, delete, like, retweet, bookmark and follow, each with its undo, plus the compose surface (private drafts and scheduled posts). MOST of these bill at $0.0008 per call, the same as a standard read, but not all: tweet/create, draft/create, draft/edit, draft/list, scheduled/create and scheduled/list are $0.0016. Read the price on the endpoint, never off this line.

This category has 27 endpoints. Each is a pay-per-call REST endpoint with bearer auth, JSON in and out.

MethodPathCostDescription
POST/media/upload$0.0008Upload an image and get a media_id to attach to a tweet.
GET/media/status$0.0008Check the async processing state of an uploaded media_id.
POST/list/add_member$0.0008Add one account to a Twitter/X List you own.
POST/list/remove_member$0.0008Remove one account from a Twitter/X List you own.
POST/list/create$0.0016Create a new Twitter/X List owned by your session.
POST/community/join$0.0008Join an open X Community as your own account.
POST/community/leave$0.0008Leave an X Community as your own account.
POST/tweet/favorite$0.0008Like (favorite) a tweet on behalf of an authenticated account.
POST/tweet/unfavorite$0.0008Remove a like (unfavorite) from a tweet.
POST/tweet/retweet$0.0008Retweet a tweet on behalf of an authenticated account.
POST/tweet/unretweet$0.0008Remove a retweet from a tweet.
POST/tweet/bookmark$0.0008Add a tweet to the authenticated account's bookmarks.
POST/tweet/unbookmark$0.0008Remove a tweet from the authenticated account's bookmarks.
POST/user/follow$0.0008Follow a user on behalf of an authenticated account.
POST/user/unfollow$0.0008Unfollow a user on behalf of an authenticated account.
POST/tweet/create$0.0016Post a tweet as your registered account: text, media, reply, or quote.
POST/tweet/delete$0.0008Delete one of your registered account's tweets by ID or status URL.
POST/user/update_profile$0.0016Change your own display name, bio, location or link. A PARTIAL update.
POST/user/update_avatar$0.0016Replace your own profile picture with a base64-encoded image.
POST/user/update_banner$0.0016Replace your own profile header image with a base64-encoded image.
POST/draft/create$0.0016Save a private draft on your own account. Nothing is posted.
POST/draft/edit$0.0016Replace the contents of an existing draft on your own account.
POST/draft/delete$0.0008Delete a draft from your own account by ID.
GET/draft/list$0.0016List the drafts saved on your own account.
POST/scheduled/create$0.0016Schedule a tweet to post publicly at a future instant.
POST/scheduled/delete$0.0008Cancel a scheduled tweet before it posts.
GET/scheduled/list$0.0016List the posts queued to publish on your own account.

Upload Media

Upload an image and get a media_id to attach to a tweet.

Media Status

Check the async processing state of an uploaded media_id.

Add List Member

Add one account to a Twitter/X List you own.

Remove List Member

Remove one account from a Twitter/X List you own.

Create List

Create a new Twitter/X List owned by your session.

Join Community

Join an open X Community as your own account.

Leave Community

Leave an X Community as your own account.

Like Tweet

Like (favorite) a tweet on behalf of an authenticated account.

Unlike Tweet

Remove a like (unfavorite) from a tweet.

Retweet

Retweet a tweet on behalf of an authenticated account.

Undo Retweet

Remove a retweet from a tweet.

Bookmark Tweet

Add a tweet to the authenticated account's bookmarks.

Remove Bookmark

Remove a tweet from the authenticated account's bookmarks.

Follow User

Follow a user on behalf of an authenticated account.

Unfollow User

Unfollow a user on behalf of an authenticated account.

Create Tweet

Post a tweet as your registered account: text, media, reply, or quote.

Delete Tweet

Delete one of your registered account's tweets by ID or status URL.

Update Profile

Change your own display name, bio, location or link. A PARTIAL update.

Update Avatar

Replace your own profile picture with a base64-encoded image.

Update Banner

Replace your own profile header image with a base64-encoded image.

Create Draft Tweet

Save a private draft on your own account. Nothing is posted.

Edit Draft Tweet

Replace the contents of an existing draft on your own account.

Delete Draft Tweet

Delete a draft from your own account by ID.

List Draft Tweets

List the drafts saved on your own account.

Schedule Tweet

Schedule a tweet to post publicly at a future instant.

Cancel Scheduled Tweet

Cancel a scheduled tweet before it posts.

List Scheduled Tweets

List the posts queued to publish on your own account.

Was this page helpful?