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

API reference

Keywords

Signup keywords such as JOIN. When someone texts one to your number they become a subscribed contact (texting it is their consent), get your reply and can be put on a list. STOP, HELP and START are handled automatically and cannot be used.

List keywords

GET/v1/keywords

Your signup keywords, newest first, with how many people joined with each.

Request

curl https://app.smsblast.net/v1/keywords \
  -H "Authorization: Bearer $SMSBLAST_API_KEY"
const res = await fetch('https://app.smsblast.net/v1/keywords', {
  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/keywords",
    headers={
        "Authorization": f"Bearer {os.environ['SMSBLAST_API_KEY']}",
    },
)
print(res.status_code, res.json())
Response · 200
{
  "keywords": [
    {
      "id": "f0a2c4e6-8b1d-4f3a-9c5e-7d9f1b3d5f29",
      "word": "BREAD",
      "reply": "Corner Bakery: You are in! Fresh bread alerts, about 4 texts a month. Msg & data rates may apply. Reply HELP for help, STOP to opt out.",
      "list_id": "e3a9c7f2-4b1d-4e8a-9c6f-2d5b7a1e8f30",
      "list_name": "Weekend regulars",
      "number": "+14155550100",
      "signups": 86,
      "created_at": "2026-10-20T15:12:44.201Z"
    }
  ]
}

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

Responses#

200

Keywords.

application/json

keywordsarray of objectsrequired

Newest first.

Fields of each item
idstringuuidrequired

The keyword id.

wordstringrequired

The keyword, upper case without punctuation, such as JOIN.

replystringrequired

The text people get back.

list_idstringuuidnullablerequired

The list people who text it are put on.

list_namestringnullablerequired

That list's name.

numberstringrequired

The sending number it works on, E.164.

signupsintegerrequired

Contacts who joined by texting it.

created_atstringdate-timerequired

When it was set up.

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.

Set up a keyword

POST/v1/keywords

Sets up a signup keyword such as JOIN on one of your numbers: when someone texts exactly that word (any case, punctuation ignored), they become a subscribed contact (texting it is their consent, recorded as keyword:JOIN), get your reply, are put on listId if given, and start any workflows triggered by subscribing, by that keyword or by that list. Someone who opted out and texts the keyword is resubscribed.

Saving a word that already exists on that number replaces its reply and list. The reply costs credits like any text (it is skipped if you run out). STOP, HELP, START and their variants are reserved. warnings flags a reply that does not mention "Msg & data rates may apply" or STOP, which carriers expect in the first text.

Request

curl -X POST https://app.smsblast.net/v1/keywords \
  -H "Authorization: Bearer $SMSBLAST_API_KEY" \
  -H "Idempotency-Key: $(openssl rand -hex 16)" \
  -H "Content-Type: application/json" \
  -d '{
    "word": "bread",
    "reply": "Corner Bakery: You are in! Fresh bread alerts, about 4 texts a month. Msg & data rates may apply. Reply HELP for help, STOP to opt out.",
    "listId": "e3a9c7f2-4b1d-4e8a-9c6f-2d5b7a1e8f30"
  }'
const res = await fetch('https://app.smsblast.net/v1/keywords', {
  method: 'POST',
  headers: {
    Authorization: `Bearer ${process.env.SMSBLAST_API_KEY}`,
    'Idempotency-Key': crypto.randomUUID(),
    'Content-Type': 'application/json',
  },
  body: JSON.stringify({
    word: 'bread',
    reply: 'Corner Bakery: You are in! Fresh bread alerts, about 4 texts a month. Msg & data rates may apply. Reply HELP for help, STOP to opt out.',
    listId: 'e3a9c7f2-4b1d-4e8a-9c6f-2d5b7a1e8f30',
  }),
});
console.log(res.status, await res.json());
import os
import uuid

import requests

res = requests.post(
    "https://app.smsblast.net/v1/keywords",
    headers={
        "Authorization": f"Bearer {os.environ['SMSBLAST_API_KEY']}",
        "Idempotency-Key": str(uuid.uuid4()),
    },
    json={
        "word": "bread",
        "reply": "Corner Bakery: You are in! Fresh bread alerts, about 4 texts a month. Msg & data rates may apply. Reply HELP for help, STOP to opt out.",
        "listId": "e3a9c7f2-4b1d-4e8a-9c6f-2d5b7a1e8f30",
    },
)
print(res.status_code, res.json())
Response · 201
{
  "keyword": {
    "id": "f0a2c4e6-8b1d-4f3a-9c5e-7d9f1b3d5f29",
    "word": "BREAD",
    "reply": "Corner Bakery: You are in! Fresh bread alerts, about 4 texts a month. Msg & data rates may apply. Reply HELP for help, STOP to opt out.",
    "list_id": "e3a9c7f2-4b1d-4e8a-9c6f-2d5b7a1e8f30"
  },
  "warnings": []
}

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

wordstringrequired

One word of up to 20 letters or numbers. It is stored upper case without punctuation and matches a text that is exactly that word, in any case.

replystringrequired

The text people get back. It is their first text from you, so say who you are, that message and data rates may apply, and how to opt out.

numberIdstringuuid

The sending number it works on. Leave it out for your first number.

listIdstringuuidnullable

Put people who text it on this list.

Example request body
Request body
{
  "word": "bread",
  "reply": "Corner Bakery: You are in! Fresh bread alerts, about 4 texts a month. Msg & data rates may apply. Reply HELP for help, STOP to opt out.",
  "listId": "e3a9c7f2-4b1d-4e8a-9c6f-2d5b7a1e8f30"
}

Responses#

201

The keyword (new or replaced).

application/json

keywordobjectrequired
Child fields
idstringuuidrequired

The keyword id.

wordstringrequired

The keyword as stored.

replystringrequired

The reply.

list_idstringuuidnullablerequired

The list people are put on.

warningsarray of stringsrequired

Advice about the reply: carriers expect the first text after a signup to mention "Msg & data rates may apply" and how to opt out (STOP).

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_keyword: word is not one word of up to 20 letters or numbers.
  • reserved_keyword: word already means opt out, help or opt in (STOP, HELP, START, ...).
  • empty_reply: reply 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).

404

Something the request names does not exist in your account. error.code is one of:

  • not_found: The list in listId, or the number in numberId, does not exist in your account.
409

The request clashes with the current state of things. error.code is one of:

  • no_sending_number: You have no sending number yet.
  • 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.

Delete a keyword

DELETE/v1/keywords/{id}

Deletes a signup keyword. Texts of that word are then treated like any other incoming text. Contacts who joined with it are not affected. The last keyword with a word that starts a workflow cannot be deleted until the workflow is changed.

Request

curl -X DELETE https://app.smsblast.net/v1/keywords/f0a2c4e6-8b1d-4f3a-9c5e-7d9f1b3d5f29 \
  -H "Authorization: Bearer $SMSBLAST_API_KEY"
const res = await fetch('https://app.smsblast.net/v1/keywords/f0a2c4e6-8b1d-4f3a-9c5e-7d9f1b3d5f29', {
  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/keywords/f0a2c4e6-8b1d-4f3a-9c5e-7d9f1b3d5f29",
    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 keyword 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 keyword with that id in your account.
409

The request clashes with the current state of things. error.code is one of:

  • keyword_in_use: This keyword starts a workflow; 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.