Twitter, Inc. was an American social media company based in San Francisco, California, which operated and was named for named for its flagship social media network prior to its rebrand as X.
This is a first-class FlyMyAI MCP. Agents discover it automatically via tool search and call the actions below on demand - you never wire it up by hand. See the Composio catalog for how discovery works.
Connect
Twitter connects with a single OAuth click - there is no token to paste. The first time an agent uses a Twitter action, FlyMyAI asks you to authorize your Twitter account. Approve it once and the connection is reused for every later run.
- Provider: Twitter
Actions
Every action this integration exposes. Agents pick the right one from the task; you do not call them by name.
| Action | What it does | Required inputs |
|---|---|---|
TWITTER_ADD_A_LIST_MEMBER | Adds a user to a specified twitter list; the list must be owned by the authenticated user. | id, user_id |
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. | id, tweet_id |
TWITTER_BOOKMARKS_BY_USER | Retrieves tweets bookmarked by the authenticated user, where the provided user id must match the authenticated user's id. | id |
TWITTER_CREATE_A_NEW_DM_CONVERSATION | Creates a new group direct message (dm) conversation on twitter with specified participant ids and an initial message, which can include text and media attachments. | conversation_type, message, participant_ids |
TWITTER_CREATE_COMPLIANCE_JOB_REQUEST | 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. | type |
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. | name |
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. | - |
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. | event_id |
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. | id |
TWITTER_FETCH_LIST_MEMBERS_BY_ID | Fetches members of a specific twitter list, identified by its unique id. | id |
TWITTER_FETCH_SPACE_TICKET_BUYERS_LIST | Retrieves a list of users who purchased tickets for a specific, valid, and ticketed twitter space. | id |
TWITTER_FOLLOWERS_BY_USER_ID | Retrieves a list of users who follow a specified public twitter user id. | id |
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. | id |
TWITTER_FOLLOW_A_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. | id, list_id |
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. | id, target_user_id |
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. | query |
TWITTER_FULL_ARCHIVE_SEARCH_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'. | query |
TWITTER_GET_A_USER_S_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. | id |
TWITTER_GET_A_USER_S_OWNED_LISTS | Call this action to retrieve lists created (owned) by a specific twitter user, not lists they follow or are subscribed to. | id |
TWITTER_GET_A_USER_S_PINNED_LISTS | Retrieves the lists a specific, existing twitter user has pinned to their profile to highlight them. | id |
TWITTER_GET_BLOCKED_USERS | Retrieves user objects for accounts blocked by the specified user id; this is a read-only view of a user's block list. | id |
TWITTER_GET_DM_EVENTS_BY_ID | 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. | event_id |
TWITTER_GET_DM_EVENTS_FOR_A_DM_CONVERSATION | 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. | participant_id |
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. | id |
TWITTER_GET_MUTED_USERS | Returns user objects muted by the x user identified by the 'id' path parameter. | id |
TWITTER_GET_POST_RETWEETERS_ACTION | Retrieves users who publicly retweeted a specified public post id, excluding quote tweets and retweets from private accounts. | id |
TWITTER_GET_RECENT_DM_EVENTS | Returns recent direct message events for the authenticated user, such as new messages or changes in conversation participants. | - |
TWITTER_GET_USER_S_FOLLOWED_LISTS | Returns metadata (not tweets) for lists a specific twitter user follows, optionally including expanded owner details. | id |
TWITTER_HIDE_REPLIES | Hides or unhides an existing reply tweet. | tweet_id, hidden |
TWITTER_LIST_LOOKUP_BY_LIST_ID | 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. | id |
TWITTER_LIST_POSTS_TIMELINE_BY_LIST_ID | Fetches the most recent tweets posted by members of a specified twitter list. | id |
TWITTER_LIST_POST_LIKERS | Retrieves users who have liked the post (tweet) identified by the provided id. | id |
TWITTER_MUTE_USER_BY_USER_ID | 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. | id, target_user_id |
TWITTER_PIN_A_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. | id, list_id |
TWITTER_POSTS_LABEL_STREAM | Establishes a persistent stream of real-time events for when tweet labels are applied or removed, offering insights into content categorization. | - |
TWITTER_POST_DELETE_BY_POST_ID | Irreversibly deletes a specific tweet by its id; the tweet may persist in third-party caches after deletion. | id |
TWITTER_POST_LOOKUP_BY_POST_ID | Fetches comprehensive details for a single tweet by its unique id, provided the tweet exists and is accessible. | id |
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. | ids |
TWITTER_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. | - |
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') | query |
TWITTER_RECENT_SEARCH_COUNTS | Retrieves the count of tweets matching a specified search query within the last 7 days, aggregated by 'minute', 'hour', or 'day'. | query |
TWITTER_REMOVE_A_BOOKMARKED_POST | 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. | id, tweet_id |
TWITTER_REMOVE_A_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. | id, user_id |
TWITTER_RETRIEVE_COMPLIANCE_JOBS | Returns a list of recent compliance jobs, filtered by type (tweets or users) and optionally by status. | type |
TWITTER_RETRIEVE_COMPLIANCE_JOB_BY_ID | Retrieves status, download/upload urls, and other details for an existing twitter compliance job specified by its unique id. | id |
TWITTER_RETRIEVE_DM_CONVERSATION_EVENTS | Retrieves direct message (dm) events for a specific conversation id on twitter, useful for analyzing messages and participant activities. | id |
TWITTER_RETRIEVE_POSTS_FROM_A_SPACE | Retrieves tweets from a specified twitter space id; the space must be accessible and results are batched (not streamed). | id |
TWITTER_RETRIEVE_POSTS_THAT_QUOTE_A_POST | Retrieves tweets that quote a specified tweet, requiring a valid tweet id. | id |
TWITTER_RETRIEVE_POSTS_THAT_REPOST_A_POST | Retrieves tweets that retweeted a specified public or authenticated-user-accessible tweet id, optionally customizing the response with fields and expansions. | id |
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. | id |
TWITTER_RETURNS_THE_OPEN_API_SPECIFICATION_DOCUMENT | Fetches the openapi specification (json) for twitter's api v2, used to programmatically understand the api's structure for developing client libraries or tools. | - |
TWITTER_RETWEET_POST | Retweets a tweet ('tweet id') for a given user ('id'), provided the tweet is public (or user follows if protected), not already retweeted by the user, and its author has not blocked the user. | id, tweet_id |
TWITTER_SEARCH_FOR_SPACES | Searches for twitter spaces by a textual query, optionally filtering by state (live, scheduled, all) to discover audio conversations. | query |
TWITTER_SEND_A_NEW_MESSAGE_TO_A_DM_CONVERSATION | Sends a message, with optional text and/or media attachments (using pre-uploaded 'media id's), to a specified twitter direct message conversation. | dm_conversation_id |
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. | participant_id |
TWITTER_SPACE_LOOKUP_BY_SPACE_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. | id |
TWITTER_SPACE_LOOKUP_BY_THEIR_CREATORS | Retrieves twitter spaces created by a list of specified user ids, with options to customize returned data fields. | user_ids |
TWITTER_SPACE_LOOKUP_UP_SPACE_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. | ids |
TWITTER_UNFOLLOW_A_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 lis… | id, list_id |
TWITTER_UNFOLLOW_USER | Allows the authenticated 'source user id' to unfollow an existing twitter user ('target user id'), which removes the follow relationship. | source_user_id, target_user_id |
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. | id, tweet_id |
TWITTER_UNMUTE_USER_BY_USER_ID | Unmutes a 'target user id' for the 'source user id' (authenticated user), allowing the source user to see tweets and notifications from the target user again. | source_user_id, target_user_id |
TWITTER_UNPIN_A_LIST | Unpins a list (specified by list id) from a user's profile (specified by id), provided the list is currently pinned by that user. | id, list_id |
TWITTER_UNRETWEET_POST | Removes a user's retweet of a specified post, if the user had previously retweeted it. | id, source_tweet_id |
TWITTER_UPDATE_LIST | Updates an existing twitter list's name, description, or privacy status, requiring the list id and at least one mutable property. | id |
TWITTER_USER_HOME_TIMELINE_BY_USER_ID | Retrieves the home timeline/feed for a specified twitter user, showing tweets from accounts they follow - not their own posts - in reverse chronological order; useful for displaying their personalized feed without algorithmic sorting. | id |
TWITTER_USER_LIKE_POST | Allows the authenticated user ('id') to like a specific, accessible tweet ('tweet id'), provided neither user has blocked the other and the authenticated user is not restricted from liking. | id, tweet_id |
TWITTER_USER_LOOKUP_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. | id |
TWITTER_USER_LOOKUP_BY_IDS | Retrieves detailed information for specified x (formerly twitter) user ids, optionally customizing returned fields and expanding related entities. | ids |
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. | username |
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. | usernames |
TWITTER_USER_LOOKUP_ME | Returns profile information for the currently authenticated x user, customizable via request fields. | - |
Links
We love our partners - FlyMy.AI builds with the best. Thanks, Twitter!