createBookmark abstract method

Future<TwitterResponse<BookmarkStateData, void>> createBookmark({
  1. required String userId,
  2. required String tweetId,

Causes the user ID of an authenticated user identified in the path parameter to Bookmark the target Tweet provided in the request body.


  • userId: The user ID of an authenticated user who you are bookmarking a Tweet on behalf of. It must match your own user ID or that of an authenticating user, meaning that you must pass the Access Token associated with the user ID when authenticating your request.

  • tweetId: The ID of the Tweet that you would like the user id to Bookmark.

Endpoint Url

Authentication Methods

  • OAuth 2.0 Authorization Code with PKCE

Required Scopes

  • bookmark.write

Rate Limits

  • User rate limit (OAuth 2.0 user Access Token): 50 requests per 15-minute window per each authenticated user



Future<TwitterResponse<BookmarkStateData, void>> createBookmark(
    {required String userId, required String tweetId});