OXYGENOXYGEN
← All integrations
X (Twitter) logo

X (Twitter)

Publish and read X/Twitter posts through a connected account.

SocialOAuth79 endpoints

Endpoints

OperationMethod & pathEffectLatencyRateCost
TWITTER_ADD_LIST_MEMBER
Adds a user to a specified Twitter List; the list must be owned by the authenticated user.
POST /composio/twitter/twitter_add_list_memberexternal_sendmanaged
TWITTER_ADD_POST_TO_BOOKMARKS
Adds a specified, existing, and accessible Tweet to a user's bookmarks, with success indicated by the 'bookmarked' field in the response.
POST /composio/twitter/twitter_add_post_to_bookmarksexternal_sendmanaged
TWITTER_APPEND_MEDIA_UPLOAD
Append data chunk to an ongoing media upload session on X/Twitter. Use this action during chunked media uploads to append each segment of media data in sequence.
POST /composio/twitter/twitter_append_media_uploadexternal_sendmanaged
TWITTER_BOOKMARKS_BY_USER
Retrieves Tweets bookmarked by the authenticated user, where the provided User ID must match the authenticated user's ID.
POST /composio/twitter/twitter_bookmarks_by_userexternal_sendmanaged
TWITTER_CREATE_ACTIVITY_SUBSCRIPTION
Tool to create a subscription for an X activity event. Use when you need to monitor specific user activities like profile updates, follows, or spaces events.
POST /composio/twitter/twitter_create_activity_subscriptionexternal_sendmanaged
TWITTER_CREATE_COMPLIANCE_JOB
Creates a new compliance job to check the status of Tweet or user IDs; upload IDs as a plain text file (one ID per line) to the `upload_url` received in the response.
POST /composio/twitter/twitter_create_compliance_jobexternal_sendmanaged
TWITTER_CREATE_DM_CONVERSATION
Creates a new group Direct Message (DM) conversation on Twitter. REQUIRED PARAMETERS: - conversation_type: Must be 'Group' - participant_ids: List of Twitter user IDs to include in the conversation - message: JSON object with the initial message. Must contain 'text' field. To include media attachments, use message.attachments array with media_id (NOT media_url): {"text": "...", "attachments": [{"media_id": "1234567890"}]} Note: Media must be uploaded first using the upload_media action to obtain a media_id.
POST /composio/twitter/twitter_create_dm_conversationexternal_sendmanaged
TWITTER_CREATE_LIST
Creates a new, empty List on X (formerly Twitter), for which the provided name must be unique for the authenticated user; accounts are added separately.
POST /composio/twitter/twitter_create_listexternal_sendmanaged
TWITTER_CREATION_OF_A_POST
Creates a Tweet on Twitter; `text` is required unless `card_uri`, `media_media_ids`, `poll_options`, or `quote_tweet_id` is provided. Example - Creating a tweet with media and location: { "text": "Check out our latest product update! 🚀", "media_media_ids": ["1455952740635586573"], "geo_place_id": "df51dec6f4ee2b2c" } Example - Quote tweet with commentary: { "text": "This is a game-changer for the industry! Here's why... 🧵", "quote_tweet_id": "1453828617121234945" } Example - Reply to a tweet: { "text": "Great point! Here's my take on this...", "reply_in_reply_to_tweet_id": "1453828617121234945" }
POST /composio/twitter/twitter_creation_of_a_postexternal_sendmanaged
TWITTER_DELETE_DM
Permanently deletes a specific Twitter Direct Message (DM) event using its `event_id` if the authenticated user sent it; this action is irreversible and does not delete entire conversations.
POST /composio/twitter/twitter_delete_dmexternal_sendmanaged
TWITTER_DELETE_LIST
Permanently deletes a specified Twitter List using its ID, which must be owned by the authenticated user; this action is irreversible and the list must already exist.
POST /composio/twitter/twitter_delete_listexternal_sendmanaged
TWITTER_FOLLOWERS_BY_USER_ID
Retrieves a list of users who follow a specified public Twitter user ID.
POST /composio/twitter/twitter_followers_by_user_idexternal_sendmanaged
TWITTER_FOLLOWING_BY_USER_ID
Retrieves users followed by a specific Twitter user, allowing pagination and customization of returned user and tweet data fields via expansions.
POST /composio/twitter/twitter_following_by_user_idexternal_sendmanaged
TWITTER_FOLLOW_LIST
Allows the authenticated user (`id`) to follow a specific Twitter List (`list_id`) they are permitted to access, subscribing them to the list's timeline; this does not automatically follow individual list members.
POST /composio/twitter/twitter_follow_listexternal_sendmanaged
TWITTER_FOLLOW_USER
Allows an authenticated user (path `id`) to follow another user (`target_user_id`), which results in a pending request if the target user's tweets are protected.
POST /composio/twitter/twitter_follow_userexternal_sendmanaged
TWITTER_FULL_ARCHIVE_SEARCH
Searches the full archive of public Tweets from March 2006 onwards; use 'start_time' and 'end_time' together for a defined time window.
POST /composio/twitter/twitter_full_archive_searchexternal_sendmanaged
TWITTER_GET_BLOCKED_USERS
Retrieves the authenticated user's own block list. IMPORTANT: You can only retrieve YOUR OWN block list - the `id` parameter must be the authenticated user's ID. Use the 'Get authenticated user' action first to obtain your user ID.
GET /composio/twitter/twitter_get_blocked_usersnonemanaged
TWITTER_GET_COMPLIANCE_JOB
Retrieves status, download/upload URLs, and other details for an existing Twitter compliance job specified by its unique ID.
GET /composio/twitter/twitter_get_compliance_jobnonemanaged
TWITTER_GET_COMPLIANCE_JOBS
Returns a list of recent compliance jobs, filtered by type (tweets or users) and optionally by status.
GET /composio/twitter/twitter_get_compliance_jobsnonemanaged
TWITTER_GET_DM_CONVERSATION_EVENTS
Fetches Direct Message (DM) events for a one-on-one conversation with a specified participant ID, ordered chronologically newest to oldest; does not support group DMs.
GET /composio/twitter/twitter_get_dm_conversation_eventsnonemanaged
TWITTER_GET_DM_EVENT
Fetches a specific Direct Message (DM) event by its unique ID, allowing optional expansion of related data like users or tweets; ensure the `event_id` refers to an existing DM event accessible to the authenticated user.
GET /composio/twitter/twitter_get_dm_eventnonemanaged
TWITTER_GET_LIST
Returns metadata for a specific Twitter List, identified by its ID; does not return list members but can expand the owner's User object via the `expansions` parameter.
GET /composio/twitter/twitter_get_listnonemanaged
TWITTER_GET_LIST_FOLLOWERS
Fetches a list of users who follow a specific Twitter List, identified by its ID; ensure the authenticated user has access if the list is private.
GET /composio/twitter/twitter_get_list_followersnonemanaged
TWITTER_GET_LIST_MEMBERS
Fetches members of a specific Twitter List, identified by its unique ID.
GET /composio/twitter/twitter_get_list_membersnonemanaged
TWITTER_GET_MEDIA_UPLOAD_STATUS
Get the processing status of uploaded media (videos/GIFs) on X/Twitter. Only call this when the FINALIZE command returned a processing_info field. Poll every 3–5 seconds with a 60–120 second maximum timeout to avoid HTTP 429 errors. Response state cycles through 'pending', 'in_progress', 'succeeded', and 'failed'. Only attach media_id to a tweet when state is 'succeeded'. State 'failed' is terminal — requires a completely new upload via TWITTER_UPLOAD_MEDIA or TWITTER_UPLOAD_LARGE_MEDIA. Video/GIF processing takes 30–120 seconds; posting before 'succeeded' results in non-playable media.
GET /composio/twitter/twitter_get_media_upload_statusnonemanaged
TWITTER_GET_MUTED_USERS
Returns user objects muted by the X user identified by the `id` path parameter.
GET /composio/twitter/twitter_get_muted_usersnonemanaged
TWITTER_GET_OPENAPI_SPEC
Fetches the OpenAPI specification (JSON) for Twitter's API v2, used to programmatically understand the API's structure for developing client libraries or tools.
GET /composio/twitter/twitter_get_openapi_specnonemanaged
TWITTER_GET_POST_ANALYTICS
Tool to retrieve analytics data for specified Posts within a defined time range. Use when you need engagement metrics, impressions, or other analytics for one or more Posts. Requires OAuth 2.0 with tweet.read and users.read scopes.
GET /composio/twitter/twitter_get_post_analyticsnonemanaged
TWITTER_GET_POST_RETWEETERS_ACTION
Retrieves users who publicly retweeted a specified public Post ID, excluding Quote Tweets and retweets from private accounts.
GET /composio/twitter/twitter_get_post_retweeters_actionnonemanaged
TWITTER_GET_POST_RETWEETS
Retrieves Tweets that Retweeted a specified public or authenticated-user-accessible Tweet ID, optionally customizing the response with fields and expansions.
GET /composio/twitter/twitter_get_post_retweetsnonemanaged
TWITTER_GET_POST_USAGE
Fetches Tweet usage statistics for a Project (e.g., consumption, caps, daily breakdowns for Project & Client Apps) to monitor API limits; data can be retrieved for 1 to 90 days.
GET /composio/twitter/twitter_get_post_usagenonemanaged
TWITTER_GET_RECENT_DM_EVENTS
Returns recent Direct Message events for the authenticated user, such as new messages or changes in conversation participants.
GET /composio/twitter/twitter_get_recent_dm_eventsnonemanaged
TWITTER_GET_SPACE_BY_ID
Retrieves details for a Twitter Space by its ID, allowing for customization and expansion of related data, provided the Space ID is valid and accessible.
GET /composio/twitter/twitter_get_space_by_idnonemanaged
TWITTER_GET_SPACE_POSTS
Retrieves Tweets that were shared/posted during a Twitter Space broadcast. IMPORTANT: This endpoint returns Tweets that participants explicitly shared during the Space session, NOT audio transcripts, comments, or reactions. Most Spaces have zero associated Tweets, so empty results (result_count=0) are normal and expected. Twitter Spaces are primarily audio conversations - this endpoint only returns text Tweets that were shared alongside the audio.
GET /composio/twitter/twitter_get_space_postsnonemanaged
TWITTER_GET_SPACES_BY_CREATORS
Retrieves Twitter Spaces created by a list of specified User IDs, with options to customize returned data fields.
GET /composio/twitter/twitter_get_spaces_by_creatorsnonemanaged
TWITTER_GET_SPACES_BY_IDS
Fetches detailed information for one or more Twitter Spaces (live, scheduled, or ended) by their unique IDs; at least one Space ID must be provided.
GET /composio/twitter/twitter_get_spaces_by_idsnonemanaged
TWITTER_GET_SPACE_TICKET_BUYERS
Retrieves a list of users who purchased tickets for a specific, valid, and ticketed Twitter Space.
GET /composio/twitter/twitter_get_space_ticket_buyersnonemanaged
TWITTER_GET_USER_BY_ID
Retrieves detailed public information for a Twitter user by their ID, optionally expanding related data (e.g., pinned tweets) and specifying particular user or tweet fields to return.
GET /composio/twitter/twitter_get_user_by_idnonemanaged
TWITTER_GET_USER_FOLLOWED_LISTS
Returns metadata (not Tweets) for lists a specific Twitter user follows, optionally including expanded owner details.
GET /composio/twitter/twitter_get_user_followed_listsnonemanaged
TWITTER_GET_USER_LIST_MEMBERSHIPS
Retrieves all Twitter Lists a specified user is a member of, including public Lists and private Lists the authenticated user is authorized to view.
GET /composio/twitter/twitter_get_user_list_membershipsnonemanaged
TWITTER_GET_USER_OWNED_LISTS
Call this action to retrieve Lists created (owned) by a specific Twitter user, not Lists they follow or are subscribed to.
GET /composio/twitter/twitter_get_user_owned_listsnonemanaged
TWITTER_GET_USER_PINNED_LISTS
Retrieves the Lists a specific, existing Twitter user has pinned to their profile to highlight them.
GET /composio/twitter/twitter_get_user_pinned_listsnonemanaged
TWITTER_GET_USERS_BY_IDS
Retrieves detailed information for specified X (formerly Twitter) user IDs, optionally customizing returned fields and expanding related entities.
GET /composio/twitter/twitter_get_users_by_idsnonemanaged
TWITTER_HIDE_REPLIES
Hides or unhides an existing reply Tweet. This action allows the authenticated user to hide or unhide a reply to a conversation they own (started). You can only hide replies to posts you authored. Note: Requires the tweet.moderate.write OAuth scope.
POST /composio/twitter/twitter_hide_repliesexternal_sendmanaged
TWITTER_INITIALIZE_MEDIA_UPLOAD
Initialize a media upload session for X/Twitter. Use this to start a chunked media upload process, which returns a media_id for subsequent APPEND and FINALIZE commands. Required for uploading large files or when using the chunked upload workflow.
POST /composio/twitter/twitter_initialize_media_uploadexternal_sendmanaged
TWITTER_LIST_POST_LIKERS
Retrieves users who have liked the Post (Tweet) identified by the provided ID.
GET /composio/twitter/twitter_list_post_likersnonemanaged
TWITTER_LIST_POSTS_TIMELINE_BY_LIST_ID
Fetches the most recent Tweets posted by members of a specified Twitter List.
GET /composio/twitter/twitter_list_posts_timeline_by_list_idnonemanaged
TWITTER_MUTE_USER
Mutes a target user on behalf of an authenticated user, preventing the target's Tweets and Retweets from appearing in the authenticated user's home timeline without notifying the target.
POST /composio/twitter/twitter_mute_userexternal_sendmanaged
TWITTER_PIN_LIST
Pins a specified List to the authenticated user's profile, provided the List exists, the user has access rights, and the pin limit (typically 5 Lists) is not exceeded.
POST /composio/twitter/twitter_pin_listexternal_sendmanaged
TWITTER_POST_DELETE_BY_POST_ID
Irreversibly deletes a specific Tweet by its ID; the Tweet may persist in third-party caches after deletion.
POST /composio/twitter/twitter_post_delete_by_post_idexternal_sendmanaged
TWITTER_POST_LOOKUP_BY_POST_ID
Fetches comprehensive details for a single Tweet by its unique ID, provided the Tweet exists and is accessible.
POST /composio/twitter/twitter_post_lookup_by_post_idexternal_sendmanaged
TWITTER_POST_LOOKUP_BY_POST_IDS
Retrieves detailed information for one or more Posts (Tweets) identified by their unique IDs, allowing selection of specific fields and expansions.
POST /composio/twitter/twitter_post_lookup_by_post_idsexternal_sendmanaged
TWITTER_RECENT_SEARCH
Searches Tweets from the last 7 days matching a query (using X's search syntax), ideal for real-time analysis, trend monitoring, or retrieving posts from specific users (e.g., `from:username`) DEFAULT FIELDS: Tweet objects always return 'id' and 'text' by default. User objects always return 'id', 'name', and 'username' by default when expanded. Do not request these default fields in field parameters. IMPORTANT LIMITATION - Impression Counts: The public_metrics.impression_count field returns 0 for search results from other users. Impression data is a non-public metric only available for tweets owned by the authenticated user. To filter by engagement, use retweet_count, like_count, or quote_count instead. Example - Get original tweets from Elon Musk since Sept 20, 2025: { "query": "from:elonmusk -is:retweet -is:reply", "start_time": "2025-09-20T00:00:00Z", "max_results": 50, "tweet_fields": ["created_at","public_metrics","text"], "expansions": ["author_id","attachments.media_keys","referenced_tweets.id"] }
POST /composio/twitter/twitter_recent_searchexternal_sendmanaged
TWITTER_REMOVE_LIST_MEMBER
Removes a user from a Twitter List; the response `is_member` field will be `false` if removal was successful or the user was not a member, and the updated list of members is not returned.
POST /composio/twitter/twitter_remove_list_memberexternal_sendmanaged
TWITTER_REMOVE_POST_FROM_BOOKMARKS
Removes a Tweet, specified by `tweet_id`, from the authenticated user's bookmarks; the Tweet must have been previously bookmarked by the user for the action to have an effect.
POST /composio/twitter/twitter_remove_post_from_bookmarksexternal_sendmanaged
TWITTER_RETRIEVE_DM_CONVERSATION_EVENTS
Retrieves Direct Message (DM) events for a specific conversation ID on Twitter, useful for analyzing messages and participant activities.
POST /composio/twitter/twitter_retrieve_dm_conversation_eventsexternal_sendmanaged
TWITTER_RETRIEVE_POSTS_THAT_QUOTE_A_POST
Retrieves Tweets that quote a specified Tweet, requiring a valid Tweet ID.
POST /composio/twitter/twitter_retrieve_posts_that_quote_a_postexternal_sendmanaged
TWITTER_RETURNS_POST_OBJECTS_LIKED_BY_THE_PROVIDED_USER_ID
Retrieves Tweets liked by a specified Twitter user, provided their liked tweets are public or accessible.
POST /composio/twitter/twitter_returns_post_objects_liked_by_the_provided_user_idexternal_sendmanaged
TWITTER_RETWEET_POST
Retweets a Tweet for the authenticated user. The user ID is automatically fetched from the authenticated session - you only need to provide the tweet_id to retweet.
POST /composio/twitter/twitter_retweet_postexternal_sendmanaged
TWITTER_SEARCH_FULL_ARCHIVE_COUNTS
Returns a count of Tweets from the full archive that match a specified query, aggregated by day, hour, or minute; `start_time` must be before `end_time` if both are provided, and `since_id`/`until_id` cannot be used with `start_time`/`end_time`.
GET /composio/twitter/twitter_search_full_archive_countsnonemanaged
TWITTER_SEARCH_RECENT_COUNTS
Retrieves the count of Tweets matching a specified search query within the last 7 days, aggregated by 'minute', 'hour', or 'day'.
GET /composio/twitter/twitter_search_recent_countsnonemanaged
TWITTER_SEARCH_SPACES
Searches for Twitter Spaces by a textual query, optionally filtering by state (live, scheduled, all) to discover audio conversations.
GET /composio/twitter/twitter_search_spacesnonemanaged
TWITTER_SEND_A_NEW_MESSAGE_TO_A_USER
Sends a new Direct Message with text and/or media (media_id for attachments must be pre-uploaded) to a specified Twitter user; this creates a new DM and does not modify existing messages.
POST /composio/twitter/twitter_send_a_new_message_to_a_userexternal_sendmanaged
TWITTER_SEND_DM_TO_CONVERSATION
Sends a message, with optional text and/or media attachments (using pre-uploaded `media_id`s), to a specified Twitter Direct Message conversation.
POST /composio/twitter/twitter_send_dm_to_conversationexternal_sendmanaged
TWITTER_STREAM_POST_LABELS
Stream real-time Tweet label events (apply/remove). Requires Enterprise access and App-Only OAuth 2.0 auth. Returns PublicTweetNotice or PublicTweetUnviewable events. 403 errors indicate missing Enterprise access or wrong auth type.
POST /composio/twitter/twitter_stream_post_labelsexternal_sendmanaged
TWITTER_UNFOLLOW_LIST
Enables a user (via `id`) to unfollow a specific Twitter List (via `list_id`), which removes its tweets from their timeline and stops related notifications; the action reports `following: false` on success, even if the user was not initially following the list.
POST /composio/twitter/twitter_unfollow_listexternal_sendmanaged
TWITTER_UNFOLLOW_USER
Allows the authenticated user to unfollow an existing Twitter user (`target_user_id`), which removes the follow relationship. The source user ID is automatically determined from the authenticated session.
POST /composio/twitter/twitter_unfollow_userexternal_sendmanaged
TWITTER_UNLIKE_POST
Allows an authenticated user (`id`) to remove their like from a specific post (`tweet_id`); the action is idempotent and completes successfully even if the post was not liked.
POST /composio/twitter/twitter_unlike_postexternal_sendmanaged
TWITTER_UNMUTE_USER
Unmutes a target user for the authenticated user, allowing them to see Tweets and notifications from the target user again. The source_user_id is automatically populated from the authenticated user's credentials.
POST /composio/twitter/twitter_unmute_userexternal_sendmanaged
TWITTER_UNPIN_LIST
Unpins a List (specified by list_id) from the authenticated user's profile. The user ID is automatically retrieved if not provided.
POST /composio/twitter/twitter_unpin_listexternal_sendmanaged
TWITTER_UNRETWEET_POST
Removes a user's retweet of a specified Post, if the user had previously retweeted it.
POST /composio/twitter/twitter_unretweet_postexternal_sendmanaged
TWITTER_UPDATE_LIST
Updates an existing Twitter List's name, description, or privacy status, requiring the List ID and at least one mutable property.
POST /composio/twitter/twitter_update_listexternal_sendmanaged
TWITTER_UPLOAD_LARGE_MEDIA
DEPRECATED: Use TWITTER_UPLOAD_MEDIA instead. Use this to upload a single media file to X/Twitter. Automatically uses chunked upload for GIFs, videos, and images larger than 5 MB. Max file size: 512 MB; max video duration: 140 seconds. After upload, poll TWITTER_GET_MEDIA_UPLOAD_STATUS until processing_info.state=='succeeded' before attaching the media_id to a tweet — GIFs and videos take 30–120 seconds to process. A terminal 'failed' state means the media_id is unusable and the file must be re-uploaded.
POST /composio/twitter/twitter_upload_large_mediaexternal_sendmanaged
TWITTER_UPLOAD_MEDIA
Upload media (images only) to X/Twitter using the v2 API. Supports tweet_image, dm_image, and subtitles media categories only. One file per call; the returned media_id expires (see expires_after_secs in response), so upload immediately before creating the tweet. For GIFs, videos, or any file larger than ~5 MB, use TWITTER_UPLOAD_LARGE_MEDIA instead.
POST /composio/twitter/twitter_upload_mediaexternal_sendmanaged
TWITTER_USER_HOME_TIMELINE_BY_USER_ID
Retrieves the home timeline (reverse chronological feed) for the authenticated Twitter user. Returns tweets from accounts the user follows as well as the user's own tweets, in reverse chronological order. Useful for displaying the personalized feed without algorithmic sorting. CRITICAL: The 'id' parameter MUST be the authenticated user's own numeric Twitter user ID - use TWITTER_USER_LOOKUP_ME to get your ID first. This endpoint cannot fetch another user's home timeline, and passing any ID that doesn't match the authenticating user (including phone numbers or other user IDs) will result in an error. DEFAULT FIELDS: Tweet objects always return 'id' and 'text' by default. User objects always return 'id', 'name', and 'username' by default when expanded. Do not request these default fields in field parameters.
POST /composio/twitter/twitter_user_home_timeline_by_user_idexternal_sendmanaged
TWITTER_USER_LIKE_POST
Allows the authenticated user to like a specific, accessible Tweet, provided neither user has blocked the other and the authenticated user is not restricted from liking. The authenticated user's ID is automatically determined from the OAuth token - you only need to provide the tweet_id.
POST /composio/twitter/twitter_user_like_postexternal_sendmanaged
TWITTER_USER_LOOKUP_BY_USERNAME
Fetches public profile information for a valid and existing Twitter user by their username, optionally expanding related data like pinned Tweets; results may be limited for protected profiles not followed by the authenticated user.
POST /composio/twitter/twitter_user_lookup_by_usernameexternal_sendmanaged
TWITTER_USER_LOOKUP_BY_USERNAMES
Retrieves detailed information for 1 to 100 Twitter users by their usernames (each 1-15 alphanumeric characters/underscores), allowing customizable user/tweet fields and expansion of related data like pinned tweets.
POST /composio/twitter/twitter_user_lookup_by_usernamesexternal_sendmanaged
TWITTER_USER_LOOKUP_ME
Returns profile information for the currently authenticated X user, customizable via request fields.
POST /composio/twitter/twitter_user_lookup_meexternal_sendmanaged