steps_update
Partial update — only send the fields you want to change. See steps_create for template syntax reference including filters like ${field|title}, ${field|truncatechars:60}, and ${field|intcomma}.
Method: PATCH /api/v1/workspaces/{workspace_sqid}/sequences/{sequence_sqid}/steps/{sqid}/
Tool call template
Replace each placeholder with a value matching the input schema. Only required parameters are included; add optional parameters as needed.
{
"id": 1,
"jsonrpc": "2.0",
"method": "tools/call",
"params": {
"arguments": {
"sequence_sqid": "<sequence_sqid>",
"sqid": "<sqid>"
},
"name": "steps_update"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| name | No | Short human label for this step (e.g. 'First touch', 'Bump 1'). Visible only in the UI; not rendered in messages. | |
| sqid | Yes | ||
| order | No | Position in the sequence (0-indexed). Auto-assigned if omitted. | |
| channel | No | Step type. 0 = email (almost always). 4 = API: calls an external system through an AnyAPI integration profile (`action_config`) instead of sending a message, then the lead moves on. 5 = manual: a person does it — the lead waits on the Tasks list (`action_items_list`) with `description` as the instructions until someone marks it done (`campaigns_action_mark_done`); the next step, e.g. an email, does not start before that. 1-3 (call, LinkedIn, other) are reserved — don't use yet. * `0` - Email * `1` - Call * `2` - LinkedIn * `3` - Other * `4` - API * `5` - Manual | |
| delay_days | No | Days to wait after the previous step was sent (or, for an API step, completed) before running this one. Use 0 for the first step. Typical cadence: 0, 3, 7, 12, 21. If sending is delayed, the next step's timer starts from the actual date. **API step pacing:** an email at 0 days right after an API step makes that API step run just before the send, limited by mailbox send capacity (see `is_send_coupled`); with any other delay the API step runs as soon as it is due, unthrottled — use that for actions between emails. | |
| description | No | What this step is for. Required on a manual step (channel 5): the instructions shown on the Tasks list, with lead variables such as ${first_name} filled in. | |
| action_config | No | API steps only (channel 4): the AnyAPI config, same shape as an `anyapi` automation's config — `profile_sqid` (from `workspaces_enrichment_profiles_list`), `settings`, `input_mapping` ({profile input: lead field}), `output_mapping` ({profile output: context field}) and optional `required_outputs` (profile outputs that must come back non-empty, else the step fails). Profile templates can use `{{run.key}}` — stable across retries of the same lead's step — as an Idempotency-Key. Credentials read back as `********`; send that value back unchanged to keep the stored one. Must be empty on email steps. | |
| sequence_sqid | Yes | ||
| message_template | No | Email body (plain text). Same template syntax as subject (${var}, ${var|filter}, {{prompt}}, {a|b|c}). Available filters: title, lower, upper, truncatechars:N, intcomma, intword, ordinal, apnumber, rstrip_punct. Best practice: 4–6 short sentences, one ask, no images or tracking pixels, no links in the signature. Keep {unsubscribe_link} in the footer when targeting EU/Canada. | |
| subject_template | No | Email subject line. Supports ${var} lead-field substitution (with filters: ${var|title}, ${var|intcomma}, ${var|truncatechars:40}), {{prompt}} AI snippets, and {a|b|c} spintax. Subjects perform best when they read like human replies: under 8 words, no marketing language, no emoji. |