# How to start/stop a node in nodered from nodejs application

**URL:** https://discourse.nodered.org/t/how-to-start-stop-a-node-in-nodered-from-nodejs-application/29774
**Category:** General
**Created:** [9 July 2020 10:05 UTC](https://discourse.nodered.org/t/how-to-start-stop-a-node-in-nodered-from-nodejs-application/29774 "2020-07-09T10:05:53Z")
**Posts on this page:** 3
**Page:** 1

<div class="post-metadata">

### Author: ![arunkumarshan](https://avatars.discourse-cdn.com/v4/letter/a/e68b1a/32.png) [@arunkumarshan](https://discourse.nodered.org/u/arunkumarshan)
#### Post date: [9 July 2020 10:05 UTC](https://discourse.nodered.org/t/how-to-start-stop-a-node-in-nodered-from-nodejs-application/29774/1 "2020-07-09T10:05:53Z")

</div>

Hi,

We have a requirement to load all flows details created in nodered from external like using angularjs /nodejs, also to start /stop the node (inject node) from outside nodered.

I have referred [https://nodered.org/docs/api/admin/](https://nodered.org/docs/api/admin/) for getting the flows and details using API but I'm unable to see any API to start a node inside a specific flow.

Appreciate your support on my challenge.

Thanks!

---

<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: [9 July 2020 11:13 UTC](https://discourse.nodered.org/t/how-to-start-stop-a-node-in-nodered-from-nodejs-application/29774/2 "2020-07-09T11:13:06Z")

</div>

why not create your own http endpoint in Node-RED to catch any commands you want to fire at it and control the flow that way. You shouldn't really be using admin api for user actions.

---

<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: [7 September 2020 11:13 UTC](https://discourse.nodered.org/t/how-to-start-stop-a-node-in-nodered-from-nodejs-application/29774/3 "2020-09-07T11:13:07Z")

</div>

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