Auth0 Home Blog Docs

Unable to authorized with the custom domain



I successfully setup a custom domain and it was verified. Updated my custom Login Page with the needed settings mentioned in the documentation.
But when I tried to do a test cURL with the custom domains, I got
{"error":"access_denied","error_description":"Service not enabled within domain: https://devlogin.<domain>.com/api/v2/"}
and this is my cURL.
curl --request POST \ --url https://devlogin.<domain>.com/oauth/token \ --header 'content-type: application/json' \ --data '{"client_id":"<clientId>","client_secret":"<clientSecret>","audience":"https://devlogin.<domain>.com/api/v2/","grant_type":"client_credentials"}'

Anyone from the community can help me solve my issue?

Thanks so much!


:wave: @ebony

It seems you are passing the custom domain here:

If you are using the Management API then the API identifier will actually use your default tenant domain name, https://<default-tenant-name>, instead of the custom domain.