Skip to content

Request a passwordless sign-in code

POST
/_torii/auth/signin-code/start
curl --request POST \
--url 'https://your-app.toriiauth.eu/_torii/auth/signin-code/start?_is_native=false' \
--header 'Content-Type: application/json' \
--data '{ "email": "[email protected]" }'

Emails a 6-digit sign-in code to the address, if it has an account. Always returns 202 — the response is identical for a known and an unknown address, so it cannot be used to enumerate users.

Origin
string
Host
string
_is_native
boolean
Media typeapplication/json

Payload for requesting a passwordless sign-in code by email

object
email
required

Email address of the account to sign in to

string format: email
>= 1 characters

Accepted. A code was sent if, and only if, the address has a sign-in-eligible account.

Media typeapplication/json
object
Examplegenerated
{}

Email code sign-in is disabled for this environment, or the origin is not allowed.