Developers
Build SMS into your product
A JSON API over HTTPS at api.sms.jtnoble.com and SMPP 3.4 at smpp.sms.jtnoble.com. Start free with a test key.
Documentation
Guides for the HTTP API, SMPP, sender IDs, webhooks and OTP.
Get an API key
Create an account, then add live and test keys in the dashboard.
SMPP account
Request a bind for your SMPP client.
Prices
Per-country prices in USD, the same on every channel.
Your first SMS in a few lines
Plain HTTPS and JSON from any language. Create a key in the dashboard and start with a test key.
-
Live and test keys
A jtsms_test_ key behaves like the real API. Nothing reaches a phone and nothing is charged.
-
Safe retries
Send an Idempotency-Key and a repeated request returns the first result, with no second charge.
-
Signed webhooks
Get a POST when a message ends, signed with HMAC-SHA256 so you can trust it.
-
Price before you send
POST /v1/messages/rate returns the parts and total cost. Nothing is sent.
// Node 18 or newer (fetch is built in)
const resp = await fetch('https://api.sms.jtnoble.com/v1/messages/send', {
method: 'POST',
headers: {
Authorization: `Bearer ${process.env.JTSMS_API_KEY}`,
'Content-Type': 'application/json',
'Idempotency-Key': 'order-2048-dispatched',
},
body: JSON.stringify({
to: '+2348031234567',
text: 'Your order JT-2048 is out for delivery.',
sender_id: 'MyShop',
}),
});
const data = await resp.json();
if (resp.ok) console.log('Sent', data.id, data.status);
else console.error('Error', data.error.code, data.error.message);import os
import requests
resp = requests.post(
"https://api.sms.jtnoble.com/v1/messages/send",
headers={
"Authorization": f"Bearer {os.environ['JTSMS_API_KEY']}",
"Idempotency-Key": "order-2048-dispatched",
},
json={
"to": "+2348031234567",
"text": "Your order JT-2048 is out for delivery.",
"sender_id": "MyShop",
},
timeout=15,
)
data = resp.json()
if resp.ok:
print("Sent", data["id"], data["status"])
else:
print("Error", data["error"]["code"], data["error"]["message"])<?php
$ch = curl_init('https://api.sms.jtnoble.com/v1/messages/send');
curl_setopt_array($ch, [
CURLOPT_POST => true,
CURLOPT_RETURNTRANSFER => true,
CURLOPT_TIMEOUT => 15,
CURLOPT_HTTPHEADER => [
'Authorization: Bearer ' . getenv('JTSMS_API_KEY'),
'Content-Type: application/json',
'Idempotency-Key: order-2048-dispatched',
],
CURLOPT_POSTFIELDS => json_encode([
'to' => '+2348031234567',
'text' => 'Your order JT-2048 is out for delivery.',
'sender_id' => 'MyShop',
]),
]);
$body = curl_exec($ch);
$status = curl_getinfo($ch, CURLINFO_HTTP_CODE);
curl_close($ch);
$data = json_decode($body, true);
if ($status === 200) {
echo "Sent {$data['id']} {$data['status']}\n";
} else {
echo "Error {$data['error']['code']}\n";
}