Auth

Authentication is the process of verifying the identity of users or applications attempting to access an API (Application Programming Interface).

Login

Login User

POST {{BASE_URL}}/api/login

Login with email or phone and password. If user login with email then email field is required and if user login with mobile then country_calling_code , country_code and mobile field is required.

Request Body

Name
Type
Description

captcha_response*

String

country_calling_code

String

country_code

String

email

String

loginType*

String

email or mobile

mobile

String

password*

String

{ 
"status_code": "Integer", // 1
 "status_text": "String", // Success
 "message": "String",
 "data": {
           "email": "[email protected]",
           "otp_type": "String", // login
           "send_type": "String", // email or mobile
           "expired_at": "UTC date", 
          "google2fa": "bollean"
       } 
}

Verify Login

Verify OTP for login

POST {{BASE_URL}}/api/verifyLogin

If user login with email then email and email_vcode field are required and if user login with mobile then mobile and mobile_vcode field are required.

Request Body

Name
Type
Description

email

String

email_vcode

String

google_vcode

String

loginType*

String

email or mobile

mobile

String

mobile_vcode

String

{
    "status_code": "Integer", // 1
    "status_text": "string", // Success
    "message": "string",
    "data": {
        "token": "string"
        "user": "Object"
    }
}

Resend Email OTP

Resend Email OTP

POST {{BASE_URL}}/api/sendEmailVCode

Here user again get verify login otp code by this API.

Request Body

Name
Type
Description

email*

String

type*

String

verifyLogin

{
    "status_code": "Integer", // 1
    "status_text": "String",  // Success
    "message": "OTP Sent to your email",
    "data": "Object"
}

Resend Mobile OTP

Resend Mobile OTP

POST {{BASE_URL}}/api/sendMobileVCode

Here user again get verify login otp code by this API.

Request Body

Name
Type
Description

mobile*

String

type*

String

verifyLogin

country_calling_code*

String

{
    "status_code": "Integer", // 1
    "status_text": "String", // Success
    "message": "String",
    "data": "Object"
}

Register With Email

Register With Email

POST {{BASE_URL}}/api/register

Here user register with email and accept the terms of policy.

Request Body

Name
Type
Description

email*

String

password*

String

referral

String

terms*

Boolean

{
    "status_code": "Integer", // 1
    "status_text": "String", // Success
    "message": "String",
    "data": "Object"
}

Register With Mobile

Register With Mobile

POST {{BASE_URL}}/api/registerMobile

Here user register with email and accept the terms of policy.

Request Body

Name
Type
Description

country_calling_code*

String

country_code*

String

mobile*

String

password*

String

referral

String

terms*

Boolean

{
    "status_code": "Integer", // 1
    "status_text": "String", // Success
    "message": "String",
    "data":"Object"
}

Verify Register

Verify Register OTP

POST

If user register with email then email and email_vcode field is required and if user register with mobile then mobile and mobile_vcode field is required.

Request Body

Name
Type
Description

email

String

email_vcode

String

mobile

String

mobile_vcode

String

token*

String

{
    "status_code": "Integer", // 1
    "status_text": "String", // Success
    "message": "String",
    "data":"Object"
}

Last updated