Whitelisting

Servetel offers whitelisting feature through which customers having a web-form or mobile app or a panel where customers can fill in details and submit, we verify their number through OTP and then hit our White-List API on successful OTP verification. The number will be White-Listed and the customer will be able to call on that number using click-to-call and broadcast until whitelisted number expires (i.e. 6 months from the date of opt-in).

πŸ“˜

Note:

Whitelisting through API and OTP verification will only be done for numbers which are found subscribed to DND Service.

Request OTP for whitelisting

OTP required for whitelisting can be requested using the below method

curl --request POST \
--url https://api.servetel.in/v1/otp/dnc/send \
--header 'accept: application/json' \
--header 'authorization: Bearer yourtokenhere'
--data '{"mobile_number" : "99XXXXXXXX", "company_name" : "XYZ"}'

Request variables

Variable NameDescriptionData Type
mobile_number10-digit mobile number of customerString
company_nameCompany name of customerString

πŸ“˜

Note:

OTP received will be valid only for 15 minutes.

Response variables

Variable NameDescriptionData Type
successRequest success statusBoolean
messageMessage corresponding success statusString
idOTP IDInteger

Verify OTP

OTP verification can be done using the below method

curl --request POST \
--url https://api.servetel.in/v1/otp/dnc/verify \
--header 'accept: application/json' \
--header 'authorization: Bearer yourtokenhere'
--data '{"id" : 123, "otp" : 1234}'

Request variables

Variable NameDescriptionData Type
idID which is present in the response obtained after requesting OTPInteger
otpOTP received by clientInteger

Response variables

Variable NameDescriptionData Type
successRequest success statusBoolean
messageMessage corresponding success statusString