Programmable SMS API to automate your application to send critical messaging, OTPs and notifications.
Messaging API is designed in a way that just goes beyond the simple campaign processing, message scheduling, organizing contacts, receiving inbound text, SMS OTPs etc. Below are a couple of reasons behind the businesses choosing to use one-way SMS
Secure your App or Web Application with our simple & ready to configure 2FA APIs. Easily integrate 2FA into your application with an SMS API that utilizes voice and SMS messaging to ensure the security of your customers.
Experience simplified SMS API platform, designed to deliver OTP instantly in no time, with enhanced security and speed. Send SMS OTP to verify and restrict Fraud Logins. An enhanced API for OTP failure solution with Fallback.
Integrate sms API messaging to Reduce no-shows by sending automated alert SMSs. Update customers in real-time and provide them with reminders and alerts in a timely, secure, and reliable way that they can trust
Give messaging capabilities to your crm to Send SMS messaging. Use SMS API to trigger every transaction detail on billing to your customers timely and helpful payment reminders.
Integrate SMS messaging API into email/voice service so users and agents can communicate seamlessly in the channel they prefer. You can use all channel parallely or simultaneously
Businesses follow different branches and requirement scenarios. We are all ears to listen to your requirements. We will offer you a simplified and flexible SMS API that fulfills your messaging needs. Like hotels.
Please replace ‘your_api_key’ with your actual API key and ‘1234567890’ with the actual phone number.
curl -X POST "https://api.myotp.app/generate_otp" \
-H "X-API-Key: your_api_key" \
-H "Content-Type: application/json" \
-d '{"phone_number":"1234567890"}'
const axios = require('axios');
axios.post('https://api.myotp.app/generate_otp', {
phone_number: '1234567890'
}, {
headers: {
'X-API-Key': 'your_api_key'
}
}).then(response => {
console.log(response.data);
}).catch(error => {
console.error(error);
});
import requests
headers = {
'X-API-Key': 'your_api_key',
}
data = {
'phone_number': '1234567890'
}
response = requests.post('https://api.myotp.app/generate_otp', headers=headers, json=data)
print(response.json())
using System;
using System.Net.Http;
using System.Text;
using System.Threading.Tasks;
class Program
{
static async Task Main(string[] args)
{
using (var client = new HttpClient())
{
client.DefaultRequestHeaders.Add("X-API-Key", "your_api_key");
var content = new StringContent("{\"phone_number\":\"1234567890\"}", Encoding.UTF8, "application/json");
var response = await client.PostAsync("https://api.myotp.app/generate_otp", content);
var responseString = await response.Content.ReadAsStringAsync();
Console.WriteLine(responseString);
}
}
}
import okhttp3.*;
public class Main {
public static void main(String[] args) throws Exception {
OkHttpClient client = new OkHttpClient();
MediaType mediaType = MediaType.parse("application/json");
RequestBody body = RequestBody.create(mediaType, "{\"phone_number\":\"1234567890\"}");
Request request = new Request.Builder()
.url("https://api.myotp.app/generate_otp")
.post(body)
.addHeader("X-API-Key", "your_api_key")
.addHeader("Content-Type", "application/json")
.build();
Response response = client.newCall(request).execute();
System.out.println(response.body().string());
}
}
package main
import (
"bytes"
"fmt"
"io/ioutil"
"net/http"
)
func main() { url := "https://api.myotp.app/generate_otp"
var jsonStr = []byte(`{"phone_number":"1234567890"}`)
req, _ := http.NewRequest("POST", url, bytes.NewBuffer(jsonStr))
req.Header.Set("X-API-Key", "your_api_key")
req.Header.Set("Content-Type", "application/json")
client := &http.Client{}
resp, _ := client.Do(req)
defer resp.Body.Close()
body, _ := ioutil.ReadAll(resp.Body)
fmt.Println(string(body))
}
require 'net/http'
require 'uri'
require 'json'
uri = URI.parse("https://api.myotp.app/generate_otp")
http = Net::HTTP.new(uri.host, uri.port)
http.use_ssl = true
request = Net::HTTP::Post.new(uri.request_uri, {
'Content-Type' => 'application/json',
'X-API-Key' => 'your_api_key'
})
request.body = {phone_number: '1234567890'}.to_json
response = http.request(request)
puts response.body
import 'package:http/http.dart' as http;
import 'dart:convert';
void generateOtp() async {
var url = 'https://api.myotp.app/generate_otp';
var headers = {
'X-API-Key': 'your_api_key',
'Content-Type': 'application/json'
};
var body = json.encode({
'phone_number': '1234567890'
});
var response = await http.post(url, headers: headers, body: body);
print('Response status: ${response.statusCode}');
print('Response body: ${response.body}');
}
<?php
$ch = curl_init();
curl_setopt($ch, CURLOPT_URL, "https://api.myotp.app/generate_otp");
curl_setopt($ch, CURLOPT_POST, 1);
curl_setopt($ch, CURLOPT_POSTFIELDS, json_encode(array("phone_number" => "1234567890")));
curl_setopt($ch, CURLOPT_RETURNTRANSFER, true);
curl_setopt($ch, CURLOPT_HTTPHEADER, array(
'X-API-Key: your_api_key',
'Content-Type: application/json'
));
$response = curl_exec($ch);
if ($response === false) {
throw new Exception('Curl error: ' . curl_error($ch));
}
curl_close($ch);
echo $response;
?>
function greet(name) {
console.log("Hello, " + name + "!");
}
greet("World");
Sending SMS messaging is a great way to make your customer engage for every event. Our Uptime SLA Guarantee and high TPS give you peace of mind while sending SMS OTP, transactional message, notifications, etc., If you are not sending using API integration, use our dedicated bulk SMS marketing portal.
Live Analytics offers combined and detailed insights into delivered, failed and latency metrics.
Integrate easily with our SMS API. Built for developers to make the integration process smooth and easy. The API code is available in all programming languages. We know how to get composited into source code with other platforms. API.
Sample code for PHP, Python, JAVA, C#, cURL, Powershell Node.js, Go, Javascript, Ruby and Swift.
Contact us for full integration support. Our Support Team cannot wait to get you started. Get additional discounts with committed usage. Contact Sales to learn more.