Get a Free WhatsApp Business Account – Includes Onboarding, API Access & Sandbox. Apply Now!


Sample Code For Sending SMS in javaScript

Sending SMS using Authkey APIs is a breeze and lightning fast. You can simply pass the message body, message sender, mobile number & authkey in the API request to send sms instantly.

javaScript Sample Code For Send SMS



var settings = {
    "async": true,
    "crossDomain": true,
    "url": "https://api.authkey.io/request?authkey=AUTHKEY&mobile=RecepientMobile
    &country_code=CountryCode&sms=Hello%2C%20your%20OTP%20is%201234&sender=SENDERID",
    "method": "GET"
  }
  
  $.ajax(settings).done(function (response) {
    console.log(response);
  });

Sending SMS using Authkey APIs is a breeze and lightning fast. You can simply pass the message body, message sender, mobile number & authkey in the API request to send sms instantly.