Tradebit API V3.0
  • Introduction
  • Quick Start
  • API Reference
    • Public APIs
      • Auth
      • Crypto
      • Others
    • Private APIs
      • Common
      • Others
      • Orders
      • Support Ticket
      • Wallet
        • Withdraw
        • Fiat And Spot
        • Staking
        • Others
      • Send Token
      • Referrals
      • Profile
        • Security Verification
        • User KYC
        • Others
      • Profile Information
    • Errors Codes
Powered by GitBook
On this page
  • Login
  • Login User
  • Verify Login
  • Verify OTP for login
  • Resend Email OTP
  • Resend Email OTP
  • Resend Mobile OTP
  • Resend Mobile OTP
  • Register With Email
  • Register With Email
  • Register With Mobile
  • Register With Mobile
  • Verify Register
  • Verify Register OTP
  1. API Reference
  2. Public APIs

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": "demo@gmail.com",
           "otp_type": "String", // login
           "send_type": "String", // email or mobile
           "expired_at": "UTC date", 
          "google2fa": "bollean"
       } 
}
{
    "status_code": "String", // 0
    "status_text": "String", // Failed
    "message": "String"
}

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"
    }
}
{
    "status_code": "Integer", // 0 
    "status_text": "String", // Failed
    "message": "String"
}

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"
}
{
    "status_code": "Integer", // 0
    "status_text": "String", // Failed
    "message": "String"
}

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"
}
{
    "status_code": "Integer", // 0
    "status_text": "String", // Failed
    "message": "String",
}

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"
}
{
    "status_code": "Integer", // 0
    "status_text": "String", // Failed
    "message": "String"
}

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"
}
{
    "status_code": "Integer", // 0
    "status_text": "String", // Failed
    "message": "String",
}

PreviousPublic APIsNextCrypto

Last updated 6 months ago