Sequences
Get Sequence Stats
Get engagement metrics for a sequence
GET
/
api
/
v1
/
sequences
/
{sequenceId}
/
stats
Get Sequence Stats
curl --request GET \
--url https://api.sequenzy.com/api/v1/sequences/{sequenceId}/stats \
--header 'Authorization: Bearer <token>'import requests
url = "https://api.sequenzy.com/api/v1/sequences/{sequenceId}/stats"
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}/stats', 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}/stats",
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}/stats"
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}/stats")
.header("Authorization", "Bearer <token>")
.asString();require 'uri'
require 'net/http'
url = URI("https://api.sequenzy.com/api/v1/sequences/{sequenceId}/stats")
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,
"sequenceId": "seq_abc123",
"period": "7d",
"stats": {
"sent": 120,
"delivered": 118,
"bounced": 2,
"opened": 72,
"clicked": 18,
"unsubscribed": 1,
"deliveryRate": 98.33,
"bounceRate": 1.67,
"openRate": 61.02,
"clickRate": 15.25,
"unsubscribeRate": 0.85
},
"enrollmentSkipped": {
"count": 3,
"byReason": {
"unsubscribed": 2,
"bounced": 1
}
},
"steps": []
}
{
"error": "Invalid API key"
}
{
"error": "No companies found. Create a company first using the create_company tool."
}
{
"error": "Sequence not found"
}
Get Sequence Stats
Returns aggregated engagement metrics, skipped-enrollment counts, and per-step metrics for a sequence. You can also useGET /api/v1/metrics/sequences/{sequenceId}.
Request
Sequence ID.
Sliding time window:
1h, 24h, 7d, 30d, or 90d.Custom range start as an ISO 8601 date-time. Use with
end.Custom range end as an ISO 8601 date-time. Use with
start.curl "https://api.sequenzy.com/api/v1/sequences/seq_abc123/stats?period=7d" \
-H "Authorization: Bearer seq_live_xxx"
Responses
{
"success": true,
"sequenceId": "seq_abc123",
"period": "7d",
"stats": {
"sent": 120,
"delivered": 118,
"bounced": 2,
"opened": 72,
"clicked": 18,
"unsubscribed": 1,
"deliveryRate": 98.33,
"bounceRate": 1.67,
"openRate": 61.02,
"clickRate": 15.25,
"unsubscribeRate": 0.85
},
"enrollmentSkipped": {
"count": 3,
"byReason": {
"unsubscribed": 2,
"bounced": 1
}
},
"steps": []
}
enrollmentSkipped uses the requested period or start/end range. When
no explicit range is provided, it covers the last 30 days.{
"error": "Invalid API key"
}
{
"error": "No companies found. Create a company first using the create_company tool."
}
{
"error": "Sequence not found"
}
⌘I
Get Sequence Stats
curl --request GET \
--url https://api.sequenzy.com/api/v1/sequences/{sequenceId}/stats \
--header 'Authorization: Bearer <token>'import requests
url = "https://api.sequenzy.com/api/v1/sequences/{sequenceId}/stats"
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}/stats', 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}/stats",
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}/stats"
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}/stats")
.header("Authorization", "Bearer <token>")
.asString();require 'uri'
require 'net/http'
url = URI("https://api.sequenzy.com/api/v1/sequences/{sequenceId}/stats")
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,
"sequenceId": "seq_abc123",
"period": "7d",
"stats": {
"sent": 120,
"delivered": 118,
"bounced": 2,
"opened": 72,
"clicked": 18,
"unsubscribed": 1,
"deliveryRate": 98.33,
"bounceRate": 1.67,
"openRate": 61.02,
"clickRate": 15.25,
"unsubscribeRate": 0.85
},
"enrollmentSkipped": {
"count": 3,
"byReason": {
"unsubscribed": 2,
"bounced": 1
}
},
"steps": []
}
{
"error": "Invalid API key"
}
{
"error": "No companies found. Create a company first using the create_company tool."
}
{
"error": "Sequence not found"
}