smartchat

Update follow-up sequence

Changes the name or status of a follow-up sequence, and the text or wait time of its steps. Setting active also schedules contacts who already confirmed. A changed text needs a new approval before it goes out.

PATCH /v1/followup-sequences/{sequence_id}

Permissionfollowups:write (all permissions)
RiskWrite (no outside effect)
Idempotency-KeyOptional (how it works)
Safe to repeatSafe by nature. With the same Idempotency-Key the first answer comes back.
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 the first answer comes back.

#Request

Header

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

Path parameters

NameTypeDescription
sequence_idstringID of the sequence, from list_followup_sequences.

Body (JSON)

NameTypeRequiredDescription
namestringnoNew name of the sequence. length 1 to 200
statusstringnoactive sends messages and needs the permission automations:run. paused and draft stop them. The fixed thank-you step cannot be switched off. one of: draft, active, paused
stepsarray of objectnoChanges to existing steps. Steps you leave out stay as they are. up to 10 items
steps[].step_idstringyesID of a step of this sequence.
steps[].textstringnoMessage 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_minutesintegernoWait 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 PATCH "https://api.smartchat.marketing/v1/followup-sequences/fup_7b1d3f5a9c2e4a6b8d0f1e3c5a7b9d2f" \
  -H "Authorization: Bearer $SMARTCHAT_API_KEY" \
  -H "Content-Type: application/json" \
  -d '{
  "status": "active"
}'
import os
import requests

response = requests.patch(
    "https://api.smartchat.marketing/v1/followup-sequences/fup_7b1d3f5a9c2e4a6b8d0f1e3c5a7b9d2f",
    headers={"Authorization": "Bearer " + os.environ["SMARTCHAT_API_KEY"]},
    json={
        "status": "active",
    },
)
response.raise_for_status()
print(response.json())
const response = await fetch("https://api.smartchat.marketing/v1/followup-sequences/fup_7b1d3f5a9c2e4a6b8d0f1e3c5a7b9d2f", {
  method: "PATCH",
  headers: {
    Authorization: `Bearer ${process.env.SMARTCHAT_API_KEY}`,
    "Content-Type": "application/json",
  },
  body: JSON.stringify({
    "status": "active"
  }),
});
if (!response.ok) throw new Error(await response.text());
console.log(await response.json());

Response (200):

{
  "object": "followup_sequence",
  "id": "fup_7b1d3f5a9c2e4a6b8d0f1e3c5a7b9d2f",
  "name": "Welcome series",
  "trigger": "signup",
  "status": "active",
  "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 200. 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.
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.
sequence_not_found404No follow-up sequence with this ID exists in this account.
step_not_found404No follow-up step with this ID exists in this account.
conflict409The state of the object does not allow this.
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.