# Trying to use node-auth0 management api. Help with client setup please

**URL:** <https://community.auth0.com/t/trying-to-use-node-auth0-management-api-help-with-client-setup-please/118060>\
**Category:** Get Help\
**Tags:** users, management-api\
**Created:** [October 8, 2023, 9:20pm UTC](https://community.auth0.com/t/trying-to-use-node-auth0-management-api-help-with-client-setup-please/118060 "2023-10-08T21:20:59Z")\
**Posts on this page:** 3\
**Page:** 1

<div class="post-metadata">

**Author:** ![kdm](https://sea1.discourse-cdn.com/auth0/user_avatar/community.auth0.com/kdm/32/8632_2.png) [@kdm](https://community.auth0.com/u/kdm)\
**Post date:** [October 8, 2023, 9:20pm UTC](https://community.auth0.com/t/trying-to-use-node-auth0-management-api-help-with-client-setup-please/118060/1 "2023-10-08T21:20:59Z")

</div>

I’m using [GitHub - auth0/node-auth0: Node.js client library for the Auth0 platform.](https://github.com/auth0/node-auth0)

I have a backend monolith in nodejs and I want to manually create users using management API.

However, I am confused about this:

```auto
import { ManagementClient } from 'auth0';

var management = new ManagementClient({
  domain: '{YOUR_TENANT_AND REGION}.auth0.com',
  clientId: '{YOUR_CLIENT_ID}',
  clientSecret: '{YOUR_CLIENT_SECRET}',
});

```

Where do I get CLIENT\_ID and CLIENT\_SECRET from?

I made a new API for my backend (NOT application, I clicked API) and there’s no CLIENT\_ID or CLIENT\_SECRET.

I only see these if I create an APPLICATION. However, this is a purely backend server side codebase.

Can someone advise me?

Thanks

---

<div class="post-metadata">

**Author:** ![ty.frith](https://sea1.discourse-cdn.com/auth0/user_avatar/community.auth0.com/ty.frith/32/58484_2.png) [@ty.frith](https://community.auth0.com/u/ty.frith)\
**Post date:** [October 9, 2023, 4:36pm UTC](https://community.auth0.com/t/trying-to-use-node-auth0-management-api-help-with-client-setup-please/118060/3 "2023-10-09T16:36:44Z")

</div>

Hey there @kdm !

> [@kdm](#):
>
> Where do I get CLIENT\_ID and CLIENT\_SECRET from?
> 
> I made a new API for my backend (NOT application, I clicked API) and there’s no CLIENT\_ID or CLIENT\_SECRET.
> 
> I only see these if I create an APPLICATION. However, this is a purely backend server side codebase.

You’ll need to utilize an [M2M application](https://auth0.com/docs/get-started/auth0-overview/create-applications/machine-to-machine-apps) in Auth0 - You’ll use the M2M machine credentials (client id/secret) of the M2M app you create in Auth0 to initialize your node management client. The M2M app you create in Auth0 will need to be authorized by the Management API in your dashboard as well.

> **[Using Machine to Machine (M2M) Authorization](https://auth0.com/blog/using-m2m-authorization/)**
>
> How to set up non-interactive apps using the client credentials grant and Auth0 to perform IoT device, CLI tool, and more machine to mach...

---

<div class="post-metadata">

**Author:** ![system](https://global.discourse-cdn.com/auth0/original/3X/b/5/b560f266932fcce5d57f09a6595bd50518cae3f3.jpeg) [@system](https://community.auth0.com/u/system)\
**Post date:** [October 23, 2023, 4:37pm UTC](https://community.auth0.com/t/trying-to-use-node-auth0-management-api-help-with-client-setup-please/118060/4 "2023-10-23T16:37:37Z")

</div>

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