Manually move leads to a subsequence
curl --request POST \
--url https://api.coldsend.pro/api/public/v1/campaigns/{campaign_id}/leads/move-to-subsequence \
--header 'Content-Type: application/json' \
--header 'X-API-Key: <api-key>' \
--data '
{
"lead_ids": [
"3c90c3cc-0d44-4b50-8888-8dd25736052a"
],
"target_subsequence_node_id": "3c90c3cc-0d44-4b50-8888-8dd25736052a"
}
'import requests
url = "https://api.coldsend.pro/api/public/v1/campaigns/{campaign_id}/leads/move-to-subsequence"
payload = {
"lead_ids": ["3c90c3cc-0d44-4b50-8888-8dd25736052a"],
"target_subsequence_node_id": "3c90c3cc-0d44-4b50-8888-8dd25736052a"
}
headers = {
"X-API-Key": "<api-key>",
"Content-Type": "application/json"
}
response = requests.post(url, json=payload, headers=headers)
print(response.text)const options = {
method: 'POST',
headers: {'X-API-Key': '<api-key>', 'Content-Type': 'application/json'},
body: JSON.stringify({
lead_ids: ['3c90c3cc-0d44-4b50-8888-8dd25736052a'],
target_subsequence_node_id: '3c90c3cc-0d44-4b50-8888-8dd25736052a'
})
};
fetch('https://api.coldsend.pro/api/public/v1/campaigns/{campaign_id}/leads/move-to-subsequence', options)
.then(res => res.json())
.then(res => console.log(res))
.catch(err => console.error(err));<?php
$curl = curl_init();
curl_setopt_array($curl, [
CURLOPT_URL => "https://api.coldsend.pro/api/public/v1/campaigns/{campaign_id}/leads/move-to-subsequence",
CURLOPT_RETURNTRANSFER => true,
CURLOPT_ENCODING => "",
CURLOPT_MAXREDIRS => 10,
CURLOPT_TIMEOUT => 30,
CURLOPT_HTTP_VERSION => CURL_HTTP_VERSION_1_1,
CURLOPT_CUSTOMREQUEST => "POST",
CURLOPT_POSTFIELDS => json_encode([
'lead_ids' => [
'3c90c3cc-0d44-4b50-8888-8dd25736052a'
],
'target_subsequence_node_id' => '3c90c3cc-0d44-4b50-8888-8dd25736052a'
]),
CURLOPT_HTTPHEADER => [
"Content-Type: application/json",
"X-API-Key: <api-key>"
],
]);
$response = curl_exec($curl);
$err = curl_error($curl);
curl_close($curl);
if ($err) {
echo "cURL Error #:" . $err;
} else {
echo $response;
}package main
import (
"fmt"
"strings"
"net/http"
"io"
)
func main() {
url := "https://api.coldsend.pro/api/public/v1/campaigns/{campaign_id}/leads/move-to-subsequence"
payload := strings.NewReader("{\n \"lead_ids\": [\n \"3c90c3cc-0d44-4b50-8888-8dd25736052a\"\n ],\n \"target_subsequence_node_id\": \"3c90c3cc-0d44-4b50-8888-8dd25736052a\"\n}")
req, _ := http.NewRequest("POST", url, payload)
req.Header.Add("X-API-Key", "<api-key>")
req.Header.Add("Content-Type", "application/json")
res, _ := http.DefaultClient.Do(req)
defer res.Body.Close()
body, _ := io.ReadAll(res.Body)
fmt.Println(string(body))
}HttpResponse<String> response = Unirest.post("https://api.coldsend.pro/api/public/v1/campaigns/{campaign_id}/leads/move-to-subsequence")
.header("X-API-Key", "<api-key>")
.header("Content-Type", "application/json")
.body("{\n \"lead_ids\": [\n \"3c90c3cc-0d44-4b50-8888-8dd25736052a\"\n ],\n \"target_subsequence_node_id\": \"3c90c3cc-0d44-4b50-8888-8dd25736052a\"\n}")
.asString();require 'uri'
require 'net/http'
url = URI("https://api.coldsend.pro/api/public/v1/campaigns/{campaign_id}/leads/move-to-subsequence")
http = Net::HTTP.new(url.host, url.port)
http.use_ssl = true
request = Net::HTTP::Post.new(url)
request["X-API-Key"] = '<api-key>'
request["Content-Type"] = 'application/json'
request.body = "{\n \"lead_ids\": [\n \"3c90c3cc-0d44-4b50-8888-8dd25736052a\"\n ],\n \"target_subsequence_node_id\": \"3c90c3cc-0d44-4b50-8888-8dd25736052a\"\n}"
response = http.request(request)
puts response.read_body{
"success_count": 123,
"skipped_leads": [
"3c90c3cc-0d44-4b50-8888-8dd25736052a"
],
"enrollments": [
{
"id": "3c90c3cc-0d44-4b50-8888-8dd25736052a",
"lead_id": "3c90c3cc-0d44-4b50-8888-8dd25736052a",
"campaign_id": "3c90c3cc-0d44-4b50-8888-8dd25736052a",
"entry_node_id": "3c90c3cc-0d44-4b50-8888-8dd25736052a",
"entered_at": "2023-11-07T05:31:56Z",
"entry_edge_id": "3c90c3cc-0d44-4b50-8888-8dd25736052a",
"trigger_reason": "<string>",
"completed_at": "2023-11-07T05:31:56Z"
}
]
}Flow
Manually move leads to a subsequence
Move leads into a subsequence branch by hand
Enrols the given leads in a branch without waiting for its trigger to fire, and invalidates their pending MAIN-path follow-ups so they stop receiving the main chain. Use it to act on a signal ColdSend cannot see — a call, a LinkedIn reply, a manual qualification decision.
Rules
target_subsequence_node_idmust be a SUBSEQUENCE node; targeting a MAIN node is rejected with 400. Get node ids fromGET /campaigns/{id}/flow.- The campaign must have
subsequences_enabledtrue, else 400. - 1 to 500 lead ids per call; more than 500 is a 422.
- A lead already enrolled in that branch is skipped, not re-enrolled and
not an error — it comes back in
skipped_leads. - Leads that do not belong to this campaign are skipped too.
Response
success_count is the number newly enrolled, skipped_leads the ids that
were not, and enrollments one row per new enrollment with its
trigger_reason set to Manual move via API.
Example Usage
import requests
campaign_id = "550e8400-e29b-41d4-a716-446655440000"
response = requests.post(
f"https://api.coldsend.pro/api/public/v1/campaigns/{campaign_id}/leads/move-to-subsequence",
headers={"X-API-Key": "your-api-key"},
json={
"lead_ids": [
"650e8400-e29b-41d4-a716-446655440000",
"650e8400-e29b-41d4-a716-446655440001"
],
"target_subsequence_node_id": "850e8400-e29b-41d4-a716-446655440000"
}
)
print(response.json())
# {"success_count": 2, "skipped_leads": [], "enrollments": [...]}
POST
/
api
/
public
/
v1
/
campaigns
/
{campaign_id}
/
leads
/
move-to-subsequence
Manually move leads to a subsequence
curl --request POST \
--url https://api.coldsend.pro/api/public/v1/campaigns/{campaign_id}/leads/move-to-subsequence \
--header 'Content-Type: application/json' \
--header 'X-API-Key: <api-key>' \
--data '
{
"lead_ids": [
"3c90c3cc-0d44-4b50-8888-8dd25736052a"
],
"target_subsequence_node_id": "3c90c3cc-0d44-4b50-8888-8dd25736052a"
}
'import requests
url = "https://api.coldsend.pro/api/public/v1/campaigns/{campaign_id}/leads/move-to-subsequence"
payload = {
"lead_ids": ["3c90c3cc-0d44-4b50-8888-8dd25736052a"],
"target_subsequence_node_id": "3c90c3cc-0d44-4b50-8888-8dd25736052a"
}
headers = {
"X-API-Key": "<api-key>",
"Content-Type": "application/json"
}
response = requests.post(url, json=payload, headers=headers)
print(response.text)const options = {
method: 'POST',
headers: {'X-API-Key': '<api-key>', 'Content-Type': 'application/json'},
body: JSON.stringify({
lead_ids: ['3c90c3cc-0d44-4b50-8888-8dd25736052a'],
target_subsequence_node_id: '3c90c3cc-0d44-4b50-8888-8dd25736052a'
})
};
fetch('https://api.coldsend.pro/api/public/v1/campaigns/{campaign_id}/leads/move-to-subsequence', options)
.then(res => res.json())
.then(res => console.log(res))
.catch(err => console.error(err));<?php
$curl = curl_init();
curl_setopt_array($curl, [
CURLOPT_URL => "https://api.coldsend.pro/api/public/v1/campaigns/{campaign_id}/leads/move-to-subsequence",
CURLOPT_RETURNTRANSFER => true,
CURLOPT_ENCODING => "",
CURLOPT_MAXREDIRS => 10,
CURLOPT_TIMEOUT => 30,
CURLOPT_HTTP_VERSION => CURL_HTTP_VERSION_1_1,
CURLOPT_CUSTOMREQUEST => "POST",
CURLOPT_POSTFIELDS => json_encode([
'lead_ids' => [
'3c90c3cc-0d44-4b50-8888-8dd25736052a'
],
'target_subsequence_node_id' => '3c90c3cc-0d44-4b50-8888-8dd25736052a'
]),
CURLOPT_HTTPHEADER => [
"Content-Type: application/json",
"X-API-Key: <api-key>"
],
]);
$response = curl_exec($curl);
$err = curl_error($curl);
curl_close($curl);
if ($err) {
echo "cURL Error #:" . $err;
} else {
echo $response;
}package main
import (
"fmt"
"strings"
"net/http"
"io"
)
func main() {
url := "https://api.coldsend.pro/api/public/v1/campaigns/{campaign_id}/leads/move-to-subsequence"
payload := strings.NewReader("{\n \"lead_ids\": [\n \"3c90c3cc-0d44-4b50-8888-8dd25736052a\"\n ],\n \"target_subsequence_node_id\": \"3c90c3cc-0d44-4b50-8888-8dd25736052a\"\n}")
req, _ := http.NewRequest("POST", url, payload)
req.Header.Add("X-API-Key", "<api-key>")
req.Header.Add("Content-Type", "application/json")
res, _ := http.DefaultClient.Do(req)
defer res.Body.Close()
body, _ := io.ReadAll(res.Body)
fmt.Println(string(body))
}HttpResponse<String> response = Unirest.post("https://api.coldsend.pro/api/public/v1/campaigns/{campaign_id}/leads/move-to-subsequence")
.header("X-API-Key", "<api-key>")
.header("Content-Type", "application/json")
.body("{\n \"lead_ids\": [\n \"3c90c3cc-0d44-4b50-8888-8dd25736052a\"\n ],\n \"target_subsequence_node_id\": \"3c90c3cc-0d44-4b50-8888-8dd25736052a\"\n}")
.asString();require 'uri'
require 'net/http'
url = URI("https://api.coldsend.pro/api/public/v1/campaigns/{campaign_id}/leads/move-to-subsequence")
http = Net::HTTP.new(url.host, url.port)
http.use_ssl = true
request = Net::HTTP::Post.new(url)
request["X-API-Key"] = '<api-key>'
request["Content-Type"] = 'application/json'
request.body = "{\n \"lead_ids\": [\n \"3c90c3cc-0d44-4b50-8888-8dd25736052a\"\n ],\n \"target_subsequence_node_id\": \"3c90c3cc-0d44-4b50-8888-8dd25736052a\"\n}"
response = http.request(request)
puts response.read_body{
"success_count": 123,
"skipped_leads": [
"3c90c3cc-0d44-4b50-8888-8dd25736052a"
],
"enrollments": [
{
"id": "3c90c3cc-0d44-4b50-8888-8dd25736052a",
"lead_id": "3c90c3cc-0d44-4b50-8888-8dd25736052a",
"campaign_id": "3c90c3cc-0d44-4b50-8888-8dd25736052a",
"entry_node_id": "3c90c3cc-0d44-4b50-8888-8dd25736052a",
"entered_at": "2023-11-07T05:31:56Z",
"entry_edge_id": "3c90c3cc-0d44-4b50-8888-8dd25736052a",
"trigger_reason": "<string>",
"completed_at": "2023-11-07T05:31:56Z"
}
]
}Authorizations
API key with format cs_live_xxx
Path Parameters
Body
application/json
Was this page helpful?

