X (Twitter)
Publish and read X/Twitter posts through a connected account.
SocialOAuth8 endpoints
Endpoints
| Operation | Method & path | Effect | Latency | Rate | Cost |
|---|---|---|---|---|---|
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_post | external_send | — | — | no bill |
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_status | none | — | — | no bill |
TWITTER_GET_USER_POSTS Retrieves posts authored by a selected X user. | GET /composio/twitter/twitter_get_user_posts | none | — | — | no bill |
TWITTER_POST_LOOKUP_BY_POST_ID Fetches comprehensive details for a single Tweet by its unique ID, provided the Tweet exists and is accessible. | GET /composio/twitter/twitter_post_lookup_by_post_id | none | — | — | no bill |
TWITTER_RECENT_SEARCH Searches Tweets from the last seven days using X query syntax, with optional fields, expansions, sorting, and time or ID bounds. Timestamp and ID bounds cannot be combined in the same request. Requests for more than 100 results are automatically paginated up to 2,000; use the returned next token to continue when more results are available. | GET /composio/twitter/twitter_recent_search | none | — | — | no bill |
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. | GET /composio/twitter/twitter_user_lookup_by_username | none | — | — | no bill |
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. | GET /composio/twitter/twitter_user_lookup_by_usernames | none | — | — | no bill |
TWITTER_USER_LOOKUP_ME Returns profile information for the currently authenticated X user, customizable via request fields. | GET /composio/twitter/twitter_user_lookup_me | none | — | — | no bill |