API reference
Analytics
The numbers behind the dashboard's Home and Analytics pages: audience growth, campaign and messaging activity per day, and inbox workload. Days are counted in your account's time zone; ranges are up to 400 days.
Headline numbers
/v1/analytics/overviewContacts by status and conversations with unread texts, right now.
Request
curl https://app.smsblast.net/v1/analytics/overview \
-H "Authorization: Bearer $SMSBLAST_API_KEY"const res = await fetch('https://app.smsblast.net/v1/analytics/overview', {
headers: {
Authorization: `Bearer ${process.env.SMSBLAST_API_KEY}`,
},
});
console.log(res.status, await res.json());import os
import requests
res = requests.get(
"https://app.smsblast.net/v1/analytics/overview",
headers={
"Authorization": f"Bearer {os.environ['SMSBLAST_API_KEY']}",
},
)
print(res.status_code, res.json()){
"contacts": 1873,
"subscribed": 1802,
"unsubscribed": 71,
"unread": 5,
"unreadMine": 0
}Needs an API key: Authorization: Bearer sb_... Authentication
Responses#
The numbers.
application/json
contactsintegerrequiredAll contacts.
subscribedintegerrequiredSubscribed contacts.
unsubscribedintegerrequiredUnsubscribed contacts.
unreadintegerrequiredConversations with unread texts.
unreadMineintegerrequiredOf those, conversations assigned to you. Always 0 with an API key.
Response headers
The id of this request (req_...), on every answer. Quote it when you contact support.
Requests allowed per minute with this API key.
Requests left in the current minute.
When the current minute ends and the count starts again, in Unix seconds.
No API key, or one that is not valid or has been revoked (unauthorized).
Too many requests with this API key (rate_limited). Wait for the number of seconds in Retry-After.
Audience growth
/v1/analytics/audienceHow your list grew over a range of days: opt-ins and opt-outs per day, contacts at the end of each day, new contacts by source, and totals. Days are counted in your account's time zone. bySource and byStatus describe all contacts now, not just the range.
Request
curl "https://app.smsblast.net/v1/analytics/audience?from=2026-11-01&to=2026-11-30" \
-H "Authorization: Bearer $SMSBLAST_API_KEY"const res = await fetch('https://app.smsblast.net/v1/analytics/audience?from=2026-11-01&to=2026-11-30', {
headers: {
Authorization: `Bearer ${process.env.SMSBLAST_API_KEY}`,
},
});
console.log(res.status, await res.json());import os
import requests
res = requests.get(
"https://app.smsblast.net/v1/analytics/audience",
headers={
"Authorization": f"Bearer {os.environ['SMSBLAST_API_KEY']}",
},
params={
"from": "2026-11-01",
"to": "2026-11-30",
},
)
print(res.status_code, res.json()){
"timezone": "America/Los_Angeles",
"totals": {
"contacts": 1873,
"subscribed": 1802,
"newInRange": 41,
"netGrowth": 41,
"subscribes": 44,
"unsubscribes": 6
},
"bySource": [
{
"source": "import",
"n": 1610
},
{
"source": "keyword",
"n": 214
},
{
"source": "manual",
"n": 42
},
{
"source": "inbox",
"n": 7
}
],
"byStatus": [
{
"status": "subscribed",
"n": 1802
},
{
"status": "unsubscribed",
"n": 71
}
],
"series": [
{
"d": "2026-11-19",
"subscribes": 3,
"unsubscribes": 1,
"total": 1866,
"bySource": {
"keyword": 2,
"manual": 1
}
},
{
"d": "2026-11-20",
"subscribes": 7,
"unsubscribes": 0,
"total": 1873,
"bySource": {
"keyword": 7
}
}
]
}Needs an API key: Authorization: Bearer sb_... Authentication
Query parameters#
fromstringdaterequiredFirst day, YYYY-MM-DD, in your account's time zone.
tostringdaterequiredLast day (included), YYYY-MM-DD. Up to 400 days after from.
Responses#
Audience numbers.
application/json
timezonestringrequiredThe time zone days are counted in (your account's).
totalsobjectrequiredChild fields
contactsintegerrequiredAll contacts now.
subscribedintegerrequiredSubscribed contacts now.
newInRangeintegerrequiredContacts added during the range.
netGrowthintegerrequiredContacts at the end of the range, less those before it began (deleted contacts are not counted at all).
subscribesintegerrequiredOpt-ins during the range.
unsubscribesintegerrequiredOpt-outs during the range.
bySourcearray of objectsrequiredAll contacts now, by source, largest first.
Fields of each item
sourcestringrequiredWhere contacts came from (inbox: first heard from by text).
nintegerrequiredContacts now.
byStatusarray of objectsrequiredAll contacts now, by status.
Fields of each item
statusstringrequiredStatus.
nintegerrequiredContacts now.
seriesarray of objectsrequiredOne entry per day of the range.
Fields of each item
dstringdaterequiredThe day, YYYY-MM-DD.
subscribesintegerrequiredOpt-ins that day.
unsubscribesintegerrequiredOpt-outs that day.
totalintegerrequiredContacts at the end of that day.
bySourceobjectrequiredNew contacts that day, by source group (only groups with any).
Response headers
The id of this request (req_...), on every answer. Quote it when you contact support.
Requests allowed per minute with this API key.
Requests left in the current minute.
When the current minute ends and the count starts again, in Unix seconds.
The request was refused because something in it is not valid. error.code is one of:
invalid_range:fromortois missing or not a date,fromis afterto, or the range is longer than 400 days.
No API key, or one that is not valid or has been revoked (unauthorized).
Too many requests with this API key (rate_limited). Wait for the number of seconds in Retry-After.
Campaign activity
/v1/analytics/campaignsCampaigns started per day over a range of days (in your account's time zone), with their recipients, and how their texts did.
Request
curl "https://app.smsblast.net/v1/analytics/campaigns?from=2026-11-01&to=2026-11-30" \
-H "Authorization: Bearer $SMSBLAST_API_KEY"const res = await fetch('https://app.smsblast.net/v1/analytics/campaigns?from=2026-11-01&to=2026-11-30', {
headers: {
Authorization: `Bearer ${process.env.SMSBLAST_API_KEY}`,
},
});
console.log(res.status, await res.json());import os
import requests
res = requests.get(
"https://app.smsblast.net/v1/analytics/campaigns",
headers={
"Authorization": f"Bearer {os.environ['SMSBLAST_API_KEY']}",
},
params={
"from": "2026-11-01",
"to": "2026-11-30",
},
)
print(res.status_code, res.json()){
"timezone": "America/Los_Angeles",
"series": [
{
"d": "2026-11-20",
"campaigns": 0,
"messages": 0
},
{
"d": "2026-11-21",
"campaigns": 1,
"messages": 1284
}
],
"totals": {
"campaigns": 1,
"sent": 1281,
"delivered": 1251,
"failed": 9
}
}Needs an API key: Authorization: Bearer sb_... Authentication
Query parameters#
fromstringdaterequiredFirst day, YYYY-MM-DD, in your account's time zone.
tostringdaterequiredLast day (included), YYYY-MM-DD. Up to 400 days after from.
Responses#
Campaign numbers.
application/json
timezonestringrequiredThe time zone days are counted in.
seriesarray of objectsrequiredOne entry per day of the range.
Fields of each item
dstringdaterequiredThe day, YYYY-MM-DD.
campaignsintegerrequiredCampaigns started (or scheduled to start) that day.
messagesintegerrequiredTheir recipients.
totalsobjectrequiredChild fields
campaignsintegerrequiredCampaigns started in the range.
sentintegerrequiredTheir texts that left the queue (sent, delivered or failed).
deliveredintegerrequiredTheir texts confirmed delivered.
failedintegerrequiredTheir texts that failed.
Response headers
The id of this request (req_...), on every answer. Quote it when you contact support.
Requests allowed per minute with this API key.
Requests left in the current minute.
When the current minute ends and the count starts again, in Unix seconds.
The request was refused because something in it is not valid. error.code is one of:
invalid_range:fromortois missing or not a date,fromis afterto, or the range is longer than 400 days.
No API key, or one that is not valid or has been revoked (unauthorized).
Too many requests with this API key (rate_limited). Wait for the number of seconds in Retry-After.
Texts sent and received
/v1/analytics/messagingAll texts per day over a range of days (in your account's time zone): sent, received, delivered, failed, and credits used.
Request
curl "https://app.smsblast.net/v1/analytics/messaging?from=2026-11-01&to=2026-11-30" \
-H "Authorization: Bearer $SMSBLAST_API_KEY"const res = await fetch('https://app.smsblast.net/v1/analytics/messaging?from=2026-11-01&to=2026-11-30', {
headers: {
Authorization: `Bearer ${process.env.SMSBLAST_API_KEY}`,
},
});
console.log(res.status, await res.json());import os
import requests
res = requests.get(
"https://app.smsblast.net/v1/analytics/messaging",
headers={
"Authorization": f"Bearer {os.environ['SMSBLAST_API_KEY']}",
},
params={
"from": "2026-11-01",
"to": "2026-11-30",
},
)
print(res.status_code, res.json()){
"timezone": "America/Los_Angeles",
"series": [
{
"d": "2026-11-20",
"outbound": 64,
"inbound": 12,
"delivered": 61,
"failed": 1,
"credits": 70
},
{
"d": "2026-11-21",
"outbound": 1310,
"inbound": 37,
"delivered": 1279,
"failed": 9,
"credits": 1322
}
],
"totals": {
"outbound": 1374,
"inbound": 49,
"delivered": 1340,
"failed": 10,
"credits": 1392
}
}Needs an API key: Authorization: Bearer sb_... Authentication
Query parameters#
fromstringdaterequiredFirst day, YYYY-MM-DD, in your account's time zone.
tostringdaterequiredLast day (included), YYYY-MM-DD. Up to 400 days after from.
Responses#
Messaging numbers.
application/json
timezonestringrequiredThe time zone days are counted in.
seriesarray of objectsrequiredOne entry per day of the range, by the day each text was created.
Fields of each item
dstringdaterequiredThe day, YYYY-MM-DD.
outboundintegerrequiredTexts created that day that left the queue (sent, delivered or failed).
inboundintegerrequiredTexts received.
deliveredintegerrequiredTexts confirmed delivered.
failedintegerrequiredTexts that failed.
creditsintegerrequiredCredits used by texts that went out (sent or delivered).
totalsobjectrequiredChild fields
outboundintegerrequiredSum over the range.
inboundintegerrequiredSum over the range.
deliveredintegerrequiredSum over the range.
failedintegerrequiredSum over the range.
creditsintegerrequiredSum over the range.
Response headers
The id of this request (req_...), on every answer. Quote it when you contact support.
Requests allowed per minute with this API key.
Requests left in the current minute.
When the current minute ends and the count starts again, in Unix seconds.
The request was refused because something in it is not valid. error.code is one of:
invalid_range:fromortois missing or not a date,fromis afterto, or the range is longer than 400 days.
No API key, or one that is not valid or has been revoked (unauthorized).
Too many requests with this API key (rate_limited). Wait for the number of seconds in Retry-After.
Request
curl https://app.smsblast.net/v1/analytics/inbox \
-H "Authorization: Bearer $SMSBLAST_API_KEY"const res = await fetch('https://app.smsblast.net/v1/analytics/inbox', {
headers: {
Authorization: `Bearer ${process.env.SMSBLAST_API_KEY}`,
},
});
console.log(res.status, await res.json());import os
import requests
res = requests.get(
"https://app.smsblast.net/v1/analytics/inbox",
headers={
"Authorization": f"Bearer {os.environ['SMSBLAST_API_KEY']}",
},
)
print(res.status_code, res.json()){
"counts": {
"open": 22,
"pending": 3,
"closed": 123,
"unassigned": 19,
"unread": 5
},
"byTeammate": [
{
"id": null,
"name": "Unassigned",
"total": 131,
"open": 19,
"pending": 0
},
{
"id": "9d1f3b5c-7e9a-4b1d-8c3f-5a7c9e1b3d63",
"name": "Dana Baker",
"total": 17,
"open": 3,
"pending": 3
}
]
}Needs an API key: Authorization: Bearer sb_... Authentication
Responses#
Inbox numbers.
application/json
countsobjectrequiredChild fields
openintegerrequiredOpen conversations.
pendingintegerrequiredPending conversations.
closedintegerrequiredClosed conversations.
unassignedintegerrequiredNot assigned and not closed.
unreadintegerrequiredWith unread texts.
byTeammatearray of objectsrequiredConversations per teammate, most first.
Fields of each item
idstringuuidnullablerequiredThe teammate's user id; empty for the unassigned row.
namestringrequiredTheir name, or "Unassigned".
totalintegerrequiredConversations assigned.
openintegerrequiredOf those, open.
pendingintegerrequiredOf those, pending.
Response headers
The id of this request (req_...), on every answer. Quote it when you contact support.
Requests allowed per minute with this API key.
Requests left in the current minute.
When the current minute ends and the count starts again, in Unix seconds.
No API key, or one that is not valid or has been revoked (unauthorized).
Too many requests with this API key (rate_limited). Wait for the number of seconds in Retry-After.