Passwordless Login

Passwordless Login Phone Verification

copy-icon
curl -X PUT \
'https://api.loginradius.com/identity/v2/auth/login/passwordlesslogin/otp/verify?apikey=&Fields=&SmsTemplate=' \
-H 'Cache-Control: no-cache' \
-H 'content-Type: application/json' \
-d "{ "otp" : "<otp>","phone" : "<phone>" }"

The above command returns JSON structured like this:

copy-icon
{
"Profile" : {
},
"access_token" : "Uniquely generated identifier key by LoginRadius that is activated after successful authentication.",
"expires_in" : "Expiration time of Access Token",
"refresh_token" : "refresh token to refresh access token",
"session_expires_in" : "session token expiry time",
"session_token" : "session token of user"
}

This API verifies an account by OTP and allows the customer to login.

HTTP Request

Put /identity/v2/auth/login/passwordlesslogin/otp/verify?apikey=&Fields=&SmsTemplate=

Query Parameters

ParameterDefaultDescription
apikeynoneLoginRadius API Key [Required]
FieldsnoneThe fields parameter filters the API response so that the response only includes a specific set of fields [Optional]
SmsTemplatenoneSMS Template name [Optional]

Body Attributes

AttributeDescription
OtpThe Verification Code
PhoneNew Phone NumberModel Class containing Definition of payload for PasswordLessLoginOtpModel API [Required]

Passwordless Login by Phone

copy-icon
curl -X GET \
'https://api.loginradius.com/identity/v2/auth/login/passwordlesslogin/otp?apikey=&Phone=&SmsTemplate=' \
-H 'Cache-Control: no-cache' \
-H 'content-Type: application/json' \

The above command returns JSON structured like this:

copy-icon
{
"Data" : {
}
}

API can be used to send a One-time Passcode (OTP) provided that the account has a verified PhoneID

HTTP Request

Get /identity/v2/auth/login/passwordlesslogin/otp?apikey=&Phone=&SmsTemplate=

Query Parameters

ParameterDefaultDescription
apikeynoneLoginRadius API Key [Required]
PhonenoneThe Registered Phone Number [Required]
SmsTemplatenoneSMS Template name [Optional]

Passwordless Login By Email

copy-icon
curl -X GET \
'https://api.loginradius.com/identity/v2/auth/login/passwordlesslogin/email?apikey=&Email=&PasswordLessLoginTemplate=&VerificationUrl=' \
-H 'Cache-Control: no-cache' \
-H 'content-Type: application/json' \

The above command returns JSON structured like this:

copy-icon
{
"IsPosted" : true
}

This API is used to send a Passwordless Login verification link to the provided Email ID

HTTP Request

Get /identity/v2/auth/login/passwordlesslogin/email?apikey=&Email=&PasswordLessLoginTemplate=&VerificationUrl=

Query Parameters

ParameterDefaultDescription
apikeynoneLoginRadius API Key [Required]
EmailnoneEmail of the user [Required]
PasswordLessLoginTemplatenonePasswordless Login Template Name [Optional]
VerificationUrlnoneEmail verification url [Optional]

Passwordless Login Verification

copy-icon
curl -X GET \
'https://api.loginradius.com/identity/v2/auth/login/passwordlesslogin/email/verify?apikey=&VerificationToken=&Fields=&welcomeEmailTemplate=' \
-H 'Cache-Control: no-cache' \
-H 'content-Type: application/json' \

The above command returns JSON structured like this:

copy-icon
{
"Profile" : {
},
"access_token" : "Uniquely generated identifier key by LoginRadius that is activated after successful authentication.",
"expires_in" : "Expiration time of Access Token",
"refresh_token" : "refresh token to refresh access token",
"session_expires_in" : "session token expiry time",
"session_token" : "session token of user"
}

This API is used to verify the Passwordless Login verification link. Note: If you are using Passwordless Login by Phone you will need to use the Passwordless Login Phone Verification API

HTTP Request

Get /identity/v2/auth/login/passwordlesslogin/email/verify?apikey=&VerificationToken=&Fields=&welcomeEmailTemplate=

Query Parameters

ParameterDefaultDescription
apikeynoneLoginRadius API Key [Required]
VerificationTokennoneVerification token received in the email [Required]
FieldsnoneThe fields parameter filters the API response so that the response only includes a specific set of fields [Optional]
welcomeEmailTemplatenoneName of the welcome email template [Optional]