📄Login
Provide Login Information for Sending OTP
Params
Body Parameter ⬇️
Body Parameter
Data Type
Description
phone_number (required)
String
Phone Number for sending OTP. Add 91 before your number.
name (required)
String
Name for Account Login.
action (required)
String
Provide action name which is 'send_otp'
Sample Request ⬇️ (Body Parameter)
curl --location 'https://matar.app/api/v1/login' \
--header 'Content-Type: application/json' \
--data '{
"phone_number": "919277140178",
"name": "skb",
"action": "send_otp"
}'
Responses ⬇️
Status Code: 🟢200 (200 denotes 'ok')
{
"message": "sent otp"
}
When OTP is Expired
Params
Body Parameter ⬇️
Body Parameter
Data Type
Description
phone_number (required)
String
Phone Number for sending OTP. Add 91 before your number.
name (required)
String
Name for Account Login.
action (required)
String
Provide action name which is 'send_otp'
Sample Request ⬇️️ (Body Parameter)
curl --location 'https://matar.app/api/v1/login' \
--header 'Content-Type: application/json' \
--data '{
"phone_number": "919277140178",
"name": "skb",
"action": "send_otp"
}'
Responses ⬇️
Status Code: 🔴400 (400 denotes 'Bad request')
{
"is_expired_otp": true,
"message": "expired otp please try again"
}
Last updated