Auth
Request a verification code
Send a 6-digit OTP to the given email address.
POST
Triggers an email containing a 6-digit code, valid for 10 minutes.
The email address to send the code to. Must be a valid format.
Optional. Hints to the server whether the user is creating a new account
or signing into an existing one. Affects telemetry only — the actual
account-creation behavior is the same either way (we upsert on email).
Always
true on success.true if a new user record was created (the email was not in our system
before), false if this email already had an account.Rate limit
One request per email address per 30 seconds. Subsequent attempts get429 code_request_rate_limited.
What happens on the server
- Validate the email format
- Upsert a user row by email — creates one if missing
- Generate a 6-digit code, hash and store with 10-minute TTL
- Send the email via our email provider
- Return success
200 ok regardless. The created field is
the only signal, and it’s only useful to clients that need it (the
dashboard does, to pick between welcome and direct-to-app routing).