Sequences
List Audience Enrollments
List and poll background audience enrollment runs
GET
/
api
/
v1
/
sequences
/
{sequenceId}
/
audience-enrollments
List Audience Enrollments
curl --request GET \
--url https://api.sequenzy.com/api/v1/sequences/{sequenceId}/audience-enrollments \
--header 'Authorization: Bearer <token>'import requests
url = "https://api.sequenzy.com/api/v1/sequences/{sequenceId}/audience-enrollments"
headers = {"Authorization": "Bearer <token>"}
response = requests.get(url, headers=headers)
print(response.text)const options = {method: 'GET', headers: {Authorization: 'Bearer <token>'}};
fetch('https://api.sequenzy.com/api/v1/sequences/{sequenceId}/audience-enrollments', 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.sequenzy.com/api/v1/sequences/{sequenceId}/audience-enrollments",
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: Bearer <token>"
],
]);
$response = curl_exec($curl);
$err = curl_error($curl);
curl_close($curl);
if ($err) {
echo "cURL Error #:" . $err;
} else {
echo $response;
}package main
import (
"fmt"
"net/http"
"io"
)
func main() {
url := "https://api.sequenzy.com/api/v1/sequences/{sequenceId}/audience-enrollments"
req, _ := http.NewRequest("GET", url, nil)
req.Header.Add("Authorization", "Bearer <token>")
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.sequenzy.com/api/v1/sequences/{sequenceId}/audience-enrollments")
.header("Authorization", "Bearer <token>")
.asString();require 'uri'
require 'net/http'
url = URI("https://api.sequenzy.com/api/v1/sequences/{sequenceId}/audience-enrollments")
http = Net::HTTP.new(url.host, url.port)
http.use_ssl = true
request = Net::HTTP::Get.new(url)
request["Authorization"] = 'Bearer <token>'
response = http.request(request)
puts response.read_body{
"success": true,
"audienceEnrollments": [
{
"id": "aer_abc123",
"sequenceId": "seq_abc123",
"status": "running",
"audience": { "type": "all" },
"targetNodeId": "node_delay_1",
"estimatedCount": 12000,
"processedCount": 4000,
"enrolledCount": 3800,
"skippedCount": 200,
"source": "dashboard",
"error": null,
"createdAt": "2026-11-01T10:00:00.000Z",
"startedAt": "2026-11-01T10:00:02.000Z",
"completedAt": null,
"cancelRequestedAt": null
}
]
}
{
"success": true,
"audienceEnrollment": {
"id": "aer_abc123",
"sequenceId": "seq_abc123",
"status": "completed",
"audience": { "type": "all" },
"targetNodeId": "node_delay_1",
"estimatedCount": 12000,
"processedCount": 12400,
"enrolledCount": 11800,
"skippedCount": 200,
"source": "dashboard",
"error": null,
"createdAt": "2026-11-01T10:00:00.000Z",
"startedAt": "2026-11-01T10:00:02.000Z",
"completedAt": "2026-11-01T10:03:40.000Z",
"cancelRequestedAt": null
}
}
{
"error": "Invalid API key"
}
{
"error": "Audience enrollment not found"
}
Recent audience enrollment runs for a sequence, newest first. Poll a single run with
Poll one run:
GET /api/v1/sequences/{sequenceId}/audience-enrollments/{runId} while its status is queued or running.
Request
string
required
Sequence ID.
integer
Runs to return, 1 to 100. Defaults to 20.
curl "https://api.sequenzy.com/api/v1/sequences/seq_abc123/audience-enrollments?limit=5" \
-H "Authorization: Bearer YOUR_API_KEY"
curl "https://api.sequenzy.com/api/v1/sequences/seq_abc123/audience-enrollments/aer_abc123" \
-H "Authorization: Bearer YOUR_API_KEY"
Response fields
Each run reportsstatus (queued, running, completed, cancelled, failed), estimatedCount (audience size when the run started; 0 for incremental auto_enroll runs, which only scan recent joiners), processedCount (subscribers scanned so far), enrolledCount, skippedCount (matching contacts already in the sequence), error, scheduledFor (set while a queued run waits for its start time), source (api, dashboard, cli, or auto_enroll for runs the keep-enrolling sync starts), and the createdAt, startedAt, completedAt, and cancelRequestedAt timestamps.
Responses
{
"success": true,
"audienceEnrollments": [
{
"id": "aer_abc123",
"sequenceId": "seq_abc123",
"status": "running",
"audience": { "type": "all" },
"targetNodeId": "node_delay_1",
"estimatedCount": 12000,
"processedCount": 4000,
"enrolledCount": 3800,
"skippedCount": 200,
"source": "dashboard",
"error": null,
"createdAt": "2026-11-01T10:00:00.000Z",
"startedAt": "2026-11-01T10:00:02.000Z",
"completedAt": null,
"cancelRequestedAt": null
}
]
}
{
"success": true,
"audienceEnrollment": {
"id": "aer_abc123",
"sequenceId": "seq_abc123",
"status": "completed",
"audience": { "type": "all" },
"targetNodeId": "node_delay_1",
"estimatedCount": 12000,
"processedCount": 12400,
"enrolledCount": 11800,
"skippedCount": 200,
"source": "dashboard",
"error": null,
"createdAt": "2026-11-01T10:00:00.000Z",
"startedAt": "2026-11-01T10:00:02.000Z",
"completedAt": "2026-11-01T10:03:40.000Z",
"cancelRequestedAt": null
}
}
{
"error": "Invalid API key"
}
{
"error": "Audience enrollment not found"
}
⌘I
List Audience Enrollments
curl --request GET \
--url https://api.sequenzy.com/api/v1/sequences/{sequenceId}/audience-enrollments \
--header 'Authorization: Bearer <token>'import requests
url = "https://api.sequenzy.com/api/v1/sequences/{sequenceId}/audience-enrollments"
headers = {"Authorization": "Bearer <token>"}
response = requests.get(url, headers=headers)
print(response.text)const options = {method: 'GET', headers: {Authorization: 'Bearer <token>'}};
fetch('https://api.sequenzy.com/api/v1/sequences/{sequenceId}/audience-enrollments', 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.sequenzy.com/api/v1/sequences/{sequenceId}/audience-enrollments",
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: Bearer <token>"
],
]);
$response = curl_exec($curl);
$err = curl_error($curl);
curl_close($curl);
if ($err) {
echo "cURL Error #:" . $err;
} else {
echo $response;
}package main
import (
"fmt"
"net/http"
"io"
)
func main() {
url := "https://api.sequenzy.com/api/v1/sequences/{sequenceId}/audience-enrollments"
req, _ := http.NewRequest("GET", url, nil)
req.Header.Add("Authorization", "Bearer <token>")
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.sequenzy.com/api/v1/sequences/{sequenceId}/audience-enrollments")
.header("Authorization", "Bearer <token>")
.asString();require 'uri'
require 'net/http'
url = URI("https://api.sequenzy.com/api/v1/sequences/{sequenceId}/audience-enrollments")
http = Net::HTTP.new(url.host, url.port)
http.use_ssl = true
request = Net::HTTP::Get.new(url)
request["Authorization"] = 'Bearer <token>'
response = http.request(request)
puts response.read_body{
"success": true,
"audienceEnrollments": [
{
"id": "aer_abc123",
"sequenceId": "seq_abc123",
"status": "running",
"audience": { "type": "all" },
"targetNodeId": "node_delay_1",
"estimatedCount": 12000,
"processedCount": 4000,
"enrolledCount": 3800,
"skippedCount": 200,
"source": "dashboard",
"error": null,
"createdAt": "2026-11-01T10:00:00.000Z",
"startedAt": "2026-11-01T10:00:02.000Z",
"completedAt": null,
"cancelRequestedAt": null
}
]
}
{
"success": true,
"audienceEnrollment": {
"id": "aer_abc123",
"sequenceId": "seq_abc123",
"status": "completed",
"audience": { "type": "all" },
"targetNodeId": "node_delay_1",
"estimatedCount": 12000,
"processedCount": 12400,
"enrolledCount": 11800,
"skippedCount": 200,
"source": "dashboard",
"error": null,
"createdAt": "2026-11-01T10:00:00.000Z",
"startedAt": "2026-11-01T10:00:02.000Z",
"completedAt": "2026-11-01T10:03:40.000Z",
"cancelRequestedAt": null
}
}
{
"error": "Invalid API key"
}
{
"error": "Audience enrollment not found"
}