Request and use a Management API token from a Flutter App

Hi @francesco1 ,

Welcome to the Auth0 Community!

If I understand correctly, you want to request the access token and use the access token to make changes in the user_metadata.

We can get the access token by making the POST request to the /oauth/token endpoint.

For example, for the client credential flow, here is the curl request:

curl --request POST \
  --url 'https://YOUR_DOMAIN/oauth/token' \
  --header 'content-type: application/x-www-form-urlencoded' \
  --data 'audience=API_IDENTIFIER&grant_type=client_credentials&client_id=YOUR_CLIENT_ID&client_secret=YOUR_CLIENT_SECRET'

Here is the screenshot of my testing in Postman. Hope this helps!

1 Like