Hi there,
I have been having trouble creating this workflow that needs the HTTP request node to post a tweet as a reply to a tweet. I have looked at the Twitter API reference and have not been able to crack the correct syntax of the post body.
Below is the screen capture showing the error.
Below is a screen capture of the params I am passing in the body of the post request.
API endpoint : https://api.twitter.com/2/tweets
2nd param of the body that specifies the tweet to which I’d reply to is being passed as
I have tried few ways of passing it, but nothing seems to work.
Any assistance would be of great help.
Thank you.
I would try adding quotes to in_reply_to_tweet_id.
Send it as "in_reply_to_tweet_id"
. That is, of course, assuming that that is the correct body. Can you share the endpoint you are trying to use?
Appreciate the response. API endpoint is https://api.twitter.com/2/tweets
Here is the link to the API ref guide
I have tried the following:
- “in_reply_to_tweet_id”
- “in_reply_to_tweet_id” : “…”
- {“in_reply_to_tweet_id” : “…”}
- In the name field I put reply.in_reply_to_tweet_id. Screen capture below:
I don’t know what other combinations to try.
Hi @ronykris, from looking at the example in the documentation you have linked, the in_reply_to_tweet_id
field should be nested inside the reply
field:
Example: {"text": "Excited!", "reply": {"in_reply_to_tweet_id": "1455953449422516226"}}
So you might want to give the JSON/Raw Parameters option of the HTTP Request node a go:

This would be an easy way of adding a JSON structure to your request:

2 Likes
Thank you @MutedJam , I didn’t notice that option
It did the trick!
1 Like
Awesome, glad to hear this works and many thanks for confirming 