This API allows you to send an SMS containing a one-time password (OTP) to a mobile phone number, which can be used for verification or authentication purposes.
var settings = {"url":"https://api.getspendo.com/gateway/api/v1/send/sms/otp","method":"POST","timeout":0,"headers": {"apiKey":"test_api_key","Content-Type":"application/json" },"data":JSON.stringify({"from":"string","message":"string","to":"string" }),};$.ajax(settings).done(function (response) {console.log(response);});
apiKey*
String
The API key that you get from spendo's dashboard.
from*
string
The sender ID you want to appear as the sender of the message.
otp*
string
The OTP code that you want to send, represented as a string. This parameter is usually generated by your system or a third-party authentication provider.
to*
string
The phone number of the recipient, formatted as a string without any spaces or special characters.