Contacts, lists and imports
Every contacts, lists and imports route, with request, response, errors and samples in curl, Node, Python and PHP.
See the overview for sign-in and the error shape.
List contact lists
GET /v1/contact-lists
Who can call it: Any API key, or a dashboard session token.
| Query | Type | Required | Default | Meaning |
|---|---|---|---|---|
page | integer | No | 0 | Page number, starting at 0. |
limit | integer | No | 20 | Items per page. |
tag | string | No |
curl -X GET "https://api.sms.jtnoble.com/v1/contact-lists" \
-H "Authorization: Bearer $JTSMS_API_KEY"const resp = await fetch('https://api.sms.jtnoble.com/v1/contact-lists', {
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/contact-lists",
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/contact-lists');
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:
{
"lists": [
{
"id": 5,
"name": "Parents",
"count": 2,
"columns": [
"phone",
"name"
],
"tags": [],
"created_at": "2026-11-07T17:49:56.333482+00:00",
"updated_at": "2026-11-07T17:49:56.338631+00:00"
},
{
"id": 4,
"name": "Parents",
"count": 2,
"columns": [
"phone",
"name"
],
"tags": [],
"created_at": "2026-11-07T17:49:54.890345+00:00",
"updated_at": "2026-11-07T17:49:54.938862+00:00"
}
],
"total": 2
}| HTTP | code | Message |
|---|---|---|
| 401 | unauthorized | Not authenticated |
| 429 | rate_limited | Too many requests. Try again in a moment. |
Upload a contact list
POST /v1/contact-lists
Upload a CSV to create a contact list. First row = headers.
Who can call it: Any API key, or a dashboard session token.
Form fields (multipart/form-data):
| Field | Type | Required | Default | Meaning |
|---|---|---|---|---|
file | string | Yes | The CSV or Excel file. | |
name | string | No | "" | A name. |
tags | string | No | "" | Labels. |
default_country | string | No | "" | Leave it out to read local numbers in your account's default country (NG unless you change it). |
curl -X POST "https://api.sms.jtnoble.com/v1/contact-lists" \
-H "Authorization: Bearer $JTSMS_API_KEY" \
-F "file=@contacts.csv" \
-F "name=Parents"import { readFile } from 'node:fs/promises';
const form = new FormData();
form.append('file', new Blob([await readFile('contacts.csv')]), 'contacts.csv');
form.append('name', 'Parents');
const resp = await fetch('https://api.sms.jtnoble.com/v1/contact-lists', {
method: 'POST',
headers: { Authorization: `Bearer ${process.env.JTSMS_API_KEY}` },
body: form,
});
console.log(resp.status, await resp.text());import os
import requests
resp = requests.post(
"https://api.sms.jtnoble.com/v1/contact-lists",
headers={"Authorization": f"Bearer {os.environ['JTSMS_API_KEY']}"},
files={"file": open("contacts.csv", "rb")},
data={"name": "Parents"},
timeout=30,
)
print(resp.status_code, resp.text)<?php
$ch = curl_init('https://api.sms.jtnoble.com/v1/contact-lists');
curl_setopt_array($ch, [
CURLOPT_RETURNTRANSFER => true,
CURLOPT_CUSTOMREQUEST => 'POST',
CURLOPT_HTTPHEADER => ['Authorization: Bearer ' . getenv('JTSMS_API_KEY')],
CURLOPT_POSTFIELDS => ['file' => new CURLFile('contacts.csv'), 'name' => 'Parents'],
]);
$body = curl_exec($ch);
echo curl_getinfo($ch, CURLINFO_RESPONSE_CODE), ' ', $body, PHP_EOL;HTTP 200:
{
"id": 2,
"name": "Parents",
"count": 2,
"columns": [
"phone",
"name"
],
"tags": [],
"invalid_count": 0,
"invalid_samples": [],
"duplicate_count": 0
}| HTTP | code | Message |
|---|---|---|
| 400 | bad_request | CSV has no headers |
| 401 | unauthorized | Not authenticated |
| 413 | file_too_large | |
| 413 | too_many_rows | |
| 429 | rate_limited | Too many requests. Try again in a moment. |
Read a contact list
GET /v1/contact-lists/{list_id}
Who can call it: Any API key, or a dashboard session token.
| Path value | Type | Meaning |
|---|---|---|
list_id | integer | The list id. |
curl -X GET "https://api.sms.jtnoble.com/v1/contact-lists/LIST_ID" \
-H "Authorization: Bearer $JTSMS_API_KEY"const resp = await fetch('https://api.sms.jtnoble.com/v1/contact-lists/LIST_ID', {
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/contact-lists/LIST_ID",
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/contact-lists/LIST_ID');
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:
{
"id": 2,
"name": "Parents",
"count": 2,
"columns": [
"phone",
"name"
],
"tags": [],
"created_at": "2026-11-07T17:01:37.970653+00:00",
"updated_at": "2026-11-07T17:01:37.975421+00:00"
}| HTTP | code | Message |
|---|---|---|
| 401 | unauthorized | Not authenticated |
| 404 | not_found | Contact list not found |
| 429 | rate_limited | Too many requests. Try again in a moment. |
Delete a contact list
DELETE /v1/contact-lists/{list_id}
Who can call it: Any API key, or a dashboard session token.
| Path value | Type | Meaning |
|---|---|---|
list_id | integer | The list id. |
curl -X DELETE "https://api.sms.jtnoble.com/v1/contact-lists/LIST_ID" \
-H "Authorization: Bearer $JTSMS_API_KEY"const resp = await fetch('https://api.sms.jtnoble.com/v1/contact-lists/LIST_ID', {
method: 'DELETE',
headers: { Authorization: `Bearer ${process.env.JTSMS_API_KEY}` },
});
console.log(resp.status, await resp.text());import os
import requests
resp = requests.delete(
"https://api.sms.jtnoble.com/v1/contact-lists/LIST_ID",
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/contact-lists/LIST_ID');
curl_setopt_array($ch, [
CURLOPT_RETURNTRANSFER => true,
CURLOPT_CUSTOMREQUEST => 'DELETE',
CURLOPT_HTTPHEADER => ['Authorization: Bearer ' . getenv('JTSMS_API_KEY')],
]);
$body = curl_exec($ch);
echo curl_getinfo($ch, CURLINFO_RESPONSE_CODE), ' ', $body, PHP_EOL;HTTP 200:
{
"status": "deleted"
}| HTTP | code | Message |
|---|---|---|
| 401 | unauthorized | Not authenticated |
| 404 | not_found | Contact list not found |
| 429 | rate_limited | Too many requests. Try again in a moment. |
Contacts in a list
GET /v1/contact-lists/{list_id}/contacts
Who can call it: Any API key, or a dashboard session token.
| Path value | Type | Meaning |
|---|---|---|
list_id | integer | The list id. |
| Query | Type | Required | Default | Meaning |
|---|---|---|---|---|
page | integer | No | 0 | Page number, starting at 0. |
limit | integer | No | 20 | Items per page. |
curl -X GET "https://api.sms.jtnoble.com/v1/contact-lists/LIST_ID/contacts" \
-H "Authorization: Bearer $JTSMS_API_KEY"const resp = await fetch('https://api.sms.jtnoble.com/v1/contact-lists/LIST_ID/contacts', {
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/contact-lists/LIST_ID/contacts",
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/contact-lists/LIST_ID/contacts');
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:
{
"contacts": [
{
"id": 2,
"phone": "+2348030001181",
"name": "Ada",
"data": null
},
{
"id": 3,
"phone": "+2348030001182",
"name": "Chinedu",
"data": null
}
],
"total": 2
}| HTTP | code | Message |
|---|---|---|
| 401 | unauthorized | Not authenticated |
| 404 | not_found | Contact list not found |
| 429 | rate_limited | Too many requests. Try again in a moment. |
Add a contact to a list
POST /v1/contact-lists/{list_id}/contacts
Who can call it: Any API key, or a dashboard session token.
| Path value | Type | Meaning |
|---|---|---|
list_id | integer | The list id. |
Body (JSON):
| Field | Type | Required | Default | Meaning |
|---|---|---|---|---|
phone | string | Yes | Mobile number in international format. | |
name | string | No | A name. | |
data | object | No |
curl -X POST "https://api.sms.jtnoble.com/v1/contact-lists/LIST_ID/contacts" \
-H "Authorization: Bearer $JTSMS_API_KEY" \
-H "Content-Type: application/json" \
-d '{"phone":"+2348030001206","name":"Tadala"}'const resp = await fetch('https://api.sms.jtnoble.com/v1/contact-lists/LIST_ID/contacts', {
method: 'POST',
headers: { Authorization: `Bearer ${process.env.JTSMS_API_KEY}`, 'Content-Type': 'application/json' },
body: JSON.stringify({"phone":"+2348030001206","name":"Tadala"}),
});
console.log(resp.status, await resp.text());import os
import requests
resp = requests.post(
"https://api.sms.jtnoble.com/v1/contact-lists/LIST_ID/contacts",
headers={"Authorization": f"Bearer {os.environ['JTSMS_API_KEY']}"},
json={"phone":"+2348030001206","name":"Tadala"},
timeout=30,
)
print(resp.status_code, resp.text)<?php
$ch = curl_init('https://api.sms.jtnoble.com/v1/contact-lists/LIST_ID/contacts');
curl_setopt_array($ch, [
CURLOPT_RETURNTRANSFER => true,
CURLOPT_CUSTOMREQUEST => 'POST',
CURLOPT_HTTPHEADER => ['Authorization: Bearer ' . getenv('JTSMS_API_KEY'), 'Content-Type: application/json'],
CURLOPT_POSTFIELDS => '{"phone":"+2348030001206","name":"Tadala"}',
]);
$body = curl_exec($ch);
echo curl_getinfo($ch, CURLINFO_RESPONSE_CODE), ' ', $body, PHP_EOL;HTTP 201:
{
"id": 8,
"phone": "+2348030001206",
"name": "Tadala",
"data": null
}| HTTP | code | Message |
|---|---|---|
| 401 | unauthorized | Not authenticated |
| 409 | conflict | That number is already in this list |
| 422 | validation_error | Request validation failed |
| 429 | rate_limited | Too many requests. Try again in a moment. |
Export a list as CSV
GET /v1/contact-lists/{list_id}/export
Download every contact in a list as CSV (phone, name, + any custom fields).
Who can call it: Any API key, or a dashboard session token.
| Path value | Type | Meaning |
|---|---|---|
list_id | integer | The list id. |
curl -X GET "https://api.sms.jtnoble.com/v1/contact-lists/LIST_ID/export" \
-H "Authorization: Bearer $JTSMS_API_KEY"const resp = await fetch('https://api.sms.jtnoble.com/v1/contact-lists/LIST_ID/export', {
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/contact-lists/LIST_ID/export",
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/contact-lists/LIST_ID/export');
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, a CSV file:
phone,name,city
+2348030001204,Ada,Abuja
+2348030001205,Chinedu,Lagos
| HTTP | code | Message |
|---|---|---|
| 401 | unauthorized | Not authenticated |
| 429 | rate_limited | Too many requests. Try again in a moment. |
List contacts
GET /v1/contacts
Who can call it: API key with the query scope, or a dashboard session token.
| Query | Type | Required | Default | Meaning |
|---|---|---|---|---|
search | string | No | Phone or name contains | |
group_id | integer | No | An existing group. | |
opted_out | boolean | No | ||
page | integer | No | 0 | Page number, starting at 0. |
limit | integer | No | 50 | Items per page. |
curl -X GET "https://api.sms.jtnoble.com/v1/contacts" \
-H "Authorization: Bearer $JTSMS_API_KEY"const resp = await fetch('https://api.sms.jtnoble.com/v1/contacts', {
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/contacts",
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/contacts');
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:
{
"total": 1,
"page": 0,
"limit": 2,
"contacts": [
{
"phone": "+2348030001171",
"name": "Chinedu Banda",
"groups": [
{
"id": 1,
"name": "Parents"
}
],
"fields": {
"city": "Abuja"
},
"opted_out": false,
"created_at": "2026-11-07T17:01:33.579495+00:00"
}
]
}| HTTP | code | Message |
|---|---|---|
| 401 | unauthorized | Not authenticated |
| 403 | insufficient_scope | This API key is not authorised for this action. |
| 429 | rate_limited | Too many requests. Try again in a moment. |
Add or update a contact
POST /v1/contacts
Who can call it: API key with the send scope, or a dashboard session token.
Body (JSON):
| Field | Type | Required | Default | Meaning |
|---|---|---|---|---|
phone | string | Yes | Mobile number in international format. | |
name | string | No | A name. | |
fields | object | No | Your own fields, as an object. | |
group_ids | array of integer | Yes | Groups to put the contact in |
curl -X POST "https://api.sms.jtnoble.com/v1/contacts" \
-H "Authorization: Bearer $JTSMS_API_KEY" \
-H "Content-Type: application/json" \
-d '{"phone":"+2348030001171","name":"Chinedu Banda","fields":{"city":"Abuja"},"group_ids":[1]}'const resp = await fetch('https://api.sms.jtnoble.com/v1/contacts', {
method: 'POST',
headers: { Authorization: `Bearer ${process.env.JTSMS_API_KEY}`, 'Content-Type': 'application/json' },
body: JSON.stringify({"phone":"+2348030001171","name":"Chinedu Banda","fields":{"city":"Abuja"},"group_ids":[1]}),
});
console.log(resp.status, await resp.text());import os
import requests
resp = requests.post(
"https://api.sms.jtnoble.com/v1/contacts",
headers={"Authorization": f"Bearer {os.environ['JTSMS_API_KEY']}"},
json={"phone":"+2348030001171","name":"Chinedu Banda","fields":{"city":"Abuja"},"group_ids":[1]},
timeout=30,
)
print(resp.status_code, resp.text)<?php
$ch = curl_init('https://api.sms.jtnoble.com/v1/contacts');
curl_setopt_array($ch, [
CURLOPT_RETURNTRANSFER => true,
CURLOPT_CUSTOMREQUEST => 'POST',
CURLOPT_HTTPHEADER => ['Authorization: Bearer ' . getenv('JTSMS_API_KEY'), 'Content-Type: application/json'],
CURLOPT_POSTFIELDS => '{"phone":"+2348030001171","name":"Chinedu Banda","fields":{"city":"Abuja"},"group_ids":[1]}',
]);
$body = curl_exec($ch);
echo curl_getinfo($ch, CURLINFO_RESPONSE_CODE), ' ', $body, PHP_EOL;HTTP 201:
{
"phone": "+2348030001171",
"added_to": 1,
"groups": [
1
]
}| HTTP | code | Message |
|---|---|---|
| 401 | unauthorized | Not authenticated |
| 403 | insufficient_scope | This API key is not authorised for this action. |
| 404 | group_not_found | Group not found |
| 422 | validation_error | Request validation failed |
| 429 | rate_limited | Too many requests. Try again in a moment. |
Export contacts as CSV
GET /v1/contacts/export
Who can call it: API key with the query scope, or a dashboard session token.
| Query | Type | Required | Default | Meaning |
|---|---|---|---|---|
group_id | integer | No | An existing group. | |
format | string | No | csv |
curl -X GET "https://api.sms.jtnoble.com/v1/contacts/export" \
-H "Authorization: Bearer $JTSMS_API_KEY"const resp = await fetch('https://api.sms.jtnoble.com/v1/contacts/export', {
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/contacts/export",
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/contacts/export');
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, a CSV file:
phone,name,group,opted_out,city,added_at
+2348030001201,Ada,Parents,no,,2026-11-07T17:49:54.914732+00:00
+2348030001202,Chinedu,Parents,no,,2026-11-07T17:49:54.914732+00:00
+2348030001208,Mphatso B,Parents,no,Kano,2026-11-07T17:50:04.037517+00:00
| HTTP | code | Message |
|---|---|---|
| 401 | unauthorized | Not authenticated |
| 403 | insufficient_scope | This API key is not authorised for this action. |
| 429 | rate_limited | Too many requests. Try again in a moment. |
Read a contact
GET /v1/contacts/{ref}
Who can call it: API key with the query scope, or a dashboard session token.
| Path value | Type | Meaning |
|---|---|---|
ref | string | Contact phone number or id. |
curl -X GET "https://api.sms.jtnoble.com/v1/contacts/REF" \
-H "Authorization: Bearer $JTSMS_API_KEY"const resp = await fetch('https://api.sms.jtnoble.com/v1/contacts/REF', {
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/contacts/REF",
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/contacts/REF');
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:
{
"phone": "+2348030001208",
"name": "Mphatso",
"fields": {
"city": "Kano"
},
"groups": [
{
"id": 6,
"name": "Parents",
"row_id": 10
}
],
"opted_out": false,
"opt_out": null,
"opt_out_history": [],
"messages": []
}| HTTP | code | Message |
|---|---|---|
| 401 | unauthorized | Not authenticated |
| 403 | insufficient_scope | This API key is not authorised for this action. |
| 404 | not_found | Contact not found |
| 429 | rate_limited | Too many requests. Try again in a moment. |
Change a contact
PATCH /v1/contacts/{ref}
Who can call it: API key with the send scope, or a dashboard session token.
| Path value | Type | Meaning |
|---|---|---|
ref | string | Contact phone number or id. |
Body (JSON):
| Field | Type | Required | Default | Meaning |
|---|---|---|---|---|
phone | string | No | Mobile number in international format. | |
name | string | No | A name. | |
fields | object | No | Your own fields, as an object. | |
data | object | No |
curl -X PATCH "https://api.sms.jtnoble.com/v1/contacts/REF" \
-H "Authorization: Bearer $JTSMS_API_KEY" \
-H "Content-Type: application/json" \
-d '{"name":"Mphatso B"}'const resp = await fetch('https://api.sms.jtnoble.com/v1/contacts/REF', {
method: 'PATCH',
headers: { Authorization: `Bearer ${process.env.JTSMS_API_KEY}`, 'Content-Type': 'application/json' },
body: JSON.stringify({"name":"Mphatso B"}),
});
console.log(resp.status, await resp.text());import os
import requests
resp = requests.patch(
"https://api.sms.jtnoble.com/v1/contacts/REF",
headers={"Authorization": f"Bearer {os.environ['JTSMS_API_KEY']}"},
json={"name":"Mphatso B"},
timeout=30,
)
print(resp.status_code, resp.text)<?php
$ch = curl_init('https://api.sms.jtnoble.com/v1/contacts/REF');
curl_setopt_array($ch, [
CURLOPT_RETURNTRANSFER => true,
CURLOPT_CUSTOMREQUEST => 'PATCH',
CURLOPT_HTTPHEADER => ['Authorization: Bearer ' . getenv('JTSMS_API_KEY'), 'Content-Type: application/json'],
CURLOPT_POSTFIELDS => '{"name":"Mphatso B"}',
]);
$body = curl_exec($ch);
echo curl_getinfo($ch, CURLINFO_RESPONSE_CODE), ' ', $body, PHP_EOL;HTTP 200:
{
"id": 10,
"phone": "+2348030001208",
"name": "Mphatso B",
"data": {
"city": "Kano"
},
"rows": 1
}| HTTP | code | Message |
|---|---|---|
| 401 | unauthorized | Not authenticated |
| 403 | insufficient_scope | This API key is not authorised for this action. |
| 404 | not_found | Contact not found |
| 422 | validation_error | Request validation failed |
| 429 | rate_limited | Too many requests. Try again in a moment. |
Delete a contact
DELETE /v1/contacts/{ref}
Who can call it: API key with the send scope, or a dashboard session token.
| Path value | Type | Meaning |
|---|---|---|
ref | string | Contact phone number or id. |
curl -X DELETE "https://api.sms.jtnoble.com/v1/contacts/REF" \
-H "Authorization: Bearer $JTSMS_API_KEY"const resp = await fetch('https://api.sms.jtnoble.com/v1/contacts/REF', {
method: 'DELETE',
headers: { Authorization: `Bearer ${process.env.JTSMS_API_KEY}` },
});
console.log(resp.status, await resp.text());import os
import requests
resp = requests.delete(
"https://api.sms.jtnoble.com/v1/contacts/REF",
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/contacts/REF');
curl_setopt_array($ch, [
CURLOPT_RETURNTRANSFER => true,
CURLOPT_CUSTOMREQUEST => 'DELETE',
CURLOPT_HTTPHEADER => ['Authorization: Bearer ' . getenv('JTSMS_API_KEY')],
]);
$body = curl_exec($ch);
echo curl_getinfo($ch, CURLINFO_RESPONSE_CODE), ' ', $body, PHP_EOL;HTTP 204, no body.
| HTTP | code | Message |
|---|---|---|
| 401 | unauthorized | Not authenticated |
| 403 | insufficient_scope | This API key is not authorised for this action. |
| 404 | not_found | Contact not found |
| 429 | rate_limited | Too many requests. Try again in a moment. |
List groups
GET /v1/groups
Who can call it: API key with the query scope, or a dashboard session token.
| Query | Type | Required | Default | Meaning |
|---|---|---|---|---|
q | string | No | Search text. |
curl -X GET "https://api.sms.jtnoble.com/v1/groups" \
-H "Authorization: Bearer $JTSMS_API_KEY"const resp = await fetch('https://api.sms.jtnoble.com/v1/groups', {
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/groups",
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/groups');
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:
{
"groups": [
{
"id": 1,
"name": "Parents",
"count": 1,
"columns": [
"phone",
"name"
],
"tags": [],
"created_at": "2026-11-07T17:01:33.015598+00:00",
"updated_at": "2026-11-07T17:01:33.581827+00:00"
}
]
}| HTTP | code | Message |
|---|---|---|
| 401 | unauthorized | Not authenticated |
| 403 | insufficient_scope | This API key is not authorised for this action. |
| 429 | rate_limited | Too many requests. Try again in a moment. |
Create a group
POST /v1/groups
Who can call it: API key with the send scope, or a dashboard session token.
Body (JSON):
| Field | Type | Required | Default | Meaning |
|---|---|---|---|---|
name | string | Yes | A name. | |
tags | array of string | No | Labels. |
curl -X POST "https://api.sms.jtnoble.com/v1/groups" \
-H "Authorization: Bearer $JTSMS_API_KEY" \
-H "Content-Type: application/json" \
-d '{"name":"Parents"}'const resp = await fetch('https://api.sms.jtnoble.com/v1/groups', {
method: 'POST',
headers: { Authorization: `Bearer ${process.env.JTSMS_API_KEY}`, 'Content-Type': 'application/json' },
body: JSON.stringify({"name":"Parents"}),
});
console.log(resp.status, await resp.text());import os
import requests
resp = requests.post(
"https://api.sms.jtnoble.com/v1/groups",
headers={"Authorization": f"Bearer {os.environ['JTSMS_API_KEY']}"},
json={"name":"Parents"},
timeout=30,
)
print(resp.status_code, resp.text)<?php
$ch = curl_init('https://api.sms.jtnoble.com/v1/groups');
curl_setopt_array($ch, [
CURLOPT_RETURNTRANSFER => true,
CURLOPT_CUSTOMREQUEST => 'POST',
CURLOPT_HTTPHEADER => ['Authorization: Bearer ' . getenv('JTSMS_API_KEY'), 'Content-Type: application/json'],
CURLOPT_POSTFIELDS => '{"name":"Parents"}',
]);
$body = curl_exec($ch);
echo curl_getinfo($ch, CURLINFO_RESPONSE_CODE), ' ', $body, PHP_EOL;HTTP 201:
{
"id": 1,
"name": "Parents",
"count": 0,
"columns": [
"phone",
"name"
],
"tags": [],
"created_at": "2026-11-07T17:01:33.015598+00:00",
"updated_at": "2026-11-07T17:01:33.015604+00:00"
}| HTTP | code | Message |
|---|---|---|
| 401 | unauthorized | Not authenticated |
| 403 | insufficient_scope | This API key is not authorised for this action. |
| 422 | validation_error | Request validation failed |
| 429 | rate_limited | Too many requests. Try again in a moment. |
Read a group
GET /v1/groups/{group_id}
Who can call it: API key with the query scope, or a dashboard session token.
| Path value | Type | Meaning |
|---|---|---|
group_id | integer | An existing group. |
curl -X GET "https://api.sms.jtnoble.com/v1/groups/GROUP_ID" \
-H "Authorization: Bearer $JTSMS_API_KEY"const resp = await fetch('https://api.sms.jtnoble.com/v1/groups/GROUP_ID', {
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/groups/GROUP_ID",
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/groups/GROUP_ID');
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:
{
"id": 6,
"name": "Parents",
"count": 0,
"columns": [
"phone",
"name"
],
"tags": [
"docs"
],
"created_at": "2026-11-07T17:50:01.673442+00:00",
"updated_at": "2026-11-07T17:50:01.673452+00:00"
}| HTTP | code | Message |
|---|---|---|
| 401 | unauthorized | Not authenticated |
| 403 | insufficient_scope | This API key is not authorised for this action. |
| 404 | not_found | Group not found |
| 429 | rate_limited | Too many requests. Try again in a moment. |
Rename a group
PATCH /v1/groups/{group_id}
Who can call it: API key with the send scope, or a dashboard session token.
| Path value | Type | Meaning |
|---|---|---|
group_id | integer | An existing group. |
Body (JSON):
| Field | Type | Required | Default | Meaning |
|---|---|---|---|---|
name | string | No | A name. | |
tags | array of string | No | Labels. |
curl -X PATCH "https://api.sms.jtnoble.com/v1/groups/GROUP_ID" \
-H "Authorization: Bearer $JTSMS_API_KEY" \
-H "Content-Type: application/json" \
-d '{"name":"Parents"}'const resp = await fetch('https://api.sms.jtnoble.com/v1/groups/GROUP_ID', {
method: 'PATCH',
headers: { Authorization: `Bearer ${process.env.JTSMS_API_KEY}`, 'Content-Type': 'application/json' },
body: JSON.stringify({"name":"Parents"}),
});
console.log(resp.status, await resp.text());import os
import requests
resp = requests.patch(
"https://api.sms.jtnoble.com/v1/groups/GROUP_ID",
headers={"Authorization": f"Bearer {os.environ['JTSMS_API_KEY']}"},
json={"name":"Parents"},
timeout=30,
)
print(resp.status_code, resp.text)<?php
$ch = curl_init('https://api.sms.jtnoble.com/v1/groups/GROUP_ID');
curl_setopt_array($ch, [
CURLOPT_RETURNTRANSFER => true,
CURLOPT_CUSTOMREQUEST => 'PATCH',
CURLOPT_HTTPHEADER => ['Authorization: Bearer ' . getenv('JTSMS_API_KEY'), 'Content-Type: application/json'],
CURLOPT_POSTFIELDS => '{"name":"Parents"}',
]);
$body = curl_exec($ch);
echo curl_getinfo($ch, CURLINFO_RESPONSE_CODE), ' ', $body, PHP_EOL;HTTP 200:
{
"id": 6,
"name": "Parents",
"count": 0,
"columns": [
"phone",
"name"
],
"tags": [
"docs"
],
"created_at": "2026-11-07T17:50:01.673442+00:00",
"updated_at": "2026-11-07T17:50:02.629972+00:00"
}| HTTP | code | Message |
|---|---|---|
| 401 | unauthorized | Not authenticated |
| 403 | insufficient_scope | This API key is not authorised for this action. |
| 404 | not_found | Group not found |
| 422 | validation_error | Request validation failed |
| 429 | rate_limited | Too many requests. Try again in a moment. |
Delete a group
DELETE /v1/groups/{group_id}
Who can call it: API key with the send scope, or a dashboard session token.
| Path value | Type | Meaning |
|---|---|---|
group_id | integer | An existing group. |
curl -X DELETE "https://api.sms.jtnoble.com/v1/groups/GROUP_ID" \
-H "Authorization: Bearer $JTSMS_API_KEY"const resp = await fetch('https://api.sms.jtnoble.com/v1/groups/GROUP_ID', {
method: 'DELETE',
headers: { Authorization: `Bearer ${process.env.JTSMS_API_KEY}` },
});
console.log(resp.status, await resp.text());import os
import requests
resp = requests.delete(
"https://api.sms.jtnoble.com/v1/groups/GROUP_ID",
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/groups/GROUP_ID');
curl_setopt_array($ch, [
CURLOPT_RETURNTRANSFER => true,
CURLOPT_CUSTOMREQUEST => 'DELETE',
CURLOPT_HTTPHEADER => ['Authorization: Bearer ' . getenv('JTSMS_API_KEY')],
]);
$body = curl_exec($ch);
echo curl_getinfo($ch, CURLINFO_RESPONSE_CODE), ' ', $body, PHP_EOL;HTTP 200:
{
"status": "deleted"
}| HTTP | code | Message |
|---|---|---|
| 401 | unauthorized | Not authenticated |
| 403 | insufficient_scope | This API key is not authorised for this action. |
| 404 | not_found | Group not found |
| 429 | rate_limited | Too many requests. Try again in a moment. |
Contacts in a group
GET /v1/groups/{group_id}/contacts
Who can call it: API key with the query scope, or a dashboard session token.
| Path value | Type | Meaning |
|---|---|---|
group_id | integer | An existing group. |
| Query | Type | Required | Default | Meaning |
|---|---|---|---|---|
search | string | No | Search text. | |
page | integer | No | 0 | Page number, starting at 0. |
limit | integer | No | 50 | Items per page. |
curl -X GET "https://api.sms.jtnoble.com/v1/groups/GROUP_ID/contacts" \
-H "Authorization: Bearer $JTSMS_API_KEY"const resp = await fetch('https://api.sms.jtnoble.com/v1/groups/GROUP_ID/contacts', {
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/groups/GROUP_ID/contacts",
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/groups/GROUP_ID/contacts');
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:
{
"total": 1,
"contacts": [
{
"id": 1,
"phone": "+2348030001171",
"name": "Chinedu Banda",
"fields": {
"city": "Abuja"
},
"opted_out": false
}
]
}| HTTP | code | Message |
|---|---|---|
| 401 | unauthorized | Not authenticated |
| 403 | insufficient_scope | This API key is not authorised for this action. |
| 404 | not_found | Group not found |
| 429 | rate_limited | Too many requests. Try again in a moment. |
Add contacts to a group
POST /v1/groups/{group_id}/contacts
Who can call it: API key with the send scope, or a dashboard session token.
| Path value | Type | Meaning |
|---|---|---|
group_id | integer | An existing group. |
Body (JSON):
| Field | Type | Required | Default | Meaning |
|---|---|---|---|---|
contacts | array of object | Yes | Contacts: phone, name, fields. | |
default_country | string | No | Leave it out to read local numbers in your account's default country (NG unless you change it). |
curl -X POST "https://api.sms.jtnoble.com/v1/groups/GROUP_ID/contacts" \
-H "Authorization: Bearer $JTSMS_API_KEY" \
-H "Content-Type: application/json" \
-d '{"contacts":[{"phone":"+2348030001207","name":"Tadala"}]}'const resp = await fetch('https://api.sms.jtnoble.com/v1/groups/GROUP_ID/contacts', {
method: 'POST',
headers: { Authorization: `Bearer ${process.env.JTSMS_API_KEY}`, 'Content-Type': 'application/json' },
body: JSON.stringify({"contacts":[{"phone":"+2348030001207","name":"Tadala"}]}),
});
console.log(resp.status, await resp.text());import os
import requests
resp = requests.post(
"https://api.sms.jtnoble.com/v1/groups/GROUP_ID/contacts",
headers={"Authorization": f"Bearer {os.environ['JTSMS_API_KEY']}"},
json={"contacts":[{"phone":"+2348030001207","name":"Tadala"}]},
timeout=30,
)
print(resp.status_code, resp.text)<?php
$ch = curl_init('https://api.sms.jtnoble.com/v1/groups/GROUP_ID/contacts');
curl_setopt_array($ch, [
CURLOPT_RETURNTRANSFER => true,
CURLOPT_CUSTOMREQUEST => 'POST',
CURLOPT_HTTPHEADER => ['Authorization: Bearer ' . getenv('JTSMS_API_KEY'), 'Content-Type: application/json'],
CURLOPT_POSTFIELDS => '{"contacts":[{"phone":"+2348030001207","name":"Tadala"}]}',
]);
$body = curl_exec($ch);
echo curl_getinfo($ch, CURLINFO_RESPONSE_CODE), ' ', $body, PHP_EOL;HTTP 200:
{
"added": 1,
"rejected": [],
"rejected_count": 0
}| HTTP | code | Message |
|---|---|---|
| 401 | unauthorized | Not authenticated |
| 403 | insufficient_scope | This API key is not authorised for this action. |
| 404 | not_found | Group not found |
| 422 | validation_error | Request validation failed |
| 429 | rate_limited | Too many requests. Try again in a moment. |
Remove a contact from a group
DELETE /v1/groups/{group_id}/contacts/{phone}
Who can call it: API key with the send scope, or a dashboard session token.
| Path value | Type | Meaning |
|---|---|---|
group_id | integer | An existing group. |
phone | string | Mobile number in international format. |
curl -X DELETE "https://api.sms.jtnoble.com/v1/groups/GROUP_ID/contacts/+2348030000000" \
-H "Authorization: Bearer $JTSMS_API_KEY"const resp = await fetch('https://api.sms.jtnoble.com/v1/groups/GROUP_ID/contacts/+2348030000000', {
method: 'DELETE',
headers: { Authorization: `Bearer ${process.env.JTSMS_API_KEY}` },
});
console.log(resp.status, await resp.text());import os
import requests
resp = requests.delete(
"https://api.sms.jtnoble.com/v1/groups/GROUP_ID/contacts/+2348030000000",
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/groups/GROUP_ID/contacts/+2348030000000');
curl_setopt_array($ch, [
CURLOPT_RETURNTRANSFER => true,
CURLOPT_CUSTOMREQUEST => 'DELETE',
CURLOPT_HTTPHEADER => ['Authorization: Bearer ' . getenv('JTSMS_API_KEY')],
]);
$body = curl_exec($ch);
echo curl_getinfo($ch, CURLINFO_RESPONSE_CODE), ' ', $body, PHP_EOL;HTTP 200:
{
"removed": 1
}| HTTP | code | Message |
|---|---|---|
| 401 | unauthorized | Not authenticated |
| 403 | insufficient_scope | This API key is not authorised for this action. |
| 404 | not_found | Group not found |
| 429 | rate_limited | Too many requests. Try again in a moment. |
Upload a file
POST /v1/imports
Stores the file and returns its columns, a sample and a suggested column mapping. Nothing is validated yet: call POST /imports/{id}/process.
Who can call it: API key with the send scope, or a dashboard session token.
Form fields (multipart/form-data):
| Field | Type | Required | Default | Meaning |
|---|---|---|---|---|
file | string | Yes | The CSV or Excel file. | |
default_country | string | No | Leave it out to read local numbers in your account's default country (NG unless you change it). |
curl -X POST "https://api.sms.jtnoble.com/v1/imports" \
-H "Authorization: Bearer $JTSMS_API_KEY" \
-F "file=@contacts.csv"import { readFile } from 'node:fs/promises';
const form = new FormData();
form.append('file', new Blob([await readFile('contacts.csv')]), 'contacts.csv');
const resp = await fetch('https://api.sms.jtnoble.com/v1/imports', {
method: 'POST',
headers: { Authorization: `Bearer ${process.env.JTSMS_API_KEY}` },
body: form,
});
console.log(resp.status, await resp.text());import os
import requests
resp = requests.post(
"https://api.sms.jtnoble.com/v1/imports",
headers={"Authorization": f"Bearer {os.environ['JTSMS_API_KEY']}"},
files={"file": open("contacts.csv", "rb")},
timeout=30,
)
print(resp.status_code, resp.text)<?php
$ch = curl_init('https://api.sms.jtnoble.com/v1/imports');
curl_setopt_array($ch, [
CURLOPT_RETURNTRANSFER => true,
CURLOPT_CUSTOMREQUEST => 'POST',
CURLOPT_HTTPHEADER => ['Authorization: Bearer ' . getenv('JTSMS_API_KEY')],
CURLOPT_POSTFIELDS => ['file' => new CURLFile('contacts.csv')],
]);
$body = curl_exec($ch);
echo curl_getinfo($ch, CURLINFO_RESPONSE_CODE), ' ', $body, PHP_EOL;HTTP 201:
{
"id": "imp_85db80552651a73c39f8",
"source": "csv",
"filename": "c.csv",
"status": "uploaded",
"size_bytes": 31,
"columns": [
"phone",
"name"
],
"sample": [
[
"+2348030001203",
"Ada"
]
],
"has_header": true,
"suggested_mapping": {
"phone": "phone",
"name": "name",
"fields": {}
},
"mapping": null,
"row_estimate": 1,
"default_country": null,
"counts": {
"total_rows": 0,
"valid": 0,
"invalid": 0,
"duplicates": 0,
"opted_out": 0,
"unavailable": 0
},
"countries": {},
"reasons": {},
"fields": [],
"field_stats": {},
"error": null,
"job_id": null,
"group_id": null,
"created_at": "2026-11-07T17:49:55.375398+00:00"
}| HTTP | code | Message |
|---|---|---|
| 400 | import_error | The file or sheet could not be read. |
| 401 | unauthorized | Not authenticated |
| 403 | insufficient_scope | This API key is not authorised for this action. |
| 429 | rate_limited | Too many requests. Try again in a moment. |
Link a Google Sheet
POST /v1/imports/gsheet
Who can call it: API key with the send scope, or a dashboard session token.
Body (JSON):
| Field | Type | Required | Default | Meaning |
|---|---|---|---|---|
url | string | Yes | The address. | |
default_country | string | No | Leave it out to read local numbers in your account's default country (NG unless you change it). |
curl -X POST "https://api.sms.jtnoble.com/v1/imports/gsheet" \
-H "Authorization: Bearer $JTSMS_API_KEY" \
-H "Content-Type: application/json" \
-d '{"url":"https://docs.google.com/spreadsheets/d/YOUR_SHEET_ID/edit"}'const resp = await fetch('https://api.sms.jtnoble.com/v1/imports/gsheet', {
method: 'POST',
headers: { Authorization: `Bearer ${process.env.JTSMS_API_KEY}`, 'Content-Type': 'application/json' },
body: JSON.stringify({"url":"https://docs.google.com/spreadsheets/d/YOUR_SHEET_ID/edit"}),
});
console.log(resp.status, await resp.text());import os
import requests
resp = requests.post(
"https://api.sms.jtnoble.com/v1/imports/gsheet",
headers={"Authorization": f"Bearer {os.environ['JTSMS_API_KEY']}"},
json={"url":"https://docs.google.com/spreadsheets/d/YOUR_SHEET_ID/edit"},
timeout=30,
)
print(resp.status_code, resp.text)<?php
$ch = curl_init('https://api.sms.jtnoble.com/v1/imports/gsheet');
curl_setopt_array($ch, [
CURLOPT_RETURNTRANSFER => true,
CURLOPT_CUSTOMREQUEST => 'POST',
CURLOPT_HTTPHEADER => ['Authorization: Bearer ' . getenv('JTSMS_API_KEY'), 'Content-Type: application/json'],
CURLOPT_POSTFIELDS => '{"url":"https://docs.google.com/spreadsheets/d/YOUR_SHEET_ID/edit"}',
]);
$body = curl_exec($ch);
echo curl_getinfo($ch, CURLINFO_RESPONSE_CODE), ' ', $body, PHP_EOL;HTTP 201:
{
"id": "imp_99a7d874f4a09411d652",
"source": "paste",
"filename": "Pasted numbers",
"status": "uploaded",
"size_bytes": 57,
"columns": [
"phone",
"name"
],
"sample": [
[
"+2348030001201",
"Ada"
],
[
"08030001202",
"Chinedu"
]
],
"has_header": true,
"suggested_mapping": {
"phone": "phone",
"name": "name",
"fields": {}
},
"mapping": null,
"row_estimate": 3,
"default_country": null,
"counts": {
"total_rows": 0,
"valid": 0,
"invalid": 0,
"duplicates": 0,
"opted_out": 0,
"unavailable": 0
},
"countries": {},
"reasons": {},
"fields": [],
"field_stats": {},
"error": null,
"job_id": null,
"group_id": null,
"created_at": "2026-11-07T17:49:48.945258+00:00"
}| HTTP | code | Message |
|---|---|---|
| 400 | import_error | The file or sheet could not be read. |
| 401 | unauthorized | Not authenticated |
| 403 | insufficient_scope | This API key is not authorised for this action. |
| 422 | validation_error | Request validation failed |
| 429 | rate_limited | Too many requests. Try again in a moment. |
Paste numbers
POST /v1/imports/paste
Who can call it: API key with the send scope, or a dashboard session token.
Body (JSON):
| Field | Type | Required | Default | Meaning |
|---|---|---|---|---|
text | string | Yes | Numbers separated by new lines, commas or spaces, or tab-separated rows with a header | |
default_country | string | No | Leave it out to read local numbers in your account's default country (NG unless you change it). |
curl -X POST "https://api.sms.jtnoble.com/v1/imports/paste" \
-H "Authorization: Bearer $JTSMS_API_KEY" \
-H "Content-Type: application/json" \
-d '{"text":"phone,name\n+2348030001201,Ada\n08030001202,Chinedu\n12,bad\n"}'const resp = await fetch('https://api.sms.jtnoble.com/v1/imports/paste', {
method: 'POST',
headers: { Authorization: `Bearer ${process.env.JTSMS_API_KEY}`, 'Content-Type': 'application/json' },
body: JSON.stringify({"text":"phone,name\n+2348030001201,Ada\n08030001202,Chinedu\n12,bad\n"}),
});
console.log(resp.status, await resp.text());import os
import requests
resp = requests.post(
"https://api.sms.jtnoble.com/v1/imports/paste",
headers={"Authorization": f"Bearer {os.environ['JTSMS_API_KEY']}"},
json={"text":"phone,name\n+2348030001201,Ada\n08030001202,Chinedu\n12,bad\n"},
timeout=30,
)
print(resp.status_code, resp.text)<?php
$ch = curl_init('https://api.sms.jtnoble.com/v1/imports/paste');
curl_setopt_array($ch, [
CURLOPT_RETURNTRANSFER => true,
CURLOPT_CUSTOMREQUEST => 'POST',
CURLOPT_HTTPHEADER => ['Authorization: Bearer ' . getenv('JTSMS_API_KEY'), 'Content-Type: application/json'],
CURLOPT_POSTFIELDS => '{"text":"phone,name\\n+2348030001201,Ada\\n08030001202,Chinedu\\n12,bad\\n"}',
]);
$body = curl_exec($ch);
echo curl_getinfo($ch, CURLINFO_RESPONSE_CODE), ' ', $body, PHP_EOL;HTTP 201:
{
"id": "imp_99a7d874f4a09411d652",
"source": "paste",
"filename": "Pasted numbers",
"status": "uploaded",
"size_bytes": 57,
"columns": [
"phone",
"name"
],
"sample": [
[
"+2348030001201",
"Ada"
],
[
"08030001202",
"Chinedu"
]
],
"has_header": true,
"suggested_mapping": {
"phone": "phone",
"name": "name",
"fields": {}
},
"mapping": null,
"row_estimate": 3,
"default_country": null,
"counts": {
"total_rows": 0,
"valid": 0,
"invalid": 0,
"duplicates": 0,
"opted_out": 0,
"unavailable": 0
},
"countries": {},
"reasons": {},
"fields": [],
"field_stats": {},
"error": null,
"job_id": null,
"group_id": null,
"created_at": "2026-11-07T17:49:48.945258+00:00"
}| HTTP | code | Message |
|---|---|---|
| 400 | import_error | The file or sheet could not be read. |
| 401 | unauthorized | Not authenticated |
| 403 | insufficient_scope | This API key is not authorised for this action. |
| 422 | validation_error | Request validation failed |
| 429 | rate_limited | Too many requests. Try again in a moment. |
Read an import
GET /v1/imports/{import_id}
Who can call it: API key with the query scope, or a dashboard session token.
| Path value | Type | Meaning |
|---|---|---|
import_id | string | The import id. |
curl -X GET "https://api.sms.jtnoble.com/v1/imports/IMPORT_ID" \
-H "Authorization: Bearer $JTSMS_API_KEY"const resp = await fetch('https://api.sms.jtnoble.com/v1/imports/IMPORT_ID', {
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/imports/IMPORT_ID",
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/imports/IMPORT_ID');
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:
{
"id": "imp_99a7d874f4a09411d652",
"source": "paste",
"filename": "Pasted numbers",
"status": "uploaded",
"size_bytes": 57,
"columns": [
"phone",
"name"
],
"sample": [
[
"+2348030001201",
"Ada"
],
[
"08030001202",
"Chinedu"
]
],
"has_header": true,
"suggested_mapping": {
"phone": "phone",
"name": "name",
"fields": {}
},
"mapping": null,
"row_estimate": 3,
"default_country": null,
"counts": {
"total_rows": 0,
"valid": 0,
"invalid": 0,
"duplicates": 0,
"opted_out": 0,
"unavailable": 0
},
"countries": {},
"reasons": {},
"fields": [],
"field_stats": {},
"error": null,
"job_id": null,
"group_id": null,
"created_at": "2026-11-07T17:49:48.945258+00:00"
}| HTTP | code | Message |
|---|---|---|
| 401 | unauthorized | Not authenticated |
| 403 | insufficient_scope | This API key is not authorised for this action. |
| 429 | rate_limited | Too many requests. Try again in a moment. |
Bad rows
GET /v1/imports/{import_id}/errors
Who can call it: API key with the query scope, or a dashboard session token.
| Path value | Type | Meaning |
|---|---|---|
import_id | string | The import id. |
| Query | Type | Required | Default | Meaning |
|---|---|---|---|---|
page | integer | No | 0 | Page number, starting at 0. |
limit | integer | No | 50 | Items per page. |
reason | string | No |
curl -X GET "https://api.sms.jtnoble.com/v1/imports/IMPORT_ID/errors" \
-H "Authorization: Bearer $JTSMS_API_KEY"const resp = await fetch('https://api.sms.jtnoble.com/v1/imports/IMPORT_ID/errors', {
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/imports/IMPORT_ID/errors",
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/imports/IMPORT_ID/errors');
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:
{
"total": 1,
"errors": [
{
"row": 4,
"value": "12",
"reason": "too_short",
"message": "Too short to be a phone number"
}
]
}| HTTP | code | Message |
|---|---|---|
| 401 | unauthorized | Not authenticated |
| 403 | insufficient_scope | This API key is not authorised for this action. |
| 429 | rate_limited | Too many requests. Try again in a moment. |
Bad rows as CSV
GET /v1/imports/{import_id}/errors.csv
Who can call it: API key with the query scope, or a dashboard session token.
| Path value | Type | Meaning |
|---|---|---|
import_id | string | The import id. |
curl -X GET "https://api.sms.jtnoble.com/v1/imports/IMPORT_ID/errors.csv" \
-H "Authorization: Bearer $JTSMS_API_KEY"const resp = await fetch('https://api.sms.jtnoble.com/v1/imports/IMPORT_ID/errors.csv', {
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/imports/IMPORT_ID/errors.csv",
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/imports/IMPORT_ID/errors.csv');
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, a CSV file:
row,value,reason,explanation
4,12,too_short,Too short to be a phone number
| HTTP | code | Message |
|---|---|---|
| 401 | unauthorized | Not authenticated |
| 403 | insufficient_scope | This API key is not authorised for this action. |
| 429 | rate_limited | Too many requests. Try again in a moment. |
Map the columns and check the rows
POST /v1/imports/{import_id}/process
Who can call it: API key with the send scope, or a dashboard session token.
| Path value | Type | Meaning |
|---|---|---|
import_id | string | The import id. |
Body (JSON):
| Field | Type | Required | Default | Meaning |
|---|---|---|---|---|
mapping | object | Yes | {"phone": "<column>", "name": "<column>|null", "fields": {"<column>": "merge_key"}} | |
default_country | string | No | ISO country for local numbers like 0991... | |
dedupe | boolean | No | true | Drop repeated numbers. |
skip_opted_out | boolean | No | true | Drop opted-out numbers. |
curl -X POST "https://api.sms.jtnoble.com/v1/imports/IMPORT_ID/process" \
-H "Authorization: Bearer $JTSMS_API_KEY" \
-H "Content-Type: application/json" \
-d '{"mapping":{"phone":"phone","name":"name"}}'const resp = await fetch('https://api.sms.jtnoble.com/v1/imports/IMPORT_ID/process', {
method: 'POST',
headers: { Authorization: `Bearer ${process.env.JTSMS_API_KEY}`, 'Content-Type': 'application/json' },
body: JSON.stringify({"mapping":{"phone":"phone","name":"name"}}),
});
console.log(resp.status, await resp.text());import os
import requests
resp = requests.post(
"https://api.sms.jtnoble.com/v1/imports/IMPORT_ID/process",
headers={"Authorization": f"Bearer {os.environ['JTSMS_API_KEY']}"},
json={"mapping":{"phone":"phone","name":"name"}},
timeout=30,
)
print(resp.status_code, resp.text)<?php
$ch = curl_init('https://api.sms.jtnoble.com/v1/imports/IMPORT_ID/process');
curl_setopt_array($ch, [
CURLOPT_RETURNTRANSFER => true,
CURLOPT_CUSTOMREQUEST => 'POST',
CURLOPT_HTTPHEADER => ['Authorization: Bearer ' . getenv('JTSMS_API_KEY'), 'Content-Type: application/json'],
CURLOPT_POSTFIELDS => '{"mapping":{"phone":"phone","name":"name"}}',
]);
$body = curl_exec($ch);
echo curl_getinfo($ch, CURLINFO_RESPONSE_CODE), ' ', $body, PHP_EOL;HTTP 200:
{
"import": {
"id": "imp_99a7d874f4a09411d652",
"source": "paste",
"filename": "Pasted numbers",
"status": "processing",
"size_bytes": 57,
"columns": [
"phone",
"name"
],
"sample": [
[
"+2348030001201",
"Ada"
],
[
"08030001202",
"Chinedu"
]
],
"has_header": true,
"suggested_mapping": {
"phone": "phone",
"name": "name",
"fields": {}
},
"mapping": {
"phone": "phone",
"name": "name",
"fields": {}
},
"row_estimate": 3,
"default_country": null,
"counts": {
"total_rows": 0,
"valid": 0,
"invalid": 0,
"duplicates": 0,
"opted_out": 0,
"unavailable": 0
},
"countries": {},
"reasons": {},
"fields": [],
"field_stats": {},
"error": null,
"job_id": 4,
"group_id": null,
"created_at": "2026-11-07T17:49:48.945258+00:00"
},
"job_id": 4
}| HTTP | code | Message |
|---|---|---|
| 400 | import_error | API imports are processed already |
| 401 | unauthorized | Not authenticated |
| 403 | insufficient_scope | This API key is not authorised for this action. |
| 422 | validation_error | Request validation failed |
| 429 | rate_limited | Too many requests. Try again in a moment. |
Good rows
GET /v1/imports/{import_id}/recipients
Who can call it: API key with the query scope, or a dashboard session token.
| Path value | Type | Meaning |
|---|---|---|
import_id | string | The import id. |
| Query | Type | Required | Default | Meaning |
|---|---|---|---|---|
page | integer | No | 0 | Page number, starting at 0. |
limit | integer | No | 50 | Items per page. |
curl -X GET "https://api.sms.jtnoble.com/v1/imports/IMPORT_ID/recipients" \
-H "Authorization: Bearer $JTSMS_API_KEY"const resp = await fetch('https://api.sms.jtnoble.com/v1/imports/IMPORT_ID/recipients', {
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/imports/IMPORT_ID/recipients",
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/imports/IMPORT_ID/recipients');
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:
{
"total": 2,
"recipients": [
{
"row": 2,
"phone": "+2348030001201",
"country": "NG",
"name": "Ada",
"vars": {}
},
{
"row": 3,
"phone": "+2348030001202",
"country": "NG",
"name": "Chinedu",
"vars": {}
}
]
}| HTTP | code | Message |
|---|---|---|
| 401 | unauthorized | Not authenticated |
| 403 | insufficient_scope | This API key is not authorised for this action. |
| 429 | rate_limited | Too many requests. Try again in a moment. |
Save to a group
POST /v1/imports/{import_id}/save-to-group
Who can call it: API key with the send scope, or a dashboard session token.
| Path value | Type | Meaning |
|---|---|---|
import_id | string | The import id. |
Body (JSON):
| Field | Type | Required | Default | Meaning |
|---|---|---|---|---|
group_id | integer | No | An existing group. | |
name | string | No | Create a new group with this name (when group_id is not given) | |
tags | array of string | No | Labels. |
curl -X POST "https://api.sms.jtnoble.com/v1/imports/IMPORT_ID/save-to-group" \
-H "Authorization: Bearer $JTSMS_API_KEY" \
-H "Content-Type: application/json" \
-d '{"name":"Parents"}'const resp = await fetch('https://api.sms.jtnoble.com/v1/imports/IMPORT_ID/save-to-group', {
method: 'POST',
headers: { Authorization: `Bearer ${process.env.JTSMS_API_KEY}`, 'Content-Type': 'application/json' },
body: JSON.stringify({"name":"Parents"}),
});
console.log(resp.status, await resp.text());import os
import requests
resp = requests.post(
"https://api.sms.jtnoble.com/v1/imports/IMPORT_ID/save-to-group",
headers={"Authorization": f"Bearer {os.environ['JTSMS_API_KEY']}"},
json={"name":"Parents"},
timeout=30,
)
print(resp.status_code, resp.text)<?php
$ch = curl_init('https://api.sms.jtnoble.com/v1/imports/IMPORT_ID/save-to-group');
curl_setopt_array($ch, [
CURLOPT_RETURNTRANSFER => true,
CURLOPT_CUSTOMREQUEST => 'POST',
CURLOPT_HTTPHEADER => ['Authorization: Bearer ' . getenv('JTSMS_API_KEY'), 'Content-Type: application/json'],
CURLOPT_POSTFIELDS => '{"name":"Parents"}',
]);
$body = curl_exec($ch);
echo curl_getinfo($ch, CURLINFO_RESPONSE_CODE), ' ', $body, PHP_EOL;HTTP 200:
{
"group_id": 4,
"job_id": 5
}| HTTP | code | Message |
|---|---|---|
| 400 | import_error | The file or sheet could not be read. |
| 401 | unauthorized | Not authenticated |
| 403 | insufficient_scope | This API key is not authorised for this action. |
| 422 | validation_error | Request validation failed |
| 429 | rate_limited | Too many requests. Try again in a moment. |
Status of a background job
GET /v1/jobs/{job_id}
Who can call it: Any API key, or a dashboard session token.
| Path value | Type | Meaning |
|---|---|---|
job_id | integer | The job id. |
curl -X GET "https://api.sms.jtnoble.com/v1/jobs/JOB_ID" \
-H "Authorization: Bearer $JTSMS_API_KEY"const resp = await fetch('https://api.sms.jtnoble.com/v1/jobs/JOB_ID', {
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/jobs/JOB_ID",
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/jobs/JOB_ID');
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:
{
"id": 1,
"kind": "bulk_send",
"status": "done",
"progress": {
"done": 2,
"total": 2
},
"error": null,
"result": {
"completed": true,
"submitted": 2
},
"created_at": "2026-11-07T17:00:53.094444+00:00",
"finished_at": "2026-11-07T17:00:53.198900+00:00"
}| HTTP | code | Message |
|---|---|---|
| 401 | unauthorized | Not authenticated |
| 404 | not_found | Job not found |
| 429 | rate_limited | Too many requests. Try again in a moment. |