Add a unique name for your application and select Machine to Machine Applications
From the dropdown menu, choose the API you wish to authorize for invocation by your application, and select the required Permissions.
Click Authorize to create your new application.
On the Application page, navigate to the Credentials section. Your Client Secret will be displayed here, and the Client ID can be found at the top of the page.
From the Quickstart tab of your newly created application, Auth0 provides an example request for obtaining an access token. Your HostName is the text that appears after https:// and before /oauth/token.
In the example below, the HostName is dev-tb1x5mahjyey84y4.us.auth0.com.