This method for obtaining Access Tokens is only for test purposes. Do not get manually long-lived tokens and use them in your applications because that nullifies the security advantages that tokens offer.
The first time you get a test token for the is when you complete the configuration in the . You won’t have to do this again unless you create a new tenant. We recommend that you create a test token exclusively for authorizing access to the Management API instead of reusing another one you might have.
On your Auth0 Dashboard, navigate to Applications > APIs >Auth0 Management API. Select the API Explorer tab and locate an auto-generated token in the Token section.
Select the Copy icon to the right of the token. You can now make authorized calls to the Management API using this token.
Optionally set the expiration time. By default, the token has an expiration time of 86400 seconds, which is 24 hours. After that period, the token expires and can no longer be used. To change the expiration time, update Token Expiration (Seconds) and click Update & Regenerate Token.
These tokens cannot be revoked so long expiration times are not recommended. Instead we recommend that you use short expiration times and issue a new one every time you need it. You can verify expiration by using jwt.io to decode the token.
Complete the API Token field. Additional information then displays on the popup, such as the scopes granted to the application.
Select Set Token to save your token and close the popup. Notice that the Set API Token button now displays as Authorized.
To begin testing, navigate to an endpoint you wish to call and enter any required or optional parameters in the fields to the right. Then, select Test Endpoint.