Auth0 Home Blog Docs

How to generate a Management API token?



Any information would be helpful.


The Management API token is now generated by using our Auth0 Management API - you can find this here -

Full instructions also here -

As the instructions indicate, you can either do a one-off manual generation (24 hour expiration) or else automate this, including the refreshing of the Management API Token.

Assuming you wish to automate the process, you first need to create and configure a Non-Interactive Client - Then follow these steps here -

A key point is that you cannot renew a Management APIv2 token. A new token should be created when the old one expires. One way to achieve this automatically is to either track the expiration and generate when required, or else respond to a failure when using the token against an endpoint to determine when a new token is required.

Also, please see our FAQ on this if you have any doubts -