The Bookmarks endpoints let you view, add, and remove bookmarked Posts for the authenticated user. Bookmarks are private and only visible to the user who created them.Documentation Index
Fetch the complete documentation index at: https://docs.x.com/llms.txt
Use this file to discover all available pages before exploring further.
Overview
View bookmarks
Get all bookmarked Posts
Add bookmark
Bookmark a Post
Remove bookmark
Remove a bookmarked Post
Bookmark folders
Organize bookmarks into folders
Endpoints
| Method | Endpoint | Description |
|---|---|---|
| GET | /2/users/:id/bookmarks | Get user’s bookmarks |
| POST | /2/users/:id/bookmarks | Bookmark a Post |
| DELETE | /2/users/:id/bookmarks/:tweet_id | Remove a bookmark |
| GET | /2/users/:id/bookmarks/folders | Get bookmark folders |
| GET | /2/users/:id/bookmarks/folders/:folder_id | Get Posts in a folder |
Example: Get bookmarks
Example: Add bookmark
Getting started
Prerequisites
- An approved developer account
- A Project and App in the Developer Console
- User Access Tokens via OAuth 2.0 PKCE or 3-legged OAuth
Lookup quickstart
Get a user’s bookmarks
Manage quickstart
Add and remove bookmarks
Integration guide
Key concepts and best practices
API Reference
Full endpoint documentation