# Admin API execution when authentication type is strategy

**URL:** <https://discourse.nodered.org/t/admin-api-execution-when-authentication-type-is-strategy/4202>\
**Category:** General\
**Created:** [23 October 2018 06:16 UTC](https://discourse.nodered.org/t/admin-api-execution-when-authentication-type-is-strategy/4202 "2018-10-23T06:16:14Z")\
**Posts on this page:** 1\
**Page:** 1

<div class="post-metadata">

**Author:** ![dheerajjoshim](https://avatars.discourse-cdn.com/v4/letter/d/858c86/32.png) [@dheerajjoshim](https://discourse.nodered.org/u/dheerajjoshim)\
**Post date:** [23 October 2018 06:16 UTC](https://discourse.nodered.org/t/admin-api-execution-when-authentication-type-is-strategy/4202/1 "2018-10-23T06:16:14Z")

</div>

I am using keycloak for Node-RED authentication.  
Since I am using admin auth type strategy admin api /auth/token gives 404 cannot post error  
If I use admin auth type password then everything works fine.

I want to execute admin API outside the Node-RED editor. How to execute them when we use strategy in admin auth?

In docs i see grant-type must be password for admin /auth/token API.
