Updated
Email sign-in
Email sign-in lets a person without a Google, Microsoft or Apple account sign in with a six-digit code sent to their email address. They type the address on a page Algizian serves, receive the code, type it in, and are signed in with that address as a verified email and no name. It is the fourth sign-in method next to the three social providers, and it links to an existing user who has the same verified email.
How it works for your users
- On the sign-in page they choose Continue with email and enter their address.
- They get a short message from your app's name with a code. The page asks for the code (the field offers autofill on phones). The same page has Send a new code.
- A correct code signs them in. The code works once, for 10 minutes, with at most 5 wrong tries.
The page says the same thing whether or not the address has an account, so nobody can use it to find out who is registered. Messages contain your app's display name, no links and no tracking; your logo, when you set one, is embedded in the message itself. If someone did not ask for a code, they ignore the message.
Where the mail comes from
You choose one of two senders.
- Your own mail server (SMTP). The mail is sent through your server, from your address, so your domain and its reputation are used. Give host, port, security mode, user name, password and the from address.
- Algizian's sender, where the server offers it (the settings answer says
platformSenderAvailable). The mail comes from the Algizian no-reply address with your app's display name as the sender name. It has a lower daily cap than your own server.
Settings for your own server
curl -s -X PUT https://id.algizian.com/api/v1/tenants/acme-games/email \
-H "Authorization: Bearer $ALGIZIAN_TOKEN" \
-H "Content-Type: application/json" \
-d '{
"host": "smtp.mail.example",
"port": 587,
"security": "starttls",
"username": "acme-games-smtp",
"password": "example-only-password",
"fromAddress": "[email protected]",
"fromName": "Acme Games",
"template": "graphic"
}'
| Field | Meaning |
|---|---|
host | Name of your SMTP server. It must resolve to a public address; private, loopback and link-local addresses are refused. |
port | 465 or 587. No other port is accepted. |
security | tls (encrypted from the start, usual on 465) or starttls (usual on 587). There is no unencrypted mode and the server certificate is always checked (TLS 1.2 or newer). |
username, password | SMTP credentials. The password is write-only: stored encrypted, never returned by the API or the MCP tools, never logged. The answer only says passwordSet: true. Send it again whenever host, port or user name change. |
fromAddress | The address mails come from; your mail server must allow it. |
fromName | The sender name people see. Default: your branding display name. |
template | minimal or graphic, see below. Default minimal. |
dailyCap | Most mails per day (codes and tests). Default 500 on your own server. |
monthlyCap | Algizian's sender only, see below. |
To use Algizian's sender instead, send { "sender": "platform", "template": "graphic" }. Saving the settings also turns email on in your tenant's providers; DELETE /tenants/{tenant}/email removes the settings, the stored password and the sign-in method.
GET /tenants/{tenant}/email shows the settings without the password, a status (untested, ok or error) and lastError, a fixed, non-secret description of the last failure such as "The mail server refused the user name or password. (SMTP 535)". To check the setup, send a test mail (once a minute, counted in the daily cap):
curl -s -X POST https://id.algizian.com/api/v1/tenants/acme-games/email/test \
-H "Authorization: Bearer $ALGIZIAN_TOKEN" \
-H "Content-Type: application/json" \
-d '{ "to": "[email protected]" }'
The same operations are MCP tools: get_email_settings, set_email_settings, remove_email_settings and send_test_email. Reading needs a read token, the rest a manage token.
The two mail templates
| Template | Looks like |
|---|---|
minimal | Very plain, close to a text message: your name, a small logo, the code in bold monospace. |
graphic | A header band in your branding primary colour with your logo and name, a card on your background colour and a large code block. |
Both are built for mail apps: tables and inline styles, readable in dark mode, with a plain-text version in every message. Your logo (the one you set with the logo endpoint) is attached to the message as an inline image and converted to PNG, because most mail apps cannot show WebP. It is not loaded from a web address, so there is nothing to block and nothing that tracks opens. Gmail and Outlook do not show images embedded as data: addresses, which is why the image travels as an attachment referenced inside the message. Without a logo the message simply has no image.
Sending by Algizian
Algizian's sender is free for you within a quota, and needs no mail server of your own: 200 mails a day and 1,000 mails a month per tenant (codes and test mails together; the month is the UTC calendar month). You can set a lower dailyCap or monthlyCap for yourself. When a cap is reached no more codes are sent until the day or month ends, and the sign-in page asks people to try again later. If you need more, use your own mail server (it has no monthly cap) or ask us for a higher cap.
GET /tenants/{tenant}/email and the MCP tool get_email_settings show your usage as counts only: usage with today, month, dailyCap, monthlyCap and suppressed (see below).
Bounces and complaints. When a mail to an address bounces permanently or the person marks it as spam, Algizian stops sending codes to that address through its sender for a year. The person still sees the usual "code sent" page, so the page reveals nothing about the address; they can sign in with another method, or you can use your own mail server, which this list does not affect. Temporary failures, such as a full mailbox, do not stop anything. suppressed counts the code requests skipped this month for that reason. We store only a keyed hash of such an address, never the address.
Limits that protect the people who get the mail
Six digits are few, so the limits are part of the feature and cannot be switched off:
- at most 3 codes per address in 15 minutes and 20 per client address per hour,
- one new code per address every 60 seconds (the earlier code stays valid meanwhile),
- a daily cap per tenant: 500 by default on your own server, 200 on Algizian's sender (which also has the monthly cap above),
- a new code for an address replaces the older one, which can then no longer be used.
When a limit is reached the page asks the person to try again later; it never says anything about the address itself.
What we store
For each code we store a keyed hash and the number of wrong tries for at most 10 minutes, never the code itself. The address a person signs in with becomes their user record on your tenant, as with the social providers. See the privacy policy.