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.

All code examples
send.mjs
// 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);