Passwordless email template

We would like to override the passwordless email templates to gain more control over the content of these emails. We run a web application that allows users to white-label their profiles. We white label transactional emails between them and their customers too.

One way to accomplish this might be, to pass extra parameters to Auth0 when triggering a passwordless interaction from our API.

A better way would be requesting the authentication link or code (currently we can only kick off a passwordless interaction) and sending the authentication message using our transactional mail provider, essentially stepping around the auth0 email for passwordless and sending it ourselves. We are already doing this for other auth0 emails.

Is there any way to do either of these things currently? Is there anything on your roadmap?

1 Like

Did you check the documentation on how to get a Passwordless code?

One of the Request Parameters is authParams that says:

Use this to append or override the link parameters (like scope, redirect_uri, protocol, response_type), when you send a link using email.

This one might be just the one you are looking for.

I would like to see this as well, the templating tools for emails sent by auth0 are all kinds of awful for localisation and are restricting if you want to include data that’s not available in auth0.

Currently we’re using the ticket APIs to generate change password and email verification links, but I have not found a way to do the same with the passwordless login link.

You mean to trigger the passwordless link? You can use this endpoint:

https://auth0.com/docs/api/authentication#get-code-or-link

And especify the attribute: "send": "link"

That endpoint does not get a link like the ticket endpoints does. This endpoint sends an email to the user with the link. We don’t want auth0 to send any emails, we just want the link.

Yes.What Niklas is saying is exactly the problem. We want to get the link with our API and send it manually ourselves.

1 Like

Unfortunately it is not possible to request a code/link via an API, the only option to customize the email is using the Passwordless Configuration Page (https://manage.auth0.com/#/connections/passwordless).

Did you check the documentation on how to get a Passwordless code?

One of the Request Parameters is authParams that says:

Use this to append or override the link parameters (like scope, redirect_uri, protocol, response_type), when you send a link using email.

This one might be just the one you are looking for.

Thanks for the feedback Paulimar but unfortunately this does not solve our problem. All this does is trigger and email from Auth0. We would like to get a API response with the link or code in it and manually send the email ourselves.

4 Likes