SMS
Twilio
Free
Developers love us. Enterprises trust us. Power your customer engagement innovation with Twilio.
Plivo
Premium
Thousands of businesses in more than 190 countries trust Plivo’s cloud communications platform to simplify and personalize their customer communications, from APIs to solutions.
Sinch
Free
Sinch, the Customer Communications Cloud, powers meaningful conversations across messaging, voice, and email.#WeAreSinch
curl -i -X POST \
'https://us.sms.api.sinch.com/xms/v1/{service_plan_id}/batches' \
-H 'Authorization: Bearer ' \
-H 'Content-Type: application/json' \
-d '{
"from": "YOUR_Sinch_virtual_number",
"to": [
"YOUR_recipient_number"
],
"body": "YOUR_message_body",
"delivery_report": "summary",
"type": "mt_text"
}'
import requests
service_plan_id = "YOUR_service_plan_id_PARAMETER"
region = "us"
url = "https://" + region + ".sms.api.sinch.com/xms/v1/" + service_plan_id + "/batches"
payload = {
"from": "YOUR_Sinch_virtual_number",
"to": [
"YOUR_recipient_number"
],
"body": "YOUR_message_body",
"delivery_report": "summary",
"type": "mt_text"
}
headers = {
"Content-Type": "application/json",
"Authorization": "Bearer "
}
response = requests.post(url, json=payload, headers=headers)
data = response.json()
print(data)
/**
* Requires libcurl
*/
const servicePlanId = "YOUR_service_plan_id_PARAMETER";
const region = "us";
$curl = curl_init();
$payload = array(
"from" => "YOUR_Sinch_virtual_number",
"to" => array(
"YOUR_recipient_number"
),
"body" => "YOUR_message_body",
"delivery_report" => "summary",
"type" => "mt_text"
);
curl_setopt_array($curl, [
CURLOPT_HTTPHEADER => [
"Authorization: Bearer ",
"Content-Type: application/json"
],
CURLOPT_POSTFIELDS => json_encode($payload),
CURLOPT_URL => "https://" . region . ".sms.api.sinch.com/xms/v1/" . servicePlanId . "/batches",
CURLOPT_RETURNTRANSFER => true,
CURLOPT_CUSTOMREQUEST => "POST",
]);
$response = curl_exec($curl);
$error = curl_error($curl);
curl_close($curl);
if ($error) {
echo "cURL Error #:" . $error;
} else {
echo $response;
}
MessageBird
Free
Application software and APIs to automate and personalize every touchpoint with your customer across SMS, Voice & WhatsApp
Clickatell
Premium
With more than 20 years of innovation, from messaging to customer engagement to chat, Clickatell gives consumers the power to transact with brands anytime, anywhere
Telnyx
Free
Your one-stop shop for infrastructure at the edge.
curl -i -X GET \
'https://api.telnyx.com/v2/number_lookup/{phone_number}?type=carrier' \
-H 'Authorization: Bearer '
import requests
phone_number = "YOUR_phone_number_PARAMETER"
url = "https://api.telnyx.com/v2/number_lookup/" + phone_number
query = {
"type": "carrier"
}
headers = {"Authorization": "Bearer "}
response = requests.get(url, headers=headers, params=query)
data = response.json()
print(data)
const query = new URLSearchParams({type: 'carrier'}).toString();
const phoneNumber = 'YOUR_phone_number_PARAMETER';
const resp = await fetch(
`https://api.telnyx.com/v2/number_lookup/${phoneNumber}?${query}`,
{
method: 'GET',
headers: {
Authorization: 'Bearer '
}
}
);
const data = await resp.text();
console.log(data);