Get sequence by ID
curl --request GET \
--url https://api.salesforge.ai/public/v2/workspaces/{workspaceID}/sequences/{sequenceID} \
--header 'Authorization: <api-key>'const options = {method: 'GET', headers: {Authorization: '<api-key>'}};
fetch('https://api.salesforge.ai/public/v2/workspaces/{workspaceID}/sequences/{sequenceID}', options)
.then(res => res.json())
.then(res => console.log(res))
.catch(err => console.error(err));const options = {method: 'GET', headers: {Authorization: '<api-key>'}};
fetch('https://api.salesforge.ai/public/v2/workspaces/{workspaceID}/sequences/{sequenceID}', options)
.then(res => res.json())
.then(res => console.log(res))
.catch(err => console.error(err));const url = 'https://api.salesforge.ai/public/v2/workspaces/{workspaceID}/sequences/{sequenceID}';
const options = {method: 'GET', headers: {Authorization: '<api-key>'}};
fetch(url, options)
.then(res => res.json())
.then(json => console.log(json))
.catch(err => console.error(err));import requests
url = "https://api.salesforge.ai/public/v2/workspaces/{workspaceID}/sequences/{sequenceID}"
headers = {"Authorization": "<api-key>"}
response = requests.get(url, headers=headers)
print(response.text)package main
import (
"fmt"
"net/http"
"io"
)
func main() {
url := "https://api.salesforge.ai/public/v2/workspaces/{workspaceID}/sequences/{sequenceID}"
req, _ := http.NewRequest("GET", url, nil)
req.Header.Add("Authorization", "<api-key>")
res, _ := http.DefaultClient.Do(req)
defer res.Body.Close()
body, _ := io.ReadAll(res.Body)
fmt.Println(string(body))
}HttpResponse<String> response = Unirest.get("https://api.salesforge.ai/public/v2/workspaces/{workspaceID}/sequences/{sequenceID}")
.header("Authorization", "<api-key>")
.asString();using RestSharp;
var options = new RestClientOptions("https://api.salesforge.ai/public/v2/workspaces/{workspaceID}/sequences/{sequenceID}");
var client = new RestClient(options);
var request = new RestRequest("");
request.AddHeader("Authorization", "<api-key>");
var response = await client.GetAsync(request);
Console.WriteLine("{0}", response.Content);
<?php
$curl = curl_init();
curl_setopt_array($curl, [
CURLOPT_URL => "https://api.salesforge.ai/public/v2/workspaces/{workspaceID}/sequences/{sequenceID}",
CURLOPT_RETURNTRANSFER => true,
CURLOPT_ENCODING => "",
CURLOPT_MAXREDIRS => 10,
CURLOPT_TIMEOUT => 30,
CURLOPT_HTTP_VERSION => CURL_HTTP_VERSION_1_1,
CURLOPT_CUSTOMREQUEST => "GET",
CURLOPT_HTTPHEADER => [
"Authorization: <api-key>"
],
]);
$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://api.salesforge.ai/public/v2/workspaces/{workspaceID}/sequences/{sequenceID}")
http = Net::HTTP.new(url.host, url.port)
http.use_ssl = true
request = Net::HTTP::Get.new(url)
request["Authorization"] = '<api-key>'
response = http.request(request)
puts response.read_body{
"agentId": "<string>",
"bouncedCount": 123,
"bouncedPercent": 123,
"clickTrackingEnabled": true,
"clickedCount": 123,
"clickedPercent": 123,
"companyOutreachLimitCount": 123,
"companyOutreachLimitEnabled": true,
"completedCount": 123,
"completedPercent": 123,
"contactedCount": 123,
"id": "<string>",
"leadCount": 123,
"localizedOptOutEnabled": true,
"mailboxes": [
{
"address": "<string>",
"firstName": "<string>",
"id": "<string>",
"lastName": "<string>"
}
],
"name": "<string>",
"openTrackingEnabled": true,
"openedCount": 123,
"openedPercent": 123,
"optOutedCount": 123,
"optOutedPercent": 123,
"productId": "<string>",
"repliedCount": 123,
"repliedPercent": 123,
"repliedPositiveCount": 123,
"repliedPositivePercent": 123,
"sequentialCompanySendingEnabled": true,
"status": "active",
"steps": [
{
"distributionStrategy": "equal",
"id": "<string>",
"name": "<string>",
"order": 123,
"variants": [
{
"contactInformationSource": "linkedin",
"distributionWeight": 123,
"dynamicLanguageEnabled": true,
"emailContent": "<string>",
"emailSubject": "<string>",
"id": "<string>",
"isGenerated": true,
"label": "<string>",
"order": 123,
"overdriveEnabled": true,
"status": "active",
"tonality": "playful"
}
],
"waitDays": 123
}
],
"workspaceId": "<string>"
}{
"data": [
{
"createdAt": "<string>",
"type": "email",
"value": "<string>"
}
],
"message": "<string>"
}{
"data": [
{
"createdAt": "<string>",
"type": "email",
"value": "<string>"
}
],
"message": "<string>"
}sequences
Get sequence by ID
Get a specific sequence by ID.
GET
/
workspaces
/
{workspaceID}
/
sequences
/
{sequenceID}
Get sequence by ID
curl --request GET \
--url https://api.salesforge.ai/public/v2/workspaces/{workspaceID}/sequences/{sequenceID} \
--header 'Authorization: <api-key>'const options = {method: 'GET', headers: {Authorization: '<api-key>'}};
fetch('https://api.salesforge.ai/public/v2/workspaces/{workspaceID}/sequences/{sequenceID}', options)
.then(res => res.json())
.then(res => console.log(res))
.catch(err => console.error(err));const options = {method: 'GET', headers: {Authorization: '<api-key>'}};
fetch('https://api.salesforge.ai/public/v2/workspaces/{workspaceID}/sequences/{sequenceID}', options)
.then(res => res.json())
.then(res => console.log(res))
.catch(err => console.error(err));const url = 'https://api.salesforge.ai/public/v2/workspaces/{workspaceID}/sequences/{sequenceID}';
const options = {method: 'GET', headers: {Authorization: '<api-key>'}};
fetch(url, options)
.then(res => res.json())
.then(json => console.log(json))
.catch(err => console.error(err));import requests
url = "https://api.salesforge.ai/public/v2/workspaces/{workspaceID}/sequences/{sequenceID}"
headers = {"Authorization": "<api-key>"}
response = requests.get(url, headers=headers)
print(response.text)package main
import (
"fmt"
"net/http"
"io"
)
func main() {
url := "https://api.salesforge.ai/public/v2/workspaces/{workspaceID}/sequences/{sequenceID}"
req, _ := http.NewRequest("GET", url, nil)
req.Header.Add("Authorization", "<api-key>")
res, _ := http.DefaultClient.Do(req)
defer res.Body.Close()
body, _ := io.ReadAll(res.Body)
fmt.Println(string(body))
}HttpResponse<String> response = Unirest.get("https://api.salesforge.ai/public/v2/workspaces/{workspaceID}/sequences/{sequenceID}")
.header("Authorization", "<api-key>")
.asString();using RestSharp;
var options = new RestClientOptions("https://api.salesforge.ai/public/v2/workspaces/{workspaceID}/sequences/{sequenceID}");
var client = new RestClient(options);
var request = new RestRequest("");
request.AddHeader("Authorization", "<api-key>");
var response = await client.GetAsync(request);
Console.WriteLine("{0}", response.Content);
<?php
$curl = curl_init();
curl_setopt_array($curl, [
CURLOPT_URL => "https://api.salesforge.ai/public/v2/workspaces/{workspaceID}/sequences/{sequenceID}",
CURLOPT_RETURNTRANSFER => true,
CURLOPT_ENCODING => "",
CURLOPT_MAXREDIRS => 10,
CURLOPT_TIMEOUT => 30,
CURLOPT_HTTP_VERSION => CURL_HTTP_VERSION_1_1,
CURLOPT_CUSTOMREQUEST => "GET",
CURLOPT_HTTPHEADER => [
"Authorization: <api-key>"
],
]);
$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://api.salesforge.ai/public/v2/workspaces/{workspaceID}/sequences/{sequenceID}")
http = Net::HTTP.new(url.host, url.port)
http.use_ssl = true
request = Net::HTTP::Get.new(url)
request["Authorization"] = '<api-key>'
response = http.request(request)
puts response.read_body{
"agentId": "<string>",
"bouncedCount": 123,
"bouncedPercent": 123,
"clickTrackingEnabled": true,
"clickedCount": 123,
"clickedPercent": 123,
"companyOutreachLimitCount": 123,
"companyOutreachLimitEnabled": true,
"completedCount": 123,
"completedPercent": 123,
"contactedCount": 123,
"id": "<string>",
"leadCount": 123,
"localizedOptOutEnabled": true,
"mailboxes": [
{
"address": "<string>",
"firstName": "<string>",
"id": "<string>",
"lastName": "<string>"
}
],
"name": "<string>",
"openTrackingEnabled": true,
"openedCount": 123,
"openedPercent": 123,
"optOutedCount": 123,
"optOutedPercent": 123,
"productId": "<string>",
"repliedCount": 123,
"repliedPercent": 123,
"repliedPositiveCount": 123,
"repliedPositivePercent": 123,
"sequentialCompanySendingEnabled": true,
"status": "active",
"steps": [
{
"distributionStrategy": "equal",
"id": "<string>",
"name": "<string>",
"order": 123,
"variants": [
{
"contactInformationSource": "linkedin",
"distributionWeight": 123,
"dynamicLanguageEnabled": true,
"emailContent": "<string>",
"emailSubject": "<string>",
"id": "<string>",
"isGenerated": true,
"label": "<string>",
"order": 123,
"overdriveEnabled": true,
"status": "active",
"tonality": "playful"
}
],
"waitDays": 123
}
],
"workspaceId": "<string>"
}{
"data": [
{
"createdAt": "<string>",
"type": "email",
"value": "<string>"
}
],
"message": "<string>"
}{
"data": [
{
"createdAt": "<string>",
"type": "email",
"value": "<string>"
}
],
"message": "<string>"
}Authorizations
Response
Sequence
Show child attributes
Show child attributes
Available options:
active, draft, paused, deleted, completed, video_pending, active, paused Show child attributes
Show child attributes
