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
/v1/keywordsYour 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()){
"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#
Keywords.
application/json
keywordsarray of objectsrequiredNewest first.
Fields of each item
idstringuuidrequiredThe keyword id.
wordstringrequiredThe keyword, upper case without punctuation, such as JOIN.
replystringrequiredThe text people get back.
list_idstringuuidnullablerequiredThe list people who text it are put on.
list_namestringnullablerequiredThat list's name.
numberstringrequiredThe sending number it works on, E.164.
signupsintegerrequiredContacts who joined by texting it.
created_atstringdate-timerequiredWhen it was set up.
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.
Set up a keyword
/v1/keywordsSets 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()){
"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#
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
wordstringrequiredOne 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.
replystringrequiredThe 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.
numberIdstringuuidThe sending number it works on. Leave it out for your first number.
listIdstringuuidnullablePut people who text it on this list.
Example 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#
The keyword (new or replaced).
application/json
keywordobjectrequiredChild fields
idstringuuidrequiredThe keyword id.
wordstringrequiredThe keyword as stored.
replystringrequiredThe reply.
list_idstringuuidnullablerequiredThe list people are put on.
warningsarray of stringsrequiredAdvice 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
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_keyword:wordis not one word of up to 20 letters or numbers.reserved_keyword:wordalready means opt out, help or opt in (STOP, HELP, START, ...).empty_reply:replyis 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).
Something the request names does not exist in your account. error.code is one of:
not_found: The list inlistId, or the number innumberId, does not exist in your account.
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.
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.
Delete a keyword
/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()){
"ok": true
}Needs an API key: Authorization: Bearer sb_... Authentication
Path parameters#
idstringuuidrequiredThe keyword 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 keyword with that id in your account.
The request clashes with the current state of things. error.code is one of:
keyword_in_use: This keyword starts a workflow;details.workflowsnames them.
Too many requests with this API key (rate_limited). Wait for the number of seconds in Retry-After.