New: every plan now includes free incoming texts and rollover credits. See pricing →
Search Help Center Documentation

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=....

List lists

GET/v1/lists

All your lists, newest first, with how many contacts each has.

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())
Response · 200
{
  "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#

searchstring

Only lists whose name contains this text (ignoring case).

Responses#

200

Your lists.

application/json

listsarray of objectsrequired

Newest first.

Fields of each item
idstringuuidrequired

The list id.

account_idstringuuidrequired

Your account id.

namestringrequired

The list name.

descriptionstringnullablerequired

A note about the list, for you.

created_atstringdate-timerequired

When the list was created.

totalinteger

Contacts on the list. Not included in the answer to PATCH /v1/lists/{id}.

subscribedinteger

Subscribed contacts on the list. Not included in the answer to PATCH /v1/lists/{id}.

Response headers
X-Request-Idstring Guide

The id of this request (req_...), on every answer. Quote it when you contact support.

X-RateLimit-Limitinteger Guide

Requests allowed per minute with this API key.

X-RateLimit-Remaininginteger Guide

Requests left in the current minute.

X-RateLimit-Resetinteger Guide

When the current minute ends and the count starts again, in Unix seconds.

401

No API key, or one that is not valid or has been revoked (unauthorized).

429

Too many requests with this API key (rate_limited). Wait for the number of seconds in Retry-After.

Every error has the same body: {"error": {"code", "message", "details", "requestId"}}. See Errors.

Create a list

POST/v1/lists

Creates 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())
Response · 201
{
  "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#

Idempotency-Keystring Guide

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.

Limits: up to 200 characters.

Example "2b5c4f8e-order-1042".

Request body#

application/json · required

namestringrequired

The list name, up to 120 characters.

Limits: up to 120 characters.

descriptionstringnullable

A note, up to 300 characters. Leaving it out clears it.

Limits: up to 300 characters.

Example request body
Request body
{
  "name": "Weekend regulars",
  "description": "Customers who come in on Saturdays"
}

Responses#

201

The new list.

application/json

listobjectrequired

A named group of contacts. Field names are snake_case.

Child fields
idstringuuidrequired

The list id.

account_idstringuuidrequired

Your account id.

namestringrequired

The list name.

descriptionstringnullablerequired

A note about the list, for you.

created_atstringdate-timerequired

When the list was created.

totalinteger

Contacts on the list. Not included in the answer to PATCH /v1/lists/{id}.

subscribedinteger

Subscribed contacts on the list. Not included in the answer to PATCH /v1/lists/{id}.

Response headers
X-Request-Idstring Guide

The id of this request (req_...), on every answer. Quote it when you contact support.

X-RateLimit-Limitinteger Guide

Requests allowed per minute with this API key.

X-RateLimit-Remaininginteger Guide

Requests left in the current minute.

X-RateLimit-Resetinteger Guide

When the current minute ends and the count starts again, in Unix seconds.

Idempotent-Replayedstring Guide

true when this is the stored answer to an earlier request with the same Idempotency-Key, not a new one.

One of "true".

400

The request was refused because something in it is not valid. error.code is one of:

  • invalid_name: name is missing or empty.
  • invalid_json: The body is not a JSON object.
  • invalid_idempotency_key: The Idempotency-Key header is longer than 200 characters.
401

No API key, or one that is not valid or has been revoked (unauthorized).

409

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.
422

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.

429

Too many requests with this API key (rate_limited). Wait for the number of seconds in Retry-After.

Every error has the same body: {"error": {"code", "message", "details", "requestId"}}. See Errors.

Get a list

GET/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())
Response · 200
{
  "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#

idstringuuidrequired

The list id.

Responses#

200

The list.

application/json

listobjectrequired

A named group of contacts. Field names are snake_case.

Child fields
idstringuuidrequired

The list id.

account_idstringuuidrequired

Your account id.

namestringrequired

The list name.

descriptionstringnullablerequired

A note about the list, for you.

created_atstringdate-timerequired

When the list was created.

totalinteger

Contacts on the list. Not included in the answer to PATCH /v1/lists/{id}.

subscribedinteger

Subscribed contacts on the list. Not included in the answer to PATCH /v1/lists/{id}.

Response headers
X-Request-Idstring Guide

The id of this request (req_...), on every answer. Quote it when you contact support.

X-RateLimit-Limitinteger Guide

Requests allowed per minute with this API key.

X-RateLimit-Remaininginteger Guide

Requests left in the current minute.

X-RateLimit-Resetinteger Guide

When the current minute ends and the count starts again, in Unix seconds.

401

No API key, or one that is not valid or has been revoked (unauthorized).

404

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.
429

Too many requests with this API key (rate_limited). Wait for the number of seconds in Retry-After.

Every error has the same body: {"error": {"code", "message", "details", "requestId"}}. See Errors.

Rename a list

PATCH/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())
Response · 200
{
  "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#

idstringuuidrequired

The list id.

Request body#

application/json · required

namestringrequired

The list name, up to 120 characters.

Limits: up to 120 characters.

descriptionstringnullable

A note, up to 300 characters. Leaving it out clears it.

Limits: up to 300 characters.

Example request body
Request body
{
  "name": "Saturday regulars",
  "description": "Customers who come in on Saturdays"
}

Responses#

200

The list.

application/json

listobjectrequired

A named group of contacts. Field names are snake_case.

Child fields
idstringuuidrequired

The list id.

account_idstringuuidrequired

Your account id.

namestringrequired

The list name.

descriptionstringnullablerequired

A note about the list, for you.

created_atstringdate-timerequired

When the list was created.

totalinteger

Contacts on the list. Not included in the answer to PATCH /v1/lists/{id}.

subscribedinteger

Subscribed contacts on the list. Not included in the answer to PATCH /v1/lists/{id}.

Response headers
X-Request-Idstring Guide

The id of this request (req_...), on every answer. Quote it when you contact support.

X-RateLimit-Limitinteger Guide

Requests allowed per minute with this API key.

X-RateLimit-Remaininginteger Guide

Requests left in the current minute.

X-RateLimit-Resetinteger Guide

When the current minute ends and the count starts again, in Unix seconds.

400

The request was refused because something in it is not valid. error.code is one of:

  • invalid_name: name is missing or empty.
  • invalid_json: The body is not a JSON object.
401

No API key, or one that is not valid or has been revoked (unauthorized).

404

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.
429

Too many requests with this API key (rate_limited). Wait for the number of seconds in Retry-After.

Every error has the same body: {"error": {"code", "message", "details", "requestId"}}. See Errors.

Delete a list

DELETE/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())
Response · 200
{
  "ok": true
}

Needs an API key: Authorization: Bearer sb_... Authentication

Path parameters#

idstringuuidrequired

The list id.

Responses#

200

Deleted.

application/json

okbooleanrequired

Always true.

Response headers
X-Request-Idstring Guide

The id of this request (req_...), on every answer. Quote it when you contact support.

X-RateLimit-Limitinteger Guide

Requests allowed per minute with this API key.

X-RateLimit-Remaininginteger Guide

Requests left in the current minute.

X-RateLimit-Resetinteger Guide

When the current minute ends and the count starts again, in Unix seconds.

401

No API key, or one that is not valid or has been revoked (unauthorized).

404

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.
409

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.workflows names them.
429

Too many requests with this API key (rate_limited). Wait for the number of seconds in Retry-After.

Every error has the same body: {"error": {"code", "message", "details", "requestId"}}. See Errors.