Noweh
#1
Hello!
In first, everything is OK for routes GET tweets/search/recent and GET users.
I’m trying to use the POST Retweet route v2 without success.
My APP is configured with READ and WRITE permissions.
My call seems good to me :
curl --request POST --url ‘…/2/users/USERID/retweets’ -H “Content-Type: application/json” --data-raw ‘{“tweet_id”: “XXXXX”}’ --header ‘Authorization: Bearer BEARER_TOKEN’
Return: {“title”:“Forbidden”,“detail”:“Forbidden”,“type”:“about:blank”,“status”:403}
Thanks for your help!
Most POST endpoints generally require OAuth1.0a (User auth with access tokens, not a bearer token which is application only) POST /2/users/:id/retweets | Docs | Twitter Developer Platform you need to use the API key & secret and access token & secret.
Also make sure your app has read & write permissions. If you changed permissions you also need to reset your tokens because they don’t expire and retain the old permissions.
2 Likes
Thanks, this token reset was what was needed for me. 
2 Likes