# Using node red as a read/write api

**URL:** <https://discourse.nodered.org/t/using-node-red-as-a-read-write-api/79467>\
**Category:** General\
**Created:** [28 June 2023 16:11 UTC](https://discourse.nodered.org/t/using-node-red-as-a-read-write-api/79467 "2023-06-28T16:11:05Z")\
**Posts on this page:** 3\
**Page:** 1

<div class="post-metadata">

**Author:** ![steven\_191](https://avatars.discourse-cdn.com/v4/letter/s/7993a0/32.png) [@steven\_191](https://discourse.nodered.org/u/steven_191)\
**Post date:** [28 June 2023 16:11 UTC](https://discourse.nodered.org/t/using-node-red-as-a-read-write-api/79467/1 "2023-06-28T16:11:05Z")

</div>

I have a remote device that has an option to write data to an http server. I assume this means api requests as I know them.

I did a bit of googling but I think I may not be phrasing it correctly because I keep coming back to http requests from node red to remote services.

So my device has the ability to do a get and post request. I don't know how it can write with a get request so I'll assume a post request is what I need. It will send a json object and I want to send it to an end point in node red.

I have set up a http in node. When I browse to this address I've set up a template to respond with a simple message to test and this works. But my remote device is set up to post to the same address but this is where I'm not sure if I'm on the write tracks. I never seem to get anything out of the debug unless I browse to the end point.

So there's I chance I've not set up the remote device but before I get to stuck in I thought it was worth asking first if I'm even doing it the right way.

Thanks

---

<div class="post-metadata">

**Author:** ![Colin](https://sea2.discourse-cdn.com/flex026/user_avatar/discourse.nodered.org/colin/32/17040_2.png) [@Colin](https://discourse.nodered.org/u/Colin)\
**Post date:** [28 June 2023 16:34 UTC](https://discourse.nodered.org/t/using-node-red-as-a-read-write-api/79467/2 "2023-06-28T16:34:34Z")

</div>

The node red cookbook has a [POST example](https://cookbook.nodered.org/#http-endpoints).

---

<div class="post-metadata">

**Author:** ![system](https://us1.discourse-cdn.com/flex026/uploads/nodered/original/1X/d073cd938eafa2e558d7c2cd59003b3ef4963033.png) [@system](https://discourse.nodered.org/u/system)\
**Post date:** [27 August 2023 16:34 UTC](https://discourse.nodered.org/t/using-node-red-as-a-read-write-api/79467/3 "2023-08-27T16:34:46Z")

</div>

This topic was automatically closed 60 days after the last reply. New replies are no longer allowed.
