PLATFORM

Developers

Empowering marketers to run better SMS and email marketing campaigns

Integration made easily

Upgrade your application with powerful SMS and email capabilities within minutes. All you need is an active account. Ready-to-use libraries for Python, Node.js and PHP.

API integration allows you to use the whole range of tools including list management, HLR verification, reporting etc.


# Send SMS Text
curl -X POST \
    -d "api_key=api-key-here"\
    --url https://api.smsedge.io/v1/references/functions/

 # Response - {"id":124,"time_created":"2020-12-01 18:28:58","verify_local":1,"verify_hlr":0,"shorten_url":1,"list_id":null,"reference":null}
                        

$curl = curl_init();

curl_setopt_array($curl, array(
  CURLOPT_URL => "https://api.smsedge.io/v1/references/functions/",
  CURLOPT_RETURNTRANSFER => true,
  CURLOPT_ENCODING => "",
  CURLOPT_MAXREDIRS => 10,
  CURLOPT_TIMEOUT => 30,
  CURLOPT_HTTP_VERSION => CURL_HTTP_VERSION_1_1,
  CURLOPT_CUSTOMREQUEST => "POST",
  CURLOPT_POSTFIELDS => "api_key=api-key-here",
  CURLOPT_HTTPHEADER => array(
    "content-type: application/x-www-form-urlencoded"
  ),
));

$response = curl_exec($curl);
$err = curl_error($curl);

curl_close($curl);

if ($err) {
  echo "cURL Error #:" . $err;
} else {
  echo $response;
}
                        

OkHttpClient client = new OkHttpClient();

MediaType mediaType = MediaType.parse("application/x-www-form-urlencoded");
RequestBody body = RequestBody.create(mediaType, "api_key=api-key-here");
Request request = new Request.Builder()
  .url("https://api.smsedge.io/v1/references/functions/")
  .post(body)
  .addHeader("content-type", "application/x-www-form-urlencoded")
  .build();

Response response = client.newCall(request).execute();
                        

var client = new RestClient("https://api.smsedge.io/v1/references/functions/");
var request = new RestRequest(Method.POST);
request.AddHeader("content-type", "application/x-www-form-urlencoded");
request.AddParameter("", "api_key=api-key-here", ParameterType.RequestBody);
IRestResponse response = client.Execute(request);
                        

import http.client

conn = http.client.HTTPSConnection("https://api.smsedge.io/v1/references/functions/")

payload = "api_key=api-key-here"

headers = {
    'content-type': "application/x-www-form-urlencoded"
}

conn.request("POST", "/api/sms/send", payload, headers)

res = conn.getresponse()
data = res.read()

print(data.decode("utf-8"))
                        

require 'uri'
require 'net/http'

url = URI("https://api.smsedge.io/v1/references/functions/")

http = Net::HTTP.new(url.host, url.port)
http.use_ssl = true
http.verify_mode = OpenSSL::SSL::VERIFY_NONE

request = Net::HTTP::Post.new(url)
request["content-type"] = 'application/x-www-form-urlencoded'
request.body = "api_key=api-key-here"

response = http.request(request)
puts response.read_body
                        

Detailed API documentation

In order to facilitate API integration process we've published detailed documentation with easy navigation for the main topics sucj as SMS, Campaign, Routes and others.

API documentation has testing tool inside to check if the requests are sent correctly

Full API documentation here

Integrates with your tools

Integrate with all the tools and apps you use everyday

Sign up below to get started