Send OTP

OTP sending feature will be available only for business which has an active SMS plan. The API platform is expecting data params such as api_key, customer phone number, and country code. On successful API execution, an OTP message will be delivered to the customer phone number, which user can use for appointment booking.


Endpoint

{warning} All requests are passed to the slashq.io host URL. You can append corresponding API endpoints to the host URL depending on your requirement.

Method URI Description
POST /api/otp Send OTP

URL Params

NULL

Data Params

{
  "api_key": "{API_KEY}",
  "phone": "9999999999",
  "country_code": "91",
}

{info} The API_KEY is the token that the server needs in order to auth the request.


{success} Success Response

Code 200

Content

{
  "status": "success",
  "message": "OTP sent successfully"
}

{warning} Unauthorized request

Code 401

Content

{
  "status": "failure",
  "message": "Unauthorized request"
}

{danger} Not found

Code 404

Content

{
  "status": "failure",
  "message": "Not found"
}