Get an access token

Report issue
Get an access token for the Auth0 Management API audience. Note: The `audience` must be set to the non-custom domain. - `https://develop-jm.us.auth0.com/api/v2/` for development - `https://test-jm.us.auth0.com/api/v2/` for test - `https://stage-jm.us.auth0.com/api/v2/` for stage - `https://prod-jm.us.auth0.com/api/v2/` for production

Request

This endpoint expects an object.
client_idstringRequired
The Auth0 application's Client ID.
client_secretstringRequired
The Auth0 application's Client Secret.
audiencestringRequired
The Auth0 Management API audience.
grant_typestringRequired

The OAuth 2.0 grant type. Must be client_credentials.

Response

Access token successfully retrieved.
access_tokenstringOptional
The access token for the Auth0 Management API.
scopestringOptional
The scopes associated with the access token.
expires_inintegerOptional
The number of seconds until the access token expires.
token_typestringOptional

The type of token. Always Bearer.

Errors

400
Bad Request Error
401
Unauthorized Error