POST
operation to the https://{yourDomain}/oauth/token
endpoint, using the credentials of the Machine-to-Machine Application you created in the prerequisite step.
The payload should be in the following format:
`{yourClientSecret}`
with the in the Settings tab of your Application.
The request parameters are:
Request Parameter | Description |
---|---|
grant_type | Denotes which OAuth 2.0 flow you want to run. For machine to machine communication use the value client_credentials . |
client_id | This is the value of the Client ID field of the Machine-to-Machine Application you created. You can find it on the Settings tab of your Application. |
client_secret | This is the value of the Client Secret field of the Machine-to-Machine Application you created. You can find it at the Settings tab of your Application. |
audience | This is the value of the Identifier field of the Auth0 Management API . You can find it at the Settings tab of the API. |
update:client_grants
and create:client_grants
scopes with only high-privileged applications, as they allow the client to grant further permissions to itself.Authorization
header of your request.
AUDIENCE
: The Identifier of the Auth0 Management API
. You can find it at the Settings tab of the API.DOMAIN
: The Domain of the Machine-to-Machine Application you created.CLIENT_ID
: The of the Machine to Machine Application you created.CLIENT_SECRET
: The Client Secret of the Machine-to-Machine Application you created.