smartchat

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

Permissionfollowups:write (all permissions)
RiskWrite (no outside effect)
Idempotency-KeyRequired (how it works)
Safe to repeatSafe to repeat with the same Idempotency-Key: the first answer comes back and nothing is done twice.
Rate limit classwrite (120 requests per minute per key)
ConfirmationNone
MCP toolsave_followup_sequence
Since version2026-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

NameRequiredDescription
AuthorizationyesBearer <key>
Idempotency-KeyyesA unique value for this operation, for example a UUID (1 to 255 visible ASCII characters).

Body (JSON)

NameTypeRequiredDescription
namestringyesName of the sequence. length 1 to 200
stepsarray of objectyesThe steps in order. up to 10 items
steps[].textstringyesMessage 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_minutesintegeryesWait 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-*.

NameTypeDescription
objectstringAlways "followup_sequence". always followup_sequence
idstringSequence ID.
namestringName of the sequence. up to 200 characters
triggerstringWhat starts the sequence. Today: signup (after the opt-in confirmation). up to 40 characters
statusstringdraft and paused send nothing. active sends. one of: draft, active, paused
stepsarray of objectThe steps in order. up to 100 items
steps[].objectstringAlways "followup_step". always followup_step
steps[].idstringStep ID.
steps[].positionintegerOrder of the step, starting at 1. 1 to 100
steps[].delay_minutesintegerWait 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[].textstringMessage text of the step. up to 20000 characters
steps[].template_idstring or nullID of the template that carries this step, or null if none exists yet. up to 36 characters
steps[].template_statusstring or nullApproval state of that template. one of: draft, pending, approved, rejected, paused, disabled, null
steps[].send_timestring or nullTime of day HH:MM for this step, or null for the account default. up to 5 characters
created_atstringWhen the sequence was created. up to 40 characters; format date-time

#Errors

CodeStatusWhen
bad_request400The request could not be read.
idempotency_key_invalid400The 'Idempotency-Key' header must be 1 to 255 visible ASCII characters.
idempotency_key_required400This call needs an 'Idempotency-Key' header.
missing_parameter400A required field is missing.
unknown_parameter400A field is not known.
api_key_expired401This API key has expired.
api_key_invalid401This API key is not valid.
api_key_revoked401This API key was revoked.
authentication_required401No API key was sent. Send 'Authorization: Bearer <key>'.
account_blocked403This account is blocked.
insufficient_scope403This key lacks a required permission.
ip_not_allowed403This IP address is not allowed for this key.
idempotency_in_progress409A request with this idempotency key is still running.
idempotency_key_reused422This idempotency key was already used with a different request.
validation_failed422A field is not valid.
rate_limited429Too many requests. Wait and try again.
internal_error500Something went wrong on our side.
not_available501This function is not active in this release.
service_unavailable503The service is temporarily unavailable.

All errors use one format.