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.

Prerequisites

Get Access Tokens Manually

  1. 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.

  2. Select the Copy icon to the right of the token. You can now make authorized calls to the Management API using this token.

    APIs - Management API access tokens - Testing - Copy token
  3. 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.

Use Access Tokens for Testing

You can use the Access Token you just created for testing purposes to manually call an endpoint through the Management API Explorer.

  1. Visit the Management API Explorer, and select the Set API Token button.

  2. Complete the API Token field. Additional information then displays on the popup, such as the scopes granted to the application.

  3. Select Set Token to save your token and close the popup. Notice that the Set API Token button now displays as Authorized.

  4. 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.

    APIs - Management API access tokens - Testing - Set token

Learn more