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 Name | Description | Data Type |
---|---|---|
mobile_number | 10-digit mobile number of customer | String |
company_name | Company name of customer | String |
Note:
OTP received will be valid only for 15 minutes.
Response variables
Variable Name | Description | Data Type |
---|---|---|
success | Request success status | Boolean |
message | Message corresponding success status | String |
id | OTP ID | Integer |
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 Name | Description | Data Type |
---|---|---|
id | ID which is present in the response obtained after requesting OTP | Integer |
otp | OTP received by client | Integer |
Response variables
Variable Name | Description | Data Type |
---|---|---|
success | Request success status | Boolean |
message | Message corresponding success status | String |
Updated 12 months ago