# x OpenAPI overview

> Below is an overview of the x openapi in simple language. This API contains 192 endpoints.

For more detailed information of an endpoint, visit https://oapis.org/summary/x/[idOrRoute]

X API v2 v2.168 - https://api.x.com
X API v2 core endpoints

## Account

Endpoints for managing the authenticated user's X Developer Platform account

- [getDeveloperAccount](https://oapis.org/openapi/x/getDeveloperAccount): GET https://api.x.com/2/account - Get developer account
- [ensureAccount](https://oapis.org/openapi/x/ensureAccount): POST https://api.x.com/2/account - Ensure developer account

## Account Activity

Endpoints relating to retrieving, managing Account Activity subscriptions

- [getAccountActivitySubscriptionCount](https://oapis.org/openapi/x/getAccountActivitySubscriptionCount): GET https://api.x.com/2/account_activity/subscriptions/count - Get Account Activity Subscription Count
- [validateAccountActivitySubscription](https://oapis.org/openapi/x/validateAccountActivitySubscription): GET https://api.x.com/2/account_activity/webhooks/{webhook_id}/subscriptions/all - Validate Account Activity Subscription
- [createAccountActivitySubscription](https://oapis.org/openapi/x/createAccountActivitySubscription): POST https://api.x.com/2/account_activity/webhooks/{webhook_id}/subscriptions/all - Create subscription
- [getAccountActivitySubscriptions](https://oapis.org/openapi/x/getAccountActivitySubscriptions): GET https://api.x.com/2/account_activity/webhooks/{webhook_id}/subscriptions/all/list - Get Account Activity Subscriptions
- [deleteAccountActivitySubscription](https://oapis.org/openapi/x/deleteAccountActivitySubscription): DELETE https://api.x.com/2/account_activity/webhooks/{webhook_id}/subscriptions/{user_id}/all - Delete subscription

## Activity

Endpoints relating to retrieving, managing activity subscriptions

- [getActivitySubscriptions](https://oapis.org/openapi/x/getActivitySubscriptions): GET https://api.x.com/2/activity/subscriptions?max_results=integer&pagination_token=string - Get X activity subscriptions
- [createActivitySubscription](https://oapis.org/openapi/x/createActivitySubscription): POST https://api.x.com/2/activity/subscriptions - Create X activity subscription
- [deleteActivitySubscriptionsByIds](https://oapis.org/openapi/x/deleteActivitySubscriptionsByIds): DELETE https://api.x.com/2/activity/subscriptions?ids=array - Delete X activity subscriptions by IDs
- [updateActivitySubscription](https://oapis.org/openapi/x/updateActivitySubscription): PUT https://api.x.com/2/activity/subscriptions/{subscription_id} - Update X activity subscription
- [deleteActivitySubscription](https://oapis.org/openapi/x/deleteActivitySubscription): DELETE https://api.x.com/2/activity/subscriptions/{subscription_id} - Deletes X activity subscription

## Articles

Endpoints related to retrieving, creating & modifying Articles

- [articleCreateDraft](https://oapis.org/openapi/x/articleCreateDraft): POST https://api.x.com/2/articles/draft - Create draft Article
- [articlePublish](https://oapis.org/openapi/x/articlePublish): POST https://api.x.com/2/articles/{article_id}/publish - Publish Article

## Bots

- [getBots](https://oapis.org/openapi/x/getBots): GET https://api.x.com/2/bots - Get Bots
- [createBot](https://oapis.org/openapi/x/createBot): POST https://api.x.com/2/bots - Create a bot
- [updateBot](https://oapis.org/openapi/x/updateBot): PUT https://api.x.com/2/bots/{id} - Update Bot
- [deleteBot](https://oapis.org/openapi/x/deleteBot): DELETE https://api.x.com/2/bots/{id} - Delete Bot
- [rotateBotToken](https://oapis.org/openapi/x/rotateBotToken): POST https://api.x.com/2/bots/{id}/token - Rotate Bot Token
- [revokeBotToken](https://oapis.org/openapi/x/revokeBotToken): DELETE https://api.x.com/2/bots/{id}/token - Revoke Bot Token

## Broadcasts

Endpoints related to live broadcasts and their chat

- [listBroadcasts](https://oapis.org/openapi/x/listBroadcasts): GET https://api.x.com/2/broadcasts?ids=array&max_results=integer&pagination_token=string - List broadcasts
- [listScheduledBroadcasts](https://oapis.org/openapi/x/listScheduledBroadcasts): GET https://api.x.com/2/broadcasts/scheduled?max_results=integer&oldest_start_time=string&newest_start_time=string&pagination_token=string - List scheduled broadcasts
- [createScheduledBroadcast](https://oapis.org/openapi/x/createScheduledBroadcast): POST https://api.x.com/2/broadcasts/scheduled - Create a scheduled broadcast
- [getScheduledBroadcast](https://oapis.org/openapi/x/getScheduledBroadcast): GET https://api.x.com/2/broadcasts/scheduled/{id} - Get a scheduled broadcast
- [updateScheduledBroadcast](https://oapis.org/openapi/x/updateScheduledBroadcast): PUT https://api.x.com/2/broadcasts/scheduled/{id} - Update a scheduled broadcast
- [deleteScheduledBroadcast](https://oapis.org/openapi/x/deleteScheduledBroadcast): DELETE https://api.x.com/2/broadcasts/scheduled/{id}?roll_forward=boolean - Delete a scheduled broadcast
- [goLiveScheduledBroadcast](https://oapis.org/openapi/x/goLiveScheduledBroadcast): POST https://api.x.com/2/broadcasts/scheduled/{id}/live - Go live on a scheduled broadcast
- [getBroadcast](https://oapis.org/openapi/x/getBroadcast): GET https://api.x.com/2/broadcasts/{id} - Get a broadcast
- [getBroadcastChat](https://oapis.org/openapi/x/getBroadcastChat): GET https://api.x.com/2/broadcasts/{id}/chat?max_results=integer&pagination_token=string - Get broadcast chat history
- [sendBroadcastChat](https://oapis.org/openapi/x/sendBroadcastChat): POST https://api.x.com/2/broadcasts/{id}/chat - Send a chat message to a live broadcast
- [muteBroadcastChatUser](https://oapis.org/openapi/x/muteBroadcastChatUser): POST https://api.x.com/2/broadcasts/{id}/chat/mutes - Mute or time out a user in a broadcast chat
- [unmuteBroadcastChatUser](https://oapis.org/openapi/x/unmuteBroadcastChatUser): DELETE https://api.x.com/2/broadcasts/{id}/chat/mutes/{user_id} - Unmute a user in a broadcast chat
- [deleteBroadcastChatMessage](https://oapis.org/openapi/x/deleteBroadcastChatMessage): DELETE https://api.x.com/2/broadcasts/{id}/chat/{message_id} - Remove a chat message from a live broadcast

## Chat

Endpoints related to Chat encrypted messaging

- [getChatConversations](https://oapis.org/openapi/x/getChatConversations): GET https://api.x.com/2/chat/conversations?max_results=integer&pagination_token=string - Get Chat Conversations
- [createChatConversation](https://oapis.org/openapi/x/createChatConversation): POST https://api.x.com/2/chat/conversations/group - Create Chat Group Conversation
- [initializeChatGroup](https://oapis.org/openapi/x/initializeChatGroup): POST https://api.x.com/2/chat/conversations/group/initialize - Initialize Chat Group
- [getChatConversation](https://oapis.org/openapi/x/getChatConversation): GET https://api.x.com/2/chat/conversations/{id} - Get Chat Conversation
- [getChatConversationEvents](https://oapis.org/openapi/x/getChatConversationEvents): GET https://api.x.com/2/chat/conversations/{id}/events?max_results=integer&pagination_token=string - Get Chat Conversation Events
- [addConversationKeys](https://oapis.org/openapi/x/addConversationKeys): POST https://api.x.com/2/chat/conversations/{id}/keys - Add Conversation Keys
- [addChatGroupMembers](https://oapis.org/openapi/x/addChatGroupMembers): POST https://api.x.com/2/chat/conversations/{id}/members - Add members to a Chat group conversation
- [sendChatMessage](https://oapis.org/openapi/x/sendChatMessage): POST https://api.x.com/2/chat/conversations/{id}/messages - Send Chat Message
- [deleteChatMessages](https://oapis.org/openapi/x/deleteChatMessages): POST https://api.x.com/2/chat/conversations/{id}/messages/delete - Delete Chat messages
- [markChatConversationRead](https://oapis.org/openapi/x/markChatConversationRead): POST https://api.x.com/2/chat/conversations/{id}/read - Mark Conversation as Read
- [sendChatTypingIndicator](https://oapis.org/openapi/x/sendChatTypingIndicator): POST https://api.x.com/2/chat/conversations/{id}/typing - Send Typing Indicator
- [chatMediaUploadInitialize](https://oapis.org/openapi/x/chatMediaUploadInitialize): POST https://api.x.com/2/chat/media/upload/initialize - Initialize Chat Media Upload
- [chatMediaUploadAppend](https://oapis.org/openapi/x/chatMediaUploadAppend): POST https://api.x.com/2/chat/media/upload/{id}/append - Append Chat Media Upload
- [chatMediaUploadFinalize](https://oapis.org/openapi/x/chatMediaUploadFinalize): POST https://api.x.com/2/chat/media/upload/{id}/finalize - Finalize Chat Media Upload
- [chatMediaDownload](https://oapis.org/openapi/x/chatMediaDownload): GET https://api.x.com/2/chat/media/{id}/{media_hash_key} - Download Chat Media
- [addUserPublicKey](https://oapis.org/openapi/x/addUserPublicKey): POST https://api.x.com/2/users/{id}/public_keys - Add public key

## Communities

Endpoints related to retrieving and managing Communities

- [searchCommunities](https://oapis.org/openapi/x/searchCommunities): GET https://api.x.com/2/communities/search?query=string&max_results=integer&next_token=string&pagination_token=string - Search Communities
- [getCommunitiesById](https://oapis.org/openapi/x/getCommunitiesById): GET https://api.x.com/2/communities/{id} - Get Communities by ID

## Community Notes

Endpoints related to retrieving, searching, and modifying Community Notes

- [createCommunityNotes](https://oapis.org/openapi/x/createCommunityNotes): POST https://api.x.com/2/notes - Create Community Notes
- [evaluateCommunityNotes](https://oapis.org/openapi/x/evaluateCommunityNotes): POST https://api.x.com/2/notes/evaluate - Evaluate Community Notes
- [searchCommunityNotesWritten](https://oapis.org/openapi/x/searchCommunityNotesWritten): GET https://api.x.com/2/notes/search/notes_written?test_mode=boolean&max_results=integer&pagination_token=string - Search Community Notes Written
- [searchEligiblePosts](https://oapis.org/openapi/x/searchEligiblePosts): GET https://api.x.com/2/notes/search/posts_eligible_for_notes?test_mode=boolean&max_results=integer&pagination_token=string&post_selection=string - Search Eligible Posts
- [deleteCommunityNotes](https://oapis.org/openapi/x/deleteCommunityNotes): DELETE https://api.x.com/2/notes/{id} - Delete a Community Note

## Compliance

Endpoints related to keeping X data in your systems compliant

- [getComplianceJobs](https://oapis.org/openapi/x/getComplianceJobs): GET https://api.x.com/2/compliance/jobs?type=string&status=string - Get Compliance Jobs
- [createComplianceJobs](https://oapis.org/openapi/x/createComplianceJobs): POST https://api.x.com/2/compliance/jobs - Create Compliance Job
- [getComplianceJobsById](https://oapis.org/openapi/x/getComplianceJobsById): GET https://api.x.com/2/compliance/jobs/{id} - Get Compliance Job by ID
- [deleteComplianceJobsById](https://oapis.org/openapi/x/deleteComplianceJobsById): DELETE https://api.x.com/2/compliance/jobs/{id} - Cancel Compliance Job
- [downloadComplianceJobResults](https://oapis.org/openapi/x/downloadComplianceJobResults): GET https://api.x.com/2/compliance/jobs/{id}/download?token=string - Download Compliance Job Results
- [uploadComplianceJobSubmission](https://oapis.org/openapi/x/uploadComplianceJobSubmission): PUT https://api.x.com/2/compliance/jobs/{id}/upload?token=string - Upload Compliance Job Submission

## Connections

Endpoints related to streaming connections

- [getConnectionHistory](https://oapis.org/openapi/x/getConnectionHistory): GET https://api.x.com/2/connections?status=string&endpoints=array&max_results=integer&pagination_token=string - Get Connection History
- [deleteConnectionsByUuids](https://oapis.org/openapi/x/deleteConnectionsByUuids): DELETE https://api.x.com/2/connections - Terminate multiple connections
- [deleteAllConnections](https://oapis.org/openapi/x/deleteAllConnections): DELETE https://api.x.com/2/connections/all - Terminate all connections
- [deleteConnectionsByEndpoint](https://oapis.org/openapi/x/deleteConnectionsByEndpoint): DELETE https://api.x.com/2/connections/{endpoint_id} - Terminate connections by endpoint

## Direct Messages

Endpoints related to retrieving, managing Direct Messages

- [createDirectMessagesConversation](https://oapis.org/openapi/x/createDirectMessagesConversation): POST https://api.x.com/2/dm_conversations - Create DM conversation
- [dmConversationsMediaDownload](https://oapis.org/openapi/x/dmConversationsMediaDownload): GET https://api.x.com/2/dm_conversations/media/{dm_id}/{media_id}/{resource_id} - Download DM Media
- [getDirectMessagesEventsByParticipantId](https://oapis.org/openapi/x/getDirectMessagesEventsByParticipantId): GET https://api.x.com/2/dm_conversations/with/{participant_id}/dm_events?max_results=integer&pagination_token=string&event_types=array - Get Direct Messages Events by Participant ID
- [createDirectMessagesByParticipantId](https://oapis.org/openapi/x/createDirectMessagesByParticipantId): POST https://api.x.com/2/dm_conversations/with/{participant_id}/messages - Create DM message by participant ID
- [createDirectMessagesByConversationId](https://oapis.org/openapi/x/createDirectMessagesByConversationId): POST https://api.x.com/2/dm_conversations/{dm_conversation_id}/messages - Create Direct Messages by Conversation ID
- [getDirectMessagesEventsByConversationId](https://oapis.org/openapi/x/getDirectMessagesEventsByConversationId): GET https://api.x.com/2/dm_conversations/{id}/dm_events?max_results=integer&pagination_token=string&event_types=array - Get Direct Messages Events by Conversation ID
- [getDirectMessagesEvents](https://oapis.org/openapi/x/getDirectMessagesEvents): GET https://api.x.com/2/dm_events?max_results=integer&pagination_token=string&event_types=array - Get Direct Messages Events
- [getDirectMessagesEventsById](https://oapis.org/openapi/x/getDirectMessagesEventsById): GET https://api.x.com/2/dm_events/{event_id} - Get Direct Messages Events by ID
- [deleteDirectMessagesEvents](https://oapis.org/openapi/x/deleteDirectMessagesEvents): DELETE https://api.x.com/2/dm_events/{event_id} - Delete DM event

## General

Miscellaneous endpoints for general API functionality

- [getOpenApiSpec](https://oapis.org/openapi/x/getOpenApiSpec): GET https://api.x.com/2/openapi.json - Get OpenAPI Spec.

## Lists

Endpoints related to retrieving, managing Lists

- [createLists](https://oapis.org/openapi/x/createLists): POST https://api.x.com/2/lists - Create Lists
- [getListsById](https://oapis.org/openapi/x/getListsById): GET https://api.x.com/2/lists/{id} - Get Lists by ID
- [updateLists](https://oapis.org/openapi/x/updateLists): PUT https://api.x.com/2/lists/{id} - Update List
- [deleteLists](https://oapis.org/openapi/x/deleteLists): DELETE https://api.x.com/2/lists/{id} - Delete List
- [getListsFollowers](https://oapis.org/openapi/x/getListsFollowers): GET https://api.x.com/2/lists/{id}/followers?max_results=integer&pagination_token=string - Get Lists Followers
- [getListsMembers](https://oapis.org/openapi/x/getListsMembers): GET https://api.x.com/2/lists/{id}/members?max_results=integer&pagination_token=string - Get Lists Members
- [addListsMember](https://oapis.org/openapi/x/addListsMember): POST https://api.x.com/2/lists/{id}/members - Add Lists Member
- [removeListsMemberByUserId](https://oapis.org/openapi/x/removeListsMemberByUserId): DELETE https://api.x.com/2/lists/{id}/members/{user_id} - Remove a List member
- [getListsPosts](https://oapis.org/openapi/x/getListsPosts): GET https://api.x.com/2/lists/{id}/tweets?max_results=integer&pagination_token=string - Get Lists Posts

## Media

Endpoints related to retrieving and uploading Media

- [getMediaByMediaKeys](https://oapis.org/openapi/x/getMediaByMediaKeys): GET https://api.x.com/2/media?media_keys=array - Get Media by media keys
- [getMediaAnalytics](https://oapis.org/openapi/x/getMediaAnalytics): GET https://api.x.com/2/media/analytics?media_keys=array&start_time=string&end_time=string&granularity=string - Get Media analytics
- [createMediaMetadata](https://oapis.org/openapi/x/createMediaMetadata): POST https://api.x.com/2/media/metadata - Create Media metadata
- [createMediaSubtitles](https://oapis.org/openapi/x/createMediaSubtitles): POST https://api.x.com/2/media/subtitles - Create Media subtitles
- [deleteMediaSubtitles](https://oapis.org/openapi/x/deleteMediaSubtitles): DELETE https://api.x.com/2/media/subtitles - Delete Media subtitles
- [getMediaUploadStatus](https://oapis.org/openapi/x/getMediaUploadStatus): GET https://api.x.com/2/media/upload?media_id=media_id&command=string - Get Media upload status
- [mediaUpload](https://oapis.org/openapi/x/mediaUpload): POST https://api.x.com/2/media/upload - Upload media
- [initializeMediaUpload](https://oapis.org/openapi/x/initializeMediaUpload): POST https://api.x.com/2/media/upload/initialize - Initialize media upload
- [appendMediaUpload](https://oapis.org/openapi/x/appendMediaUpload): POST https://api.x.com/2/media/upload/{id}/append - Append Media Upload
- [finalizeMediaUpload](https://oapis.org/openapi/x/finalizeMediaUpload): POST https://api.x.com/2/media/upload/{id}/finalize - Finalize Media upload
- [getMediaByMediaKey](https://oapis.org/openapi/x/getMediaByMediaKey): GET https://api.x.com/2/media/{media_key} - Get Media by media key

## News

Endpoint for retrieving news stories

- [searchNews](https://oapis.org/openapi/x/searchNews): GET https://api.x.com/2/news/search?query=string&max_results=integer&max_age_hours=integer - Search News
- [getNews](https://oapis.org/openapi/x/getNews): GET https://api.x.com/2/news/{id} - Get news stories by ID

## Posts

Endpoints related to retrieving, searching, and modifying Posts

- [getPostsByIds](https://oapis.org/openapi/x/getPostsByIds): GET https://api.x.com/2/tweets?ids=array - Get Posts by IDs
- [createPosts](https://oapis.org/openapi/x/createPosts): POST https://api.x.com/2/tweets - Create Posts
- [getPostsAnalytics](https://oapis.org/openapi/x/getPostsAnalytics): GET https://api.x.com/2/tweets/analytics?ids=array&start_time=string&end_time=string&granularity=string - Get Posts Analytics
- [getPostsCountsAll](https://oapis.org/openapi/x/getPostsCountsAll): GET https://api.x.com/2/tweets/counts/all?query=string&start_time=string&end_time=string&since_id=string&until_id=string&next_token=string&pagination_token=string&granularity=string&search_count.fields=string - Get Posts Counts All
- [getPostsCountsRecent](https://oapis.org/openapi/x/getPostsCountsRecent): GET https://api.x.com/2/tweets/counts/recent?query=string&start_time=string&end_time=string&since_id=string&until_id=string&next_token=string&pagination_token=string&granularity=string&search_count.fields=string - Get Posts Counts Recent
- [searchPostsAll](https://oapis.org/openapi/x/searchPostsAll): GET https://api.x.com/2/tweets/search/all?query=string&start_time=string&end_time=string&since_id=string&until_id=string&max_results=integer&next_token=string&pagination_token=string&sort_order=string - Search Posts All
- [searchPostsRecent](https://oapis.org/openapi/x/searchPostsRecent): GET https://api.x.com/2/tweets/search/recent?query=string&max_results=integer&next_token=string&pagination_token=string&start_time=string&end_time=string&since_id=string&until_id=string&sort_order=string - Search Posts Recent
- [getPostsById](https://oapis.org/openapi/x/getPostsById): GET https://api.x.com/2/tweets/{id} - Get Posts by ID
- [deletePosts](https://oapis.org/openapi/x/deletePosts): DELETE https://api.x.com/2/tweets/{id} - Delete Posts
- [getPostsLikingUsers](https://oapis.org/openapi/x/getPostsLikingUsers): GET https://api.x.com/2/tweets/{id}/liking_users?max_results=integer&pagination_token=string - Get Posts Liking Users
- [getPostsQuotedPosts](https://oapis.org/openapi/x/getPostsQuotedPosts): GET https://api.x.com/2/tweets/{id}/quote_tweets?max_results=integer&pagination_token=string&exclude=array - Get Posts Quoted Posts
- [getPostsRepostedBy](https://oapis.org/openapi/x/getPostsRepostedBy): GET https://api.x.com/2/tweets/{id}/retweeted_by?max_results=integer&pagination_token=string - Get Posts Reposted by
- [getPostsReposts](https://oapis.org/openapi/x/getPostsReposts): GET https://api.x.com/2/tweets/{id}/retweets?max_results=integer&pagination_token=string - Get Posts Reposts
- [hidePostsReply](https://oapis.org/openapi/x/hidePostsReply): PUT https://api.x.com/2/tweets/{tweet_id}/hidden - Hide reply

## Spaces

Endpoints related to retrieving, managing Spaces

- [getSpacesByIds](https://oapis.org/openapi/x/getSpacesByIds): GET https://api.x.com/2/spaces?ids=array - Get Spaces by IDs
- [getSpacesByCreatorIds](https://oapis.org/openapi/x/getSpacesByCreatorIds): GET https://api.x.com/2/spaces/by/creator_ids?user_ids=array - Get Spaces by Creator IDs
- [searchSpaces](https://oapis.org/openapi/x/searchSpaces): GET https://api.x.com/2/spaces/search?query=string&state=string&max_results=integer - Search Spaces
- [getSpacesById](https://oapis.org/openapi/x/getSpacesById): GET https://api.x.com/2/spaces/{id} - Get Spaces by ID
- [getSpacesBuyers](https://oapis.org/openapi/x/getSpacesBuyers): GET https://api.x.com/2/spaces/{id}/buyers?max_results=integer&pagination_token=string - Get Space ticket buyers
- [getSpacesPosts](https://oapis.org/openapi/x/getSpacesPosts): GET https://api.x.com/2/spaces/{id}/tweets?max_results=integer&pagination_token=string - Get Space Posts

## Stream

Endpoints related to streaming

- [activityStream](https://oapis.org/openapi/x/activityStream): GET https://api.x.com/2/activity/stream?backfill_minutes=integer&start_time=string&end_time=string - Activity Stream
- [streamLikesCompliance](https://oapis.org/openapi/x/streamLikesCompliance): GET https://api.x.com/2/likes/compliance/stream?backfill_minutes=integer&start_time=string&end_time=string - Stream Likes compliance data
- [streamLikesFirehose](https://oapis.org/openapi/x/streamLikesFirehose): GET https://api.x.com/2/likes/firehose/stream?backfill_minutes=integer&partition=integer&start_time=string&end_time=string&like_with_tweet_author.fields=array&expansions=array&media.fields=array&user.fields=array&tweet.fields=array - Stream all Likes
- [streamLikesSample10](https://oapis.org/openapi/x/streamLikesSample10): GET https://api.x.com/2/likes/sample10/stream?backfill_minutes=integer&partition=integer&start_time=string&end_time=string&like_with_tweet_author.fields=array&expansions=array&media.fields=array&user.fields=array&tweet.fields=array - Stream sampled Likes
- [streamPostsCompliance](https://oapis.org/openapi/x/streamPostsCompliance): GET https://api.x.com/2/tweets/compliance/stream?backfill_minutes=integer&partition=integer&start_time=string&end_time=string - Stream Posts compliance data
- [streamPostsFirehose](https://oapis.org/openapi/x/streamPostsFirehose): GET https://api.x.com/2/tweets/firehose/stream?backfill_minutes=integer&tweet.fields=array&expansions=array&media.fields=array&poll.fields=array&user.fields=array&place.fields=array&partition=integer&start_time=string&end_time=string - Stream all Posts
- [streamPostsFirehoseEn](https://oapis.org/openapi/x/streamPostsFirehoseEn): GET https://api.x.com/2/tweets/firehose/stream/lang/en?backfill_minutes=integer&tweet.fields=array&expansions=array&media.fields=array&poll.fields=array&user.fields=array&place.fields=array&partition=integer&start_time=string&end_time=string - Stream English Posts
- [streamPostsFirehoseJa](https://oapis.org/openapi/x/streamPostsFirehoseJa): GET https://api.x.com/2/tweets/firehose/stream/lang/ja?backfill_minutes=integer&tweet.fields=array&expansions=array&media.fields=array&poll.fields=array&user.fields=array&place.fields=array&partition=integer&start_time=string&end_time=string - Stream Japanese Posts
- [streamPostsFirehoseKo](https://oapis.org/openapi/x/streamPostsFirehoseKo): GET https://api.x.com/2/tweets/firehose/stream/lang/ko?backfill_minutes=integer&tweet.fields=array&expansions=array&media.fields=array&poll.fields=array&user.fields=array&place.fields=array&partition=integer&start_time=string&end_time=string - Stream Korean Posts
- [streamPostsFirehosePt](https://oapis.org/openapi/x/streamPostsFirehosePt): GET https://api.x.com/2/tweets/firehose/stream/lang/pt?backfill_minutes=integer&tweet.fields=array&expansions=array&media.fields=array&poll.fields=array&user.fields=array&place.fields=array&partition=integer&start_time=string&end_time=string - Stream Portuguese Posts
- [streamLabelsCompliance](https://oapis.org/openapi/x/streamLabelsCompliance): GET https://api.x.com/2/tweets/label/stream?backfill_minutes=integer&start_time=string&end_time=string - Stream Post labels
- [streamPostsSample](https://oapis.org/openapi/x/streamPostsSample): GET https://api.x.com/2/tweets/sample/stream?backfill_minutes=integer&tweet.fields=array&expansions=array&media.fields=array&poll.fields=array&user.fields=array&place.fields=array - Stream sampled Posts
- [streamPostsSample10](https://oapis.org/openapi/x/streamPostsSample10): GET https://api.x.com/2/tweets/sample10/stream?backfill_minutes=integer&tweet.fields=array&expansions=array&media.fields=array&poll.fields=array&user.fields=array&place.fields=array&partition=integer&start_time=string&end_time=string - Stream 10% sampled Posts
- [streamPosts](https://oapis.org/openapi/x/streamPosts): GET https://api.x.com/2/tweets/search/stream?backfill_minutes=integer&start_time=string&end_time=string&tweet.fields=array&expansions=array&media.fields=array&poll.fields=array&user.fields=array&place.fields=array - Stream filtered Posts
- [getRules](https://oapis.org/openapi/x/getRules): GET https://api.x.com/2/tweets/search/stream/rules?ids=array&max_results=integer&pagination_token=string - Get filtered-stream rules
- [updateRules](https://oapis.org/openapi/x/updateRules): POST https://api.x.com/2/tweets/search/stream/rules?dry_run=boolean&delete_all=boolean - Update stream rules
- [getRuleCounts](https://oapis.org/openapi/x/getRuleCounts): GET https://api.x.com/2/tweets/search/stream/rules/counts?rules_count.fields=string - Get Rule Counts
- [streamUsersCompliance](https://oapis.org/openapi/x/streamUsersCompliance): GET https://api.x.com/2/users/compliance/stream?backfill_minutes=integer&partition=integer&start_time=string&end_time=string - Stream Users compliance data

## Trends

Endpoint for retrieving trends

- [getTrendsByWoeid](https://oapis.org/openapi/x/getTrendsByWoeid): GET https://api.x.com/2/trends/by/woeid/{woeid}?max_trends=integer - Get Trends by Woeid
- [getTrendsPersonalizedTrends](https://oapis.org/openapi/x/getTrendsPersonalizedTrends): GET https://api.x.com/2/users/personalized_trends - Get Trends Personalized Trends

## Usage

Endpoints related to retrieving usage

- [getUsageCredits](https://oapis.org/openapi/x/getUsageCredits): GET https://api.x.com/2/usage/credits - Get usage credits
- [getUsage](https://oapis.org/openapi/x/getUsage): GET https://api.x.com/2/usage/tweets?days=integer - Get Usage

## Users

Endpoints related to retrieving, managing relationships of Users

- [getUsersByIds](https://oapis.org/openapi/x/getUsersByIds): GET https://api.x.com/2/users?ids=array - Get Users by IDs
- [getUsersByUsernames](https://oapis.org/openapi/x/getUsersByUsernames): GET https://api.x.com/2/users/by?usernames=array - Get Users by Usernames
- [getUsersByUsername](https://oapis.org/openapi/x/getUsersByUsername): GET https://api.x.com/2/users/by/username/{username} - Get Users by Username
- [getUsersMe](https://oapis.org/openapi/x/getUsersMe): GET https://api.x.com/2/users/me - Get Users Me
- [getUsersPublicKeys](https://oapis.org/openapi/x/getUsersPublicKeys): GET https://api.x.com/2/users/public_keys?ids=array - Get public keys
- [getUsersRepostsOfMe](https://oapis.org/openapi/x/getUsersRepostsOfMe): GET https://api.x.com/2/users/reposts_of_me?max_results=integer&pagination_token=string - Get Users Reposts of Me
- [searchUsers](https://oapis.org/openapi/x/searchUsers): GET https://api.x.com/2/users/search?query=string&max_results=integer&next_token=string - Search Users
- [getUsersById](https://oapis.org/openapi/x/getUsersById): GET https://api.x.com/2/users/{id} - Get Users by ID
- [getUsersAffiliates](https://oapis.org/openapi/x/getUsersAffiliates): GET https://api.x.com/2/users/{id}/affiliates?max_results=integer&pagination_token=string - Get Users Affiliates
- [getUsersBlocking](https://oapis.org/openapi/x/getUsersBlocking): GET https://api.x.com/2/users/{id}/blocking?max_results=integer&pagination_token=string - Get Users Blocking
- [usersIdBlock](https://oapis.org/openapi/x/usersIdBlock): POST https://api.x.com/2/users/{id}/blocking - Users ID Block
- [getUsersBookmarks](https://oapis.org/openapi/x/getUsersBookmarks): GET https://api.x.com/2/users/{id}/bookmarks?max_results=integer&pagination_token=string - Get Users Bookmarks
- [createUsersBookmark](https://oapis.org/openapi/x/createUsersBookmark): POST https://api.x.com/2/users/{id}/bookmarks - Create Bookmark
- [getUsersBookmarkFolders](https://oapis.org/openapi/x/getUsersBookmarkFolders): GET https://api.x.com/2/users/{id}/bookmarks/folders?max_results=integer&pagination_token=string - Get Users Bookmark Folders
- [createUsersBookmarkFolder](https://oapis.org/openapi/x/createUsersBookmarkFolder): POST https://api.x.com/2/users/{id}/bookmarks/folders - Create Bookmark Folder
- [getUsersBookmarksByFolderId](https://oapis.org/openapi/x/getUsersBookmarksByFolderId): GET https://api.x.com/2/users/{id}/bookmarks/folders/{folder_id}?max_results=integer&pagination_token=string - Get Users Bookmarks by Folder ID
- [deleteUsersBookmark](https://oapis.org/openapi/x/deleteUsersBookmark): DELETE https://api.x.com/2/users/{id}/bookmarks/{tweet_id} - Delete Bookmark
- [blockUsersDms](https://oapis.org/openapi/x/blockUsersDms): POST https://api.x.com/2/users/{id}/dm/block - Block Users Dms
- [unblockUsersDms](https://oapis.org/openapi/x/unblockUsersDms): POST https://api.x.com/2/users/{id}/dm/unblock - Unblock Users Dms
- [getUsersFollowedLists](https://oapis.org/openapi/x/getUsersFollowedLists): GET https://api.x.com/2/users/{id}/followed_lists?max_results=integer&pagination_token=string - Get Users Followed Lists
- [followList](https://oapis.org/openapi/x/followList): POST https://api.x.com/2/users/{id}/followed_lists - Follow List
- [unfollowList](https://oapis.org/openapi/x/unfollowList): DELETE https://api.x.com/2/users/{id}/followed_lists/{list_id} - Unfollow a List
- [getUsersFollowers](https://oapis.org/openapi/x/getUsersFollowers): GET https://api.x.com/2/users/{id}/followers?max_results=integer&pagination_token=string - Get Users Followers
- [getUsersFollowing](https://oapis.org/openapi/x/getUsersFollowing): GET https://api.x.com/2/users/{id}/following?max_results=integer&pagination_token=string - Get Users Following
- [followUser](https://oapis.org/openapi/x/followUser): POST https://api.x.com/2/users/{id}/following - Follow User
- [getUsersLikedPosts](https://oapis.org/openapi/x/getUsersLikedPosts): GET https://api.x.com/2/users/{id}/liked_tweets?max_results=integer&pagination_token=string - Get Users Liked Posts
- [likePost](https://oapis.org/openapi/x/likePost): POST https://api.x.com/2/users/{id}/likes - Like Post
- [unlikePost](https://oapis.org/openapi/x/unlikePost): DELETE https://api.x.com/2/users/{id}/likes/{tweet_id} - Unlike Post
- [getUsersListMemberships](https://oapis.org/openapi/x/getUsersListMemberships): GET https://api.x.com/2/users/{id}/list_memberships?max_results=integer&pagination_token=string - Get Users List Memberships
- [getUsersMentions](https://oapis.org/openapi/x/getUsersMentions): GET https://api.x.com/2/users/{id}/mentions?max_results=integer&pagination_token=string&start_time=string&end_time=string&since_id=string&until_id=string - Get Users Mentions
- [getUsersMuting](https://oapis.org/openapi/x/getUsersMuting): GET https://api.x.com/2/users/{id}/muting?max_results=integer&pagination_token=string - Get Users Muting
- [muteUser](https://oapis.org/openapi/x/muteUser): POST https://api.x.com/2/users/{id}/muting - Mute User
- [getUsersOwnedLists](https://oapis.org/openapi/x/getUsersOwnedLists): GET https://api.x.com/2/users/{id}/owned_lists?max_results=integer&pagination_token=string - Get Users Owned Lists
- [getUsersPinnedLists](https://oapis.org/openapi/x/getUsersPinnedLists): GET https://api.x.com/2/users/{id}/pinned_lists - Get Users Pinned Lists
- [pinList](https://oapis.org/openapi/x/pinList): POST https://api.x.com/2/users/{id}/pinned_lists - Pin List
- [unpinList](https://oapis.org/openapi/x/unpinList): DELETE https://api.x.com/2/users/{id}/pinned_lists/{list_id} - Unpin a List
- [getUsersPublicKey](https://oapis.org/openapi/x/getUsersPublicKey): GET https://api.x.com/2/users/{id}/public_keys - Get public keys
- [repostPost](https://oapis.org/openapi/x/repostPost): POST https://api.x.com/2/users/{id}/retweets - Repost Post
- [unrepostPost](https://oapis.org/openapi/x/unrepostPost): DELETE https://api.x.com/2/users/{id}/retweets/{source_tweet_id} - Unrepost Post
- [getUsersTimeline](https://oapis.org/openapi/x/getUsersTimeline): GET https://api.x.com/2/users/{id}/timelines/reverse_chronological?max_results=integer&pagination_token=string&start_time=string&end_time=string&since_id=string&until_id=string&exclude=array - Get Users Timeline
- [getUsersPosts](https://oapis.org/openapi/x/getUsersPosts): GET https://api.x.com/2/users/{id}/tweets?max_results=integer&pagination_token=string&start_time=string&end_time=string&since_id=string&until_id=string&exclude=array - Get Users Posts
- [usersIdUnblock](https://oapis.org/openapi/x/usersIdUnblock): DELETE https://api.x.com/2/users/{source_user_id}/blocking/{target_user_id} - Unblock User
- [unfollowUser](https://oapis.org/openapi/x/unfollowUser): DELETE https://api.x.com/2/users/{source_user_id}/following/{target_user_id} - Unfollow User
- [unmuteUser](https://oapis.org/openapi/x/unmuteUser): DELETE https://api.x.com/2/users/{source_user_id}/muting/{target_user_id} - Unmute User

## Webhooks

Endpoints relating to retrieving, managing webhooks and webhook configs

- [getWebhooksStreamLinks](https://oapis.org/openapi/x/getWebhooksStreamLinks): GET https://api.x.com/2/tweets/search/webhooks - Get stream links
- [createWebhooksStreamLink](https://oapis.org/openapi/x/createWebhooksStreamLink): POST https://api.x.com/2/tweets/search/webhooks/{webhook_id} - Create stream link
- [deleteWebhooksStreamLink](https://oapis.org/openapi/x/deleteWebhooksStreamLink): DELETE https://api.x.com/2/tweets/search/webhooks/{webhook_id} - Delete stream link
- [getWebhooks](https://oapis.org/openapi/x/getWebhooks): GET https://api.x.com/2/webhooks - Get webhook
- [createWebhooks](https://oapis.org/openapi/x/createWebhooks): POST https://api.x.com/2/webhooks - Create webhook
- [createWebhookReplayJob](https://oapis.org/openapi/x/createWebhookReplayJob): POST https://api.x.com/2/webhooks/replay - Create replay job for webhook
- [validateWebhooks](https://oapis.org/openapi/x/validateWebhooks): PUT https://api.x.com/2/webhooks/{webhook_id} - Validate webhook
- [deleteWebhooks](https://oapis.org/openapi/x/deleteWebhooks): DELETE https://api.x.com/2/webhooks/{webhook_id} - Delete webhook
