# How to access Admin API

**URL:** <https://discourse.nodered.org/t/how-to-access-admin-api/95996>\
**Category:** General\
**Created:** [14 March 2025 10:53 UTC](https://discourse.nodered.org/t/how-to-access-admin-api/95996 "2025-03-14T10:53:44Z")\
**Posts on this page:** 3\
**Page:** 1

<div class="post-metadata">

**Author:** ![mus](https://avatars.discourse-cdn.com/v4/letter/m/a9adbd/32.png) [@mus](https://discourse.nodered.org/u/mus)\
**Post date:** [14 March 2025 10:53 UTC](https://discourse.nodered.org/t/how-to-access-admin-api/95996/1 "2025-03-14T10:53:44Z")

</div>

Hello,  
i need to list my flows using /flows. i checked the doc from node-red for /auth/login but my response it's like this i tried to authenticate with token /auth/token give me Error  
/auth/login

```auto
{
  "type": "strategy",
  "autoLogin": true,
  "loginRedirect": "auth/strategy",
  "prompts": [
    {
      "type": "button",
      "label": "OpenID Connect",
      "url": "auth/strategy",
      "icon": "fa-cloud"
    }
  ]
}

```

/auth/token

```auto
<!DOCTYPE html>
<html lang="en">
  <head>
    <meta charset="utf-8">
    <title>Error</title>
  </head>
  <body>
    <pre>Cannot POST /auth/token</pre>
  </body>
</html>

```

---

<div class="post-metadata">

**Author:** ![marcus-j-davies](https://sea2.discourse-cdn.com/flex026/user_avatar/discourse.nodered.org/marcus-j-davies/32/103435_2.png) [@marcus-j-davies](https://discourse.nodered.org/u/marcus-j-davies)\
**Post date:** [14 March 2025 19:41 UTC](https://discourse.nodered.org/t/how-to-access-admin-api/95996/2 "2025-03-14T19:41:36Z")

</div>

Hi @mus - welcome the forums

If the login methods require an interactive engagement (like using a redirect that OpenID requires I think), Im not sure the API login methods will work.

I may be utterly incorrect here - @knolleary?  
The inner workings of authentication in Node RED is not something I'm overly knowledgeable in

---

<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:** [12 June 2025 19:41 UTC](https://discourse.nodered.org/t/how-to-access-admin-api/95996/3 "2025-06-12T19:41:45Z")

</div>

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