JT Noble SMS documentation home

Balance and account

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

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

List alerts

GET /v1/alerts

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

curl -X GET "https://api.sms.jtnoble.com/v1/alerts" \
  -H "Authorization: Bearer $JTSMS_API_KEY"
const resp = await fetch('https://api.sms.jtnoble.com/v1/alerts', {
  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/alerts",
    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/alerts');
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:

{
  "alerts": [
    {
      "id": null,
      "alert_type": "low_balance",
      "label": "Low balance",
      "description": "Balance falls below your threshold",
      "takes_threshold": true,
      "threshold_hint": "amount",
      "enabled": false,
      "threshold": null,
      "channel": "both",
      "last_fired_at": null
    },
    {
      "id": null,
      "alert_type": "delivery_rate_drop",
      "label": "Delivery rate drop",
      "description": "Delivery rate falls below a %",
      "takes_threshold": true,
      "threshold_hint": "percent",
      "enabled": false,
      "threshold": null,
      "channel": "both",
      "last_fired_at": null
    }
  ]
}
HTTPcodeMessage
401unauthorizedNot authenticated
429rate_limitedToo many requests. Try again in a moment.

Set an alert

PUT /v1/alerts/{alert_type}

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

Path valueTypeMeaning
alert_typestringlow_balance or another type from GET /v1/alerts.

Body (JSON):

FieldTypeRequiredDefaultMeaning
enabledbooleanNotrueOn or off.
thresholdnumberNoThe level that fires the alert.
channelstringNo"both"inapp, email or both.
curl -X PUT "https://api.sms.jtnoble.com/v1/alerts/ALERT_TYPE" \
  -H "Authorization: Bearer $JTSMS_API_KEY" \
  -H "Content-Type: application/json" \
  -d '{"enabled":true,"threshold":500,"channel":"inapp"}'
const resp = await fetch('https://api.sms.jtnoble.com/v1/alerts/ALERT_TYPE', {
  method: 'PUT',
  headers: { Authorization: `Bearer ${process.env.JTSMS_API_KEY}`, 'Content-Type': 'application/json' },
  body: JSON.stringify({"enabled":true,"threshold":500,"channel":"inapp"}),
});
console.log(resp.status, await resp.text());
import os
import requests

resp = requests.put(
    "https://api.sms.jtnoble.com/v1/alerts/ALERT_TYPE",
    headers={"Authorization": f"Bearer {os.environ['JTSMS_API_KEY']}"},
    json={"enabled":True,"threshold":500,"channel":"inapp"},
    timeout=30,
)
print(resp.status_code, resp.text)
<?php
$ch = curl_init('https://api.sms.jtnoble.com/v1/alerts/ALERT_TYPE');
curl_setopt_array($ch, [
    CURLOPT_RETURNTRANSFER => true,
    CURLOPT_CUSTOMREQUEST => 'PUT',
    CURLOPT_HTTPHEADER => ['Authorization: Bearer ' . getenv('JTSMS_API_KEY'), 'Content-Type: application/json'],
    CURLOPT_POSTFIELDS => '{"enabled":true,"threshold":500,"channel":"inapp"}',
]);
$body = curl_exec($ch);
echo curl_getinfo($ch, CURLINFO_RESPONSE_CODE), ' ', $body, PHP_EOL;

HTTP 200:

{
  "id": 1,
  "alert_type": "low_balance",
  "label": "Low balance",
  "description": "",
  "takes_threshold": true,
  "threshold_hint": null,
  "enabled": true,
  "threshold": 500,
  "channel": "inapp",
  "last_fired_at": null
}
HTTPcodeMessage
400bad_channelchannel must be inapp, email or both
400bad_thresholdPercent threshold cannot exceed 100.
400threshold_required
400unknown_alert_type
401unauthorizedNot authenticated
422validation_errorRequest validation failed
429rate_limitedToo many requests. Try again in a moment.

List API keys

GET /v1/api-keys

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

curl -X GET "https://api.sms.jtnoble.com/v1/api-keys" \
  -H "Authorization: Bearer $JTSMS_API_KEY"
const resp = await fetch('https://api.sms.jtnoble.com/v1/api-keys', {
  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/api-keys",
    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/api-keys');
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": 4,
    "name": "website",
    "prefix": "jtsms_live_****31ae",
    "environment": "live",
    "scopes": [
      "send",
      "query"
    ],
    "is_active": true,
    "last_used_at": "2026-11-07T17:47:53.784184+00:00",
    "created_at": "2026-11-07T16:50:57.532138+00:00",
    "created_by": "you@example.mw",
    "created_role": "owner",
    "mine": true
  },
  {
    "id": 3,
    "name": "website",
    "prefix": "jtsms_test_****a37c",
    "environment": "test",
    "scopes": [
      "send",
      "query"
    ],
    "is_active": true,
    "last_used_at": "2026-11-07T17:50:16.406161+00:00",
    "created_at": "2026-11-07T16:50:57.167326+00:00",
    "created_by": "you@example.mw",
    "created_role": "owner",
    "mine": true
  }
]
HTTPcodeMessage
401unauthorizedNot authenticated
429rate_limitedToo many requests. Try again in a moment.

Create an API key

POST /v1/api-keys

Create a new API key. The full key is returned ONCE - store it securely.

Who can call it: A dashboard session token. API keys are refused.

Body (JSON):

FieldTypeRequiredDefaultMeaning
namestringYesA name.
environmentstringNo"live"live or test.
scopesstringNo"send,query,webhooks"Comma list of send, query, webhooks.
curl -X POST "https://api.sms.jtnoble.com/v1/api-keys" \
  -H "Authorization: Bearer $JTSMS_SESSION_TOKEN" \
  -H "Content-Type: application/json" \
  -d '{"name":"website","environment":"live","scopes":"send,query,webhooks"}'
const resp = await fetch('https://api.sms.jtnoble.com/v1/api-keys', {
  method: 'POST',
  headers: { Authorization: `Bearer ${process.env.JTSMS_SESSION_TOKEN}`, 'Content-Type': 'application/json' },
  body: JSON.stringify({"name":"website","environment":"live","scopes":"send,query,webhooks"}),
});
console.log(resp.status, await resp.text());
import os
import requests

resp = requests.post(
    "https://api.sms.jtnoble.com/v1/api-keys",
    headers={"Authorization": f"Bearer {os.environ['JTSMS_SESSION_TOKEN']}"},
    json={"name":"website","environment":"live","scopes":"send,query,webhooks"},
    timeout=30,
)
print(resp.status_code, resp.text)
<?php
$ch = curl_init('https://api.sms.jtnoble.com/v1/api-keys');
curl_setopt_array($ch, [
    CURLOPT_RETURNTRANSFER => true,
    CURLOPT_CUSTOMREQUEST => 'POST',
    CURLOPT_HTTPHEADER => ['Authorization: Bearer ' . getenv('JTSMS_SESSION_TOKEN'), 'Content-Type: application/json'],
    CURLOPT_POSTFIELDS => '{"name":"website","environment":"live","scopes":"send,query,webhooks"}',
]);
$body = curl_exec($ch);
echo curl_getinfo($ch, CURLINFO_RESPONSE_CODE), ' ', $body, PHP_EOL;

HTTP 200:

{
  "id": 12,
  "key": "jtsms_live_0123456789abcdef",
  "name": "website",
  "prefix": "jtsms_live_****cdef",
  "environment": "live",
  "scopes": [
    "send",
    "query",
    "webhooks"
  ],
  "created_at": "2026-11-07T10:00:00+00:00"
}
HTTPcodeMessage
400bad_request
401unauthorizedNot authenticated
403role_forbidden
422validation_errorRequest validation failed
429rate_limitedToo many requests. Try again in a moment.

Revoke an API key

DELETE /v1/api-keys/{key_id}

Who can call it: A dashboard session token. API keys are refused.

Path valueTypeMeaning
key_idintegerThe key id.
curl -X DELETE "https://api.sms.jtnoble.com/v1/api-keys/KEY_ID" \
  -H "Authorization: Bearer $JTSMS_SESSION_TOKEN"
const resp = await fetch('https://api.sms.jtnoble.com/v1/api-keys/KEY_ID', {
  method: 'DELETE',
  headers: { Authorization: `Bearer ${process.env.JTSMS_SESSION_TOKEN}` },
});
console.log(resp.status, await resp.text());
import os
import requests

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

HTTP 200:

{
  "status": "revoked",
  "id": 12
}
HTTPcodeMessage
401unauthorizedNot authenticated
403role_forbiddenYou can only revoke keys you created.
404not_foundAPI key not found
429rate_limitedToo many requests. Try again in a moment.

Audit log

GET /v1/audit-logs

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

QueryTypeRequiredDefaultMeaning
actionstringNo
actorstringNo
qstringNoSearch text.
date_fromstringNoFrom this date (ISO 8601).
date_tostringNoUp to this date (ISO 8601).
pageintegerNo0Page number, starting at 0.
limitintegerNo50Items per page.
curl -X GET "https://api.sms.jtnoble.com/v1/audit-logs" \
  -H "Authorization: Bearer $JTSMS_API_KEY"
const resp = await fetch('https://api.sms.jtnoble.com/v1/audit-logs', {
  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/audit-logs",
    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/audit-logs');
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": 43,
  "page": 0,
  "limit": 2,
  "logs": [
    {
      "id": 47,
      "at": "2026-11-07T17:50:16.413060+00:00",
      "actor": "you@example.mw",
      "actor_id": "3f0c7a52-6d1e-4b9a-8f21-7c5e2a9d1b40",
      "role": "owner",
      "via": "api",
      "action": "settings.updated",
      "target_type": "workspace",
      "target_id": "1",
      "summary": "Workspace settings updated",
      "meta": {
        "timezone": "Africa/Lagos"
      },
      "ip": null
    },
    {
      "id": 46,
      "at": "2026-11-07T17:50:10.288468+00:00",
      "actor": "you@example.mw",
      "actor_id": "3f0c7a52-6d1e-4b9a-8f21-7c5e2a9d1b40",
      "role": "owner",
      "via": "api",
      "action": "template.deleted",
      "target_type": "template",
      "target_id": "3",
      "summary": "Deleted 'Parents'",
      "meta": null,
      "ip": "203.0.113.10"
    }
  ],
  "actors": [
    "you@example.mw"
  ]
}
HTTPcodeMessage
401unauthorizedNot authenticated
429rate_limitedToo many requests. Try again in a moment.

Export the audit log

GET /v1/audit-logs/export

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

QueryTypeRequiredDefaultMeaning
actionstringNo
actorstringNo
qstringNoSearch text.
date_fromstringNoFrom this date (ISO 8601).
date_tostringNoUp to this date (ISO 8601).
curl -X GET "https://api.sms.jtnoble.com/v1/audit-logs/export" \
  -H "Authorization: Bearer $JTSMS_API_KEY"
const resp = await fetch('https://api.sms.jtnoble.com/v1/audit-logs/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/audit-logs/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/audit-logs/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:

time,actor,role,via,action,target,summary,ip
2026-11-07T17:50:16.413060+00:00,you@example.mw,owner,api,settings.updated,workspace:1,Workspace settings updated,
2026-11-07T17:50:10.288468+00:00,you@example.mw,owner,api,template.deleted,template:3,Deleted 'Parents',203.0.113.10
HTTPcodeMessage
401unauthorizedNot authenticated
429rate_limitedToo many requests. Try again in a moment.

Who am I

GET /v1/auth/me

Current user info from JWT + balance from local DB.

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

curl -X GET "https://api.sms.jtnoble.com/v1/auth/me" \
  -H "Authorization: Bearer $JTSMS_API_KEY"
const resp = await fetch('https://api.sms.jtnoble.com/v1/auth/me', {
  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/auth/me",
    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/auth/me');
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:

{
  "user_id": "3f0c7a52-6d1e-4b9a-8f21-7c5e2a9d1b40",
  "actor_id": "3f0c7a52-6d1e-4b9a-8f21-7c5e2a9d1b40",
  "role": "owner",
  "acting_as_member": false,
  "country_code": "NG",
  "email": "you@example.mw",
  "name": "Ada Okafor",
  "avatar_url": null,
  "phone_number": "+2348030001234",
  "phone_verified": true,
  "roles": {
    "sms": "user"
  },
  "is_admin": false,
  "is_reseller": false,
  "reseller_id": null,
  "balance": 0,
  "currency": "USD",
  "workspace": {
    "id": 1,
    "name": "Ada Okafor",
    "slug": "ada-okafor",
    "timezone": "Africa/Lagos",
    "default_country": "NG"
  }
}
HTTPcodeMessage
401unauthorizedNot authenticated
429rate_limitedToo many requests. Try again in a moment.

Read your balance

GET /v1/balance

Who can call it: API key with the query scope, or a dashboard session token.

curl -X GET "https://api.sms.jtnoble.com/v1/balance" \
  -H "Authorization: Bearer $JTSMS_API_KEY"
const resp = await fetch('https://api.sms.jtnoble.com/v1/balance', {
  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/balance",
    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/balance');
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:

{
  "balance": 0,
  "currency": "USD",
  "sms_estimate": 0,
  "last_credit_at": "2026-11-05T23:39:42.707592+00:00"
}
HTTPcodeMessage
401unauthorizedNot authenticated
403insufficient_scopeThis API key is not authorised for this action.
429rate_limitedToo many requests. Try again in a moment.

Where to top up

POST /v1/balance/topup

Top-ups are made on the sign-in site (the account service /topup); this returns where.

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

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

resp = requests.post(
    "https://api.sms.jtnoble.com/v1/balance/topup",
    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/balance/topup');
curl_setopt_array($ch, [
    CURLOPT_RETURNTRANSFER => true,
    CURLOPT_CUSTOMREQUEST => 'POST',
    CURLOPT_HTTPHEADER => ['Authorization: Bearer ' . getenv('JTSMS_API_KEY')],
]);
$body = curl_exec($ch);
echo curl_getinfo($ch, CURLINFO_RESPONSE_CODE), ' ', $body, PHP_EOL;

HTTP 200:

{
  "checkout_url": "https://auth.sms.jtnoble.com/topup",
  "message": "Top up from the sign-in site: auth.sms.jtnoble.com/topup"
}
HTTPcodeMessage
401unauthorizedNot authenticated
429rate_limitedToo many requests. Try again in a moment.

Balance history

GET /v1/balance/transactions

Who can call it: API key with the query scope, or a dashboard session token.

QueryTypeRequiredDefaultMeaning
pageintegerNo0Page number, starting at 0.
limitintegerNo20Items per page.
curl -X GET "https://api.sms.jtnoble.com/v1/balance/transactions" \
  -H "Authorization: Bearer $JTSMS_API_KEY"
const resp = await fetch('https://api.sms.jtnoble.com/v1/balance/transactions', {
  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/balance/transactions",
    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/balance/transactions');
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:

{
  "transactions": [
    {
      "id": 2,
      "type": "payment_reversal",
      "amount": -0.6,
      "balance_after": 0,
      "currency": "USD",
      "description": "Top-up reversed (ref: JTS8F3A21)",
      "batch_id": null,
      "created_at": "2026-11-05T23:40:10.446320+00:00"
    },
    {
      "id": 1,
      "type": "credit",
      "amount": 0.6,
      "balance_after": 0.6,
      "currency": "USD",
      "description": "Manual top-up (ref: MAN-f75d0735e1ca488d)",
      "batch_id": null,
      "created_at": "2026-11-05T23:39:42.707592+00:00"
    }
  ],
  "total": 2,
  "page": 0,
  "limit": 2
}
HTTPcodeMessage
401unauthorizedNot authenticated
403insufficient_scopeThis API key is not authorised for this action.
429rate_limitedToo many requests. Try again in a moment.

Features on this platform

GET /v1/features

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

curl -X GET "https://api.sms.jtnoble.com/v1/features" \
  -H "Authorization: Bearer $JTSMS_API_KEY"
const resp = await fetch('https://api.sms.jtnoble.com/v1/features', {
  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/features",
    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/features');
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:

{
  "features": {
    "verify": true,
    "two_way": true,
    "link_tracking": true,
    "campaigns": true,
    "webhooks": true,
    "sandbox": true,
    "status_page": true,
    "content_policy": true,
    "dnd": true,
    "price_overrides": true,
    "revenue_dashboard": true,
    "resellers": true,
    "smpp_sender_policy": true,
    "smpp_content_policy": true,
    "smpp_traffic_guard": true,
    "smpp_throughput": true,
    "smpp_ip_allowlist": true,
    "smpp_bind_status": true,
    "smpp_reports": true,
    "sla_reports": true,
    "rate_notifications": true
  },
  "enabled": [
    "campaigns",
    "content_policy"
  ],
  "short_links": false,
  "short_link_domain": null
}
HTTPcodeMessage
401unauthorizedNot authenticated
429rate_limitedToo many requests. Try again in a moment.

List notifications

GET /v1/notifications

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

QueryTypeRequiredDefaultMeaning
pageintegerNo0Page number, starting at 0.
limitintegerNo20Items per page.
type_filterstringNo
unread_onlybooleanNofalse
curl -X GET "https://api.sms.jtnoble.com/v1/notifications" \
  -H "Authorization: Bearer $JTSMS_API_KEY"
const resp = await fetch('https://api.sms.jtnoble.com/v1/notifications', {
  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/notifications",
    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/notifications');
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:

{
  "notifications": [
    {
      "id": 2,
      "type": "billing",
      "severity": "warn",
      "title": "Balance adjusted",
      "body": "USD 0.6 was deducted from your balance: Top-up reversed. New balance: USD 0.0.",
      "link": "/payment",
      "is_read": false,
      "created_at": "2026-11-05T23:40:10.445676+00:00"
    },
    {
      "id": 1,
      "type": "billing",
      "severity": "ok",
      "title": "Payment received",
      "body": "USD 0.6 has been credited to your account. New balance: USD 0.6.",
      "link": "/settings",
      "is_read": false,
      "created_at": "2026-11-05T23:39:42.704698+00:00"
    }
  ],
  "total": 2
}
HTTPcodeMessage
401unauthorizedNot authenticated
429rate_limitedToo many requests. Try again in a moment.

Clear notifications

DELETE /v1/notifications

Clear all: delete the caller's own notifications; admins also hide every shared admin notification for themselves.

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

curl -X DELETE "https://api.sms.jtnoble.com/v1/notifications" \
  -H "Authorization: Bearer $JTSMS_API_KEY"
const resp = await fetch('https://api.sms.jtnoble.com/v1/notifications', {
  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/notifications",
    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/notifications');
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": "cleared",
  "deleted": 3,
  "hidden": 0
}
HTTPcodeMessage
401unauthorizedNot authenticated
429rate_limitedToo many requests. Try again in a moment.

Dismissed notices

GET /v1/notifications/dismissals

The caller's dismissed UI notices: [\{key, dismissed_at\}].

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

QueryTypeRequiredDefaultMeaning
prefixstringNo
curl -X GET "https://api.sms.jtnoble.com/v1/notifications/dismissals" \
  -H "Authorization: Bearer $JTSMS_API_KEY"
const resp = await fetch('https://api.sms.jtnoble.com/v1/notifications/dismissals', {
  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/notifications/dismissals",
    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/notifications/dismissals');
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:

{
  "dismissals": []
}
HTTPcodeMessage
401unauthorizedNot authenticated
429rate_limitedToo many requests. Try again in a moment.

Dismiss a notice

POST /v1/notifications/dismissals

Hide a state-based notice (e.g. sender_fee_due:42:100) for this user on every device.

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

Body (JSON):

FieldTypeRequiredDefaultMeaning
keystringYesThe notice key.
curl -X POST "https://api.sms.jtnoble.com/v1/notifications/dismissals" \
  -H "Authorization: Bearer $JTSMS_API_KEY" \
  -H "Content-Type: application/json" \
  -d '{"key":"welcome-tour"}'
const resp = await fetch('https://api.sms.jtnoble.com/v1/notifications/dismissals', {
  method: 'POST',
  headers: { Authorization: `Bearer ${process.env.JTSMS_API_KEY}`, 'Content-Type': 'application/json' },
  body: JSON.stringify({"key":"welcome-tour"}),
});
console.log(resp.status, await resp.text());
import os
import requests

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

HTTP 200:

{
  "status": "dismissed",
  "key": "welcome-tour"
}
HTTPcodeMessage
401unauthorizedNot authenticated
422unprocessable_entityInvalid dismissal key
422validation_errorRequest validation failed
429rate_limitedToo many requests. Try again in a moment.

Mark all read

POST /v1/notifications/read-all

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

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

resp = requests.post(
    "https://api.sms.jtnoble.com/v1/notifications/read-all",
    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/notifications/read-all');
curl_setopt_array($ch, [
    CURLOPT_RETURNTRANSFER => true,
    CURLOPT_CUSTOMREQUEST => 'POST',
    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": "all_read"
}
HTTPcodeMessage
401unauthorizedNot authenticated
429rate_limitedToo many requests. Try again in a moment.

Unread count

GET /v1/notifications/unread-count

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

curl -X GET "https://api.sms.jtnoble.com/v1/notifications/unread-count" \
  -H "Authorization: Bearer $JTSMS_API_KEY"
const resp = await fetch('https://api.sms.jtnoble.com/v1/notifications/unread-count', {
  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/notifications/unread-count",
    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/notifications/unread-count');
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:

{
  "count": 2
}
HTTPcodeMessage
401unauthorizedNot authenticated
429rate_limitedToo many requests. Try again in a moment.

Delete a notification

DELETE /v1/notifications/{notif_id}

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

Path valueTypeMeaning
notif_idintegerThe notification id.
curl -X DELETE "https://api.sms.jtnoble.com/v1/notifications/NOTIF_ID" \
  -H "Authorization: Bearer $JTSMS_API_KEY"
const resp = await fetch('https://api.sms.jtnoble.com/v1/notifications/NOTIF_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/notifications/NOTIF_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/notifications/NOTIF_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",
  "id": 9
}
HTTPcodeMessage
401unauthorizedNot authenticated
404not_foundNotification not found
429rate_limitedToo many requests. Try again in a moment.

Mark one read

POST /v1/notifications/{notif_id}/read

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

Path valueTypeMeaning
notif_idintegerThe notification id.
curl -X POST "https://api.sms.jtnoble.com/v1/notifications/NOTIF_ID/read" \
  -H "Authorization: Bearer $JTSMS_API_KEY"
const resp = await fetch('https://api.sms.jtnoble.com/v1/notifications/NOTIF_ID/read', {
  method: 'POST',
  headers: { Authorization: `Bearer ${process.env.JTSMS_API_KEY}` },
});
console.log(resp.status, await resp.text());
import os
import requests

resp = requests.post(
    "https://api.sms.jtnoble.com/v1/notifications/NOTIF_ID/read",
    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/notifications/NOTIF_ID/read');
curl_setopt_array($ch, [
    CURLOPT_RETURNTRANSFER => true,
    CURLOPT_CUSTOMREQUEST => 'POST',
    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": "read"
}
HTTPcodeMessage
401unauthorizedNot authenticated
404not_foundNotification not found
429rate_limitedToo many requests. Try again in a moment.

Usage report

GET /v1/reports

Aggregated delivery + cost analytics for the reports dashboard: totals, per-status, per-country, and a daily timeseries over a date range.

Who can call it: API key with the query scope, or a dashboard session token.

QueryTypeRequiredDefaultMeaning
date_fromstringNoISO date lower bound (default 30d ago)
date_tostringNoISO date upper bound (default now)
environmentstringNolive (default) | test | all
curl -X GET "https://api.sms.jtnoble.com/v1/reports" \
  -H "Authorization: Bearer $JTSMS_API_KEY"
const resp = await fetch('https://api.sms.jtnoble.com/v1/reports', {
  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/reports",
    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/reports');
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:

{
  "range": {
    "from": "2026-10-08T17:50:20.879111+00:00",
    "to": "2026-11-07T17:50:20.879111+00:00"
  },
  "currency": "USD",
  "totals": {
    "sent": 22,
    "delivered": 17,
    "failed": 2,
    "pending": 1,
    "delivery_rate": 77.3,
    "cost": 0.266,
    "segments": 22
  },
  "by_country": [
    {
      "country_code": "NG",
      "country_name": "Nigeria",
      "sent": 22,
      "delivered": 17,
      "cost": 0.266,
      "delivery_rate": 77.3
    }
  ],
  "by_day": [
    {
      "date": "2026-11-05",
      "sent": 1,
      "delivered": 1,
      "failed": 0,
      "cost": 0
    },
    {
      "date": "2026-11-07",
      "sent": 21,
      "delivered": 16,
      "failed": 2,
      "cost": 0.266
    }
  ]
}
HTTPcodeMessage
401unauthorizedNot authenticated
403insufficient_scopeThis API key is not authorised for this action.
429rate_limitedToo many requests. Try again in a moment.

Usage breakdown

GET /v1/reports/breakdown

Spend broken down by campaign and by API key over a date range.

Who can call it: API key with the query scope, or a dashboard session token.

QueryTypeRequiredDefaultMeaning
date_fromstringNoFrom this date (ISO 8601).
date_tostringNoUp to this date (ISO 8601).
environmentstringNolive (default) | test | all
curl -X GET "https://api.sms.jtnoble.com/v1/reports/breakdown" \
  -H "Authorization: Bearer $JTSMS_API_KEY"
const resp = await fetch('https://api.sms.jtnoble.com/v1/reports/breakdown', {
  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/reports/breakdown",
    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/reports/breakdown');
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:

{
  "currency": "USD",
  "by_campaign": [
    {
      "name": "Ad-hoc (no campaign)",
      "sent": 19,
      "cost": 0.224
    },
    {
      "name": "Term 2 notice",
      "sent": 2,
      "cost": 0.0232
    }
  ],
  "by_key": [
    {
      "name": "website",
      "prefix": "jtsms_test_****a37c",
      "sent": 13,
      "cost": 0.182
    },
    {
      "name": "Portal (no key)",
      "prefix": "",
      "sent": 8,
      "cost": 0.048
    }
  ]
}
HTTPcodeMessage
401unauthorizedNot authenticated
403insufficient_scopeThis API key is not authorised for this action.
429rate_limitedToo many requests. Try again in a moment.

API request log

GET /v1/request-logs

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

QueryTypeRequiredDefaultMeaning
pageintegerNo0Page number, starting at 0.
limitintegerNo50Items per page.
status_codeintegerNo
errors_onlybooleanNofalse
environmentstringNolive | test
request_idstringNo
curl -X GET "https://api.sms.jtnoble.com/v1/request-logs" \
  -H "Authorization: Bearer $JTSMS_API_KEY"
const resp = await fetch('https://api.sms.jtnoble.com/v1/request-logs', {
  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/request-logs",
    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/request-logs');
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:

{
  "logs": [
    {
      "id": 382,
      "method": "PUT",
      "path": "/v1/workspace",
      "status_code": 200,
      "duration_ms": 18,
      "environment": "test",
      "key_name": "website",
      "api_key_id": 3,
      "request_id": "46a9adf9645a4f18a6da29da2643208a",
      "error_code": null,
      "created_at": "2026-11-07T17:50:16.420415+00:00"
    },
    {
      "id": 381,
      "method": "GET",
      "path": "/v1/workspace",
      "status_code": 200,
      "duration_ms": 16,
      "environment": "test",
      "key_name": "website",
      "api_key_id": 3,
      "request_id": "d06db37abf9b498ea6dbcf7098f562fe",
      "error_code": null,
      "created_at": "2026-11-07T17:50:15.946091+00:00"
    }
  ],
  "total": 365,
  "page": 0,
  "limit": 2,
  "calls_24h": 361,
  "errors_24h": 161
}
HTTPcodeMessage
401unauthorizedNot authenticated
429rate_limitedToo many requests. Try again in a moment.

List the team

GET /v1/team

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

curl -X GET "https://api.sms.jtnoble.com/v1/team" \
  -H "Authorization: Bearer $JTSMS_API_KEY"
const resp = await fetch('https://api.sms.jtnoble.com/v1/team', {
  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/team",
    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/team');
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:

{
  "workspace": {
    "id": 1,
    "name": "Ada Okafor"
  },
  "members": [
    {
      "id": null,
      "auth_user_id": "3f0c7a52-6d1e-4b9a-8f21-7c5e2a9d1b40",
      "email": "you@example.mw",
      "name": "Ada Okafor",
      "role": "owner",
      "role_label": "Owner",
      "status": "active",
      "invited_at": null,
      "accepted_at": null,
      "is_owner": true
    }
  ],
  "can_manage": true,
  "my_role": "owner",
  "roles": [
    {
      "role": "admin",
      "label": "Admin",
      "description": "Everything except ownership: team, settings, webhooks, sending."
    },
    {
      "role": "sender",
      "label": "Sender",
      "description": "Send messages and run campaigns; manage contacts and templates."
    }
  ]
}
HTTPcodeMessage
401unauthorizedNot authenticated
429rate_limitedToo many requests. Try again in a moment.

Invite someone

POST /v1/team/invite

Who can call it: A dashboard session token. API keys are refused.

Body (JSON):

FieldTypeRequiredDefaultMeaning
emailstringYesEmail address.
rolestringNo"sender"admin, sender, approver or viewer.
curl -X POST "https://api.sms.jtnoble.com/v1/team/invite" \
  -H "Authorization: Bearer $JTSMS_SESSION_TOKEN" \
  -H "Content-Type: application/json" \
  -d '{"email":"colleague@example.mw","role":"sender"}'
const resp = await fetch('https://api.sms.jtnoble.com/v1/team/invite', {
  method: 'POST',
  headers: { Authorization: `Bearer ${process.env.JTSMS_SESSION_TOKEN}`, 'Content-Type': 'application/json' },
  body: JSON.stringify({"email":"colleague@example.mw","role":"sender"}),
});
console.log(resp.status, await resp.text());
import os
import requests

resp = requests.post(
    "https://api.sms.jtnoble.com/v1/team/invite",
    headers={"Authorization": f"Bearer {os.environ['JTSMS_SESSION_TOKEN']}"},
    json={"email":"colleague@example.mw","role":"sender"},
    timeout=30,
)
print(resp.status_code, resp.text)
<?php
$ch = curl_init('https://api.sms.jtnoble.com/v1/team/invite');
curl_setopt_array($ch, [
    CURLOPT_RETURNTRANSFER => true,
    CURLOPT_CUSTOMREQUEST => 'POST',
    CURLOPT_HTTPHEADER => ['Authorization: Bearer ' . getenv('JTSMS_SESSION_TOKEN'), 'Content-Type: application/json'],
    CURLOPT_POSTFIELDS => '{"email":"colleague@example.mw","role":"sender"}',
]);
$body = curl_exec($ch);
echo curl_getinfo($ch, CURLINFO_RESPONSE_CODE), ' ', $body, PHP_EOL;

HTTP 200:

{
  "id": 5,
  "auth_user_id": null,
  "email": "colleague@example.mw",
  "name": "",
  "role": "sender",
  "role_label": "Sender",
  "status": "pending",
  "invited_at": "2026-11-07T10:00:00+00:00",
  "accepted_at": null
}
HTTPcodeMessage
400bad_requestThat is the workspace owner
401unauthorizedNot authenticated
403forbiddenOnly the workspace owner or an admin can invite members
409conflictThat person has already been invited
422validation_errorRequest validation failed
429rate_limitedToo many requests. Try again in a moment.

Team roles

GET /v1/team/roles

Who can call it: None. This route is public.

curl -X GET "https://api.sms.jtnoble.com/v1/team/roles"
const resp = await fetch('https://api.sms.jtnoble.com/v1/team/roles', {
  method: 'GET',
});
console.log(resp.status, await resp.text());
import requests

resp = requests.get(
    "https://api.sms.jtnoble.com/v1/team/roles",
    timeout=30,
)
print(resp.status_code, resp.text)
<?php
$ch = curl_init('https://api.sms.jtnoble.com/v1/team/roles');
curl_setopt_array($ch, [
    CURLOPT_RETURNTRANSFER => true,
    CURLOPT_CUSTOMREQUEST => 'GET',
]);
$body = curl_exec($ch);
echo curl_getinfo($ch, CURLINFO_RESPONSE_CODE), ' ', $body, PHP_EOL;

HTTP 200:

{
  "roles": [
    {
      "role": "owner",
      "label": "Owner",
      "description": "Full control of the account, billing and team."
    },
    {
      "role": "admin",
      "label": "Admin",
      "description": "Everything except ownership: team, settings, webhooks, sending."
    }
  ]
}
HTTPcodeMessage
429rate_limitedToo many requests. Try again in a moment.

Change a role

PATCH /v1/team/{member_id}

Who can call it: A dashboard session token. API keys are refused.

Path valueTypeMeaning
member_idintegerThe team member id.

Body (JSON):

FieldTypeRequiredDefaultMeaning
rolestringYesadmin, sender, approver or viewer.
curl -X PATCH "https://api.sms.jtnoble.com/v1/team/MEMBER_ID" \
  -H "Authorization: Bearer $JTSMS_SESSION_TOKEN" \
  -H "Content-Type: application/json" \
  -d '{"role":"viewer"}'
const resp = await fetch('https://api.sms.jtnoble.com/v1/team/MEMBER_ID', {
  method: 'PATCH',
  headers: { Authorization: `Bearer ${process.env.JTSMS_SESSION_TOKEN}`, 'Content-Type': 'application/json' },
  body: JSON.stringify({"role":"viewer"}),
});
console.log(resp.status, await resp.text());
import os
import requests

resp = requests.patch(
    "https://api.sms.jtnoble.com/v1/team/MEMBER_ID",
    headers={"Authorization": f"Bearer {os.environ['JTSMS_SESSION_TOKEN']}"},
    json={"role":"viewer"},
    timeout=30,
)
print(resp.status_code, resp.text)
<?php
$ch = curl_init('https://api.sms.jtnoble.com/v1/team/MEMBER_ID');
curl_setopt_array($ch, [
    CURLOPT_RETURNTRANSFER => true,
    CURLOPT_CUSTOMREQUEST => 'PATCH',
    CURLOPT_HTTPHEADER => ['Authorization: Bearer ' . getenv('JTSMS_SESSION_TOKEN'), 'Content-Type: application/json'],
    CURLOPT_POSTFIELDS => '{"role":"viewer"}',
]);
$body = curl_exec($ch);
echo curl_getinfo($ch, CURLINFO_RESPONSE_CODE), ' ', $body, PHP_EOL;

HTTP 200:

{
  "id": 5,
  "auth_user_id": "3f0c7a52-6d1e-4b9a-8f21-7c5e2a9d1b40",
  "email": "colleague@example.mw",
  "name": "Ada",
  "role": "viewer",
  "role_label": "Viewer",
  "status": "active",
  "invited_at": "2026-11-07T10:00:00+00:00",
  "accepted_at": "2026-11-07T10:05:00+00:00"
}
HTTPcodeMessage
400bad_requestYou can't change your own role
401unauthorizedNot authenticated
403forbiddenOnly the workspace owner or an admin can change roles
404not_foundMember not found
422validation_errorRequest validation failed
429rate_limitedToo many requests. Try again in a moment.

Remove someone

DELETE /v1/team/{member_id}

Who can call it: A dashboard session token. API keys are refused.

Path valueTypeMeaning
member_idintegerThe team member id.
curl -X DELETE "https://api.sms.jtnoble.com/v1/team/MEMBER_ID" \
  -H "Authorization: Bearer $JTSMS_SESSION_TOKEN"
const resp = await fetch('https://api.sms.jtnoble.com/v1/team/MEMBER_ID', {
  method: 'DELETE',
  headers: { Authorization: `Bearer ${process.env.JTSMS_SESSION_TOKEN}` },
});
console.log(resp.status, await resp.text());
import os
import requests

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

HTTP 200:

{
  "status": "removed"
}
HTTPcodeMessage
401unauthorizedNot authenticated
403forbiddenOnly the workspace owner or an admin can remove members
404not_foundMember not found
429rate_limitedToo many requests. Try again in a moment.

Read workspace settings

GET /v1/workspace

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

curl -X GET "https://api.sms.jtnoble.com/v1/workspace" \
  -H "Authorization: Bearer $JTSMS_API_KEY"
const resp = await fetch('https://api.sms.jtnoble.com/v1/workspace', {
  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/workspace",
    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/workspace');
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,
  "name": "Ada Okafor",
  "slug": "ada-okafor",
  "timezone": "Africa/Lagos",
  "default_sender_id": null,
  "default_sender_name": null,
  "encoding_default": "auto",
  "dlr_tracking": "all",
  "dup_protection": "off",
  "default_country": "NG",
  "approval": {
    "enabled": false,
    "min_recipients": null,
    "min_cost": null
  },
  "quiet_hours": {
    "enabled": true,
    "start": "21:00",
    "end": "08:00"
  },
  "optout_text": "Reply STOP to opt out",
  "optout_text_oneway": "",
  "role": "owner"
}
HTTPcodeMessage
401unauthorizedNot authenticated
429rate_limitedToo many requests. Try again in a moment.

Change workspace settings

PUT /v1/workspace

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

Body (JSON):

FieldTypeRequiredDefaultMeaning
namestringNoA name.
timezonestringNo
default_sender_idintegerNo
encoding_defaultstringNo
dlr_trackingstringNo
dup_protectionstringNo
default_countrystringNoLeave it out to read local numbers in your account's default country (NG unless you change it).
approval_enabledbooleanNo
approval_min_recipientsintegerNo
approval_min_costnumberNo
quiet_hours_enabledbooleanNo
quiet_hours_startstringNo
quiet_hours_endstringNo
optout_textstringNoOpt-out line, up to 80 characters.
optout_text_onewaystringNo
curl -X PUT "https://api.sms.jtnoble.com/v1/workspace" \
  -H "Authorization: Bearer $JTSMS_API_KEY" \
  -H "Content-Type: application/json" \
  -d '{"timezone":"Africa/Lagos"}'
const resp = await fetch('https://api.sms.jtnoble.com/v1/workspace', {
  method: 'PUT',
  headers: { Authorization: `Bearer ${process.env.JTSMS_API_KEY}`, 'Content-Type': 'application/json' },
  body: JSON.stringify({"timezone":"Africa/Lagos"}),
});
console.log(resp.status, await resp.text());
import os
import requests

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

HTTP 200:

{
  "status": "updated"
}
HTTPcodeMessage
400bad_request
401unauthorizedNot authenticated
404not_foundWorkspace not found
422validation_errorRequest validation failed
429rate_limitedToo many requests. Try again in a moment.

Workspaces you were invited to

GET /v1/workspaces

Who can call it: A dashboard session token. API keys are refused.

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

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

HTTP 200:

{
  "workspaces": [
    {
      "id": 1,
      "name": "Ada Okafor",
      "role": "owner",
      "status": "active",
      "own": true
    }
  ],
  "invites": [],
  "current": null
}
HTTPcodeMessage
400bad_requestSign in to the web app to manage workspaces
401unauthorizedNot authenticated
429rate_limitedToo many requests. Try again in a moment.

Accept an invitation

POST /v1/workspaces/{workspace_id}/accept

Who can call it: A dashboard session token. API keys are refused.

Path valueTypeMeaning
workspace_idintegerThe workspace id.
curl -X POST "https://api.sms.jtnoble.com/v1/workspaces/WORKSPACE_ID/accept" \
  -H "Authorization: Bearer $JTSMS_SESSION_TOKEN"
const resp = await fetch('https://api.sms.jtnoble.com/v1/workspaces/WORKSPACE_ID/accept', {
  method: 'POST',
  headers: { Authorization: `Bearer ${process.env.JTSMS_SESSION_TOKEN}` },
});
console.log(resp.status, await resp.text());
import os
import requests

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

HTTP 200:

{
  "status": "accepted",
  "workspace_id": 3,
  "role": "sender"
}
HTTPcodeMessage
400bad_requestAccept invitations in the web app
401unauthorizedNot authenticated
404not_foundInvitation not found
429rate_limitedToo many requests. Try again in a moment.

Leave a workspace

POST /v1/workspaces/{workspace_id}/leave

Who can call it: A dashboard session token. API keys are refused.

Path valueTypeMeaning
workspace_idintegerThe workspace id.
curl -X POST "https://api.sms.jtnoble.com/v1/workspaces/WORKSPACE_ID/leave" \
  -H "Authorization: Bearer $JTSMS_SESSION_TOKEN"
const resp = await fetch('https://api.sms.jtnoble.com/v1/workspaces/WORKSPACE_ID/leave', {
  method: 'POST',
  headers: { Authorization: `Bearer ${process.env.JTSMS_SESSION_TOKEN}` },
});
console.log(resp.status, await resp.text());
import os
import requests

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

HTTP 200:

{
  "status": "left"
}
HTTPcodeMessage
401unauthorizedNot authenticated
404not_foundInvitation not found
429rate_limitedToo many requests. Try again in a moment.

On this page