Auth

Email a sign-in code

Emails a short numeric code to the address. Always responds 200 with the same body whether or not the address has an account, so it never leaks existence. A first-time address gets an account on its first successful verification, so this is both sign-up and log-in. Issuing a code invalidates any previous one for the same address.

post/v1/auth/code

Request

  • Base URL: https://api.naturali.ai
  • URL: https://api.naturali.ai/v1/auth/code
  • Auth: none required

Request body

emailstring email required

Example request

{
  "email": "ana@acme.com"
}

Response

If the address can receive a code, one has been sent.

messagestring

Example response

{
  "message": "If the address is registered, an email has been sent."
}

Changes

No recorded changes to this operation across all 1 revision of this API.