Request a sign-in code
Send an email with a one-time Tiiny Host sign-in code.
POST
/v1/otp/request
Request
Send JSON with email, or send x-email and an empty JSON object. This sends an email to the specified address.
Example
curl --fail-with-body https://ext.tiiny.host/v1/otp/request \
-H 'Content-Type: application/json' \
-d '{"email":"you@example.com"}'
Success response
200 OK
{ "success": true, "message": "OTP sent" }
Use the emailed code with Verify a sign-in code.
Errors
Check that the address is valid and the request is JSON. If the message has not arrived, check spam before requesting another code.