Skip to main content
The Mobile number with OTP authentication allows your client to authenticate using OTP method. The endpoints are pre-built and are easy to manage your authentication flow and users. To get your {auth_base_url}, check it out here - Get started with base url.
Note: APP-KEY to be passed in Headers can be obtained from the settings in the project dashboard
Sending SMS OTP - Currently, we send SMS OTP via Twilio. It is necessary for configure your twilio integration in the dashboard. Click here for twilio integration

1. Signup API

This endpoints allows you to create a new user using the mobile number and otp method.

Endpoint

{auth_base_url}/mobile-otp-signup
string
required
App key of the particular project
POST the data in the application/json format.
string
required
Country code of the mobile number. Check the supported country codes
string
required
Mobile number of the user
string
User Id of the new created user
string
Mobile number of the user

Example

Request
Response

2. Login API

This endpoints allows you to login a user using the mobile number and otp method.
{auth_base_url}/mobile-otp-login
string
required
App key of the particular project
POST the data in the application/json format.
string
required
Mobile number of the user
The response with 200 OK status code represents that the OTP is sent to the mobile number
string
User Id of the user
string
Mobile number of the user

Example

Request
Response

3. Verify OTP API

This endpoints allows you to verify the otp of the respective mobile number.
{auth_base_url}/mobile-otp-verify
string
required
App key of the particular project
POST the data in the application/json format.
string
required
Mobile number of the user
integer
required
OTP sent to the mobile number
string
User Id of the user
string
Mobile number of the user
string
JWT access token is returned
string
Value is bearer
string
Currently no expiry time for token, Returns null

Example

Request
Response

Supported Country Codes

Below are the list of country codes supported currently. Please, reach out to our support team,if your country code is not listed.