Good afternoon,
If you are using the Management API, then the API identifier will actually use your default tenant domain name, https://<default-tenant-name>.auth0.com/api/v2/
, instead of the custom domain.
You can find a similar post here: Unable to authorized with the custom domain - #2 by kimcodes