Skip to main content
POST
Create branching campaign logic by defining subsequences that trigger based on lead behavior. Essential for sophisticated nurture workflows.

Query Parameters

string
required
Your SmartLead API key

Request Body

number
required
ID of the parent campaign this subsequence belongs to
string
Name for the subsequence campaign. Defaults to "Untitled Subsequence" if not provided.
array
Array of trigger conditions that move a lead into this subsequence. Pass [] to create a subsequence with no conditions.
number
Client ID (for agency/white-label accounts)
The top-level body keys use snake_case (parent_campaign_id, client_id) while the nested condition keys use camelCase (eventType, categoryId, eventSubType). The conditionEvents key itself is also camelCase.
The API supports 5 event types listed above. Additional event types visible in the UI (such as re-engagement, bounce-based, opens/clicks counters, and LinkedIn events) are not available through this endpoint.

Response Fields

boolean
true on successful creation
number
Unique identifier for the newly created subsequence campaign
string
Subsequence name (either provided or "Untitled Subsequence")
number
ID of the parent campaign
string
ISO 8601 timestamp when the subsequence was created

Response Codes

Success
Subsequence campaign created successfully
Bad Request
Invalid request body. The endpoint validates body keys strictly — unrecognized keys are rejected.
Unauthorized
Invalid or missing API key
Validation Error
Request validation failed. Check parameter types and required fields.
Internal Server Error
Server error occurred