{ "opencollection": "1.0.0", "info": { "name": "X API v2 Account Activity Bookmarks API", "version": "2.161" }, "items": [ { "info": { "name": "Bookmarks", "type": "folder" }, "items": [ { "info": { "name": "X Get Bookmarks", "type": "http" }, "http": { "method": "GET", "url": "https://api.x.com/2/users/:id/bookmarks", "params": [ { "name": "id", "value": "1234567890", "type": "path", "description": "The ID of the authenticated source User for whom to return results." }, { "name": "max_results", "value": "10", "type": "query", "description": "The maximum number of results." }, { "name": "pagination_token", "value": "next_token_abc123", "type": "query", "description": "This parameter is used to get the next 'page' of results." }, { "name": "tweet.fields", "value": "", "type": "query", "description": "A comma separated list of Tweet fields to display." }, { "name": "expansions", "value": "", "type": "query", "description": "A comma separated list of fields to expand." }, { "name": "media.fields", "value": "", "type": "query", "description": "A comma separated list of Media fields to display." }, { "name": "poll.fields", "value": "", "type": "query", "description": "A comma separated list of Poll fields to display." }, { "name": "user.fields", "value": "", "type": "query", "description": "A comma separated list of User fields to display." }, { "name": "place.fields", "value": "", "type": "query", "description": "A comma separated list of Place fields to display." } ], "auth": { "type": "oauth2", "flow": "authorization_code", "authorizationUrl": "https://api.x.com/2/oauth2/authorize", "accessTokenUrl": "https://api.x.com/2/oauth2/token", "credentials": { "clientId": "{{clientId}}", "clientSecret": "{{clientSecret}}" } } }, "docs": "Retrieves a list of Posts bookmarked by the authenticated user." }, { "info": { "name": "X Create Bookmark", "type": "http" }, "http": { "method": "POST", "url": "https://api.x.com/2/users/:id/bookmarks", "params": [ { "name": "id", "value": "1234567890", "type": "path", "description": "The ID of the authenticated source User for whom to add bookmarks." } ], "body": { "type": "json", "data": "{}" }, "auth": { "type": "oauth2", "flow": "authorization_code", "authorizationUrl": "https://api.x.com/2/oauth2/authorize", "accessTokenUrl": "https://api.x.com/2/oauth2/token", "credentials": { "clientId": "{{clientId}}", "clientSecret": "{{clientSecret}}" } } }, "docs": "Adds a post to the authenticated user’s bookmarks." }, { "info": { "name": "X Get Bookmark Folders", "type": "http" }, "http": { "method": "GET", "url": "https://api.x.com/2/users/:id/bookmarks/folders", "params": [ { "name": "id", "value": "1234567890", "type": "path", "description": "The ID of the authenticated source User for whom to return results." }, { "name": "max_results", "value": "10", "type": "query", "description": "The maximum number of results." }, { "name": "pagination_token", "value": "next_token_abc123", "type": "query", "description": "This parameter is used to get the next 'page' of results." } ], "auth": { "type": "oauth2", "flow": "authorization_code", "authorizationUrl": "https://api.x.com/2/oauth2/authorize", "accessTokenUrl": "https://api.x.com/2/oauth2/token", "credentials": { "clientId": "{{clientId}}", "clientSecret": "{{clientSecret}}" } } }, "docs": "Retrieves a list of Bookmark folders created by the authenticated user." }, { "info": { "name": "X Get Bookmarks by Folder ID", "type": "http" }, "http": { "method": "GET", "url": "https://api.x.com/2/users/:id/bookmarks/folders/:folder_id", "params": [ { "name": "id", "value": "1234567890", "type": "path", "description": "The ID of the authenticated source User for whom to return results." }, { "name": "folder_id", "value": "1234567890", "type": "path", "description": "The ID of the Bookmark Folder that the authenticated User is trying to fetch Posts for." } ], "auth": { "type": "oauth2", "flow": "authorization_code", "authorizationUrl": "https://api.x.com/2/oauth2/authorize", "accessTokenUrl": "https://api.x.com/2/oauth2/token", "credentials": { "clientId": "{{clientId}}", "clientSecret": "{{clientSecret}}" } } }, "docs": "Retrieves Posts in a specific Bookmark folder by its ID for the authenticated user." }, { "info": { "name": "X Delete Bookmark", "type": "http" }, "http": { "method": "DELETE", "url": "https://api.x.com/2/users/:id/bookmarks/:tweet_id", "params": [ { "name": "id", "value": "1234567890", "type": "path", "description": "The ID of the authenticated source User whose bookmark is to be removed." }, { "name": "tweet_id", "value": "1234567890", "type": "path", "description": "The ID of the Post that the source User is removing from bookmarks." } ], "auth": { "type": "oauth2", "flow": "authorization_code", "authorizationUrl": "https://api.x.com/2/oauth2/authorize", "accessTokenUrl": "https://api.x.com/2/oauth2/token", "credentials": { "clientId": "{{clientId}}", "clientSecret": "{{clientSecret}}" } } }, "docs": "Removes a Post from the authenticated user’s Bookmarks by its ID." } ] } ], "bundled": true }