Verify Phone for passwordless login

Verifies the OTP sent to the Phone number for passwordless login.

PUT
/identity/v2/auth/login/passwordlesslogin/otp/verify

Verifies the OTP sent to the Phone number for passwordless login.

apikey<token>

Tenant API Key for authentication

In: query

Query Parameters

smstemplate?string

SMS Template

prevent_webhook?boolean

When true, suppresses webhook events for this operation.

g-recaptcha-response?string

Google reCAPTCHA response parameter which will be sent to the server for verification.

g_recaptcha_response?string

Google reCAPTCHA Response

qq_recaptcha_ticket?string

QQ reCAPTCHA Response

qq_recaptcha_randstr?string

QQ reCAPTCHA Response

h-captcha-response?string

hCaptcha Response

emailtemplate2fa?string

Name of the 2FA Email template to use for this notification.

duoredirecturi?string

Duo auth redirection url.

Header Parameters

X-PreventWebhook?boolean

When true, suppresses webhook events for this operation.

Request Body

application/json

TypeScript Definitions

Use the request body type in TypeScript.

Response Body

application/json

application/json

application/json

application/json

application/json

curl -X PUT "https://api.loginradius.com/identity/v2/auth/login/passwordlesslogin/otp/verify?smstemplate=SMS-Template&prevent_webhook=true&g-recaptcha-response=03AGdBq24e1a2b3c4d5e6f7g8h9i0j1k2l3m4n5o6p7q8r9s0t1u2v3w4x5y6z7a8b9c0d1e2f3g4h5i6j7k8l9m0n1o2p3q4r5s6t7u8v9w0x1y2z3a4b5c6d7e8f9g0h1i2j3k4l5m6n7o8p9q0r1s2t3u4v5w6x7y8z9&g_recaptcha_response=03AGdBq24e1a2b3c4d5e6f7g8h9i0j1k2l3m4n5o6p7q8r9s0t1u2v3w4x5y6z7a8b9c0d1e2f3g4h5i6j7k8l9m0n1o2p3q4r5s6t7u8v9w0x1y2z3a4b5c6d7e8f9g0h1i2j3k4l5m6n7o8p9q0r1s2t3u4v5w6x7y8z9&qq_recaptcha_ticket=03AGdBq24e1a2b3c4d5e6f7g8h9i0j1k2l3m4n5o6p7q8r9s0t1u2v3w4x5y6z7a8b9c0d1e2f3g4h5i6j7k8l9m0n1o2p3q4r5s6t7u8v9w0x1y2z3a4b5c6d7e8f9g0h1i2j3k4l5m6n7o8p9q0r1s2t3u4v5w6x7y8z9&qq_recaptcha_randstr=03AGdBq24e1a2b3c4d5e6f7g8h9i0j1k2l3m4n5o6p7q8r9s0t1u2v3w4x5y6z7a8b9c0d1e2f3g4h5i6j7k8l9m0n1o2p3q4r5s6t7u8v9w0x1y2z3a4b5c6d7e8f9g0h1i2j3k4l5m6n7o8p9q0r1s2t3u4v5w6x7y8z9&h-captcha-response=03AGdBq24e1a2b3c4d5e6f7g8h9i0j1k2l3m4n5o6p7q8r9s0t1u2v3w4x5y6z7a8b9c0d1e2f3g4h5i6j7k8l9m0n1o2p3q4r5s6t7u8v9w0x1y2z3a4b5c6d7e8f9g0h1i2j3k4l5m6n7o8p9q0r1s2t3u4v5w6x7y8z9&emailtemplate2fa=Email-Template&duoredirecturi=https%3A%2F%2Fexample.com%2Fduo%2Fcallback" \  -H "X-PreventWebhook: true" \  -H "Content-Type: application/json" \  -d '{    "OTP": "123456",    "Phone": "+1234567890"  }'
{
  "SecondFactorAuthenticationToken": "684920ba-917b-4168-b59b-eae70b430209",
  "ExpireIn": "2021-04-06T08:36:53.3005592Z",
  "QRCode": "data:image/png;base64,...",
  "PushQRCode": "https://devapi.lrinternal.com/identity/v2/auth/qr-code?apikey=xxx&token=xxxxx&size=150",
  "ManualEntryCode": "HBRWENLDHEZGIMBYHFTDINJSMVRDANDBHE4WINJTMYZTCYZSGFRA",
  "DuoAuthEndpoint": "https://api.duosecurity.com/auth",
  "IsGoogleAuthenticatorVerified": true,
  "IsPushDeviceRegistered": true,
  "IsAuthenticatorVerified": true,
  "IsEmailOtpAuthenticatorVerified": true,
  "IsOTPAuthenticatorVerified": true,
  "IsDuoAuthenticatorVerified": true,
  "IsPasskeyAuthenticatorVerified": true,
  "OTPPhoneNo": "+1234567890",
  "OTPStatus": {
    "AccountSid": "ACXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX",
    "Sid": "SMXXXXXXXXXXXXXXXX"
  },
  "Email": [
    "user@example.com"
  ],
  "EmailOTPStatus": {
    "Email": "u**r@e*****e.c*m"
  },
  "IsSecurityQuestionAuthenticatorVerified": true,
  "SecurityQuestions": [
    {
      "QuestionId": "db7****8a73e4******bd9****8c20",
      "Question": "What is your pet's name?"
    }
  ],
  "access_token": "00000000-0000-0000-0000-000000000000",
  "expires_in": "0001-01-01T00:00:00Z"
}

{
  "ErrorCode": 1079,
  "Message": "Put body is invalid or empty",
  "Description": "Please use a valid put body in JSON format in order to process this request."
}

{
  "errorCode": 1409,
  "message": "Authentication failed",
  "description": "The credentials provided could not be authenticated."
}

{
  "ErrorCode": 909,
  "Message": "Your LoginRadius site does not have permission to access this endpoint",
  "Description": "Your LoginRadius site does not have permission to access this endpoint, please contact LoginRadius support for more information."
}

{
  "Message": "Operation failed due to an internal error.",
  "Description": "An unknown internal error occurred, please try again in a few minutes or contact your system administrator.",
  "ErrorCode": 7909
}