
One-time password OTP (SMS)

One-time password makes a difference
Add SMS verification in 3 simple steps
Creating an account
Verify a new subscriber phone to potentially cut off bots and prevent fraud on your platform or service.Details editing
Introduce an added step to confirm changes to minimize the risk of the user account takeover.Log in attempt
Offering two-factor authentication service at this step assures the privacy of people who put trust in your business.
How to send One-time password via SMS?
Pricing

Developers easily read and rely on our SMS OTP API
Add a globally prevalent cybersecurity two factor authentication API method to your website or application in a quick and easy manner. Safeguard user personal details and prevent account takeovers by requesting an OTP via SMS within your sign up or transaction flow.
- Go
- Node
- Ruby
- Python
- Java
- PHP
func (client *SmsClient) CreateMultipleSms(request MultipleSmsRequest) MultipleSmsData {
var sms MultipleSmsData
request.Destination = “phones”
_DoJsonCreateRequest(client.BaseClient, sms_create_method, request, &sms)
return sms
}
bsg.createSMS(
{
destination: “phone”,
originator:”alpha name”,
body:”message text”,
msisdn:”85226010227″,
reference:”ext_id_16″,
validity:”1″,
tariff:”0″
}
).then(
SMS => console.log( “SMS created:”, SMS ),
error => console.log( “SMS creation failed:”, error )
def message_create(params={})
MESSAGE.new(request(:post, “sms/create/”, params.merge({})))
end
class SMSMessage(dict):
def __init__(self, body: str = ”, originator: str = ‘BSG RESTAPI’, **kwargs):
kwargs.update({‘body’: body, ‘originator’: originator})
super().__init__(**kwargs)
MultipleSmsRequest multipleSmsRequest = new MultipleSmsRequest();
multipleSmsRequest.setBody(“Some text”);
multipleSmsRequest.setOriginator(“me”);
multipleSmsRequest.setTariff(null);
multipleSmsRequest.setValidity(1);
List<Phone> phones = new ArrayList();
phones.add(new Phone(“85226010227”, UUID.randomUUID().toString().substring(0, 13)));
phones.add(new Phone(“85226010227”, UUID.randomUUID().toString().substring(0, 13)));
multipleSmsRequest.setPhones(phones);
MultipleSmsData data = smsClient.createSms(multipleSmsRequest);
$smsclient->$answer = $this->smsClient->sendSmsMulti([
[‘msisdn’ => 85226010227, ‘body’ =>’test’, ‘reference’ => ‘successSendM’ . (string)time()],
[‘msisdn’ => 85226010227, ‘body’ =>’tes2′, ‘reference’ => ‘successSendM1’ . (string)time()],
]);
Other Products
