Skip to main content
POST
Create a subsequence

Authorizations

X-API-Key
string
header
required

API key with format cs_live_xxx

Path Parameters

campaign_id
string<uuid>
required

Body

application/json

Convenience request to create a full subsequence branch.

Bundles the entry condition (trigger type + params + priority) with a list of steps that form a linear chain of SUBSEQUENCE EMAIL nodes connected by TIMEOUT edges.

trigger_type
string
required

Entry trigger type: INTENT_TAG, KEYWORD, or STATUS

steps
SubsequenceStepCreate · object[]
required

Ordered list of subsequence steps

Minimum array length: 1
trigger_params
Trigger Params · object | null

Trigger parameters. INTENT_TAG takes tag_names: list[str] (the legacy single-value tag_name: str is still accepted); KEYWORD takes phrases: list[str]; STATUS takes status: str.

entry_from_node_id
string<uuid> | null

MAIN node that triggers entry; auto-resolved when omitted

priority
integer
default:0

Priority of the entry EVENT edge

label
string | null

Subsequence label

Maximum string length: 255

Response

Subsequence created

Response for a created/updated subsequence (entry edge + nodes).

entry_edge
FlowEdgeResponse · object
required

Response for a single flow edge.

nodes
FlowNodeResponse · object[]
required
edges
FlowEdgeResponse · object[]
required