Authentication

APIs related to Login and Registration

Login (email)

POST https://multiply.arbre.in/api/login

This endpoint allows you to authenticate a user using email

Headers

Name
Type
Description

Accept

string

application/json

Request Body

Name
Type
Description

type

string

email

email

string

email of user

password

string

password of user

{
    "status": true,
    "accessToken": "2|eiSgXjGLzJgWDWEpOrQP9Zz70cFvYRS5LGcVrAde"
}

login (otp)

POST https://multiply.arbre.in/api/login

This endpoint allows you to authenticate a user using email

Headers

Name
Type
Description

Accept

string

application/json

Request Body

Name
Type
Description

type

string

otp

phone_number

string

phone number of user

{
    "status": true,
    "token": "1101",
    "message": "OTP generated"
}

Register

POST https://multiply.arbre.in/api/register

This endpoint will create a user from given data and also generate an OTP to verify valid phone number.

Headers

Name
Type
Description

Accept

string

application/json

Request Body

Name
Type
Description

terms

integer

1

name

string

full name

dob

string

yyyy-mm-dd

gender

string

male/female/prefer not to say

email

string

unique email

phone_number

string

unique phone number

{
    "status": true,
    "token": "8930",
    "message": "OTP generated",
    "data": {
        "name": "MrinmaiSharma",
        "dob": "1997-12-15",
        "gender": "male",
        "email": "[email protected]",
        "phone_number": "7399479451",
        "role": "user",
        "username": "mrinmaisharma1",
        "updated_at": "2021-10-02T11:50:13.000000Z",
        "created_at": "2021-10-02T11:50:13.000000Z",
        "id": 3,
        "profile_photo_url": "https://ui-avatars.com/api/?name=MrinmaiSharma&color=7F9CF5&background=EBF4FF"
    }
}

Verify OTP

POST https://multiply.arbre.in/api/verify-otp

This endpoint will allow you to validate an OTP for a given phone number

Headers

Name
Type
Description

Accept

string

application/json

Request Body

Name
Type
Description

phone_number

string

user's phone number

otp

string

OTP entered by the user

{
    "status": true,
    "accessToken": "2|eiSgXjGLzJgWDWEpOrQP9Zz70cFvYRS5LGcVrAde"
}

Last updated

Was this helpful?