# Endpoints & callbacks

**URL:** <https://discourse.nodered.org/t/endpoints-callbacks/34833>\
**Category:** General\
**Created:** [26 October 2020 14:17 UTC](https://discourse.nodered.org/t/endpoints-callbacks/34833 "2020-10-26T14:17:22Z")\
**Posts on this page:** 4\
**Page:** 1

<div class="post-metadata">

**Author:** ![Paul-Reed](https://sea2.discourse-cdn.com/flex026/user_avatar/discourse.nodered.org/paul-reed/32/66906_2.png) [@Paul-Reed](https://discourse.nodered.org/u/Paul-Reed)\
**Post date:** [26 October 2020 14:17 UTC](https://discourse.nodered.org/t/endpoints-callbacks/34833/1 "2020-10-26T14:17:22Z")

</div>

I've not had much experience with endpoints, but I'm trying to listen for a POST request, after creating an endpoint like this;

![endpoint](https://us1.discourse-cdn.com/flex026/uploads/nodered/original/3X/8/c/8c7f764dfe6fccd634ac1c4d1de32014b1e1dd21.jpeg)

```auto
[{"id":"137645fc.bfb2ba","type":"debug","z":"9a54d43d.46e888","name":"","active":true,"tosidebar":true,"console":false,"tostatus":false,"complete":"true","targetType":"full","statusVal":"","statusType":"auto","x":470,"y":840,"wires":[]},{"id":"ee886b3f.9827e8","type":"http in","z":"9a54d43d.46e888","name":"","url":"/receipt","method":"get","upload":false,"swaggerDoc":"","x":240,"y":840,"wires":[["8151fb.fd829e08","137645fc.bfb2ba"]]},{"id":"8151fb.fd829e08","type":"http response","z":"9a54d43d.46e888","name":"","statusCode":"","headers":{},"x":460,"y":780,"wires":[]}]

```

and have supplied the url as `https://myserver.co.uk:2086/receipt`

I'm assured from the originator that the Post request is being sent to that url, but nothing is ever received.

Have I done this correctly?

The 2086 port is open, and both the editor & dashboard can be accessed from outside my local network on the `https://myserver.co.uk:2086` base url.  
I have not added any security to the endpoints.

---

<div class="post-metadata">

**Author:** ![dceejay](https://sea2.discourse-cdn.com/flex026/user_avatar/discourse.nodered.org/dceejay/32/38_2.png) [@dceejay](https://discourse.nodered.org/u/dceejay)\
**Post date:** [26 October 2020 14:54 UTC](https://discourse.nodered.org/t/endpoints-callbacks/34833/2 "2020-10-26T14:54:42Z")

</div>

well you have configured it as GET.... but you said you wanted POST....

---

<div class="post-metadata">

**Author:** ![Paul-Reed](https://sea2.discourse-cdn.com/flex026/user_avatar/discourse.nodered.org/paul-reed/32/66906_2.png) [@Paul-Reed](https://discourse.nodered.org/u/Paul-Reed)\
**Post date:** [26 October 2020 15:08 UTC](https://discourse.nodered.org/t/endpoints-callbacks/34833/3 "2020-10-26T15:08:24Z")

</div>

Oh dear! my rationale was that it they are sending the msg, they would 'Post'.  
Whilst I wanted to receive it, so the node would be set to 'Get'.

Obviously wrong!

But yes if I set the node to Post, then I receive the msg OK.  
Thanks

---

<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:** [9 November 2020 15:08 UTC](https://discourse.nodered.org/t/endpoints-callbacks/34833/4 "2020-11-09T15:08:33Z")

</div>

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