Create follow-up sequence
Creates a follow-up sequence with 1 to 10 steps as a draft that sends nothing. Each step gets a draft template; submit them with create_template_submissions, then activate with update_followup_sequence. Needs an idempotency key.
POST /v1/followup-sequences
| Permission | followups:write (all permissions) |
| Risk | Write (no outside effect) |
| Idempotency-Key | Required (how it works) |
| Safe to repeat | Safe to repeat with the same Idempotency-Key: the first answer comes back and nothing is done twice. |
| Rate limit class | write (120 requests per minute per key) |
| Confirmation | None |
| MCP tool | save_followup_sequence |
| Since version | 2026-10-25 |
#What it does
- Changes data in your account. It does not send messages to contacts.
- May start automations of the account, and an automation may send messages. The call itself sends nothing.
- Setting it active lets messages go to contacts later. The call itself sends nothing.
- Safe to repeat with the same Idempotency-Key.
#Request
Header
| Name | Required | Description |
|---|---|---|
Authorization | yes | Bearer <key> |
Idempotency-Key | yes | A unique value for this operation, for example a UUID (1 to 255 visible ASCII characters). |
Body (JSON)
| Name | Type | Required | Description |
|---|---|---|---|
name | string | yes | Name of the sequence. length 1 to 200 |
steps | array of object | yes | The steps in order. up to 10 items |
steps[].text | string | yes | Message text of the step, at most 1024 characters. Use paragraphs, bold words in stars and an emoji: a long wall of text is refused. Placeholder: {{first_name}}. length 1 to 1024 |
steps[].delay_minutes | integer | yes | Wait in minutes. Step 1: wait after the opt-in confirmation. Later steps: wait after the step before, at least 1440 (one day). 0 to 525600 |
#Examples
curl -X POST "https://api.smartchat.marketing/v1/followup-sequences" \
-H "Authorization: Bearer $SMARTCHAT_API_KEY" \
-H "Idempotency-Key: $(uuidgen)" \
-H "Content-Type: application/json" \
-d '{
"name": "Welcome series",
"steps": [
{
"text": "Hi {{first_name}}, thanks for joining. Here is what to expect from us.",
"delay_minutes": 1440
},
{
"text": "Hi {{first_name}}, a quick tip for you this week.",
"delay_minutes": 4320
}
]
}'import os
import uuid
import requests
response = requests.post(
"https://api.smartchat.marketing/v1/followup-sequences",
headers={
"Authorization": "Bearer " + os.environ["SMARTCHAT_API_KEY"],
"Idempotency-Key": str(uuid.uuid4()),
},
json={
"name": "Welcome series",
"steps": [
{
"text": "Hi {{first_name}}, thanks for joining. Here is what to expect from us.",
"delay_minutes": 1440,
},
{
"text": "Hi {{first_name}}, a quick tip for you this week.",
"delay_minutes": 4320,
},
],
},
)
response.raise_for_status()
print(response.json())const response = await fetch("https://api.smartchat.marketing/v1/followup-sequences", {
method: "POST",
headers: {
Authorization: `Bearer ${process.env.SMARTCHAT_API_KEY}`,
"Idempotency-Key": crypto.randomUUID(),
"Content-Type": "application/json",
},
body: JSON.stringify({
"name": "Welcome series",
"steps": [
{
"text": "Hi {{first_name}}, thanks for joining. Here is what to expect from us.",
"delay_minutes": 1440
},
{
"text": "Hi {{first_name}}, a quick tip for you this week.",
"delay_minutes": 4320
}
]
}),
});
if (!response.ok) throw new Error(await response.text());
console.log(await response.json());Response (201):
{
"object": "followup_sequence",
"id": "fup_7b1d3f5a9c2e4a6b8d0f1e3c5a7b9d2f",
"name": "Welcome series",
"trigger": "signup",
"status": "draft",
"steps": [
{
"object": "followup_step",
"id": "stp_1a2b3c4d5e6f47a8b9c0d1e2f3a4b5c6",
"position": 1,
"delay_minutes": 1440,
"text": "Hi {{first_name}}, thanks for joining. Here is what to expect from us.",
"template_id": null,
"template_status": null,
"send_time": null
},
{
"object": "followup_step",
"id": "stp_6f5e4d3c2b1a4f9e8d7c6b5a4f3e2d1c",
"position": 2,
"delay_minutes": 4320,
"text": "Hi {{first_name}}, a quick tip for you this week.",
"template_id": null,
"template_status": null,
"send_time": null
}
],
"created_at": "2026-10-25T09:41:07Z"
}#Response
Status 201. Every response has the headers Request-Id, SmartChat-Version and X-RateLimit-*.
| Name | Type | Description |
|---|---|---|
object | string | Always "followup_sequence". always followup_sequence |
id | string | Sequence ID. |
name | string | Name of the sequence. up to 200 characters |
trigger | string | What starts the sequence. Today: signup (after the opt-in confirmation). up to 40 characters |
status | string | draft and paused send nothing. active sends. one of: draft, active, paused |
steps | array of object | The steps in order. up to 100 items |
steps[].object | string | Always "followup_step". always followup_step |
steps[].id | string | Step ID. |
steps[].position | integer | Order of the step, starting at 1. 1 to 100 |
steps[].delay_minutes | integer | Wait before this step. For step 1 the wait after the opt-in confirmation, for later steps the wait after the step before. 0 to 525600 |
steps[].text | string | Message text of the step. up to 20000 characters |
steps[].template_id | string or null | ID of the template that carries this step, or null if none exists yet. up to 36 characters |
steps[].template_status | string or null | Approval state of that template. one of: draft, pending, approved, rejected, paused, disabled, null |
steps[].send_time | string or null | Time of day HH:MM for this step, or null for the account default. up to 5 characters |
created_at | string | When the sequence was created. up to 40 characters; format date-time |
#Errors
| Code | Status | When |
|---|---|---|
bad_request | 400 | The request could not be read. |
idempotency_key_invalid | 400 | The 'Idempotency-Key' header must be 1 to 255 visible ASCII characters. |
idempotency_key_required | 400 | This call needs an 'Idempotency-Key' header. |
missing_parameter | 400 | A required field is missing. |
unknown_parameter | 400 | A field is not known. |
api_key_expired | 401 | This API key has expired. |
api_key_invalid | 401 | This API key is not valid. |
api_key_revoked | 401 | This API key was revoked. |
authentication_required | 401 | No API key was sent. Send 'Authorization: Bearer <key>'. |
account_blocked | 403 | This account is blocked. |
insufficient_scope | 403 | This key lacks a required permission. |
ip_not_allowed | 403 | This IP address is not allowed for this key. |
idempotency_in_progress | 409 | A request with this idempotency key is still running. |
idempotency_key_reused | 422 | This idempotency key was already used with a different request. |
validation_failed | 422 | A field is not valid. |
rate_limited | 429 | Too many requests. Wait and try again. |
internal_error | 500 | Something went wrong on our side. |
not_available | 501 | This function is not active in this release. |
service_unavailable | 503 | The service is temporarily unavailable. |
All errors use one format.