# Is the only way to obtain a Management API token via copy and paste?

**URL:** <https://community.auth0.com/t/is-the-only-way-to-obtain-a-management-api-token-via-copy-and-paste/86908>\
**Category:** Get Help\
**Tags:** jwt, api\
**Created:** [July 13, 2022, 2:45pm UTC](https://community.auth0.com/t/is-the-only-way-to-obtain-a-management-api-token-via-copy-and-paste/86908 "2022-07-13T14:45:40Z")\
**Posts on this page:** 1\
**Showing post:** 3

<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:** [July 14, 2022, 12:42am UTC](https://community.auth0.com/t/is-the-only-way-to-obtain-a-management-api-token-via-copy-and-paste/86908/3 "2022-07-14T00:42:54Z")

</div>

Hello @robliou01!

> [@robliou01](#):
>
> Upon further research, it would appear that for SPA’s, Auth0 has put a strict [limitation](https://auth0.com/docs/secure/tokens/access-tokens/get-management-api-tokens-for-single-page-applications) on the Management API. Essentially, it can only be obtained manually and then copied and pasted afterward!

There are indeed limitations on how a SPA can use the Management API, but that is primarily just that it’s limited to certain scopes related to the currently logged in user.

It’s hard to know exactly what could be going on in your specific case, but I’ve found the following topic to be super helpful in outlining the options available in this scenario:

> [@Calling management API to update user meta data from SPA](https://community.auth0.com/t/calling-management-api-to-update-user-meta-data-from-spa/64600/5):
>
> Glad to hear it is working for you! An alternative approach would be to handle the calls to the Management API in your backend. You would [register your API](https://auth0.com/docs/get-started/set-up-apis) as a custom API and use its identifier as the audience in the SPA. You would then create a Machine-to-Machine application for your backend and authorize it to use the Management API. Your backend could use one of the [Auth0 SDKs](https://auth0.com/docs/quickstart/backend) to validate the Access Token and return data from the Management API for the SPA. That way any Access Tokens for th…

---

_[View the full topic](https://community.auth0.com/t/is-the-only-way-to-obtain-a-management-api-token-via-copy-and-paste/86908)._
