GetXAPI
Tweets

UnBookmark

Remove a tweet from your bookmarks programmatically via API. $0.001 per call. GetXAPI unbookmark tweet endpoint documentation.

POST/twitter/tweet/unbookmark

This endpoint costs $0.001 per API call.

Request Body

FieldTypeRequiredDescription
auth_tokenstringYesUser's auth token
ct0stringNoOptional current CSRF token cookie. When provided with twid, skips server-side credential resolution.
twidstringNoOptional current user ID cookie, for example u=1234567890. Must be provided with ct0.
tweet_idstringYesTweet id to remove from bookmarks
proxystringNoProxy URL (http://, https://, socks5://, or socks4://)

Notes

  • If you already have current ct0 and twid, send both to skip the extra server-side credential bootstrap from auth_token. If either one is omitted, the server resolves them from auth_token as before. Stale or invalid supplied values are not validated upfront and may fail on the actual Twitter action instead of returning an early 401.
  • Removes the tweet from the auth_token owner's bookmarks.

Response (200)

{
  "status": "success",
  "msg": "Tweet unbookmarked successfully",
  "data": {
    "tweetId": "2019264360682778716",
    "unbookmarked": true
  }
}

Error Responses

400 - Missing fields

{
  "error": "Missing required field: tweet_id"
}

401 - Invalid auth_token

{
  "error": "Invalid auth_token - could not extract userId"
}

Example

curl -X POST "https://api.getxapi.com/twitter/tweet/unbookmark" \
  -H "Authorization: Bearer API_KEY" \
  -H "Content-Type: application/json" \
  -d '{
    "auth_token": "your_auth_token",
    "tweet_id": "2019264360682778716"
  }'

On this page