Request OTP
Request OTP
Send a one-time passcode to the user’s email.
Uses HTTP Basic Auth — pass email as username. The password field is ignored.
Authorization: Basic <encoded-value>
Example with cURL:
curl --request GET \
--url https://app.anlytic.com/api/v1/users/otp \
--header 'Authorization: Basic <encoded-value>'
Request OTP
Authorizations
HTTP Basic Auth. For OTP request: pass email as username only (password field is ignored).
For token exchange: pass email as username and the OTP code (received by email) in the password field (email:otp_code).
Response
OTP sent successfully, or MFA challenge initiated.
When MFA is not enabled for the user, returns {message: "ok"}.
When MFA is enabled, returns {mfa_required: true, challenge_token: "..."} — use challenge_token to proceed via POST /api/v1/users/mfa/challenge/{kid}.
Last modified on July 23, 2026