Building a webhook integration? Read the webhook guide for signatures, retries, event schemas, and troubleshooting.
apiDeterministic

Create subsequence

POST /api/campaigns/{campaignId}/subsequences

Create a follow-up subsequence on a campaign for a given trigger type. Only one subsequence per trigger (or per custom tag) is allowed per campaign. Omit workflowDefinition to use the system default single-step workflow for the trigger.

Parameters

workspaceId
string
Optional workspace ID or slug. Required when this credential can access multiple workspaces and no workspace was configured on the client.
campaignIdrequired
string
No description.
triggerrequired
string
What causes this subsequence to fire.
interested_reply | meeting_request | no_reply | custom_tag
triggerTag
string
Required when trigger is custom_tag. The inbox tag name that fires this subsequence. Cannot be a built-in pipeline tag.
name
string
No description.
enabled
boolean
Defaults to false (disabled) unless set.
triggerConfig
object
e.g. { noReplyDays: 3 } for the no_reply trigger.
workflowDefinition
object
ReactFlow-style { nodes, edges } graph of message steps with delays. Omit to use the default workflow for the trigger type.

Example

REST requestbash
curl -X POST "https://app.pipeline.help/api/campaigns/00000000-0000-4000-8000-000000000000/subsequences" \
-H "Authorization: Bearer $PIPELINE_API_KEY" \
-H "Content-Type: application/json" \
-d '{"trigger":"interested_reply"}'

Response

The operation is available, but its typed response schema has not been published yet.

HTTP errors

401
Missing or invalid API key.
403
Authenticated but not permitted for the workspace or resource.
404
The requested resource was not found.
Pipeline REST API reference | Pipeline