Passwordless Login
Passwordless Login Phone Verification
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:
{"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
Parameter | Default | Description |
---|---|---|
apikey | none | LoginRadius API Key [Required] |
Fields | none | The fields parameter filters the API response so that the response only includes a specific set of fields [Optional] |
SmsTemplate | none | SMS Template name [Optional] |
Body Attributes
Attribute | Description | |
---|---|---|
Otp | The Verification Code | |
Phone | New Phone Number | Model Class containing Definition of payload for PasswordLessLoginOtpModel API [Required] |
Passwordless Login by Phone
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:
{"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
Parameter | Default | Description |
---|---|---|
apikey | none | LoginRadius API Key [Required] |
Phone | none | The Registered Phone Number [Required] |
SmsTemplate | none | SMS Template name [Optional] |
Passwordless Login By Email
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:
{"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
Parameter | Default | Description |
---|---|---|
apikey | none | LoginRadius API Key [Required] |
none | Email of the user [Required] | |
PasswordLessLoginTemplate | none | Passwordless Login Template Name [Optional] |
VerificationUrl | none | Email verification url [Optional] |
Passwordless Login Verification
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:
{"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
Parameter | Default | Description |
---|---|---|
apikey | none | LoginRadius API Key [Required] |
VerificationToken | none | Verification token received in the email [Required] |
Fields | none | The fields parameter filters the API response so that the response only includes a specific set of fields [Optional] |
welcomeEmailTemplate | none | Name of the welcome email template [Optional] |