# Unauthorised at localhost:1880/flows

**URL:** https://discourse.nodered.org/t/unauthorised-at-localhost-1880-flows/12712
**Category:** General
**Created:** [29 June 2019 03:45 UTC](https://discourse.nodered.org/t/unauthorised-at-localhost-1880-flows/12712 "2019-06-29T03:45:14Z")
**Posts on this page:** 5
**Page:** 1

<div class="post-metadata">

### Author: ![tramanah](https://sea2.discourse-cdn.com/flex026/user_avatar/discourse.nodered.org/tramanah/32/9122_2.png) [@tramanah](https://discourse.nodered.org/u/tramanah)
#### Post date: [29 June 2019 03:45 UTC](https://discourse.nodered.org/t/unauthorised-at-localhost-1880-flows/12712/1 "2019-06-29T03:45:14Z")

</div>

Hi, I am trying to download the entire tabs code by :- localhost:1880/flows  
it's showing unauthorised.

I do have another question, how to stop node red in the window platform. while trying "node-red-stop" its doesn't work.

---

<div class="post-metadata">

### Author: ![Steve-Mcl](https://sea2.discourse-cdn.com/flex026/user_avatar/discourse.nodered.org/steve-mcl/32/4826_2.png) [@Steve-Mcl](https://discourse.nodered.org/u/Steve-Mcl)
#### Post date: [29 June 2019 11:34 UTC](https://discourse.nodered.org/t/unauthorised-at-localhost-1880-flows/12712/2 "2019-06-29T11:34:31Z")

</div>

> [@tramanah](#):
>
> Hi, I am trying to download the entire tabs code by :- localhost:1880/flows  
> it's showing unauthorised.

Im interested in this too.

> [@tramanah](#):
>
> how to stop node red in the window platform. while trying "node-red-stop" its doesn't work.

Thats for RPi / linux (not available on windows).

If you run node-red in a cmd window by entering `node-red` just close it or `ctrl+c` to stop it.  
if you run it as a service, stop the service.  
etc

---

<div class="post-metadata">

### Author: ![ukmoose](https://sea2.discourse-cdn.com/flex026/user_avatar/discourse.nodered.org/ukmoose/32/13_2.png) [@ukmoose](https://discourse.nodered.org/u/ukmoose)
#### Post date: [29 June 2019 11:44 UTC](https://discourse.nodered.org/t/unauthorised-at-localhost-1880-flows/12712/3 "2019-06-29T11:44:38Z")

</div>

With localhost, you are trying to access this on the same machine that node-red is running?  
If you are, have you tried replacing local host with the IP address of the machine?

Have you setup a user name and password for Node-RED?

---

<div class="post-metadata">

### Author: ![tramanah](https://sea2.discourse-cdn.com/flex026/user_avatar/discourse.nodered.org/tramanah/32/9122_2.png) [@tramanah](https://discourse.nodered.org/u/tramanah)
#### Post date: [3 July 2019 00:57 UTC](https://discourse.nodered.org/t/unauthorised-at-localhost-1880-flows/12712/4 "2019-07-03T00:57:46Z")

</div>

Yes, I do. But i did login successful before access node-red flows

---

<div class="post-metadata">

### Author: ![knolleary](https://sea2.discourse-cdn.com/flex026/user_avatar/discourse.nodered.org/knolleary/32/3_2.png) [@knolleary](https://discourse.nodered.org/u/knolleary)
#### Post date: [3 July 2019 07:46 UTC](https://discourse.nodered.org/t/unauthorised-at-localhost-1880-flows/12712/5 "2019-07-03T07:46:28Z")

</div>

Being logged into the editor doesn't mean you can just access the admin endpoints in a different browser window.

As described in the docs, you need to set the authorisation http header properly with an access token: [https://nodered.org/docs/api/admin/methods/get/flows/](https://nodered.org/docs/api/admin/methods/get/flows/)

This page describes how to get a token: [https://nodered.org/docs/api/admin/oauth](https://nodered.org/docs/api/admin/oauth)
