curl --request POST \
--url https://multichannel-api.salesforge.ai/public/multichannel/workspaces/{workspaceID}/sequences/tree \
--header 'Authorization: <api-key>' \
--header 'Content-Type: application/json' \
--data '{}'const options = {
method: 'POST',
headers: {Authorization: '<api-key>', 'Content-Type': 'application/json'},
body: JSON.stringify({})
};
fetch('https://multichannel-api.salesforge.ai/public/multichannel/workspaces/{workspaceID}/sequences/tree', options)
.then(res => res.json())
.then(res => console.log(res))
.catch(err => console.error(err));const options = {
method: 'POST',
headers: {Authorization: '<api-key>', 'Content-Type': 'application/json'},
body: JSON.stringify({})
};
fetch('https://multichannel-api.salesforge.ai/public/multichannel/workspaces/{workspaceID}/sequences/tree', options)
.then(res => res.json())
.then(res => console.log(res))
.catch(err => console.error(err));const url = 'https://multichannel-api.salesforge.ai/public/multichannel/workspaces/{workspaceID}/sequences/tree';
const options = {
method: 'POST',
headers: {Authorization: '<api-key>', 'Content-Type': 'application/json'},
body: JSON.stringify({})
};
fetch(url, options)
.then(res => res.json())
.then(json => console.log(json))
.catch(err => console.error(err));import requests
url = "https://multichannel-api.salesforge.ai/public/multichannel/workspaces/{workspaceID}/sequences/tree"
payload = {}
headers = {
"Authorization": "<api-key>",
"Content-Type": "application/json"
}
response = requests.post(url, json=payload, headers=headers)
print(response.text)package main
import (
"fmt"
"strings"
"net/http"
"io"
)
func main() {
url := "https://multichannel-api.salesforge.ai/public/multichannel/workspaces/{workspaceID}/sequences/tree"
payload := strings.NewReader("{}")
req, _ := http.NewRequest("POST", url, payload)
req.Header.Add("Authorization", "<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://multichannel-api.salesforge.ai/public/multichannel/workspaces/{workspaceID}/sequences/tree")
.header("Authorization", "<api-key>")
.header("Content-Type", "application/json")
.body("{}")
.asString();using RestSharp;
var options = new RestClientOptions("https://multichannel-api.salesforge.ai/public/multichannel/workspaces/{workspaceID}/sequences/tree");
var client = new RestClient(options);
var request = new RestRequest("");
request.AddHeader("Authorization", "<api-key>");
request.AddJsonBody("{}", false);
var response = await client.PostAsync(request);
Console.WriteLine("{0}", response.Content);
<?php
$curl = curl_init();
curl_setopt_array($curl, [
CURLOPT_URL => "https://multichannel-api.salesforge.ai/public/multichannel/workspaces/{workspaceID}/sequences/tree",
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([
]),
CURLOPT_HTTPHEADER => [
"Authorization: <api-key>",
"Content-Type: application/json"
],
]);
$response = curl_exec($curl);
$err = curl_error($curl);
curl_close($curl);
if ($err) {
echo "cURL Error #:" . $err;
} else {
echo $response;
}require 'uri'
require 'net/http'
url = URI("https://multichannel-api.salesforge.ai/public/multichannel/workspaces/{workspaceID}/sequences/tree")
http = Net::HTTP.new(url.host, url.port)
http.use_ssl = true
request = Net::HTTP::Post.new(url)
request["Authorization"] = '<api-key>'
request["Content-Type"] = 'application/json'
request.body = "{}"
response = http.request(request)
puts response.read_body{
"nodes": [
{
"actionId": 123,
"analytics": {
"active": 123,
"completed": 123,
"endValue": 123,
"failed": 123
},
"branches": [
{
"analytics": {
"count": 123,
"percentage": 123
},
"description": "<string>",
"fromNodeId": 123,
"id": 123,
"name": "<string>",
"toNodeId": 123
}
],
"conditionId": 123,
"distributionStrategy": "<string>",
"id": 123,
"ref": "<string>",
"sequenceId": 123,
"type": "<string>",
"variants": [
{
"exposureInPercentage": 123,
"id": 123,
"isEnabled": true,
"metadata": {
"allowedValidationStatuses": [
"<string>"
],
"contentSource": "api",
"message": "<string>",
"name": "<string>",
"subject": "<string>"
},
"nodeId": 123
}
],
"waitInMinutes": 123,
"waitType": "<string>"
}
],
"sequence": {
"builderMode": "<string>",
"description": "<string>",
"id": 123,
"kind": "<string>",
"name": "<string>",
"settings": {
"bcc": "<string>",
"bounceShieldEnabled": true,
"cc": "<string>",
"ccAndBccEnabled": true,
"clickTrackingEnabled": true,
"companyOutreachLimitCount": 123,
"companyOutreachLimitEnabled": true,
"espMatchingEnabled": true,
"localizedOptOutEnabled": true,
"openTrackingEnabled": true,
"opportunitiesValue": 123,
"optOutLinkEnabled": true,
"optOutLinkText": "<string>",
"optOutText": "<string>",
"optOutTextEnabled": true,
"pauseOnClick": true,
"pauseOnOpen": true,
"plainTextEmailsEnabled": true,
"sendingPriority": "regular",
"sequentialCompanySendingEnabled": true,
"taskPriorityPolicy": "new_contacts",
"trackOpportunitiesEnabled": true
},
"status": "<string>",
"timezone": "<string>",
"timezoneMode": "sequence"
}
}{
"data": "<unknown>",
"message": "Invalid request body"
}{
"data": "<unknown>",
"message": "Invalid request body"
}{
"data": "<unknown>",
"message": "Invalid request body"
}{
"data": "<unknown>",
"message": "Invalid request body"
}Create sequence with steps
Creates a sequence together with its settings, schedule and whole step tree in one request, instead of creating each node separately. Steps in a list run one after another. A condition must be the last step of its list; the steps that follow it go in its branches, keyed by branch name (e.g. “yes”, “no”). A branch that is left out or empty ends the sequence on that path. Steps are validated with the same rules as the single node endpoints. If anything is invalid, nothing is created. The schedule works like the schedule endpoint: a day that is left out is disabled, so list every sending day. Without a schedule the sequence sends Monday to Friday 8 to 18. Required follow-up conditions (e.g. “request accepted within days” after a LinkedIn connection request) are not added automatically; include them in the tree.
curl --request POST \
--url https://multichannel-api.salesforge.ai/public/multichannel/workspaces/{workspaceID}/sequences/tree \
--header 'Authorization: <api-key>' \
--header 'Content-Type: application/json' \
--data '{}'const options = {
method: 'POST',
headers: {Authorization: '<api-key>', 'Content-Type': 'application/json'},
body: JSON.stringify({})
};
fetch('https://multichannel-api.salesforge.ai/public/multichannel/workspaces/{workspaceID}/sequences/tree', options)
.then(res => res.json())
.then(res => console.log(res))
.catch(err => console.error(err));const options = {
method: 'POST',
headers: {Authorization: '<api-key>', 'Content-Type': 'application/json'},
body: JSON.stringify({})
};
fetch('https://multichannel-api.salesforge.ai/public/multichannel/workspaces/{workspaceID}/sequences/tree', options)
.then(res => res.json())
.then(res => console.log(res))
.catch(err => console.error(err));const url = 'https://multichannel-api.salesforge.ai/public/multichannel/workspaces/{workspaceID}/sequences/tree';
const options = {
method: 'POST',
headers: {Authorization: '<api-key>', 'Content-Type': 'application/json'},
body: JSON.stringify({})
};
fetch(url, options)
.then(res => res.json())
.then(json => console.log(json))
.catch(err => console.error(err));import requests
url = "https://multichannel-api.salesforge.ai/public/multichannel/workspaces/{workspaceID}/sequences/tree"
payload = {}
headers = {
"Authorization": "<api-key>",
"Content-Type": "application/json"
}
response = requests.post(url, json=payload, headers=headers)
print(response.text)package main
import (
"fmt"
"strings"
"net/http"
"io"
)
func main() {
url := "https://multichannel-api.salesforge.ai/public/multichannel/workspaces/{workspaceID}/sequences/tree"
payload := strings.NewReader("{}")
req, _ := http.NewRequest("POST", url, payload)
req.Header.Add("Authorization", "<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://multichannel-api.salesforge.ai/public/multichannel/workspaces/{workspaceID}/sequences/tree")
.header("Authorization", "<api-key>")
.header("Content-Type", "application/json")
.body("{}")
.asString();using RestSharp;
var options = new RestClientOptions("https://multichannel-api.salesforge.ai/public/multichannel/workspaces/{workspaceID}/sequences/tree");
var client = new RestClient(options);
var request = new RestRequest("");
request.AddHeader("Authorization", "<api-key>");
request.AddJsonBody("{}", false);
var response = await client.PostAsync(request);
Console.WriteLine("{0}", response.Content);
<?php
$curl = curl_init();
curl_setopt_array($curl, [
CURLOPT_URL => "https://multichannel-api.salesforge.ai/public/multichannel/workspaces/{workspaceID}/sequences/tree",
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([
]),
CURLOPT_HTTPHEADER => [
"Authorization: <api-key>",
"Content-Type: application/json"
],
]);
$response = curl_exec($curl);
$err = curl_error($curl);
curl_close($curl);
if ($err) {
echo "cURL Error #:" . $err;
} else {
echo $response;
}require 'uri'
require 'net/http'
url = URI("https://multichannel-api.salesforge.ai/public/multichannel/workspaces/{workspaceID}/sequences/tree")
http = Net::HTTP.new(url.host, url.port)
http.use_ssl = true
request = Net::HTTP::Post.new(url)
request["Authorization"] = '<api-key>'
request["Content-Type"] = 'application/json'
request.body = "{}"
response = http.request(request)
puts response.read_body{
"nodes": [
{
"actionId": 123,
"analytics": {
"active": 123,
"completed": 123,
"endValue": 123,
"failed": 123
},
"branches": [
{
"analytics": {
"count": 123,
"percentage": 123
},
"description": "<string>",
"fromNodeId": 123,
"id": 123,
"name": "<string>",
"toNodeId": 123
}
],
"conditionId": 123,
"distributionStrategy": "<string>",
"id": 123,
"ref": "<string>",
"sequenceId": 123,
"type": "<string>",
"variants": [
{
"exposureInPercentage": 123,
"id": 123,
"isEnabled": true,
"metadata": {
"allowedValidationStatuses": [
"<string>"
],
"contentSource": "api",
"message": "<string>",
"name": "<string>",
"subject": "<string>"
},
"nodeId": 123
}
],
"waitInMinutes": 123,
"waitType": "<string>"
}
],
"sequence": {
"builderMode": "<string>",
"description": "<string>",
"id": 123,
"kind": "<string>",
"name": "<string>",
"settings": {
"bcc": "<string>",
"bounceShieldEnabled": true,
"cc": "<string>",
"ccAndBccEnabled": true,
"clickTrackingEnabled": true,
"companyOutreachLimitCount": 123,
"companyOutreachLimitEnabled": true,
"espMatchingEnabled": true,
"localizedOptOutEnabled": true,
"openTrackingEnabled": true,
"opportunitiesValue": 123,
"optOutLinkEnabled": true,
"optOutLinkText": "<string>",
"optOutText": "<string>",
"optOutTextEnabled": true,
"pauseOnClick": true,
"pauseOnOpen": true,
"plainTextEmailsEnabled": true,
"sendingPriority": "regular",
"sequentialCompanySendingEnabled": true,
"taskPriorityPolicy": "new_contacts",
"trackOpportunitiesEnabled": true
},
"status": "<string>",
"timezone": "<string>",
"timezoneMode": "sequence"
}
}{
"data": "<unknown>",
"message": "Invalid request body"
}{
"data": "<unknown>",
"message": "Invalid request body"
}{
"data": "<unknown>",
"message": "Invalid request body"
}{
"data": "<unknown>",
"message": "Invalid request body"
}Body
Create sequence with steps request. The timezone field is required and accepts only IANA time zone names (e.g., America/New_York).
- Option 1
- Option 2
The body is of type object.
Was this page helpful?
