API reference
Lists
Named groups of contacts, to send campaigns to and to start workflows. Put people on a list with POST /v1/contacts/bulk (add_to_list), with listId when adding or importing them, with a signup keyword, or with a workflow step; see who is on one with GET /v1/contacts?listId=....
Request
curl https://app.smsblast.net/v1/lists \
-H "Authorization: Bearer $SMSBLAST_API_KEY"const res = await fetch('https://app.smsblast.net/v1/lists', {
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/lists",
headers={
"Authorization": f"Bearer {os.environ['SMSBLAST_API_KEY']}",
},
)
print(res.status_code, res.json()){
"lists": [
{
"id": "e3a9c7f2-4b1d-4e8a-9c6f-2d5b7a1e8f30",
"account_id": "5d0c6a2e-8f43-4b8a-9c1d-2e7f4a6b3c10",
"name": "Weekend regulars",
"description": "Customers who come in on Saturdays",
"created_at": "2026-10-14T16:20:00.000Z",
"total": 412,
"subscribed": 398
}
]
}Needs an API key: Authorization: Bearer sb_... Authentication
Query parameters#
searchstringOnly lists whose name contains this text (ignoring case).
Responses#
Your lists.
application/json
listsarray of objectsrequiredNewest first.
Fields of each item
idstringuuidrequiredThe list id.
account_idstringuuidrequiredYour account id.
namestringrequiredThe list name.
descriptionstringnullablerequiredA note about the list, for you.
created_atstringdate-timerequiredWhen the list was created.
totalintegerContacts on the list. Not included in the answer to PATCH /v1/lists/{id}.
subscribedintegerSubscribed contacts on the list. Not included in the answer to PATCH /v1/lists/{id}.
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.
Create a list
/v1/listsCreates an empty list. Add people with POST /v1/contacts/bulk (add_to_list), or when adding or importing them (listId).
Request
curl -X POST https://app.smsblast.net/v1/lists \
-H "Authorization: Bearer $SMSBLAST_API_KEY" \
-H "Idempotency-Key: $(openssl rand -hex 16)" \
-H "Content-Type: application/json" \
-d '{
"name": "Weekend regulars",
"description": "Customers who come in on Saturdays"
}'const res = await fetch('https://app.smsblast.net/v1/lists', {
method: 'POST',
headers: {
Authorization: `Bearer ${process.env.SMSBLAST_API_KEY}`,
'Idempotency-Key': crypto.randomUUID(),
'Content-Type': 'application/json',
},
body: JSON.stringify({
name: 'Weekend regulars',
description: 'Customers who come in on Saturdays',
}),
});
console.log(res.status, await res.json());import os
import uuid
import requests
res = requests.post(
"https://app.smsblast.net/v1/lists",
headers={
"Authorization": f"Bearer {os.environ['SMSBLAST_API_KEY']}",
"Idempotency-Key": str(uuid.uuid4()),
},
json={
"name": "Weekend regulars",
"description": "Customers who come in on Saturdays",
},
)
print(res.status_code, res.json()){
"list": {
"id": "e3a9c7f2-4b1d-4e8a-9c6f-2d5b7a1e8f30",
"account_id": "5d0c6a2e-8f43-4b8a-9c1d-2e7f4a6b3c10",
"name": "Weekend regulars",
"description": "Customers who come in on Saturdays",
"created_at": "2026-10-14T16:20:00.000Z",
"total": 0,
"subscribed": 0
}
}Needs an API key: Authorization: Bearer sb_... Authentication
Headers#
Any unique string up to 200 characters (a UUID works well). If a POST times out or you are not sure it went through, send it again with the same key and the same body: you get the first answer back (with Idempotent-Replayed: true) instead of the work being done twice. Keys are kept for 24 hours per account.
Request body#
application/json · required
namestringrequiredThe list name, up to 120 characters.
descriptionstringnullableA note, up to 300 characters. Leaving it out clears it.
Example request body
{
"name": "Weekend regulars",
"description": "Customers who come in on Saturdays"
}Responses#
The new list.
application/json
listobjectrequiredA named group of contacts. Field names are snake_case.
Child fields
idstringuuidrequiredThe list id.
account_idstringuuidrequiredYour account id.
namestringrequiredThe list name.
descriptionstringnullablerequiredA note about the list, for you.
created_atstringdate-timerequiredWhen the list was created.
totalintegerContacts on the list. Not included in the answer to PATCH /v1/lists/{id}.
subscribedintegerSubscribed contacts on the list. Not included in the answer to PATCH /v1/lists/{id}.
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.
true when this is the stored answer to an earlier request with the same Idempotency-Key, not a new one.
The request was refused because something in it is not valid. error.code is one of:
invalid_name:nameis missing or empty.invalid_json: The body is not a JSON object.invalid_idempotency_key: The Idempotency-Key header is longer than 200 characters.
No API key, or one that is not valid or has been revoked (unauthorized).
The request clashes with the current state of things. error.code is one of:
idempotency_in_progress: A request with the same Idempotency-Key is still running. Try again in a moment.
This Idempotency-Key was already used for a different request (another path or body) in the last 24 hours (idempotency_key_reused). Use a new key for each new request.
Too many requests with this API key (rate_limited). Wait for the number of seconds in Retry-After.
Get a list
/v1/lists/{id}One list and how many contacts it has. To see who is on it, use GET /v1/contacts?listId=....
Request
curl https://app.smsblast.net/v1/lists/e3a9c7f2-4b1d-4e8a-9c6f-2d5b7a1e8f30 \
-H "Authorization: Bearer $SMSBLAST_API_KEY"const res = await fetch('https://app.smsblast.net/v1/lists/e3a9c7f2-4b1d-4e8a-9c6f-2d5b7a1e8f30', {
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/lists/e3a9c7f2-4b1d-4e8a-9c6f-2d5b7a1e8f30",
headers={
"Authorization": f"Bearer {os.environ['SMSBLAST_API_KEY']}",
},
)
print(res.status_code, res.json()){
"list": {
"id": "e3a9c7f2-4b1d-4e8a-9c6f-2d5b7a1e8f30",
"account_id": "5d0c6a2e-8f43-4b8a-9c1d-2e7f4a6b3c10",
"name": "Weekend regulars",
"description": "Customers who come in on Saturdays",
"created_at": "2026-10-14T16:20:00.000Z",
"total": 412,
"subscribed": 398
}
}Needs an API key: Authorization: Bearer sb_... Authentication
Path parameters#
idstringuuidrequiredThe list id.
Responses#
The list.
application/json
listobjectrequiredA named group of contacts. Field names are snake_case.
Child fields
idstringuuidrequiredThe list id.
account_idstringuuidrequiredYour account id.
namestringrequiredThe list name.
descriptionstringnullablerequiredA note about the list, for you.
created_atstringdate-timerequiredWhen the list was created.
totalintegerContacts on the list. Not included in the answer to PATCH /v1/lists/{id}.
subscribedintegerSubscribed contacts on the list. Not included in the answer to PATCH /v1/lists/{id}.
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).
Something the request names does not exist in your account. error.code is one of:
not_found: No list with that id in your account.
Too many requests with this API key (rate_limited). Wait for the number of seconds in Retry-After.
Rename a list
/v1/lists/{id}Changes a list's name and description. Send both: name is required, and leaving description out clears it. The answer does not include the contact counts.
Request
curl -X PATCH https://app.smsblast.net/v1/lists/e3a9c7f2-4b1d-4e8a-9c6f-2d5b7a1e8f30 \
-H "Authorization: Bearer $SMSBLAST_API_KEY" \
-H "Content-Type: application/json" \
-d '{
"name": "Saturday regulars",
"description": "Customers who come in on Saturdays"
}'const res = await fetch('https://app.smsblast.net/v1/lists/e3a9c7f2-4b1d-4e8a-9c6f-2d5b7a1e8f30', {
method: 'PATCH',
headers: {
Authorization: `Bearer ${process.env.SMSBLAST_API_KEY}`,
'Content-Type': 'application/json',
},
body: JSON.stringify({
name: 'Saturday regulars',
description: 'Customers who come in on Saturdays',
}),
});
console.log(res.status, await res.json());import os
import requests
res = requests.patch(
"https://app.smsblast.net/v1/lists/e3a9c7f2-4b1d-4e8a-9c6f-2d5b7a1e8f30",
headers={
"Authorization": f"Bearer {os.environ['SMSBLAST_API_KEY']}",
},
json={
"name": "Saturday regulars",
"description": "Customers who come in on Saturdays",
},
)
print(res.status_code, res.json()){
"list": {
"id": "e3a9c7f2-4b1d-4e8a-9c6f-2d5b7a1e8f30",
"account_id": "5d0c6a2e-8f43-4b8a-9c1d-2e7f4a6b3c10",
"name": "Saturday regulars",
"description": "Customers who come in on Saturdays",
"created_at": "2026-10-14T16:20:00.000Z"
}
}Needs an API key: Authorization: Bearer sb_... Authentication
Path parameters#
idstringuuidrequiredThe list id.
Request body#
application/json · required
namestringrequiredThe list name, up to 120 characters.
descriptionstringnullableA note, up to 300 characters. Leaving it out clears it.
Example request body
{
"name": "Saturday regulars",
"description": "Customers who come in on Saturdays"
}Responses#
The list.
application/json
listobjectrequiredA named group of contacts. Field names are snake_case.
Child fields
idstringuuidrequiredThe list id.
account_idstringuuidrequiredYour account id.
namestringrequiredThe list name.
descriptionstringnullablerequiredA note about the list, for you.
created_atstringdate-timerequiredWhen the list was created.
totalintegerContacts on the list. Not included in the answer to PATCH /v1/lists/{id}.
subscribedintegerSubscribed contacts on the list. Not included in the answer to PATCH /v1/lists/{id}.
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_name:nameis missing or empty.invalid_json: The body is not a JSON object.
No API key, or one that is not valid or has been revoked (unauthorized).
Something the request names does not exist in your account. error.code is one of:
not_found: No list with that id in your account.
Too many requests with this API key (rate_limited). Wait for the number of seconds in Retry-After.
Delete a list
/v1/lists/{id}Deletes a list. The contacts on it are kept. Campaign drafts and segments that point at the list no longer match anyone through it, and keywords that added people to it stop doing so. A list that a workflow starts from or uses in a step cannot be deleted until the workflow is changed.
Request
curl -X DELETE https://app.smsblast.net/v1/lists/e3a9c7f2-4b1d-4e8a-9c6f-2d5b7a1e8f30 \
-H "Authorization: Bearer $SMSBLAST_API_KEY"const res = await fetch('https://app.smsblast.net/v1/lists/e3a9c7f2-4b1d-4e8a-9c6f-2d5b7a1e8f30', {
method: 'DELETE',
headers: {
Authorization: `Bearer ${process.env.SMSBLAST_API_KEY}`,
},
});
console.log(res.status, await res.json());import os
import requests
res = requests.delete(
"https://app.smsblast.net/v1/lists/e3a9c7f2-4b1d-4e8a-9c6f-2d5b7a1e8f30",
headers={
"Authorization": f"Bearer {os.environ['SMSBLAST_API_KEY']}",
},
)
print(res.status_code, res.json()){
"ok": true
}Needs an API key: Authorization: Bearer sb_... Authentication
Path parameters#
idstringuuidrequiredThe list id.
Responses#
Deleted.
application/json
okbooleanrequiredResponse 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).
Something the request names does not exist in your account. error.code is one of:
not_found: No list with that id in your account.
The request clashes with the current state of things. error.code is one of:
list_in_use: A workflow starts from this list or uses it in a step;details.workflowsnames them.
Too many requests with this API key (rate_limited). Wait for the number of seconds in Retry-After.