Get Management API Access Tokens for Testing

Get Management API Access Tokens for Testing

The first time you get a test token for the Management API is when you complete the configuration in the Auth0 Dashboard. 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.


Get Access Tokens Manually

  1. Go to the API Explorer tab of your Auth0 Management API. A token is automatically generated and displayed there.

  2. Click Copy Token. You can now make authorized calls to the Management API using this token.

    APIs - Management API access tokens - Testing - Copy token
  3. Set expiration time. By default, this token has an expiration time of 86400 seconds (24 hours). After that period, the token expires and you will need to get a new one. To change the expiration time, update Token Expiration (Seconds), and click Update & Regenerate Token.

Use Access Tokens for Testing

To use the Access Token you just created for testing purposes, use the Management API v2 explorer page to manually call an endpoint with the token.

  1. Go to the Management API v2 explorer page, and click the Set API Token button.

  2. Set the API Token field, and click Set Token.

  3. Under the Set API Token button, some new information is now displayed: the domain and token set, and the scopes that have been granted to this application.

  4. Go to the endpoint you want to call, fill any parameters that might be required, and click Try.

    APIs - Management API access tokens - Testing - Set token

Learn more