# Use Custom Domain instead of Canonical Domain in Auth0 Dashboard API Test page

**URL:** <https://community.auth0.com/t/use-custom-domain-instead-of-canonical-domain-in-auth0-dashboard-api-test-page/202884>\
**Category:** Get Help\
**Tags:** access\_token, authentication, auth0, custom-domain\
**Created:** [August 27, 2026, 2:20pm UTC](https://community.auth0.com/t/use-custom-domain-instead-of-canonical-domain-in-auth0-dashboard-api-test-page/202884 "2026-08-27T14:20:02Z")\
**Posts on this page:** 1\
**Showing post:** 2

<div class="post-metadata">

**Author:** ![gerald.czifra](https://sea1.discourse-cdn.com/auth0/user_avatar/community.auth0.com/gerald.czifra/32/75301_2.png) [@gerald.czifra](https://community.auth0.com/u/gerald.czifra)\
**Post date:** [August 28, 2026, 12:05pm UTC](https://community.auth0.com/t/use-custom-domain-instead-of-canonical-domain-in-auth0-dashboard-api-test-page/202884/2 "2026-08-28T12:05:42Z")

</div>

Hi @azure.aii

Welcome to the Auth0 Community!

I understand that you are looking for a way to get the Auth0 Dashboard API Test page to use the custom domain instead of the canonical domain.

At this moment, there currently is no built-in way to get the [Auth0 Dashboard API Test page](https://community.auth0.com/t/custom-domains-for-authentication-api-debugger/115463) to automatically use your custom domain instead of the canonical domain, as the API debugger and sample code generator in the dashboard are hardcoded to use your default Auth0 tenant domain.

### Recommended workaround

To achieve the desired flow, it is possible to obtain an M2M access token with your custom domain as the issuer (`iss`) by slightly modifying the generated code.

Instead of using the Test tab directly, you should generate the token using **Postman** or **cURL** by modifying the sample code provided by the dashboard:

1. Go to the **API Test** page in the Auth0 Dashboard and copy the generated `cURL` or Node/Python code;

2. Paste the code into your terminal or import it into Postman;

3. **Manually replace** the canonical domain URL (e.g., `https://YOUR_TENANT.region.auth0.com/oauth/token`) with your custom domain URL (e.g., `https://api.yourcustomdomain.com/oauth/token`);

4. Execute the request.

Because you are sending the Client Credentials grant request directly to your [custom domain’s](https://auth0.com/docs/customize/custom-domains) `/oauth/token` endpoint, Auth0 will issue the token with your custom domain as the `iss` (issuer) claim.

Hope this helped you achieve the desired flow!

Have a great one,  
Gerald

---

_[View the full topic](https://community.auth0.com/t/use-custom-domain-instead-of-canonical-domain-in-auth0-dashboard-api-test-page/202884)._
