Where is the url being set in Auth0 for the email verification template

Hi Everyone,
I have a really quick question that I seem not to find the answer by my own.
In the email verification template where is the {{url}} is being set?

Hi @ashsubedi.ae,

Thanks for reaching out to the Auth0 Community!

The {{ url }} is set on line 42 in the Verification Email (using Link) default template.

<p><a href="{{ url }}">Confirm my account</a></p>

Please let me know if there are any further questions. Iā€™d be glad to help.

Thank you.

1 Like

Thank you @rueben.tiow Where do we declare or define that URL?
Will it be the default domain of auth0 or the custom domain URL if we enable Use Custom Domain in Emails

Hi @ashsubedi.ae,

Thank you for your response.

Unfortunately, you will not be able to declare or define that URL. The URL is automatically generated when the user triggers a Verification Email. The equivalent can be created using the Management API Create an Email Verification Ticket endpoint.

Regarding your second question, the URL uses your current domain configured in your Auth0 tenant. If you used the default domain, then the URL will look something like this:


Otherwise, if you used a custom domain, then something like this:


Hoped this helps! Please let me if you have any other questions.

Thank you.


This is really helpful, thank you @rueben.tiow


This topic was automatically closed 15 days after the last reply. New replies are no longer allowed.