POST /v1/auth/otp/request.lh_live_xxx) is returned once — save it where it survives the session. It renews automatically while in use and expires after 90 days without use.OTP_INVALID (401): wrong code. Ask the user to re-check the latest email. Do not request a new code; attemptsLeft says how many tries remain.OTP_EXPIRED (401): no open code (expired or used). Request a new one once.OTP_TOO_MANY_ATTEMPTS (429): after 5 wrong codes the code is cancelled. Request a new one.curl --location 'https://connect.litehost.io/v1/auth/otp/verify' \
--header 'Content-Type: application/json' \
--data-raw '{
"email": "you@example.com",
"code": "482931"
}'{
"status": "success",
"data": {
"email": "you@example.com",
"apiKey": "lh_live_a1b2c3d4e5f6a1b2c3d4e5f6a1b2c3d4e5f6a1b2c3d4e5f6a1b2c3d4e5f6a1b2",
"expiresAt": "2026-04-09T14:23:00.000Z",
"message": "Signed in. This key is shown only once. It renews automatically while in use and expires after 90 days without use."
}
}