"Default" API with auto-generated client - curl 401

Hi @Gobelet,

Welcome to the Community!

The error curl: (6) Could not resolve host: application" is usually thrown by cURL if the provided URL can’t be resolved. Since cURL cannot resolve the host, it can’t communicate to your Auth0 tenant, so your settings should not be relevant to this error.

Does the curl look like this in the terminal?:

curl --request POST \
  --url https://YOUR_DOMAIN/oauth/token \
  --header 'content-type: application/json' \
  --data '{"client_id":"YOUR_APP_CLIENT_ID","client_secret":"YOUR_APP_CLIENT_SECRET","audience":"YOUR_API_IDENTIFIER","grant_type":"client_credentials"}'

You may want to try this request in Postman

1 Like