Auth emails
Every email Sovaria sends your users, the template key and placeholders for each, how to customize them by plan, sending limits and sending from your own domain.
Sovaria sends these emails to your app’s users on your behalf. They carry your project name, and their links open your Site URL or an allowed redirect URL (Magic links and email codes). Each has a template key you can customize.
| Sent when | Template key | Placeholders | |
|---|---|---|---|
| Confirm your email | Sign-up, when email confirmation is required | email_verification | confirmation_url, email, ttl_hours |
| Reset your password | A reset is requested for an existing account | password_reset | reset_url, email, ttl_minutes |
| Sign-in link and code | A magic link is requested | magic_link | magic_link_url, otp_code, ttl_minutes |
| Verification code | A code is sent as a second factor | mfa_challenge | code |
| Password changed | After a password change or reset | password_changed | changed_at, ip |
| New sign-in | A sign-in from a device not seen before | new_sign_in | device, ip, signed_in_at |
| Confirm email change (old address) | A user changes their email | email_change_confirm_old | confirm_url, new_email |
| Confirm email change (new address) | After the old address confirmed | email_change_confirm_new | finalize_url, new_email |
| Invitation | You invite a user from the console or the admin API | invite_user | invite_url |
Every template can also use {{ project_name }}.


#Customize the templates
On plans that include custom email templates (plan key custom_email_templates), edit the subject, HTML body and plain-text body of each email under Users › Email. Placeholders are written {{ name }}; values are escaped, so a user’s name can never inject HTML into the message. Reset goes back to Sovaria’s default. On other plans the defaults are used and editing answers PLAN_CUSTOM_EMAIL_TEMPLATES_REQUIRED.
# Change the magic link email (owner or admin token, or the service key)
curl -X PUT "https://<project-ref>.sovarias.in/api/v1/auth/email-templates/magic_link" \
-H "Authorization: Bearer $TOKEN" -H "Content-Type: application/json" \
-d '{"subject": "Sign in to {{ project_name }}",
"body_html": "<p>Your code is <b>{{ otp_code }}</b>, or <a href=\"{{ magic_link_url }}\">sign in here</a>. It works for {{ ttl_minutes }} minutes.</p>",
"body_text": "Your code is {{ otp_code }}. Sign in: {{ magic_link_url }}"}'
# Back to the default
curl -X DELETE "https://<project-ref>.sovarias.in/api/v1/auth/email-templates/magic_link" -H "Authorization: Bearer $TOKEN"#Send from your own domain
Under Users › Email, turn on custom SMTP so emails come from your domain and are not limited by Sovaria’s shared sender. Credentials are encrypted at rest. Settings for Resend, SendGrid, Mailgun, Amazon SES, Brevo and Postmark are in Email relays (SMTP).
#Sending limits
Each project sends at most 500 auth emails per hour by default (Users › Rate limits › Emails sent), and one address at most a fifth of that, plus per-address limits for magic links and password resets. Your plan’s daily and monthly email allowance applies on top when you use Sovaria’s sender; with custom SMTP only these limits apply. All of them are sliding windows: they count the last hour (or five minutes) from now, so a burst around the top of the hour can’t get twice the limit through.
#Security alerts
New-sign-in and password-changed emails are on by default. Turn them off under Users › Security & JWT › Security alert emails if your app sends its own.
#Coming from Firebase or Supabase?
| Platform | What this is called there |
|---|---|
| Firebase | Firebase Auth email templates |
| Supabase | Supabase Auth email templates |
| Sovaria | Auth emails |
Moving an existing app? Migrate from Supabase or Firebase imports users (with their passwords), data, files and rules.