Making a Call using the Audience Parameter Generates the Error: "Service not enabled within domain"

Overview

This article addresses the following error:

Service not enabled within domain

Cause

This audience parameter was used with a custom domain:

The error Service not enabled within domain: "https://{{Custom-Domain}/api/v2/ suggests that the Auth0 Management API’s domain was updated with the Custom Domain when specifying it as an audience.

Solution

Set the audience parameter to use the tenant domain. Refer to the Auth0 APIs document.

https://{(https://{/){Canonical-Domain}}

NOTE: This is the only place to use the default tenant domain. Continue to use the default tenant domain name (such as https://{(https://{/)yourDomain}/userinfo and https://{(https://{/)yourDomain}/api/v2/) instead of the custom domain when specifying an audience.