# x OpenAPI overview

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

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

X API v2 v2.163 - https://api.x.com
X API v2 available endpoints

## Account Activity

Endpoints relating to retrieving, managing AAA subscriptions

- [getAccountActivitySubscriptionCount](https://oapis.org/openapi/x/getAccountActivitySubscriptionCount): GET https://api.x.com/2/account_activity/subscriptions/count - Get subscription count
- [validateAccountActivitySubscription](https://oapis.org/openapi/x/validateAccountActivitySubscription): GET https://api.x.com/2/account_activity/webhooks/{webhook_id}/subscriptions/all - Validate 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 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

- [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
- [getActivitySubscriptions](https://oapis.org/openapi/x/getActivitySubscriptions): GET https://api.x.com/2/activity/subscriptions?max_results=integer&pagination_token=pagination_token - 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

## Bookmarks

Endpoints related to retrieving, managing bookmarks of a user

- [getUsersBookmarks](https://oapis.org/openapi/x/getUsersBookmarks): GET https://api.x.com/2/users/{id}/bookmarks?max_results=integer&pagination_token=pagination_token - Get 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=pagination_token - Get Bookmark folders
- [getUsersBookmarksByFolderId](https://oapis.org/openapi/x/getUsersBookmarksByFolderId): GET https://api.x.com/2/users/{id}/bookmarks/folders/{folder_id} - Get Bookmarks by folder ID
- [deleteUsersBookmark](https://oapis.org/openapi/x/deleteUsersBookmark): DELETE https://api.x.com/2/users/{id}/bookmarks/{tweet_id} - Delete Bookmark

## Chat

- [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
- [initializeChatConversationKeys](https://oapis.org/openapi/x/initializeChatConversationKeys): POST https://api.x.com/2/chat/conversations/{id}/keys - Initialize 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
- [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
- [getUsersPublicKeys](https://oapis.org/openapi/x/getUsersPublicKeys): GET https://api.x.com/2/users/public_keys?ids=array - Get public keys for multiple users
- [getUsersPublicKey](https://oapis.org/openapi/x/getUsersPublicKey): GET https://api.x.com/2/users/{id}/public_keys - Get user public keys
- [addUserPublicKey](https://oapis.org/openapi/x/addUserPublicKey): POST https://api.x.com/2/users/{id}/public_keys - Add public key

## Communities

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

## Community Notes

- [evaluateCommunityNotes](https://oapis.org/openapi/x/evaluateCommunityNotes): POST https://api.x.com/2/evaluate_note - Evaluate a Community Note
- [createCommunityNotes](https://oapis.org/openapi/x/createCommunityNotes): POST https://api.x.com/2/notes - Create a Community Note
- [searchCommunityNotesWritten](https://oapis.org/openapi/x/searchCommunityNotesWritten): GET https://api.x.com/2/notes/search/notes_written?test_mode=boolean&pagination_token=string&max_results=integer - Search for 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&pagination_token=string&max_results=integer&post_selection=string - Search for Posts Eligible for Community Notes
- [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
- [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
- [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
- [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
- [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

## 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=pagination_token&event_types=array - Get DM events for a DM conversation
- [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 DM message 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=pagination_token&event_types=array - Get DM events for a DM conversation
- [getDirectMessagesEvents](https://oapis.org/openapi/x/getDirectMessagesEvents): GET https://api.x.com/2/dm_events?max_results=integer&pagination_token=pagination_token&event_types=array - Get DM events
- [getDirectMessagesEventsById](https://oapis.org/openapi/x/getDirectMessagesEventsById): GET https://api.x.com/2/dm_events/{event_id} - Get DM event 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.

## Likes

- [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 - 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 - Stream sampled Likes

## Lists

Endpoints related to retrieving, managing Lists

- [createLists](https://oapis.org/openapi/x/createLists): POST https://api.x.com/2/lists - Create List
- [getListsById](https://oapis.org/openapi/x/getListsById): GET https://api.x.com/2/lists/{id} - Get List 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=pagination_token - Get List followers
- [getListsMembers](https://oapis.org/openapi/x/getListsMembers): GET https://api.x.com/2/lists/{id}/members?max_results=integer&pagination_token=pagination_token - Get List members
- [addListsMember](https://oapis.org/openapi/x/addListsMember): POST https://api.x.com/2/lists/{id}/members - Add List member
- [removeListsMemberByUserId](https://oapis.org/openapi/x/removeListsMemberByUserId): DELETE https://api.x.com/2/lists/{id}/members/{user_id} - Remove List member
- [getListsPosts](https://oapis.org/openapi/x/getListsPosts): GET https://api.x.com/2/lists/{id}/tweets?max_results=integer&pagination_token=pagination_token - Get List Posts
- [getUsersFollowedLists](https://oapis.org/openapi/x/getUsersFollowedLists): GET https://api.x.com/2/users/{id}/followed_lists?max_results=integer&pagination_token=pagination_token - Get 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 List
- [getUsersListMemberships](https://oapis.org/openapi/x/getUsersListMemberships): GET https://api.x.com/2/users/{id}/list_memberships?max_results=integer&pagination_token=pagination_token - Get List memberships
- [getUsersOwnedLists](https://oapis.org/openapi/x/getUsersOwnedLists): GET https://api.x.com/2/users/{id}/owned_lists?max_results=integer&pagination_token=pagination_token - Get owned Lists
- [getUsersPinnedLists](https://oapis.org/openapi/x/getUsersPinnedLists): GET https://api.x.com/2/users/{id}/pinned_lists - Get 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 List

## Media

Endpoints related to 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&end_time=string&start_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

## 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 space by ID
- [getSpacesBuyers](https://oapis.org/openapi/x/getSpacesBuyers): GET https://api.x.com/2/spaces/{id}/buyers?pagination_token=pagination_token&max_results=integer - Get Space ticket buyers
- [getSpacesPosts](https://oapis.org/openapi/x/getSpacesPosts): GET https://api.x.com/2/spaces/{id}/tweets?max_results=integer - 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
- [createActivitySubscription](https://oapis.org/openapi/x/createActivitySubscription): POST https://api.x.com/2/activity/subscriptions - Create X activity subscription
- [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 - 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 - 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&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&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&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&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&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 - Stream sampled Posts
- [streamPostsSample10](https://oapis.org/openapi/x/streamPostsSample10): GET https://api.x.com/2/tweets/sample10/stream?backfill_minutes=integer&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 - 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 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 - Get stream rule counts
- [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}?tweet.fields=string&expansions=string&media.fields=string&poll.fields=string&user.fields=string&place.fields=string - Create stream link
- [deleteWebhooksStreamLink](https://oapis.org/openapi/x/deleteWebhooksStreamLink): DELETE https://api.x.com/2/tweets/search/webhooks/{webhook_id} - Delete stream link
- [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

- [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 personalized Trends

## Tweets

Endpoints related to retrieving, searching, and modifying Tweets

- [getInsights28Hr](https://oapis.org/openapi/x/getInsights28Hr): GET https://api.x.com/2/insights/28hr?tweet_ids=array&granularity=string&requested_metrics=array - Get 28-hour Post insights
- [getInsightsHistorical](https://oapis.org/openapi/x/getInsightsHistorical): GET https://api.x.com/2/insights/historical?tweet_ids=array&end_time=string&start_time=string&granularity=string&requested_metrics=array - Get historical Post insights
- [getListsPosts](https://oapis.org/openapi/x/getListsPosts): GET https://api.x.com/2/lists/{id}/tweets?max_results=integer&pagination_token=pagination_token - Get List Posts
- [getSpacesBuyers](https://oapis.org/openapi/x/getSpacesBuyers): GET https://api.x.com/2/spaces/{id}/buyers?pagination_token=pagination_token&max_results=integer - Get Space ticket buyers
- [getSpacesPosts](https://oapis.org/openapi/x/getSpacesPosts): GET https://api.x.com/2/spaces/{id}/tweets?max_results=integer - Get Space 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 or Edit Post
- [getPostsAnalytics](https://oapis.org/openapi/x/getPostsAnalytics): GET https://api.x.com/2/tweets/analytics?ids=array&end_time=string&start_time=string&granularity=string - Get Post 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=since_id&until_id=until_id&next_token=next_token&pagination_token=pagination_token&granularity=string - Get count of all Posts
- [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=since_id&until_id=until_id&next_token=next_token&pagination_token=pagination_token&granularity=string - Get count of recent Posts
- [streamPostsFirehose](https://oapis.org/openapi/x/streamPostsFirehose): GET https://api.x.com/2/tweets/firehose/stream?backfill_minutes=integer&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&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&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&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&partition=integer&start_time=string&end_time=string - Stream Portuguese Posts
- [streamPostsSample](https://oapis.org/openapi/x/streamPostsSample): GET https://api.x.com/2/tweets/sample/stream?backfill_minutes=integer - Stream sampled Posts
- [streamPostsSample10](https://oapis.org/openapi/x/streamPostsSample10): GET https://api.x.com/2/tweets/sample10/stream?backfill_minutes=integer&partition=integer&start_time=string&end_time=string - Stream 10% sampled Posts
- [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=since_id&until_id=until_id&max_results=integer&next_token=next_token&pagination_token=pagination_token&sort_order=string - Search all Posts
- [searchPostsRecent](https://oapis.org/openapi/x/searchPostsRecent): GET https://api.x.com/2/tweets/search/recent?query=string&start_time=string&end_time=string&since_id=since_id&until_id=until_id&max_results=integer&next_token=next_token&pagination_token=pagination_token&sort_order=string - Search recent 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 - 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 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 - Get stream rule counts
- [getPostsById](https://oapis.org/openapi/x/getPostsById): GET https://api.x.com/2/tweets/{id} - Get Post by ID
- [deletePosts](https://oapis.org/openapi/x/deletePosts): DELETE https://api.x.com/2/tweets/{id} - Delete Post
- [getPostsLikingUsers](https://oapis.org/openapi/x/getPostsLikingUsers): GET https://api.x.com/2/tweets/{id}/liking_users?max_results=integer&pagination_token=pagination_token - Get Liking Users
- [getPostsQuotedPosts](https://oapis.org/openapi/x/getPostsQuotedPosts): GET https://api.x.com/2/tweets/{id}/quote_tweets?max_results=integer&pagination_token=pagination_token&exclude=array - Get Quoted Posts
- [getPostsRepostedBy](https://oapis.org/openapi/x/getPostsRepostedBy): GET https://api.x.com/2/tweets/{id}/retweeted_by?max_results=integer&pagination_token=pagination_token - Get Reposted by
- [getPostsReposts](https://oapis.org/openapi/x/getPostsReposts): GET https://api.x.com/2/tweets/{id}/retweets?max_results=integer&pagination_token=pagination_token - Get Reposts
- [hidePostsReply](https://oapis.org/openapi/x/hidePostsReply): PUT https://api.x.com/2/tweets/{tweet_id}/hidden - Hide reply
- [getUsersLikedPosts](https://oapis.org/openapi/x/getUsersLikedPosts): GET https://api.x.com/2/users/{id}/liked_tweets?max_results=integer&pagination_token=pagination_token - Get 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
- [getUsersMentions](https://oapis.org/openapi/x/getUsersMentions): GET https://api.x.com/2/users/{id}/mentions?since_id=since_id&until_id=until_id&max_results=integer&pagination_token=pagination_token&start_time=string&end_time=string - Get mentions
- [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?since_id=since_id&until_id=until_id&max_results=integer&pagination_token=pagination_token&exclude=array&start_time=string&end_time=string - Get Timeline
- [getUsersPosts](https://oapis.org/openapi/x/getUsersPosts): GET https://api.x.com/2/users/{id}/tweets?since_id=since_id&until_id=until_id&max_results=integer&pagination_token=pagination_token&exclude=array&start_time=string&end_time=string - Get Posts

## Usage

- [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

- [getListsFollowers](https://oapis.org/openapi/x/getListsFollowers): GET https://api.x.com/2/lists/{id}/followers?max_results=integer&pagination_token=pagination_token - Get List followers
- [getListsMembers](https://oapis.org/openapi/x/getListsMembers): GET https://api.x.com/2/lists/{id}/members?max_results=integer&pagination_token=pagination_token - Get List members
- [getPostsLikingUsers](https://oapis.org/openapi/x/getPostsLikingUsers): GET https://api.x.com/2/tweets/{id}/liking_users?max_results=integer&pagination_token=pagination_token - Get Liking Users
- [getPostsRepostedBy](https://oapis.org/openapi/x/getPostsRepostedBy): GET https://api.x.com/2/tweets/{id}/retweeted_by?max_results=integer&pagination_token=pagination_token - Get Reposted by
- [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 User by username
- [getUsersMe](https://oapis.org/openapi/x/getUsersMe): GET https://api.x.com/2/users/me - Get my User
- [getUsersPublicKeys](https://oapis.org/openapi/x/getUsersPublicKeys): GET https://api.x.com/2/users/public_keys?ids=array - Get public keys for multiple users
- [getUsersRepostsOfMe](https://oapis.org/openapi/x/getUsersRepostsOfMe): GET https://api.x.com/2/users/reposts_of_me?max_results=integer&pagination_token=pagination_token - Get Reposts of me
- [searchUsers](https://oapis.org/openapi/x/searchUsers): GET https://api.x.com/2/users/search?query=query&max_results=integer&next_token=next_token - Search Users
- [getUsersById](https://oapis.org/openapi/x/getUsersById): GET https://api.x.com/2/users/{id} - Get User by ID
- [getUsersAffiliates](https://oapis.org/openapi/x/getUsersAffiliates): GET https://api.x.com/2/users/{id}/affiliates?max_results=integer&pagination_token=pagination_token - Get affiliates
- [getUsersBlocking](https://oapis.org/openapi/x/getUsersBlocking): GET https://api.x.com/2/users/{id}/blocking?max_results=integer&pagination_token=pagination_token - Get blocking
- [getUsersBookmarks](https://oapis.org/openapi/x/getUsersBookmarks): GET https://api.x.com/2/users/{id}/bookmarks?max_results=integer&pagination_token=pagination_token - Get 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=pagination_token - Get Bookmark folders
- [getUsersBookmarksByFolderId](https://oapis.org/openapi/x/getUsersBookmarksByFolderId): GET https://api.x.com/2/users/{id}/bookmarks/folders/{folder_id} - Get 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 DMs
- [unblockUsersDms](https://oapis.org/openapi/x/unblockUsersDms): POST https://api.x.com/2/users/{id}/dm/unblock - Unblock DMs
- [getUsersFollowedLists](https://oapis.org/openapi/x/getUsersFollowedLists): GET https://api.x.com/2/users/{id}/followed_lists?max_results=integer&pagination_token=pagination_token - Get 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 List
- [getUsersFollowers](https://oapis.org/openapi/x/getUsersFollowers): GET https://api.x.com/2/users/{id}/followers?max_results=integer&pagination_token=pagination_token - Get followers
- [getUsersFollowing](https://oapis.org/openapi/x/getUsersFollowing): GET https://api.x.com/2/users/{id}/following?max_results=integer&pagination_token=pagination_token - Get 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=pagination_token - Get 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=pagination_token - Get List memberships
- [getUsersMentions](https://oapis.org/openapi/x/getUsersMentions): GET https://api.x.com/2/users/{id}/mentions?since_id=since_id&until_id=until_id&max_results=integer&pagination_token=pagination_token&start_time=string&end_time=string - Get mentions
- [getUsersMuting](https://oapis.org/openapi/x/getUsersMuting): GET https://api.x.com/2/users/{id}/muting?max_results=integer&pagination_token=pagination_token - Get 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=pagination_token - Get owned Lists
- [getUsersPinnedLists](https://oapis.org/openapi/x/getUsersPinnedLists): GET https://api.x.com/2/users/{id}/pinned_lists - Get 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 List
- [getUsersPublicKey](https://oapis.org/openapi/x/getUsersPublicKey): GET https://api.x.com/2/users/{id}/public_keys - Get user 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?since_id=since_id&until_id=until_id&max_results=integer&pagination_token=pagination_token&exclude=array&start_time=string&end_time=string - Get Timeline
- [getUsersPosts](https://oapis.org/openapi/x/getUsersPosts): GET https://api.x.com/2/users/{id}/tweets?since_id=since_id&until_id=until_id&max_results=integer&pagination_token=pagination_token&exclude=array&start_time=string&end_time=string - Get Posts
- [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

- [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}?tweet.fields=string&expansions=string&media.fields=string&poll.fields=string&user.fields=string&place.fields=string - 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
