Create OAuth2 connection to X/twitter 2024

I am trying to setup a scenario to reply to certain tweets. I know this can be done with certain parameters and that my curl call should be something like

curl -X POST "https://api.twitter.com/2/tweets" -H "Authorization: OAuth $OAUTH_SIGNATURE" -H "Content-type: application/json" -d '{"reply":{"in_reply_to_tweet_id":"1234567890"},"text":"YOUR REPLY HERE"}'

However I have no idea on how to do this since the X integrations on make.com don’t allow to enter the reply parameters.

I have seen from this topic that an HTTP OAuth2 is needed but I have the same issue as the user linked and I’m at a loss here.

Welcome @TacoRanger;

Checking out X’s API documentation provides POST /2/tweets | Docs | Twitter Developer Platform.

From that you’d want to use the Twitter/X API module, POST method, and form a JSON request similar to what you’ve shown in the curl sample.

Luck!

Oh my god coming back to it with a fresh head really helped me here. Using the Twitter/X API module with the v5 instead of the v6 did the trick since the API CALL module doesn’t exist in the V6. I didn’t even know that was a thing thanks a lot!

3 Likes