API reference
Every customer route of the JT Noble SMS HTTP API, built from the service code.
All 169 customer routes of https://api.sms.jtnoble.com, grouped by topic. Each one shows the request, a response, its errors and samples in curl, Node, Python and PHP.
Set your key once, then copy any sample:
export JTSMS_API_KEY=jtsms_test_YOUR_KEYUse a jtsms_test_ key while you build: nothing reaches a phone and nothing is charged. See Sandbox.
Routes marked "dashboard session token" need a signed-in user, not an API key: use JTSMS_SESSION_TOKEN, the access_token from POST https://auth.sms.jtnoble.com/auth/login.
The same routes answer under /api/ as well as /v1/. Use /v1/.
Messages
| Route | What it does |
|---|---|
GET /v1/messages | List messages |
GET /v1/messages/export | Export messages as CSV |
POST /v1/messages/rate | Price a message |
POST /v1/messages/send | Send one SMS |
GET /v1/messages/stats | Message totals |
GET /v1/messages/status | Status of several messages |
POST /v1/messages/validate | Check phone numbers |
GET /v1/messages/volume | Daily message volume |
GET /v1/messages/{message_id} | Get one message with its timeline |
POST /v1/messages/{message_id}/cancel | Cancel a scheduled message |
POST /v1/messages/{message_id}/retry | Retry a failed message |
POST /v1/rate | Price a message (short path) |
POST /v1/validate | Check phone numbers (short path) |
Bulk and batch
| Route | What it does |
|---|---|
POST /v1/messages/batch | Send personalised messages in one call |
GET /v1/messages/batch/{batch_id} | Read a batch |
POST /v1/messages/batch/{batch_id}/cancel | Cancel a scheduled batch |
POST /v1/messages/bulk-precheck | Price a bulk send |
POST /v1/messages/send-bulk | Send one message to many numbers |
Verify
| Route | What it does |
|---|---|
GET /v1/verify | List verifications |
POST /v1/verify/check | Check a code |
POST /v1/verify/start | Send a code |
GET /v1/verify/stats | Verification totals |
GET /v1/verify/{public_id} | Read a verification |
POST /v1/verify/{public_id}/cancel | Cancel a verification |
POST /v1/verify/{public_id}/resend | Send a fresh code |
Two-way and opt-outs
| Route | What it does |
|---|---|
GET /v1/conversations | List conversations |
GET /v1/conversations/{phone} | Read one conversation |
PATCH /v1/conversations/{phone} | Mark read or archive |
POST /v1/conversations/{phone}/reply | Reply in a conversation |
GET /v1/opt-outs | List opt-outs |
POST /v1/opt-outs | Add an opt-out |
GET /v1/opt-outs/export | Export opt-outs as CSV |
POST /v1/opt-outs/import | Add many opt-outs |
DELETE /v1/opt-outs/{phone} | Remove an opt-out |
GET /v1/two-way | Numbers, keywords and auto-replies |
POST /v1/two-way/keywords | Reserve a keyword |
PUT /v1/two-way/keywords/{kid} | Change a keyword |
DELETE /v1/two-way/keywords/{kid} | Delete a keyword |
PUT /v1/two-way/settings | Auto-reply settings |
POST /v1/two-way/simulate | Simulate an inbound message (sandbox) |
Campaigns and segments
Contacts, lists and imports
Templates
| Route | What it does |
|---|---|
GET /v1/templates | List templates |
POST /v1/templates | Create a template |
POST /v1/templates/render | Render a template |
GET /v1/templates/starter-pack | Ready-made templates |
POST /v1/templates/starter-pack/{key} | Add a ready-made template |
GET /v1/templates/{template_id} | Read a template |
PATCH /v1/templates/{template_id} | Change a template |
DELETE /v1/templates/{template_id} | Delete a template |
Sender IDs
| Route | What it does |
|---|---|
GET /v1/sender-ids | List your sender IDs |
POST /v1/sender-ids | Request a sender ID |
GET /v1/sender-ids/default | The default sender |
DELETE /v1/sender-ids/{sender_id} | Delete a sender ID |
Webhooks
| Route | What it does |
|---|---|
GET /v1/webhook-deliveries | Webhook delivery log |
POST /v1/webhook-deliveries/{delivery_id}/replay | Send a webhook again |
GET /v1/webhooks | Read webhook settings |
PUT /v1/webhooks | Set webhook URLs |
POST /v1/webhooks/rotate-secret | Make a new signing secret |
POST /v1/webhooks/test | Send test events |
Sandbox
| Route | What it does |
|---|---|
GET /v1/sandbox/info | Sandbox numbers |
POST /v1/sandbox/simulate | Simulate one message |
Balance and account
Routes, prices and status
| Route | What it does |
|---|---|
GET /v1/countries | Countries |
GET /v1/pricing | Public prices |
GET /v1/public/service-notice | Service notice |
GET /v1/public/theme | Brand settings |
GET /v1/routes | Routes |
GET /v1/routes/health | Route health |
GET /v1/routes/{code} | One route |
GET /v1/send-countries | Countries you can send to |
POST /v1/status/subscribe | Subscribe to status mail |
GET /v1/status/subscribe/confirm | Confirm a status subscription |
GET /v1/status/summary | Platform status |
GET /v1/status/unsubscribe | Unsubscribe from status mail |
Resellers
| Route | What it does |
|---|---|
GET /v1/reseller/clients | List your clients |
POST /v1/reseller/clients | Create a client |
POST /v1/reseller/clients/{user_id}/transfer | Move balance to a client |
GET /v1/reseller/summary | Reseller totals |