We can't find the internet
Attempting to reconnect
Something went wrong!
Hang in there while we get back on track
X (Twitter)
X (Twitter) API v2 for publishing posts, deleting posts, and reading user timelines
Active
Verified
Capabilities (4)
Delete Post
Delete a post owned by the authenticated user.
delete_post(id) -> {data: {deleted}}
Destructive
Required scopes:
tweet.read
tweet.write
users.read
Get Authenticated User
Get the authenticated user's profile (id, name, username). The id is needed for timeline lookups.
get_me() -> {data: {id, name, username}}
Required scopes:
tweet.read
users.read
Get User Posts
Get recent posts from a user's timeline by user id.
get_user_posts(id, max_results?, pagination_token?) -> {data: Post[]}
Required scopes:
tweet.read
users.read
Create Post
Publish a new post (tweet) on behalf of the authenticated user. Supports replies and quote posts.
create_post(text, in_reply_to_tweet_id?, quote_tweet_id?) -> {data: {id, text}}
Required scopes:
tweet.read
tweet.write
users.read
Links
Authentication
-
Oauth2_authorization_code (Primary)