# Create HTTP endpoint on node-red startup

**URL:** <https://discourse.nodered.org/t/create-http-endpoint-on-node-red-startup/494>\
**Category:** General\
**Created:** [30 May 2018 13:43 UTC](https://discourse.nodered.org/t/create-http-endpoint-on-node-red-startup/494 "2018-05-30T13:43:15Z")\
**Posts on this page:** 2\
**Page:** 1

<div class="post-metadata">

**Author:** ![benjamin](https://avatars.discourse-cdn.com/v4/letter/b/3d9bf3/32.png) [@benjamin](https://discourse.nodered.org/u/benjamin)\
**Post date:** [30 May 2018 13:43 UTC](https://discourse.nodered.org/t/create-http-endpoint-on-node-red-startup/494/1 "2018-05-30T13:43:15Z")

</div>

Hi everyone,

what I am trying to achieve is to have an HTTP endpoint available that serves information for several different nodes.

I am aware of the solution brought forward [here](https://github.com/node-red/cookbook.nodered.org/wiki/Create-an-admin-configuration-API-endpoint). But my requirement is a little different as I need the data from the endpoint even when a configuration node is not set, yet.

I was also trying to play around with `functionGlobalContext` and including `RED.httpAdmin.get(...)`, but RED is not available in this context.

Is there a way to achieve this already?

Benjamin

---

<div class="post-metadata">

**Author:** ![TotallyInformation](https://sea2.discourse-cdn.com/flex026/user_avatar/discourse.nodered.org/totallyinformation/32/31_2.png) [@TotallyInformation](https://discourse.nodered.org/u/TotallyInformation)\
**Post date:** [30 May 2018 23:10 UTC](https://discourse.nodered.org/t/create-http-endpoint-on-node-red-startup/494/2 "2018-05-30T23:10:21Z")

</div>

> [@benjamin](#):
>
> I am aware of the solution brought forward [here](https://github.com/node-red/cookbook.nodered.org/wiki/Create-an-admin-configuration-API-endpoint). But my requirement is a little different as I need the data from the endpoint even when a configuration node is not set, yet.

Urm. Surely you need some kind of lconfig?

Maybe I'm not getting it?

Uibuilder will give you an endpoint but I'm not sure if that's what you want.
