Get Management API Access Tokens for Testing

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.

Prerequisites

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.

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.

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