JT Noble SMS documentation home

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.

QueryTypeRequiredDefaultMeaning
pageintegerNo0Page number, starting at 0.
limitintegerNo20Items per page.
tagstringNo
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
}
HTTPcodeMessage
401unauthorizedNot authenticated
429rate_limitedToo 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):

FieldTypeRequiredDefaultMeaning
filestringYesThe CSV or Excel file.
namestringNo""A name.
tagsstringNo""Labels.
default_countrystringNo""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
}
HTTPcodeMessage
400bad_requestCSV has no headers
401unauthorizedNot authenticated
413file_too_large
413too_many_rows
429rate_limitedToo 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 valueTypeMeaning
list_idintegerThe 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"
}
HTTPcodeMessage
401unauthorizedNot authenticated
404not_foundContact list not found
429rate_limitedToo 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 valueTypeMeaning
list_idintegerThe 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"
}
HTTPcodeMessage
401unauthorizedNot authenticated
404not_foundContact list not found
429rate_limitedToo 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 valueTypeMeaning
list_idintegerThe list id.
QueryTypeRequiredDefaultMeaning
pageintegerNo0Page number, starting at 0.
limitintegerNo20Items 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
}
HTTPcodeMessage
401unauthorizedNot authenticated
404not_foundContact list not found
429rate_limitedToo 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 valueTypeMeaning
list_idintegerThe list id.

Body (JSON):

FieldTypeRequiredDefaultMeaning
phonestringYesMobile number in international format.
namestringNoA name.
dataobjectNo
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
}
HTTPcodeMessage
401unauthorizedNot authenticated
409conflictThat number is already in this list
422validation_errorRequest validation failed
429rate_limitedToo 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 valueTypeMeaning
list_idintegerThe 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
HTTPcodeMessage
401unauthorizedNot authenticated
429rate_limitedToo 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.

QueryTypeRequiredDefaultMeaning
searchstringNoPhone or name contains
group_idintegerNoAn existing group.
opted_outbooleanNo
pageintegerNo0Page number, starting at 0.
limitintegerNo50Items 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"
    }
  ]
}
HTTPcodeMessage
401unauthorizedNot authenticated
403insufficient_scopeThis API key is not authorised for this action.
429rate_limitedToo 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):

FieldTypeRequiredDefaultMeaning
phonestringYesMobile number in international format.
namestringNoA name.
fieldsobjectNoYour own fields, as an object.
group_idsarray of integerYesGroups 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
  ]
}
HTTPcodeMessage
401unauthorizedNot authenticated
403insufficient_scopeThis API key is not authorised for this action.
404group_not_foundGroup not found
422validation_errorRequest validation failed
429rate_limitedToo 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.

QueryTypeRequiredDefaultMeaning
group_idintegerNoAn existing group.
formatstringNocsv
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
HTTPcodeMessage
401unauthorizedNot authenticated
403insufficient_scopeThis API key is not authorised for this action.
429rate_limitedToo 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 valueTypeMeaning
refstringContact 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": []
}
HTTPcodeMessage
401unauthorizedNot authenticated
403insufficient_scopeThis API key is not authorised for this action.
404not_foundContact not found
429rate_limitedToo 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 valueTypeMeaning
refstringContact phone number or id.

Body (JSON):

FieldTypeRequiredDefaultMeaning
phonestringNoMobile number in international format.
namestringNoA name.
fieldsobjectNoYour own fields, as an object.
dataobjectNo
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
}
HTTPcodeMessage
401unauthorizedNot authenticated
403insufficient_scopeThis API key is not authorised for this action.
404not_foundContact not found
422validation_errorRequest validation failed
429rate_limitedToo 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 valueTypeMeaning
refstringContact 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.

HTTPcodeMessage
401unauthorizedNot authenticated
403insufficient_scopeThis API key is not authorised for this action.
404not_foundContact not found
429rate_limitedToo 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.

QueryTypeRequiredDefaultMeaning
qstringNoSearch 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"
    }
  ]
}
HTTPcodeMessage
401unauthorizedNot authenticated
403insufficient_scopeThis API key is not authorised for this action.
429rate_limitedToo 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):

FieldTypeRequiredDefaultMeaning
namestringYesA name.
tagsarray of stringNoLabels.
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"
}
HTTPcodeMessage
401unauthorizedNot authenticated
403insufficient_scopeThis API key is not authorised for this action.
422validation_errorRequest validation failed
429rate_limitedToo 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 valueTypeMeaning
group_idintegerAn 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"
}
HTTPcodeMessage
401unauthorizedNot authenticated
403insufficient_scopeThis API key is not authorised for this action.
404not_foundGroup not found
429rate_limitedToo 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 valueTypeMeaning
group_idintegerAn existing group.

Body (JSON):

FieldTypeRequiredDefaultMeaning
namestringNoA name.
tagsarray of stringNoLabels.
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"
}
HTTPcodeMessage
401unauthorizedNot authenticated
403insufficient_scopeThis API key is not authorised for this action.
404not_foundGroup not found
422validation_errorRequest validation failed
429rate_limitedToo 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 valueTypeMeaning
group_idintegerAn 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"
}
HTTPcodeMessage
401unauthorizedNot authenticated
403insufficient_scopeThis API key is not authorised for this action.
404not_foundGroup not found
429rate_limitedToo 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 valueTypeMeaning
group_idintegerAn existing group.
QueryTypeRequiredDefaultMeaning
searchstringNoSearch text.
pageintegerNo0Page number, starting at 0.
limitintegerNo50Items 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
    }
  ]
}
HTTPcodeMessage
401unauthorizedNot authenticated
403insufficient_scopeThis API key is not authorised for this action.
404not_foundGroup not found
429rate_limitedToo 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 valueTypeMeaning
group_idintegerAn existing group.

Body (JSON):

FieldTypeRequiredDefaultMeaning
contactsarray of objectYesContacts: phone, name, fields.
default_countrystringNoLeave 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
}
HTTPcodeMessage
401unauthorizedNot authenticated
403insufficient_scopeThis API key is not authorised for this action.
404not_foundGroup not found
422validation_errorRequest validation failed
429rate_limitedToo 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 valueTypeMeaning
group_idintegerAn existing group.
phonestringMobile 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
}
HTTPcodeMessage
401unauthorizedNot authenticated
403insufficient_scopeThis API key is not authorised for this action.
404not_foundGroup not found
429rate_limitedToo 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):

FieldTypeRequiredDefaultMeaning
filestringYesThe CSV or Excel file.
default_countrystringNoLeave 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"
}
HTTPcodeMessage
400import_errorThe file or sheet could not be read.
401unauthorizedNot authenticated
403insufficient_scopeThis API key is not authorised for this action.
429rate_limitedToo 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):

FieldTypeRequiredDefaultMeaning
urlstringYesThe address.
default_countrystringNoLeave 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"
}
HTTPcodeMessage
400import_errorThe file or sheet could not be read.
401unauthorizedNot authenticated
403insufficient_scopeThis API key is not authorised for this action.
422validation_errorRequest validation failed
429rate_limitedToo 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):

FieldTypeRequiredDefaultMeaning
textstringYesNumbers separated by new lines, commas or spaces, or tab-separated rows with a header
default_countrystringNoLeave 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"
}
HTTPcodeMessage
400import_errorThe file or sheet could not be read.
401unauthorizedNot authenticated
403insufficient_scopeThis API key is not authorised for this action.
422validation_errorRequest validation failed
429rate_limitedToo 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 valueTypeMeaning
import_idstringThe 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"
}
HTTPcodeMessage
401unauthorizedNot authenticated
403insufficient_scopeThis API key is not authorised for this action.
429rate_limitedToo 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 valueTypeMeaning
import_idstringThe import id.
QueryTypeRequiredDefaultMeaning
pageintegerNo0Page number, starting at 0.
limitintegerNo50Items per page.
reasonstringNo
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"
    }
  ]
}
HTTPcodeMessage
401unauthorizedNot authenticated
403insufficient_scopeThis API key is not authorised for this action.
429rate_limitedToo 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 valueTypeMeaning
import_idstringThe 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
HTTPcodeMessage
401unauthorizedNot authenticated
403insufficient_scopeThis API key is not authorised for this action.
429rate_limitedToo 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 valueTypeMeaning
import_idstringThe import id.

Body (JSON):

FieldTypeRequiredDefaultMeaning
mappingobjectYes{"phone": "<column>", "name": "<column>|null", "fields": {"<column>": "merge_key"}}
default_countrystringNoISO country for local numbers like 0991...
dedupebooleanNotrueDrop repeated numbers.
skip_opted_outbooleanNotrueDrop 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
}
HTTPcodeMessage
400import_errorAPI imports are processed already
401unauthorizedNot authenticated
403insufficient_scopeThis API key is not authorised for this action.
422validation_errorRequest validation failed
429rate_limitedToo 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 valueTypeMeaning
import_idstringThe import id.
QueryTypeRequiredDefaultMeaning
pageintegerNo0Page number, starting at 0.
limitintegerNo50Items 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": {}
    }
  ]
}
HTTPcodeMessage
401unauthorizedNot authenticated
403insufficient_scopeThis API key is not authorised for this action.
429rate_limitedToo 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 valueTypeMeaning
import_idstringThe import id.

Body (JSON):

FieldTypeRequiredDefaultMeaning
group_idintegerNoAn existing group.
namestringNoCreate a new group with this name (when group_id is not given)
tagsarray of stringNoLabels.
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
}
HTTPcodeMessage
400import_errorThe file or sheet could not be read.
401unauthorizedNot authenticated
403insufficient_scopeThis API key is not authorised for this action.
422validation_errorRequest validation failed
429rate_limitedToo 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 valueTypeMeaning
job_idintegerThe 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"
}
HTTPcodeMessage
401unauthorizedNot authenticated
404not_foundJob not found
429rate_limitedToo many requests. Try again in a moment.

On this page