Skip to content
Docs

X

X is cataloged under Communication & messaging. Publicus ships this entry, so you connect the service by picking it from the catalog rather than describing its API yourself. The vendor’s own documentation is at https://docs.x.com/overview.

Auth system Type
X app-only Bearer Token API key
X OAuth 2.0 (authorization code with PKCE) OAuth 2.0

Each linked auth system has a guide with the steps for getting the credential.

Posts, users, Direct Messages, likes, follows, bookmarks, Lists, Spaces and media on X. Paid: every request draws on pay-per-usage credits bought in the X Developer Console, priced per resource read or per write, and requests are refused once the balance or the spending limit runs out.

Capability What it covers
read_posts Look up posts, search recent posts, and read user timelines, mentions and the home timeline, including posts from protected accounts the user can see. Operations: GET /2/tweets, GET /2/tweets/{id}, GET /2/tweets/search/recent, GET /2/users/{id}/tweets, GET /2/users/{id}/mentions, GET /2/users/{id}/timelines/reverse_chronological.
write_posts Publish and delete posts and reposts as the user. Operations: POST /2/tweets, DELETE /2/tweets/{id}, POST /2/users/{id}/retweets, DELETE /2/users/{id}/retweets/{source_tweet_id}.
upload_media Upload images and video to attach to posts. Operations: POST /2/media/upload and the initialize, append and finalize steps for chunked uploads, POST /2/media/metadata.
moderate_replies Hide and unhide replies to the user’s posts. Operation: PUT /2/tweets/{id}/hidden.
read_users Look up the signed-in user and other accounts by ID or username, including protected accounts the user can see. Operations: GET /2/users/me, GET /2/users, GET /2/users/{id}, GET /2/users/by, GET /2/users/by/username/{username}.
read_direct_messages Read the user’s Direct Message events and conversations. Operations: GET /2/dm_events, GET /2/dm_events/{event_id}, GET /2/dm_conversations/{id}/dm_events, GET /2/dm_conversations/with/{participant_id}/dm_events.
send_direct_messages Start conversations, send Direct Messages and delete the user’s own DM events. Operations: POST /2/dm_conversations, POST /2/dm_conversations/with/{participant_id}/messages, POST /2/dm_conversations/{dm_conversation_id}/messages, DELETE /2/dm_events/{event_id}.
read_likes See who liked a post and which posts a user liked. Operations: GET /2/tweets/{id}/liking_users, GET /2/users/{id}/liked_tweets.
manage_likes Like and unlike posts as the user. Operations: POST /2/users/{id}/likes, DELETE /2/users/{id}/likes/{tweet_id}.
read_follows List the accounts a user follows and the accounts following them. Operations: GET /2/users/{id}/following, GET /2/users/{id}/followers.
manage_follows Follow and unfollow accounts as the user. Operations: POST /2/users/{id}/following, DELETE /2/users/{source_user_id}/following/{target_user_id}.
read_bookmarks Read the user’s bookmarked posts. Operation: GET /2/users/{id}/bookmarks.
manage_bookmarks Bookmark posts and remove bookmarks as the user. Operations: POST /2/users/{id}/bookmarks, DELETE /2/users/{id}/bookmarks/{tweet_id}.
read_lists Read Lists, their posts, members and followers, including private Lists the user owns or belongs to. Operations: GET /2/lists/{id}, GET /2/lists/{id}/tweets, GET /2/lists/{id}/members, GET /2/lists/{id}/followers, GET /2/users/{id}/owned_lists, GET /2/users/{id}/list_memberships, GET /2/users/{id}/followed_lists.
manage_lists Create, update and delete the user’s Lists and add or remove their members. Operations: POST /2/lists, PUT /2/lists/{id}, DELETE /2/lists/{id}, POST /2/lists/{id}/members, DELETE /2/lists/{id}/members/{user_id}.
read_spaces Look up and search Spaces, including Spaces by creator and ticket buyers. Operations: GET /2/spaces, GET /2/spaces/{id}, GET /2/spaces/by/creator_ids, GET /2/spaces/search, GET /2/spaces/{id}/buyers.
read_public_data Read public data as the app itself, with no user: look up posts and users, search recent posts, read user timelines, follower and following lists, Lists and their posts and members, who reposted or quoted a post, and Spaces. It cannot post, read or send Direct Messages, search for users, or reach protected accounts.