> ## Documentation Index
> Fetch the complete documentation index at: https://thenile.dev/docs/llms.txt
> Use this file to discover all available pages before exploring further.

# Templates

> Customize email templates in Nile Auth

Nile Auth provides a default set of email templates that are used to send emails to users.
You can customize these templates to your liking.

You will find the templates in Nile Console when you navigate to **Tenants and Users**, click on
the **Configure** tab and then on **Email Templates**.

There are 2 available templates:

<img src="https://mintcdn.com/nile/6B-b9nH3DSiJ_Uwi/images/auth/email_templates_overview.png?fit=max&auto=format&n=6B-b9nH3DSiJ_Uwi&q=85&s=18cae446af507fd9275654a27995502c" alt="Email templates" width="2566" height="1036" data-path="images/auth/email_templates_overview.png" />

## Email invitation

Sent when a user is invited to join a tenant, or uses their email address as the sign in provider.

<img src="https://mintcdn.com/nile/6B-b9nH3DSiJ_Uwi/images/auth/email_template.png?fit=max&auto=format&n=6B-b9nH3DSiJ_Uwi&q=85&s=e46f8e91b5cf6fde436e97c6f3f782d7" alt="Email invitation" width="2626" height="1932" data-path="images/auth/email_template.png" />

## Reset password

Sent when a user requests a password reset. This is automatically triggered with a `POST` request to `/api/auth/reset-password`

The `callbackURL` sent to the endpoint will be modified with the token in the **api\_url** variable, or it will fall back to the `niledb-origin` header, which is automatically set via the JS SDK

<img src="https://mintcdn.com/nile/6B-b9nH3DSiJ_Uwi/images/auth/email_template_reset.png?fit=max&auto=format&n=6B-b9nH3DSiJ_Uwi&q=85&s=5fba396215a7e9f7f2bfd15eb6a0e287" alt="Reset password" width="2566" height="2156" data-path="images/auth/email_template_reset.png" />

## Customizing the templates

The templates are fully customizable with HTML and CSS. You can use the available variables
(shown on the right side of the template editor) to customize the email content, and you can also add variables of your own.

For your convenience, you can preview the email that the template will generate:

<img src="https://mintcdn.com/nile/6B-b9nH3DSiJ_Uwi/images/auth/email_template_preview.png?fit=max&auto=format&n=6B-b9nH3DSiJ_Uwi&q=85&s=998dd19833ecbf23505bc088571fbfae" alt="Preview email" width="2566" height="2156" data-path="images/auth/email_template_preview.png" />

## Related Topics

* [Email Verification](/auth/email/verification)
* [Custom SMTP](/auth/email/customsmtp)
* [Per-tenant Overrides](/auth/concepts/per-tenantoverrides)
