401/403 (unauthorized_client w/grant type client_credentials) when requesting token for M2M client

Hi @joelp,

Thanks for reaching out to the Auth0 Community!

I understand you’re encountering issues getting an access token when performing a client credentials grant flow.

After looking at your screenshots carefully, it seems that you have everything configured correctly for your API.

In this case, could you please go to your Auth0 Dashboard > Applications > APIs > YOUR_API and click on the Test tab.

On there, select your M2M application from the drop down menu, click on cURL, copy that command and import it as raw text in Postman.

Once that is complete, you can request to get an access token for your API.

I have tested this and can confirm that it works without any changes.

Please let me know how this goes.

Thank you.