# Managment API Best Practice

**URL:** <https://community.auth0.com/t/managment-api-best-practice/7708>\
**Category:** Get Help\
**Tags:** authnticate-api, api, authnticap-api, management-api\
**Created:** [August 1, 2017, 4:25am UTC](https://community.auth0.com/t/managment-api-best-practice/7708 "2017-08-01T04:25:17Z")\
**Posts on this page:** 3\
**Page:** 1

<div class="post-metadata">

**Author:** ![claytoncasey01](https://sea1.discourse-cdn.com/auth0/user_avatar/community.auth0.com/claytoncasey01/32/7844_2.png) [@claytoncasey01](https://community.auth0.com/u/claytoncasey01)\
**Post date:** [August 1, 2017, 4:25am UTC](https://community.auth0.com/t/managment-api-best-practice/7708/1 "2017-08-01T04:25:17Z")

</div>

I am working on a MEAN stack application and was just curious on the best way of calling the Management API. Should I wrap the calls to Auth0 in my Express back-end or make the calls directly from my front-end services? Wrapping it in the back-end would lead to an extra request as they are hosted on different servers. Just curious what everyone else is doing and what is considered best practice for this.

---

<div class="post-metadata">

**Author:** ![prashantT](https://sea1.discourse-cdn.com/auth0/user_avatar/community.auth0.com/prashantt/32/6002_2.png) [@prashantT](https://community.auth0.com/u/prashantT)\
**Post date:** [August 1, 2017, 2:28pm UTC](https://community.auth0.com/t/managment-api-best-practice/7708/2 "2017-08-01T14:28:04Z")

</div>

Management API calls require an access\_token obtained via a Client Credentials grant flow, hence should not be performed from the frontend (The client credentials flow requires the client\_secret, which a SPA frontend cannot store securely).

Calls to the Management API should be proxied through your backend to securely perform a Client Credentials exchange to obtain and cache the access\_token. This is outlined further in [this](https://auth0.com/docs/api-auth/grant/client-credentials) document.

---

<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:** [March 2, 2018, 5:55am UTC](https://community.auth0.com/t/managment-api-best-practice/7708/3 "2018-03-02T05:55:42Z")

</div>


