GetCampaignSequenceV2
Retrieves the current sequence (workflow) of a campaign with every message version in full - text and voice alike.
The v2 version of GetCampaignSequence, and the read to use for a campaign with voice notes. A MESSAGE node’s payload carries messageVersions: every version of the step, voice versions included, each with the length and transcript of the recording behind it.
The returned object can be sent as-is in the sequence field of CreateV2 and UpdateSequenceV2. Do not send it to the v1 Create or UpdateSequence: they refuse a non-empty messageVersions with 400. Returns an empty 200 response if the campaign has no sequence.
Query Parameters
- campaignId (long, required): The campaign whose sequence to retrieve.
What the response contains
The node and message version fields are described on UpdateSequenceV2. Every node type other than MESSAGE returns the same payload as GetCampaignSequence, including its rules for the SEND_LEAD_TO_* external lead flags.
-
A STATIC voice version that holds a recording reports the recording’s
durationMsandtranscript. ItsstaticClipTranscriptis always the recording’s own transcript, and itsimportedTranscriptisnull. -
A STATIC version without a recording has
staticClipId: nullandneedsRecording: true- for example a step that arrived in a shared sequence, which never carries audio. It shows the transcripts it arrived with instaticClipTranscriptandimportedTranscript. Give it a recording before you send the sequence back (see UpdateSequenceV2). -
A version whose
staticClipIdis not a recording in your workspace comes back with that id and withdurationMs,transcriptandstaticClipTranscriptset tonull. The read still answers 200, but sending that version back is rejected with 400STATIC_CLIP_NOT_FOUND. -
messageon a STATIC version is always empty (""ornull). -
TEXT and DYNAMIC versions return
staticClipId,durationMs,transcript,staticClipTranscriptandimportedTranscriptasnull, andneedsRecordingasfalse.
Errors
- 404
CAMPAIGN_NOT_FOUND: no campaign with this id in the workspace. - 404
CAMPAIGN_API_NOT_ENABLED: the campaign API is not enabled for your account.
Headers
API key header using this scheme. Example: “X-API-KEY: {API_KEY}”
Query parameters
Response
The wait before this node runs, in actionDelayUnit. A node after an action step needs at least 3 hours - see UpdateSequenceV2.
Unit of actionDelay.
Node-specific configuration. A MESSAGE node uses the v2 message payload; every other node type uses its v1 payload (see UpdateSequence). VIEW_PROFILE, FOLLOW, FIND_EMAIL, CHECK_IS_CONNECTION, CHECK_IS_OPEN_PROFILE and END have no payload.
The next node when the branching condition is true. On MESSAGE and INMAIL, the END node taken when the lead replies.
The next node to follow unconditionally, or when a branching condition is false. Required for every node except END.
