curl --request POST \
--url https://client-api.salesfinity.co/v2/sequencer/enrollments/bulk/account \
--header 'Content-Type: application/json' \
--header 'x-api-key: <api-key>' \
--data '
{
"user_id": "507f1f77bcf86cd799439011",
"contact": "<string>",
"domain": "<string>",
"company_name": "<string>",
"sequence": "<string>",
"days": 123,
"reason": "<string>",
"dry_run": true
}
'import requests
url = "https://client-api.salesfinity.co/v2/sequencer/enrollments/bulk/account"
payload = {
"user_id": "507f1f77bcf86cd799439011",
"contact": "<string>",
"domain": "<string>",
"company_name": "<string>",
"sequence": "<string>",
"days": 123,
"reason": "<string>",
"dry_run": True
}
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({
user_id: '507f1f77bcf86cd799439011',
contact: '<string>',
domain: '<string>',
company_name: '<string>',
sequence: '<string>',
days: 123,
reason: '<string>',
dry_run: true
})
};
fetch('https://client-api.salesfinity.co/v2/sequencer/enrollments/bulk/account', 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://client-api.salesfinity.co/v2/sequencer/enrollments/bulk/account",
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([
'user_id' => '507f1f77bcf86cd799439011',
'contact' => '<string>',
'domain' => '<string>',
'company_name' => '<string>',
'sequence' => '<string>',
'days' => 123,
'reason' => '<string>',
'dry_run' => true
]),
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://client-api.salesfinity.co/v2/sequencer/enrollments/bulk/account"
payload := strings.NewReader("{\n \"user_id\": \"507f1f77bcf86cd799439011\",\n \"contact\": \"<string>\",\n \"domain\": \"<string>\",\n \"company_name\": \"<string>\",\n \"sequence\": \"<string>\",\n \"days\": 123,\n \"reason\": \"<string>\",\n \"dry_run\": true\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://client-api.salesfinity.co/v2/sequencer/enrollments/bulk/account")
.header("x-api-key", "<api-key>")
.header("Content-Type", "application/json")
.body("{\n \"user_id\": \"507f1f77bcf86cd799439011\",\n \"contact\": \"<string>\",\n \"domain\": \"<string>\",\n \"company_name\": \"<string>\",\n \"sequence\": \"<string>\",\n \"days\": 123,\n \"reason\": \"<string>\",\n \"dry_run\": true\n}")
.asString();require 'uri'
require 'net/http'
url = URI("https://client-api.salesfinity.co/v2/sequencer/enrollments/bulk/account")
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 \"user_id\": \"507f1f77bcf86cd799439011\",\n \"contact\": \"<string>\",\n \"domain\": \"<string>\",\n \"company_name\": \"<string>\",\n \"sequence\": \"<string>\",\n \"days\": 123,\n \"reason\": \"<string>\",\n \"dry_run\": true\n}"
response = http.request(request)
puts response.read_body{}{
"message": [
"limit must not be greater than 100"
],
"error": "Bad Request",
"statusCode": 400
}{
"message": "Forbidden resource",
"error": "Forbidden",
"statusCode": 403
}{
"message": "Too many requests",
"error": "Too Many Requests",
"statusCode": 429
}{
"message": "Internal server error",
"error": "Internal Server Error",
"statusCode": 500
}Finish or pause everyone at an account
Acts on every contact at one company — the “we just booked a meeting there, stop emailing the rest” case. Send dry_run: true first: this can touch a lot of people at once.
curl --request POST \
--url https://client-api.salesfinity.co/v2/sequencer/enrollments/bulk/account \
--header 'Content-Type: application/json' \
--header 'x-api-key: <api-key>' \
--data '
{
"user_id": "507f1f77bcf86cd799439011",
"contact": "<string>",
"domain": "<string>",
"company_name": "<string>",
"sequence": "<string>",
"days": 123,
"reason": "<string>",
"dry_run": true
}
'import requests
url = "https://client-api.salesfinity.co/v2/sequencer/enrollments/bulk/account"
payload = {
"user_id": "507f1f77bcf86cd799439011",
"contact": "<string>",
"domain": "<string>",
"company_name": "<string>",
"sequence": "<string>",
"days": 123,
"reason": "<string>",
"dry_run": True
}
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({
user_id: '507f1f77bcf86cd799439011',
contact: '<string>',
domain: '<string>',
company_name: '<string>',
sequence: '<string>',
days: 123,
reason: '<string>',
dry_run: true
})
};
fetch('https://client-api.salesfinity.co/v2/sequencer/enrollments/bulk/account', 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://client-api.salesfinity.co/v2/sequencer/enrollments/bulk/account",
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([
'user_id' => '507f1f77bcf86cd799439011',
'contact' => '<string>',
'domain' => '<string>',
'company_name' => '<string>',
'sequence' => '<string>',
'days' => 123,
'reason' => '<string>',
'dry_run' => true
]),
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://client-api.salesfinity.co/v2/sequencer/enrollments/bulk/account"
payload := strings.NewReader("{\n \"user_id\": \"507f1f77bcf86cd799439011\",\n \"contact\": \"<string>\",\n \"domain\": \"<string>\",\n \"company_name\": \"<string>\",\n \"sequence\": \"<string>\",\n \"days\": 123,\n \"reason\": \"<string>\",\n \"dry_run\": true\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://client-api.salesfinity.co/v2/sequencer/enrollments/bulk/account")
.header("x-api-key", "<api-key>")
.header("Content-Type", "application/json")
.body("{\n \"user_id\": \"507f1f77bcf86cd799439011\",\n \"contact\": \"<string>\",\n \"domain\": \"<string>\",\n \"company_name\": \"<string>\",\n \"sequence\": \"<string>\",\n \"days\": 123,\n \"reason\": \"<string>\",\n \"dry_run\": true\n}")
.asString();require 'uri'
require 'net/http'
url = URI("https://client-api.salesfinity.co/v2/sequencer/enrollments/bulk/account")
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 \"user_id\": \"507f1f77bcf86cd799439011\",\n \"contact\": \"<string>\",\n \"domain\": \"<string>\",\n \"company_name\": \"<string>\",\n \"sequence\": \"<string>\",\n \"days\": 123,\n \"reason\": \"<string>\",\n \"dry_run\": true\n}"
response = http.request(request)
puts response.read_body{}{
"message": [
"limit must not be greater than 100"
],
"error": "Bad Request",
"statusCode": 400
}{
"message": "Forbidden resource",
"error": "Forbidden",
"statusCode": 403
}{
"message": "Too many requests",
"error": "Too Many Requests",
"statusCode": 429
}{
"message": "Internal server error",
"error": "Internal Server Error",
"statusCode": 500
}dry_run: true first: this can touch a lot of people at once.Authorizations
Team-scoped API key generated in the Salesfinity dashboard under Settings -> Connections & API. A missing or invalid key returns HTTP 403.
Body
The team member this call acts as. Must be an active member of the team the API key belongs to.
"507f1f77bcf86cd799439011"
finish, pause sequence limits it to one sequence; team covers every sequence the team runs.
sequence, team Identify the account by one of contact, domain or company_name.
Required when scope is sequence.
Pause length in days, when action is pause.
Return how many would be affected, and change nothing.
Response
Success.
The outcome of an action. Shape varies by endpoint — for example enable returns the sequence and how many enrollments it activated, and a bulk verb returns how many rows it moved.