JT Noble SMS documentation home

Sandbox

Every sandbox route, with request, response, errors and samples in curl, Node, Python and PHP.

See the overview for sign-in and the error shape.

Sandbox numbers

GET /v1/sandbox/info

Who can call it: Any API key, or a dashboard session token.

curl -X GET "https://api.sms.jtnoble.com/v1/sandbox/info" \
  -H "Authorization: Bearer $JTSMS_API_KEY"
const resp = await fetch('https://api.sms.jtnoble.com/v1/sandbox/info', {
  method: 'GET',
  headers: { Authorization: `Bearer ${process.env.JTSMS_API_KEY}` },
});
console.log(resp.status, await resp.text());
import os
import requests

resp = requests.get(
    "https://api.sms.jtnoble.com/v1/sandbox/info",
    headers={"Authorization": f"Bearer {os.environ['JTSMS_API_KEY']}"},
    timeout=30,
)
print(resp.status_code, resp.text)
<?php
$ch = curl_init('https://api.sms.jtnoble.com/v1/sandbox/info');
curl_setopt_array($ch, [
    CURLOPT_RETURNTRANSFER => true,
    CURLOPT_CUSTOMREQUEST => 'GET',
    CURLOPT_HTTPHEADER => ['Authorization: Bearer ' . getenv('JTSMS_API_KEY')],
]);
$body = curl_exec($ch);
echo curl_getinfo($ch, CURLINFO_RESPONSE_CODE), ' ', $body, PHP_EOL;

HTTP 200:

{
  "magic_numbers": {
    "any other number": "delivered",
    "...0000": "undelivered",
    "...0002": "sent (no final DLR)",
    "...0003": "failed (rejected)",
    "...0404": "failed (unknown subscriber)",
    "...0009": "402 insufficient balance"
  },
  "how": [
    "Create a test API key (jtsms_test_…) on the API Keys page - it hits the same /messages endpoint but simulates: no real delivery, no charge, isolated test message log.",
    "Or use the simulator below for an instant, deterministic preview."
  ]
}
HTTPcodeMessage
401unauthorizedNot authenticated
429rate_limitedToo many requests. Try again in a moment.

Simulate one message

POST /v1/sandbox/simulate

Who can call it: Any API key, or a dashboard session token.

Body (JSON):

FieldTypeRequiredDefaultMeaning
tostringYesMobile number in international format, for example +2348030000000. Also accepted: 2348030000000, or 08030000000 in your default country.
senderstringNo"MYSHOP"
textstringYesThe message.
curl -X POST "https://api.sms.jtnoble.com/v1/sandbox/simulate" \
  -H "Authorization: Bearer $JTSMS_API_KEY" \
  -H "Content-Type: application/json" \
  -d '{"to":"+2348030001111","text":"Hello"}'
const resp = await fetch('https://api.sms.jtnoble.com/v1/sandbox/simulate', {
  method: 'POST',
  headers: { Authorization: `Bearer ${process.env.JTSMS_API_KEY}`, 'Content-Type': 'application/json' },
  body: JSON.stringify({"to":"+2348030001111","text":"Hello"}),
});
console.log(resp.status, await resp.text());
import os
import requests

resp = requests.post(
    "https://api.sms.jtnoble.com/v1/sandbox/simulate",
    headers={"Authorization": f"Bearer {os.environ['JTSMS_API_KEY']}"},
    json={"to":"+2348030001111","text":"Hello"},
    timeout=30,
)
print(resp.status_code, resp.text)
<?php
$ch = curl_init('https://api.sms.jtnoble.com/v1/sandbox/simulate');
curl_setopt_array($ch, [
    CURLOPT_RETURNTRANSFER => true,
    CURLOPT_CUSTOMREQUEST => 'POST',
    CURLOPT_HTTPHEADER => ['Authorization: Bearer ' . getenv('JTSMS_API_KEY'), 'Content-Type: application/json'],
    CURLOPT_POSTFIELDS => '{"to":"+2348030001111","text":"Hello"}',
]);
$body = curl_exec($ch);
echo curl_getinfo($ch, CURLINFO_RESPONSE_CODE), ' ', $body, PHP_EOL;

HTTP 200:

{
  "accepted": true,
  "message_id": "sim_959efcb2dfad4eb9",
  "to": "+2348030001111",
  "sender": "MYSHOP",
  "encoding": "GSM7",
  "segments": 1,
  "characters": 5,
  "units": 5,
  "over_cap": false,
  "country": "NG",
  "final_status": "delivered",
  "dlr_code": "DELIVRD",
  "timeline": [
    {
      "status": "queued",
      "at": "2026-11-07T17:01:40.339223+00:00",
      "note": "Accepted by the API"
    },
    {
      "status": "submitted",
      "at": "2026-11-07T17:01:41.339223+00:00",
      "note": "Gateway accepted (simulated)"
    }
  ]
}
HTTPcodeMessage
401unauthorizedNot authenticated
422validation_errorRequest validation failed
429rate_limitedToo many requests. Try again in a moment.

On this page