Question about api calls on a tenant with a custom domain

I’m calling the /email-verification endpoint after signup for a tenant with a custom domain, and after signup for a tenant with a custom domain, I’m calling https://mytenant.us.auth 0.com/email-verification after signup for a tenant with a custom domain.

{
  statusCode: 401,
  error: 'Unauthorized',
  message: 'Bad issuer: https://mycustomdomain/'
}

I am getting an error message.

The documentation says

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

This is the only place to use your default tenant domain.
Isn’t it?

Hi @koheikameyama,

When using any Management API endpoint, you will need to use the canonical domain instead of the Custom Domain. The snippet from the docs should be correct about this.

To help troubleshoot this, would you please send an example of your request (removing any sensitive info)? Thank you!