# Http request reference

**URL:** <https://community.n8n.io/t/http-request-reference/11834>\
**Category:** Questions\
**Tags:** data-transformation, node\
**Created:** [March 2, 2022, 1:11pm UTC](https://community.n8n.io/t/http-request-reference/11834 "2022-03-02T13:11:56Z")\
**Posts on this page:** 3\
**Page:** 1

<div class="post-metadata">

**Author:** ![Lucho](https://dub1.discourse-cdn.com/n8n/user_avatar/community.n8n.io/lucho/32/11180_2.png) [@Lucho](https://community.n8n.io/u/Lucho)\
**Post date:** [March 2, 2022, 1:11pm UTC](https://community.n8n.io/t/http-request-reference/11834/1 "2022-03-02T13:11:57Z")

</div>

Hello, I need help getting some sort of reference after a webhook POST.

I have a flow where I have a list of items in json format. A POST is sent for every one of them…This works just right, but now I need to execute a second request if the first one was successful, but I have no idea how to accomplish that, because the first request module returns the http response but there is no reference of the posted data.

---

<div class="post-metadata">

**Author:** ![MutedJam](https://dub1.discourse-cdn.com/n8n/user_avatar/community.n8n.io/mutedjam/32/70851_2.png) [@MutedJam](https://community.n8n.io/u/MutedJam)\
**Post date:** [March 2, 2022, 1:44pm UTC](https://community.n8n.io/t/http-request-reference/11834/2 "2022-03-02T13:44:50Z")

</div>

Hey @Lucho, welcome to the community 🎉

Sounds like you might you need the Merge node’s _Merge By Index_ mode. This would allow you to merge the input and the output item into a single item.

Here’s a quick example workflow showing the idea (you can copy it right into your n8n canvas):

> **Example Workflow**
>

 ![image](https://europe1.discourse-cdn.com/n8n/original/2X/b/baf5b2c463d1bcbc2bd68bbe3182524291fcac2c.png)

You can see the input data looks like so:

 ![image](https://europe1.discourse-cdn.com/n8n/original/2X/2/2c1e89ba6dcd63160ac0f6d183c3bf4b882a50eb.png)

Whereas the data returned by the HTTP Request node looks like this:

 ![image](https://europe1.discourse-cdn.com/n8n/original/2X/1/14a570a2c208c0071fcfcce4bd33eec77b67825b.png)

Following the Merge node, both items are merged together like so:

 ![image](https://europe1.discourse-cdn.com/n8n/original/2X/1/118589921654261061bc3649c5facf69b5bd8e60.png)

---

<div class="post-metadata">

**Author:** ![Lucho](https://dub1.discourse-cdn.com/n8n/user_avatar/community.n8n.io/lucho/32/11180_2.png) [@Lucho](https://community.n8n.io/u/Lucho)\
**Post date:** [March 2, 2022, 2:43pm UTC](https://community.n8n.io/t/http-request-reference/11834/3 "2022-03-02T14:43:05Z")

</div>

Yes! that’s exactly what i needed!

thanks!!!
