Open Connector
All tools

X (Twitter)

Connect to X (Twitter) to read and post tweets and read user data.

twitterv1.0.0165 tools

Authentication

MethodKindStatusDetails
OAuth 2.0oauth2available

Call a tool

import { createClient } from "@open-connector/sdk";const oc = createClient({  baseUrl: "https://api.openconnector.dev",  apiKey: process.env.OPEN_CONNECTOR_API_KEY!,});const result = await oc.executeTool({  slug: "TWITTER_ACTIVITY_STREAM",  connectedAccountId: "conn_...",  arguments: { /* match this tool's input schema */ },});
import Composio from "@composio/client";const composio = new Composio({  baseURL: "https://api.openconnector.dev/composio",  apiKey: process.env.OPEN_CONNECTOR_API_KEY!,});const result = await composio.tools.execute("TWITTER_ACTIVITY_STREAM", {  connected_account_id: "conn_...",  arguments: { /* match this tool's input schema */ },});
oc tools execute TWITTER_ACTIVITY_STREAM --data '{ }'

Tool catalog

Available tools

165 callable operations

Activity StreamTWITTER_ACTIVITY_STREAMStream of X Activities

Stream of X Activities

Authentication

Connected account required

Tags

ActivityStream
Add members to a Chat group conversationTWITTER_ADD_CHAT_GROUP_MEMBERSAdds one or more members to an existing encrypted Chat group conversation, rotating the conversation key.

Adds one or more members to an existing encrypted Chat group conversation, rotating the conversation key.

Authentication

Connected account required

Scopes

dm.writetweet.readusers.read

Tags

Chat
Add Conversation KeysTWITTER_ADD_CONVERSATION_KEYSAdds (initializes or rotates) the encryption keys for a Chat conversation. Call this before sending messages in a new 1:1 conversation, and again with a newer key version to rotate the conversation key. For 1:1 conversations, provide the recipient's user ID as the conversation_id. The server constructs the canonical conversation ID from the authenticated user and recipient. The request body must contain the conversation key version and participant keys (the conversation key encrypted for each participant using their public key). **Workflow (new 1:1 conversation):** 1. Generate a conversation key using the SDK 2. Encrypt the key for both participants using their public keys 3. Call this endpoint to register the keys 4. Send messages using `POST /chat/conversations/{id}/messages` To rotate the keys of an existing conversation, repeat the same call with a newer conversation key version. **Authentication:** - Requires OAuth 1.0a User Context or OAuth 2.0 User Context - Required scopes: `tweet.read`, `users.read`, `dm.write`

Adds (initializes or rotates) the encryption keys for a Chat conversation. Call this before sending messages in a new 1:1 conversation, and again with a newer key version to rotate the conversation key. For 1:1 conversations, provide the recipient's user ID as the conversation_id. The server constructs the canonical conversation ID from the authenticated user and recipient. The request body must contain the conversation key version and participant keys (the conversation key encrypted for each participant using their public key). **Workflow (new 1:1 conversation):** 1. Generate a conversation key using the SDK 2. Encrypt the key for both participants using their public keys 3. Call this endpoint to register the keys 4. Send messages using `POST /chat/conversations/{id}/messages` To rotate the keys of an existing conversation, repeat the same call with a newer conversation key version. **Authentication:** - Requires OAuth 1.0a User Context or OAuth 2.0 User Context - Required scopes: `tweet.read`, `users.read`, `dm.write`

Authentication

Connected account required

Scopes

dm.writetweet.readusers.read

Tags

Chat
Add List memberTWITTER_ADD_LISTS_MEMBERAdds a User to a specific List by its ID.

Adds a User to a specific List by its ID.

Authentication

Connected account required

Scopes

list.writetweet.readusers.read

Tags

Lists
Add public keyTWITTER_ADD_USER_PUBLIC_KEYRegisters a user's public key for X Chat encryption.

Registers a user's public key for X Chat encryption.

Authentication

Connected account required

Scopes

dm.writetweet.readusers.read

Tags

Chat
Append Media uploadTWITTER_APPEND_MEDIA_UPLOADAppends data to a Media upload request.

Appends data to a Media upload request.

Authentication

Connected account required

Scopes

media.write

Tags

Media
Create draft ArticleTWITTER_ARTICLE_CREATE_DRAFTCreates a new Article draft that can later be published.

Creates a new Article draft that can later be published.

Authentication

Connected account required

Scopes

tweet.write

Tags

Articles
Publish ArticleTWITTER_ARTICLE_PUBLISHPublishes a draft Article, making it publicly visible.

Publishes a draft Article, making it publicly visible.

Authentication

Connected account required

Scopes

tweet.write

Tags

Articles
Block DMsTWITTER_BLOCK_USERS_DMSBlocks direct messages to or from a specific User by their ID for the authenticated user.

Blocks direct messages to or from a specific User by their ID for the authenticated user.

Authentication

Connected account required

Scopes

dm.writetweet.readusers.read

Tags

Users
Download Chat MediaTWITTER_CHAT_MEDIA_DOWNLOADDownloads encrypted media bytes from an XChat conversation. The response body contains raw binary bytes. For 1:1 conversations, provide the recipient's user ID; the server constructs the canonical conversation ID from the authenticated user and recipient.

Downloads encrypted media bytes from an XChat conversation. The response body contains raw binary bytes. For 1:1 conversations, provide the recipient's user ID; the server constructs the canonical conversation ID from the authenticated user and recipient.

Authentication

Connected account required

Scopes

media.write

Tags

Chat
Append Chat Media UploadTWITTER_CHAT_MEDIA_UPLOAD_APPENDAppends media data to an XChat upload session.

Appends media data to an XChat upload session.

Authentication

Connected account required

Scopes

media.write

Tags

Chat
Finalize Chat Media UploadTWITTER_CHAT_MEDIA_UPLOAD_FINALIZEFinalizes an XChat media upload session.

Finalizes an XChat media upload session.

Authentication

Connected account required

Scopes

media.write

Tags

Chat
Initialize Chat Media UploadTWITTER_CHAT_MEDIA_UPLOAD_INITIALIZEInitializes an XChat media upload session.

Initializes an XChat media upload session.

Authentication

Connected account required

Scopes

media.write

Tags

Chat
Create subscriptionTWITTER_CREATE_ACCOUNT_ACTIVITY_SUBSCRIPTIONCreates an Account Activity subscription for the user and the given webhook.

Creates an Account Activity subscription for the user and the given webhook.

Authentication

Connected account required

Scopes

dm.readdm.writetweet.readusers.read

Tags

Account Activity
Create X activity subscriptionTWITTER_CREATE_ACTIVITY_SUBSCRIPTIONCreates a subscription for an X activity event

Creates a subscription for an X activity event

Authentication

Connected account required

Scopes

dm.readlike.readtweet.read

Tags

ActivityStream
Create Chat Group ConversationTWITTER_CREATE_CHAT_CONVERSATIONCreates a new encrypted Chat group conversation on behalf of the authenticated user.

Creates a new encrypted Chat group conversation on behalf of the authenticated user.

Authentication

Connected account required

Scopes

dm.writetweet.readusers.read

Tags

Chat
Create a Community NoteTWITTER_CREATE_COMMUNITY_NOTESCreates a community note endpoint for LLM use case.

Creates a community note endpoint for LLM use case.

Authentication

Connected account required

Scopes

tweet.write

Tags

Community Notes
Create Compliance JobTWITTER_CREATE_COMPLIANCE_JOBSCreates a new Compliance Job for the specified job type.

Creates a new Compliance Job for the specified job type.

Authentication

Connected account required

Tags

Compliance
Create DM message by conversation IDTWITTER_CREATE_DIRECT_MESSAGES_BY_CONVERSATION_IDSends a new direct message to a specific conversation by its ID.

Sends a new direct message to a specific conversation by its ID.

Authentication

Connected account required

Scopes

dm.writetweet.readusers.read

Tags

Direct Messages
Create DM message by participant IDTWITTER_CREATE_DIRECT_MESSAGES_BY_PARTICIPANT_IDSends a new direct message to a specific participant by their ID.

Sends a new direct message to a specific participant by their ID.

Authentication

Connected account required

Scopes

dm.writetweet.readusers.read

Tags

Direct Messages
Create DM conversationTWITTER_CREATE_DIRECT_MESSAGES_CONVERSATIONInitiates a new direct message conversation with specified participants.

Initiates a new direct message conversation with specified participants.

Authentication

Connected account required

Scopes

dm.writetweet.readusers.read

Tags

Direct Messages
Create ListTWITTER_CREATE_LISTSCreates a new List for the authenticated user.

Creates a new List for the authenticated user.

Authentication

Connected account required

Scopes

list.readlist.writetweet.readusers.read

Tags

Lists
Create Media metadataTWITTER_CREATE_MEDIA_METADATACreates metadata for a Media file.

Creates metadata for a Media file.

Authentication

Connected account required

Scopes

media.write

Tags

Media
Create Media subtitlesTWITTER_CREATE_MEDIA_SUBTITLESCreates subtitles for a specific Media file.

Creates subtitles for a specific Media file.

Authentication

Connected account required

Scopes

media.write

Tags

Media
Create or Edit PostTWITTER_CREATE_POSTSCreates a new Post for the authenticated user, or edits an existing Post when edit_options are provided. Supports paid partnership disclosure via the paid_partnership field.

Creates a new Post for the authenticated user, or edits an existing Post when edit_options are provided. Supports paid partnership disclosure via the paid_partnership field.

Authentication

Connected account required

Scopes

tweet.readtweet.writeusers.read

Tags

Tweets
Create BookmarkTWITTER_CREATE_USERS_BOOKMARKAdds a post to the authenticated user’s bookmarks.

Adds a post to the authenticated user’s bookmarks.

Authentication

Connected account required

Scopes

bookmark.writetweet.readusers.read

Tags

UsersBookmarks
Create replay job for webhookTWITTER_CREATE_WEBHOOK_REPLAY_JOBCreates a replay job to retrieve events from up to the past 24 hours for all events delivered or attempted to be delivered to the webhook.

Creates a replay job to retrieve events from up to the past 24 hours for all events delivered or attempted to be delivered to the webhook.

Authentication

Connected account required

Tags

Webhooks
Create webhookTWITTER_CREATE_WEBHOOKSCreates a new webhook configuration.

Creates a new webhook configuration.

Authentication

Connected account required

Tags

Webhooks
Create stream linkTWITTER_CREATE_WEBHOOKS_STREAM_LINKCreates a link to deliver FilteredStream events to the given webhook.

Creates a link to deliver FilteredStream events to the given webhook.

Authentication

Connected account required

Tags

WebhooksStream
Delete subscriptionTWITTER_DELETE_ACCOUNT_ACTIVITY_SUBSCRIPTIONDeletes an Account Activity subscription for the given webhook and user ID.

Deletes an Account Activity subscription for the given webhook and user ID.

Authentication

Connected account required

Tags

Account Activity
Deletes X activity subscriptionTWITTER_DELETE_ACTIVITY_SUBSCRIPTIONDeletes a subscription for an X activity event

Deletes a subscription for an X activity event

Authentication

Connected account required

Tags

Activity
Delete X activity subscriptions by IDsTWITTER_DELETE_ACTIVITY_SUBSCRIPTIONS_BY_IDSDeletes multiple subscriptions for X activity events by their IDs

Deletes multiple subscriptions for X activity events by their IDs

Authentication

Connected account required

Tags

Activity
Terminate all connectionsTWITTER_DELETE_ALL_CONNECTIONSTerminates all active streaming connections for the authenticated application.

Terminates all active streaming connections for the authenticated application.

Authentication

Connected account required

Tags

Connections
Delete a Community NoteTWITTER_DELETE_COMMUNITY_NOTESDeletes a community note.

Deletes a community note.

Authentication

Connected account required

Scopes

tweet.write

Tags

Community Notes
Terminate connections by endpointTWITTER_DELETE_CONNECTIONS_BY_ENDPOINTTerminates all streaming connections for a specific endpoint ID for the authenticated application.

Terminates all streaming connections for a specific endpoint ID for the authenticated application.

Authentication

Connected account required

Tags

Connections
Terminate multiple connectionsTWITTER_DELETE_CONNECTIONS_BY_UUIDSTerminates multiple streaming connections by their UUIDs for the authenticated application.

Terminates multiple streaming connections by their UUIDs for the authenticated application.

Authentication

Connected account required

Tags

Connections
Delete DM eventTWITTER_DELETE_DIRECT_MESSAGES_EVENTSDeletes a specific direct message event by its ID, if owned by the authenticated user.

Deletes a specific direct message event by its ID, if owned by the authenticated user.

Authentication

Connected account required

Scopes

dm.readdm.write

Tags

Direct Messages
Delete ListTWITTER_DELETE_LISTSDeletes a specific List owned by the authenticated user by its ID.

Deletes a specific List owned by the authenticated user by its ID.

Authentication

Connected account required

Scopes

list.writetweet.readusers.read

Tags

Lists
Delete Media subtitlesTWITTER_DELETE_MEDIA_SUBTITLESDeletes subtitles for a specific Media file.

Deletes subtitles for a specific Media file.

Authentication

Connected account required

Scopes

media.write

Tags

Media
Delete PostTWITTER_DELETE_POSTSDeletes a specific Post by its ID, if owned by the authenticated user.

Deletes a specific Post by its ID, if owned by the authenticated user.

Authentication

Connected account required

Scopes

tweet.readtweet.writeusers.read

Tags

Tweets
Delete BookmarkTWITTER_DELETE_USERS_BOOKMARKRemoves a Post from the authenticated user’s Bookmarks by its ID.

Removes a Post from the authenticated user’s Bookmarks by its ID.

Authentication

Connected account required

Scopes

bookmark.writetweet.readusers.read

Tags

UsersBookmarks
Delete webhookTWITTER_DELETE_WEBHOOKSDeletes an existing webhook configuration.

Deletes an existing webhook configuration.

Authentication

Connected account required

Tags

Webhooks
Delete stream linkTWITTER_DELETE_WEBHOOKS_STREAM_LINKDeletes a link from FilteredStream events to the given webhook.

Deletes a link from FilteredStream events to the given webhook.

Authentication

Connected account required

Tags

WebhooksStream
Download DM MediaTWITTER_DM_CONVERSATIONS_MEDIA_DOWNLOADDownloads media attached to a legacy Direct Message. The requesting user must be a participant in the conversation containing the specified DM event. The response body contains raw binary bytes.

Downloads media attached to a legacy Direct Message. The requesting user must be a participant in the conversation containing the specified DM event. The response body contains raw binary bytes.

Authentication

Connected account required

Scopes

dm.read

Tags

Direct Messages
Evaluate a Community NoteTWITTER_EVALUATE_COMMUNITY_NOTESEndpoint to evaluate a community note.

Endpoint to evaluate a community note.

Authentication

Connected account required

Scopes

tweet.write

Tags

Community Notes
Finalize Media uploadTWITTER_FINALIZE_MEDIA_UPLOADFinalizes a Media upload request.

Finalizes a Media upload request.

Authentication

Connected account required

Scopes

media.write

Tags

Media
Follow ListTWITTER_FOLLOW_LISTCauses the authenticated user to follow a specific List by its ID.

Causes the authenticated user to follow a specific List by its ID.

Authentication

Connected account required

Scopes

list.writetweet.readusers.read

Tags

UsersLists
Follow UserTWITTER_FOLLOW_USERCauses the authenticated user to follow a specific user by their ID.

Causes the authenticated user to follow a specific user by their ID.

Authentication

Connected account required

Scopes

follows.writetweet.readusers.read

Tags

Users
Get subscription countTWITTER_GET_ACCOUNT_ACTIVITY_SUBSCRIPTION_COUNTRetrieves a count of currently active Account Activity subscriptions.

Retrieves a count of currently active Account Activity subscriptions.

Authentication

Connected account required

Tags

Account Activity
Get subscriptionsTWITTER_GET_ACCOUNT_ACTIVITY_SUBSCRIPTIONSRetrieves a list of all active subscriptions for a given webhook.

Retrieves a list of all active subscriptions for a given webhook.

Authentication

Connected account required

Tags

Account Activity
Get X activity subscriptionsTWITTER_GET_ACTIVITY_SUBSCRIPTIONSGet a list of active subscriptions for XAA

Get a list of active subscriptions for XAA

Authentication

Connected account required

Scopes

like.readtweet.read

Tags

Activity
Get Chat ConversationTWITTER_GET_CHAT_CONVERSATIONReturns metadata for a Chat conversation including type, muted status, and group details. Use chat_conversation.fields to select which fields are returned. Use expansions to hydrate member, admin, or participant user objects. Use user.fields to control which profile fields are returned for expanded users.

Returns metadata for a Chat conversation including type, muted status, and group details. Use chat_conversation.fields to select which fields are returned. Use expansions to hydrate member, admin, or participant user objects. Use user.fields to control which profile fields are returned for expanded users.

Authentication

Connected account required

Scopes

dm.readtweet.readusers.read

Tags

Chat
Get Chat Conversation EventsTWITTER_GET_CHAT_CONVERSATION_EVENTSRetrieves messages and key change events for a specific Chat conversation with pagination support. For 1:1 conversations, provide the recipient's user ID; the server constructs the canonical conversation ID from the authenticated user and recipient.

Retrieves messages and key change events for a specific Chat conversation with pagination support. For 1:1 conversations, provide the recipient's user ID; the server constructs the canonical conversation ID from the authenticated user and recipient.

Authentication

Connected account required

Scopes

dm.readtweet.readusers.read

Tags

Chat
Get Chat ConversationsTWITTER_GET_CHAT_CONVERSATIONSRetrieves a list of Chat conversations for the authenticated user's inbox.

Retrieves a list of Chat conversations for the authenticated user's inbox.

Authentication

Connected account required

Scopes

dm.readusers.read

Tags

Chat
Get Community by IDTWITTER_GET_COMMUNITIES_BY_IDRetrieves details of a specific Community by its ID.

Retrieves details of a specific Community by its ID.

Authentication

Connected account required

Scopes

list.readtweet.readusers.read

Tags

Communities
Get Compliance JobsTWITTER_GET_COMPLIANCE_JOBSRetrieves a list of Compliance Jobs filtered by job type and optional status.

Retrieves a list of Compliance Jobs filtered by job type and optional status.

Authentication

Connected account required

Tags

Compliance
Get Compliance Job by IDTWITTER_GET_COMPLIANCE_JOBS_BY_IDRetrieves details of a specific Compliance Job by its ID.

Retrieves details of a specific Compliance Job by its ID.

Authentication

Connected account required

Tags

Compliance
Get Connection HistoryTWITTER_GET_CONNECTION_HISTORYReturns active and historical streaming connections with disconnect reasons for the authenticated application.

Returns active and historical streaming connections with disconnect reasons for the authenticated application.

Authentication

Connected account required

Tags

Connections
Get DM eventsTWITTER_GET_DIRECT_MESSAGES_EVENTSRetrieves a list of recent direct message events across all conversations.

Retrieves a list of recent direct message events across all conversations.

Authentication

Connected account required

Scopes

dm.readtweet.readusers.read

Tags

Direct Messages
Get DM events for a DM conversationTWITTER_GET_DIRECT_MESSAGES_EVENTS_BY_CONVERSATION_IDRetrieves direct message events for a specific conversation.

Retrieves direct message events for a specific conversation.

Authentication

Connected account required

Scopes

dm.readtweet.readusers.read

Tags

Direct Messages
Get DM event by IDTWITTER_GET_DIRECT_MESSAGES_EVENTS_BY_IDRetrieves details of a specific direct message event by its ID.

Retrieves details of a specific direct message event by its ID.

Authentication

Connected account required

Scopes

dm.readtweet.readusers.read

Tags

Direct Messages
Get DM events for a DM conversationTWITTER_GET_DIRECT_MESSAGES_EVENTS_BY_PARTICIPANT_IDRetrieves direct message events for a specific conversation.

Retrieves direct message events for a specific conversation.

Authentication

Connected account required

Scopes

dm.readtweet.readusers.read

Tags

Direct Messages
Get historical Post insightsTWITTER_GET_INSIGHTS_HISTORICALRetrieves historical engagement metrics for specified Posts within a defined time range.

Retrieves historical engagement metrics for specified Posts within a defined time range.

Authentication

Connected account required

Scopes

tweet.read

Tags

Tweets
Get 28-hour Post insightsTWITTER_GET_INSIGHTS28_HRRetrieves engagement metrics for specified Posts over the last 28 hours.

Retrieves engagement metrics for specified Posts over the last 28 hours.

Authentication

Connected account required

Scopes

tweet.read

Tags

Tweets
Get List by IDTWITTER_GET_LISTS_BY_IDRetrieves details of a specific List by its ID.

Retrieves details of a specific List by its ID.

Authentication

Connected account required

Scopes

list.readtweet.readusers.read

Tags

Lists
Get List followersTWITTER_GET_LISTS_FOLLOWERSRetrieves a list of Users who follow a specific List by its ID.

Retrieves a list of Users who follow a specific List by its ID.

Authentication

Connected account required

Scopes

list.readtweet.readusers.read

Tags

ListsUsers
Get List membersTWITTER_GET_LISTS_MEMBERSRetrieves a list of Users who are members of a specific List by its ID.

Retrieves a list of Users who are members of a specific List by its ID.

Authentication

Connected account required

Scopes

list.readtweet.readusers.read

Tags

ListsUsers
Get List PostsTWITTER_GET_LISTS_POSTSRetrieves a list of Posts associated with a specific List by its ID.

Retrieves a list of Posts associated with a specific List by its ID.

Authentication

Connected account required

Scopes

list.readtweet.readusers.read

Tags

ListsTweets
Get Media analyticsTWITTER_GET_MEDIA_ANALYTICSRetrieves analytics data for media.

Retrieves analytics data for media.

Authentication

Connected account required

Scopes

tweet.read

Tags

Media
Get Media by media keyTWITTER_GET_MEDIA_BY_MEDIA_KEYRetrieves details of a specific Media file by its media key.

Retrieves details of a specific Media file by its media key.

Authentication

Connected account required

Scopes

tweet.read

Tags

Media
Get Media by media keysTWITTER_GET_MEDIA_BY_MEDIA_KEYSRetrieves details of Media files by their media keys.

Retrieves details of Media files by their media keys.

Authentication

Connected account required

Scopes

tweet.read

Tags

Media
Get Media upload statusTWITTER_GET_MEDIA_UPLOAD_STATUSRetrieves the status of a Media upload by its ID.

Retrieves the status of a Media upload by its ID.

Authentication

Connected account required

Scopes

media.write

Tags

Media
Get news stories by IDTWITTER_GET_NEWSRetrieves news story by its ID.

Retrieves news story by its ID.

Authentication

Connected account required

Scopes

tweet.readusers.read

Tags

News
Get OpenAPI Spec.TWITTER_GET_OPEN_API_SPECRetrieves the full OpenAPI Specification in JSON format. (See https://github.com/OAI/OpenAPI-Specification/blob/master/README.md)

Retrieves the full OpenAPI Specification in JSON format. (See https://github.com/OAI/OpenAPI-Specification/blob/master/README.md)

Authentication

Connected account required

Tags

General
Get Post analyticsTWITTER_GET_POSTS_ANALYTICSRetrieves analytics data for specified Posts within a defined time range.

Retrieves analytics data for specified Posts within a defined time range.

Authentication

Connected account required

Scopes

tweet.readusers.read

Tags

Tweets
Get Post by IDTWITTER_GET_POSTS_BY_IDRetrieves details of a specific Post by its ID.

Retrieves details of a specific Post by its ID.

Authentication

Connected account required

Scopes

tweet.readusers.read

Tags

Tweets
Get Posts by IDsTWITTER_GET_POSTS_BY_IDSRetrieves details of multiple Posts by their IDs.

Retrieves details of multiple Posts by their IDs.

Authentication

Connected account required

Scopes

tweet.readusers.read

Tags

Tweets
Get count of all PostsTWITTER_GET_POSTS_COUNTS_ALLRetrieves the count of Posts matching a search query from the full archive.

Retrieves the count of Posts matching a search query from the full archive.

Authentication

Connected account required

Tags

Tweets
Get count of recent PostsTWITTER_GET_POSTS_COUNTS_RECENTRetrieves the count of Posts from the last 7 days matching a search query.

Retrieves the count of Posts from the last 7 days matching a search query.

Authentication

Connected account required

Tags

Tweets
Get Liking UsersTWITTER_GET_POSTS_LIKING_USERSRetrieves a list of Users who liked a specific Post by its ID.

Retrieves a list of Users who liked a specific Post by its ID.

Authentication

Connected account required

Scopes

like.readtweet.readusers.read

Tags

TweetsUsers
Get Quoted PostsTWITTER_GET_POSTS_QUOTED_POSTSRetrieves a list of Posts that quote a specific Post by its ID.

Retrieves a list of Posts that quote a specific Post by its ID.

Authentication

Connected account required

Scopes

tweet.readusers.read

Tags

Tweets
Get Reposted byTWITTER_GET_POSTS_REPOSTED_BYRetrieves a list of Users who reposted a specific Post by its ID.

Retrieves a list of Users who reposted a specific Post by its ID.

Authentication

Connected account required

Scopes

tweet.readusers.read

Tags

TweetsUsers
Get RepostsTWITTER_GET_POSTS_REPOSTSRetrieves a list of Posts that repost a specific Post by its ID.

Retrieves a list of Posts that repost a specific Post by its ID.

Authentication

Connected account required

Scopes

tweet.readusers.read

Tags

Tweets
Get stream rule countsTWITTER_GET_RULE_COUNTSRetrieves the count of rules in the active rule set for the filtered stream.

Retrieves the count of rules in the active rule set for the filtered stream.

Authentication

Connected account required

Tags

StreamTweets
Get stream rulesTWITTER_GET_RULESRetrieves the active rule set or a subset of rules for the filtered stream.

Retrieves the active rule set or a subset of rules for the filtered stream.

Authentication

Connected account required

Tags

StreamTweets
Get Space ticket buyersTWITTER_GET_SPACES_BUYERSRetrieves a list of Users who purchased tickets to a specific Space by its ID.

Retrieves a list of Users who purchased tickets to a specific Space by its ID.

Authentication

Connected account required

Scopes

space.readtweet.readusers.read

Tags

SpacesTweets
Get Spaces by creator IDsTWITTER_GET_SPACES_BY_CREATOR_IDSRetrieves details of Spaces created by specified User IDs.

Retrieves details of Spaces created by specified User IDs.

Authentication

Connected account required

Scopes

space.readtweet.readusers.read

Tags

Spaces
Get space by IDTWITTER_GET_SPACES_BY_IDRetrieves details of a specific space by its ID.

Retrieves details of a specific space by its ID.

Authentication

Connected account required

Scopes

space.readtweet.readusers.read

Tags

Spaces
Get Spaces by IDsTWITTER_GET_SPACES_BY_IDSRetrieves details of multiple Spaces by their IDs.

Retrieves details of multiple Spaces by their IDs.

Authentication

Connected account required

Scopes

space.readtweet.readusers.read

Tags

Spaces
Get Space PostsTWITTER_GET_SPACES_POSTSRetrieves a list of Posts shared in a specific Space by its ID.

Retrieves a list of Posts shared in a specific Space by its ID.

Authentication

Connected account required

Scopes

space.readtweet.readusers.read

Tags

SpacesTweets
Get Trends by WOEIDTWITTER_GET_TRENDS_BY_WOEIDRetrieves trending topics for a specific location identified by its WOEID.

Retrieves trending topics for a specific location identified by its WOEID.

Authentication

Connected account required

Tags

Trends
Get personalized TrendsTWITTER_GET_TRENDS_PERSONALIZED_TRENDSRetrieves personalized trending topics for the authenticated user.

Retrieves personalized trending topics for the authenticated user.

Authentication

Connected account required

Scopes

tweet.readusers.read

Tags

Trends
Get usageTWITTER_GET_USAGERetrieves usage statistics for Posts over a specified number of days.

Retrieves usage statistics for Posts over a specified number of days.

Authentication

Connected account required

Tags

Usage
Get affiliatesTWITTER_GET_USERS_AFFILIATESRetrieves a list of Users who are affiliated with a specific organization User by their ID.

Retrieves a list of Users who are affiliated with a specific organization User by their ID.

Authentication

Connected account required

Scopes

tweet.readusers.read

Tags

Users
Get blockingTWITTER_GET_USERS_BLOCKINGRetrieves a list of Users blocked by the specified User ID.

Retrieves a list of Users blocked by the specified User ID.

Authentication

Connected account required

Scopes

block.readtweet.readusers.read

Tags

Users
Get Bookmark foldersTWITTER_GET_USERS_BOOKMARK_FOLDERSRetrieves a list of Bookmark folders created by the authenticated user.

Retrieves a list of Bookmark folders created by the authenticated user.

Authentication

Connected account required

Scopes

bookmark.readusers.read

Tags

UsersBookmarks
Get BookmarksTWITTER_GET_USERS_BOOKMARKSRetrieves a list of Posts bookmarked by the authenticated user.

Retrieves a list of Posts bookmarked by the authenticated user.

Authentication

Connected account required

Scopes

bookmark.readtweet.readusers.read

Tags

UsersBookmarks
Get Bookmarks by folder IDTWITTER_GET_USERS_BOOKMARKS_BY_FOLDER_IDRetrieves Posts in a specific Bookmark folder by its ID for the authenticated user.

Retrieves Posts in a specific Bookmark folder by its ID for the authenticated user.

Authentication

Connected account required

Scopes

bookmark.readtweet.readusers.read

Tags

UsersBookmarks
Get User by IDTWITTER_GET_USERS_BY_IDRetrieves details of a specific User by their ID.

Retrieves details of a specific User by their ID.

Authentication

Connected account required

Scopes

tweet.readusers.read

Tags

Users
Get Users by IDsTWITTER_GET_USERS_BY_IDSRetrieves details of multiple Users by their IDs.

Retrieves details of multiple Users by their IDs.

Authentication

Connected account required

Scopes

tweet.readusers.read

Tags

Users
Get User by usernameTWITTER_GET_USERS_BY_USERNAMERetrieves details of a specific User by their username.

Retrieves details of a specific User by their username.

Authentication

Connected account required

Scopes

tweet.readusers.read

Tags

Users
Get Users by usernamesTWITTER_GET_USERS_BY_USERNAMESRetrieves details of multiple Users by their usernames.

Retrieves details of multiple Users by their usernames.

Authentication

Connected account required

Scopes

tweet.readusers.read

Tags

Users
Get followed ListsTWITTER_GET_USERS_FOLLOWED_LISTSRetrieves a list of Lists followed by a specific User by their ID.

Retrieves a list of Lists followed by a specific User by their ID.

Authentication

Connected account required

Scopes

list.readtweet.readusers.read

Tags

UsersLists
Get followersTWITTER_GET_USERS_FOLLOWERSRetrieves a list of Users who follow a specific User by their ID.

Retrieves a list of Users who follow a specific User by their ID.

Authentication

Connected account required

Scopes

follows.readtweet.readusers.read

Tags

Users
Get followingTWITTER_GET_USERS_FOLLOWINGRetrieves a list of Users followed by a specific User by their ID.

Retrieves a list of Users followed by a specific User by their ID.

Authentication

Connected account required

Scopes

follows.readtweet.readusers.read

Tags

Users
Get liked PostsTWITTER_GET_USERS_LIKED_POSTSRetrieves a list of Posts liked by a specific User by their ID.

Retrieves a list of Posts liked by a specific User by their ID.

Authentication

Connected account required

Scopes

like.readtweet.readusers.read

Tags

UsersTweets
Get List membershipsTWITTER_GET_USERS_LIST_MEMBERSHIPSRetrieves a list of Lists that a specific User is a member of by their ID.

Retrieves a list of Lists that a specific User is a member of by their ID.

Authentication

Connected account required

Scopes

list.readtweet.readusers.read

Tags

UsersLists
Get my UserTWITTER_GET_USERS_MERetrieves details of the authenticated user.

Retrieves details of the authenticated user.

Authentication

Connected account required

Scopes

tweet.readusers.read

Tags

Users
Get mentionsTWITTER_GET_USERS_MENTIONSRetrieves a list of Posts that mention a specific User by their ID.

Retrieves a list of Posts that mention a specific User by their ID.

Authentication

Connected account required

Scopes

tweet.readusers.read

Tags

UsersTweets
Get mutingTWITTER_GET_USERS_MUTINGRetrieves a list of Users muted by the authenticated user.

Retrieves a list of Users muted by the authenticated user.

Authentication

Connected account required

Scopes

mute.readtweet.readusers.read

Tags

Users
Get owned ListsTWITTER_GET_USERS_OWNED_LISTSRetrieves a list of Lists owned by a specific User by their ID.

Retrieves a list of Lists owned by a specific User by their ID.

Authentication

Connected account required

Scopes

list.readtweet.readusers.read

Tags

UsersLists
Get pinned ListsTWITTER_GET_USERS_PINNED_LISTSRetrieves a list of Lists pinned by the authenticated user.

Retrieves a list of Lists pinned by the authenticated user.

Authentication

Connected account required

Scopes

list.readtweet.readusers.read

Tags

UsersLists
Get PostsTWITTER_GET_USERS_POSTSRetrieves a list of posts authored by a specific User by their ID.

Retrieves a list of posts authored by a specific User by their ID.

Authentication

Connected account required

Scopes

tweet.readusers.read

Tags

UsersTweets
Get user public keysTWITTER_GET_USERS_PUBLIC_KEYReturns the public keys and Juicebox configuration for the specified user.

Returns the public keys and Juicebox configuration for the specified user.

Authentication

Connected account required

Scopes

dm.readtweet.readusers.read

Tags

UsersChat
Get public keys for multiple usersTWITTER_GET_USERS_PUBLIC_KEYSReturns the public keys and Juicebox configuration for the specified users.

Returns the public keys and Juicebox configuration for the specified users.

Authentication

Connected account required

Scopes

dm.readtweet.readusers.read

Tags

UsersChat
Get Reposts of meTWITTER_GET_USERS_REPOSTS_OF_MERetrieves a list of Posts that repost content from the authenticated user.

Retrieves a list of Posts that repost content from the authenticated user.

Authentication

Connected account required

Scopes

timeline.readtweet.read

Tags

Users
Get TimelineTWITTER_GET_USERS_TIMELINERetrieves a reverse chronological list of Posts in the authenticated User’s Timeline.

Retrieves a reverse chronological list of Posts in the authenticated User’s Timeline.

Authentication

Connected account required

Scopes

tweet.readusers.read

Tags

UsersTweets
Get webhookTWITTER_GET_WEBHOOKSGet a list of webhook configs associated with a client app.

Get a list of webhook configs associated with a client app.

Authentication

Connected account required

Tags

Webhooks
Get stream linksTWITTER_GET_WEBHOOKS_STREAM_LINKSGet a list of webhook links associated with a filtered stream ruleset.

Get a list of webhook links associated with a filtered stream ruleset.

Authentication

Connected account required

Tags

WebhooksStream
Hide replyTWITTER_HIDE_POSTS_REPLYHides or unhides a reply to a conversation owned by the authenticated user.

Hides or unhides a reply to a conversation owned by the authenticated user.

Authentication

Connected account required

Scopes

tweet.moderate.writetweet.readusers.read

Tags

Tweets
Initialize Chat GroupTWITTER_INITIALIZE_CHAT_GROUPInitializes a new XChat group conversation and returns a unique conversation ID. This endpoint is the first step in creating a group chat. The returned conversation_id should be used in subsequent calls to POST /chat/conversations/group to fully create and configure the group with members, admins, encryption keys, and other settings. **Workflow:** 1. Call this endpoint to get a `conversation_id` 2. Use that `conversation_id` when calling `POST /chat/conversations/group` to create the group **Authentication:** - Requires OAuth 1.0a User Context or OAuth 2.0 User Context - Required scope: `dm.write`

Initializes a new XChat group conversation and returns a unique conversation ID. This endpoint is the first step in creating a group chat. The returned conversation_id should be used in subsequent calls to POST /chat/conversations/group to fully create and configure the group with members, admins, encryption keys, and other settings. **Workflow:** 1. Call this endpoint to get a `conversation_id` 2. Use that `conversation_id` when calling `POST /chat/conversations/group` to create the group **Authentication:** - Requires OAuth 1.0a User Context or OAuth 2.0 User Context - Required scope: `dm.write`

Authentication

Connected account required

Scopes

dm.write

Tags

Chat
Initialize media uploadTWITTER_INITIALIZE_MEDIA_UPLOADInitializes a media upload.

Initializes a media upload.

Authentication

Connected account required

Scopes

media.write

Tags

Media
Like PostTWITTER_LIKE_POSTCauses the authenticated user to Like a specific Post by its ID.

Causes the authenticated user to Like a specific Post by its ID.

Authentication

Connected account required

Scopes

like.writetweet.readusers.read

Tags

UsersTweets
Mark Conversation as ReadTWITTER_MARK_CHAT_CONVERSATION_READMarks a specific Chat conversation as read on behalf of the authenticated user. For 1:1 conversations, provide the recipient's user ID; the server constructs the canonical conversation ID from the authenticated user and recipient.

Marks a specific Chat conversation as read on behalf of the authenticated user. For 1:1 conversations, provide the recipient's user ID; the server constructs the canonical conversation ID from the authenticated user and recipient.

Authentication

Connected account required

Scopes

dm.writetweet.readusers.read

Tags

Chat
Upload mediaTWITTER_MEDIA_UPLOADUploads a media file for use in posts or other content.

Uploads a media file for use in posts or other content.

Authentication

Connected account required

Scopes

media.write

Tags

Media
Mute UserTWITTER_MUTE_USERCauses the authenticated user to mute a specific User by their ID.

Causes the authenticated user to mute a specific User by their ID.

Authentication

Connected account required

Scopes

mute.writetweet.readusers.read

Tags

Users
Pin ListTWITTER_PIN_LISTCauses the authenticated user to pin a specific List by its ID.

Causes the authenticated user to pin a specific List by its ID.

Authentication

Connected account required

Scopes

list.writetweet.readusers.read

Tags

UsersLists
Remove List memberTWITTER_REMOVE_LISTS_MEMBER_BY_USER_IDRemoves a User from a specific List by its ID and the User’s ID.

Removes a User from a specific List by its ID and the User’s ID.

Authentication

Connected account required

Scopes

list.writetweet.readusers.read

Tags

Lists
Repost PostTWITTER_REPOST_POSTCauses the authenticated user to repost a specific Post by its ID.

Causes the authenticated user to repost a specific Post by its ID.

Authentication

Connected account required

Scopes

tweet.readtweet.writeusers.read

Tags

UsersTweets
Search CommunitiesTWITTER_SEARCH_COMMUNITIESRetrieves a list of Communities matching the specified search query.

Retrieves a list of Communities matching the specified search query.

Authentication

Connected account required

Scopes

tweet.readusers.read

Tags

Communities
Search for Community Notes WrittenTWITTER_SEARCH_COMMUNITY_NOTES_WRITTENReturns all the community notes written by the user.

Returns all the community notes written by the user.

Authentication

Connected account required

Scopes

tweet.read

Tags

Community Notes
Search for Posts Eligible for Community NotesTWITTER_SEARCH_ELIGIBLE_POSTSReturns all the posts that are eligible for community notes.

Returns all the posts that are eligible for community notes.

Authentication

Connected account required

Scopes

tweet.read

Tags

Community Notes
Search NewsTWITTER_SEARCH_NEWSRetrieves a list of News stories matching the specified search query.

Retrieves a list of News stories matching the specified search query.

Authentication

Connected account required

Scopes

tweet.readusers.read

Tags

News
Search all PostsTWITTER_SEARCH_POSTS_ALLRetrieves Posts from the full archive matching a search query.

Retrieves Posts from the full archive matching a search query.

Authentication

Connected account required

Tags

Tweets
Search recent PostsTWITTER_SEARCH_POSTS_RECENTRetrieves Posts from the last 7 days matching a search query.

Retrieves Posts from the last 7 days matching a search query.

Authentication

Connected account required

Scopes

tweet.readusers.read

Tags

Tweets
Search SpacesTWITTER_SEARCH_SPACESRetrieves a list of Spaces matching the specified search query.

Retrieves a list of Spaces matching the specified search query.

Authentication

Connected account required

Scopes

space.readtweet.readusers.read

Tags

Spaces
Search UsersTWITTER_SEARCH_USERSRetrieves a list of Users matching a search query.

Retrieves a list of Users matching a search query.

Authentication

Connected account required

Scopes

tweet.readusers.read

Tags

Users
Send Chat MessageTWITTER_SEND_CHAT_MESSAGESends an encrypted message to a specific Chat conversation. For 1:1 conversations, provide the recipient's user ID; the server constructs the canonical conversation ID from the authenticated user and recipient.

Sends an encrypted message to a specific Chat conversation. For 1:1 conversations, provide the recipient's user ID; the server constructs the canonical conversation ID from the authenticated user and recipient.

Authentication

Connected account required

Scopes

dm.writetweet.readusers.read

Tags

Chat
Send Typing IndicatorTWITTER_SEND_CHAT_TYPING_INDICATORSends a typing indicator to a specific Chat conversation on behalf of the authenticated user. For 1:1 conversations, provide the recipient's user ID; the server constructs the canonical conversation ID from the authenticated user and recipient.

Sends a typing indicator to a specific Chat conversation on behalf of the authenticated user. For 1:1 conversations, provide the recipient's user ID; the server constructs the canonical conversation ID from the authenticated user and recipient.

Authentication

Connected account required

Scopes

dm.writetweet.readusers.read

Tags

Chat
Stream Post labelsTWITTER_STREAM_LABELS_COMPLIANCEStreams all labeling events applied to Posts.

Streams all labeling events applied to Posts.

Authentication

Connected account required

Tags

StreamCompliance
Stream Likes compliance dataTWITTER_STREAM_LIKES_COMPLIANCEStreams all compliance data related to Likes for Users.

Streams all compliance data related to Likes for Users.

Authentication

Connected account required

Tags

StreamCompliance
Stream all LikesTWITTER_STREAM_LIKES_FIREHOSEStreams all public Likes in real-time.

Streams all public Likes in real-time.

Authentication

Connected account required

Tags

StreamLikes
Stream sampled LikesTWITTER_STREAM_LIKES_SAMPLE10Streams a 10% sample of public Likes in real-time.

Streams a 10% sample of public Likes in real-time.

Authentication

Connected account required

Tags

StreamLikes
Stream filtered PostsTWITTER_STREAM_POSTSStreams Posts in real-time matching the active rule set.

Streams Posts in real-time matching the active rule set.

Authentication

Connected account required

Tags

StreamTweets
Stream Posts compliance dataTWITTER_STREAM_POSTS_COMPLIANCEStreams all compliance data related to Posts.

Streams all compliance data related to Posts.

Authentication

Connected account required

Tags

StreamCompliance
Stream all PostsTWITTER_STREAM_POSTS_FIREHOSEStreams all public Posts in real-time.

Streams all public Posts in real-time.

Authentication

Connected account required

Tags

StreamTweets
Stream English PostsTWITTER_STREAM_POSTS_FIREHOSE_ENStreams all public English-language Posts in real-time.

Streams all public English-language Posts in real-time.

Authentication

Connected account required

Tags

StreamTweets
Stream Japanese PostsTWITTER_STREAM_POSTS_FIREHOSE_JAStreams all public Japanese-language Posts in real-time.

Streams all public Japanese-language Posts in real-time.

Authentication

Connected account required

Tags

StreamTweets
Stream Korean PostsTWITTER_STREAM_POSTS_FIREHOSE_KOStreams all public Korean-language Posts in real-time.

Streams all public Korean-language Posts in real-time.

Authentication

Connected account required

Tags

StreamTweets
Stream Portuguese PostsTWITTER_STREAM_POSTS_FIREHOSE_PTStreams all public Portuguese-language Posts in real-time.

Streams all public Portuguese-language Posts in real-time.

Authentication

Connected account required

Tags

StreamTweets
Stream sampled PostsTWITTER_STREAM_POSTS_SAMPLEStreams a 1% sample of public Posts in real-time.

Streams a 1% sample of public Posts in real-time.

Authentication

Connected account required

Tags

StreamTweets
Stream 10% sampled PostsTWITTER_STREAM_POSTS_SAMPLE10Streams a 10% sample of public Posts in real-time.

Streams a 10% sample of public Posts in real-time.

Authentication

Connected account required

Tags

StreamTweets
Stream Users compliance dataTWITTER_STREAM_USERS_COMPLIANCEStreams all compliance data related to Users.

Streams all compliance data related to Users.

Authentication

Connected account required

Tags

StreamCompliance
Unblock DMsTWITTER_UNBLOCK_USERS_DMSUnblocks direct messages to or from a specific User by their ID for the authenticated user.

Unblocks direct messages to or from a specific User by their ID for the authenticated user.

Authentication

Connected account required

Scopes

dm.writetweet.readusers.read

Tags

Users
Unfollow ListTWITTER_UNFOLLOW_LISTCauses the authenticated user to unfollow a specific List by its ID.

Causes the authenticated user to unfollow a specific List by its ID.

Authentication

Connected account required

Scopes

list.writetweet.readusers.read

Tags

UsersLists
Unfollow UserTWITTER_UNFOLLOW_USERCauses the authenticated user to unfollow a specific user by their ID.

Causes the authenticated user to unfollow a specific user by their ID.

Authentication

Connected account required

Scopes

follows.writetweet.readusers.read

Tags

Users
Unlike PostTWITTER_UNLIKE_POSTCauses the authenticated user to Unlike a specific Post by its ID.

Causes the authenticated user to Unlike a specific Post by its ID.

Authentication

Connected account required

Scopes

like.writetweet.readusers.read

Tags

UsersTweets
Unmute UserTWITTER_UNMUTE_USERCauses the authenticated user to unmute a specific user by their ID.

Causes the authenticated user to unmute a specific user by their ID.

Authentication

Connected account required

Scopes

mute.writetweet.readusers.read

Tags

Users
Unpin ListTWITTER_UNPIN_LISTCauses the authenticated user to unpin a specific List by its ID.

Causes the authenticated user to unpin a specific List by its ID.

Authentication

Connected account required

Scopes

list.writetweet.readusers.read

Tags

UsersLists
Unrepost PostTWITTER_UNREPOST_POSTCauses the authenticated user to unrepost a specific Post by its ID.

Causes the authenticated user to unrepost a specific Post by its ID.

Authentication

Connected account required

Scopes

tweet.readtweet.writeusers.read

Tags

UsersTweets
Update X activity subscriptionTWITTER_UPDATE_ACTIVITY_SUBSCRIPTIONUpdates a subscription for an X activity event

Updates a subscription for an X activity event

Authentication

Connected account required

Tags

Activity
Update ListTWITTER_UPDATE_LISTSUpdates the details of a specific List owned by the authenticated user by its ID.

Updates the details of a specific List owned by the authenticated user by its ID.

Authentication

Connected account required

Scopes

list.writetweet.readusers.read

Tags

Lists
Update stream rulesTWITTER_UPDATE_RULESAdds or deletes rules from the active rule set for the filtered stream.

Adds or deletes rules from the active rule set for the filtered stream.

Authentication

Connected account required

Tags

StreamTweets
Validate subscriptionTWITTER_VALIDATE_ACCOUNT_ACTIVITY_SUBSCRIPTIONChecks a user’s Account Activity subscription for a given webhook.

Checks a user’s Account Activity subscription for a given webhook.

Authentication

Connected account required

Scopes

dm.readdm.writetweet.readusers.read

Tags

Account Activity
Validate webhookTWITTER_VALIDATE_WEBHOOKSTriggers a CRC check for a given webhook.

Triggers a CRC check for a given webhook.

Authentication

Connected account required

Tags

Webhooks

Provider resources