curl "https://api2.ecomailapp.cz/pipelines/12345/stats-detail?per_page=100&page=1" \
-H "key: YOUR_API_KEY" \
-H "Content-Type: application/json"
$ch = curl_init();
curl_setopt($ch, CURLOPT_URL, 'https://api2.ecomailapp.cz/pipelines/12345/stats-detail?per_page=100&page=1');
curl_setopt($ch, CURLOPT_RETURNTRANSFER, true);
curl_setopt($ch, CURLOPT_HTTPHEADER, [
'key: YOUR_API_KEY',
'Content-Type: application/json',
]);
$response = curl_exec($ch);
curl_close($ch);
{
"next_page_url": "https://api2.ecomailapp.cz/pipelines/12345/stats-detail?page=2",
"total": 2546,
"per_page": 100,
"subscribers": {
"foo@bar.com": {
"open": 2,
"send": 3,
"unsub": 0,
"soft_bounce": 0,
"click": 0,
"hard_bounce": 0,
"out_of_band": 0,
"spam": 0
}
}
}
{
"next_page_url": null,
"total": 3,
"per_page": 100,
"subscribers": {
"foo@bar.com": [
{
"url": "",
"event": "open",
"occured_at": "2026-03-22 10:15:03",
"action_id": "a1b2c3d4e5",
"mail_name": "Welcome email"
}
]
}
}
Automations
Get automation stats detail
Return statistics for a specific automation with each subscriber and their individual events.
GET
/
pipelines
/
{pipeline_id}
/
stats-detail
curl "https://api2.ecomailapp.cz/pipelines/12345/stats-detail?per_page=100&page=1" \
-H "key: YOUR_API_KEY" \
-H "Content-Type: application/json"
$ch = curl_init();
curl_setopt($ch, CURLOPT_URL, 'https://api2.ecomailapp.cz/pipelines/12345/stats-detail?per_page=100&page=1');
curl_setopt($ch, CURLOPT_RETURNTRANSFER, true);
curl_setopt($ch, CURLOPT_HTTPHEADER, [
'key: YOUR_API_KEY',
'Content-Type: application/json',
]);
$response = curl_exec($ch);
curl_close($ch);
{
"next_page_url": "https://api2.ecomailapp.cz/pipelines/12345/stats-detail?page=2",
"total": 2546,
"per_page": 100,
"subscribers": {
"foo@bar.com": {
"open": 2,
"send": 3,
"unsub": 0,
"soft_bounce": 0,
"click": 0,
"hard_bounce": 0,
"out_of_band": 0,
"spam": 0
}
}
}
{
"next_page_url": null,
"total": 3,
"per_page": 100,
"subscribers": {
"foo@bar.com": [
{
"url": "",
"event": "open",
"occured_at": "2026-03-22 10:15:03",
"action_id": "a1b2c3d4e5",
"mail_name": "Welcome email"
}
]
}
}
integer
required
Automation ID.
string
Filter by event type. One of:
open, send, unsub, soft_bounce, click, hard_bounce, out_of_band, spam.string
Filter by subscriber email address.
string
Filter events from this date onwards in
YYYY-MM-DD format (UTC). Cannot be more than one year in the past.string
Filter events up to this date in
YYYY-MM-DD format (UTC). Must be after from_date.string
Set to
true to return each individual event per subscriber instead of aggregated per-event counts. In detail mode every event row also carries the automation mail it belongs to — action_id and the resolved mail_name (see Get actions).integer
Number of results per page. Default and maximum is
100.integer
Page number.
total field returns the total number of subscribers that entered the automation. The open, click, and send fields return unique counts.
curl "https://api2.ecomailapp.cz/pipelines/12345/stats-detail?per_page=100&page=1" \
-H "key: YOUR_API_KEY" \
-H "Content-Type: application/json"
$ch = curl_init();
curl_setopt($ch, CURLOPT_URL, 'https://api2.ecomailapp.cz/pipelines/12345/stats-detail?per_page=100&page=1');
curl_setopt($ch, CURLOPT_RETURNTRANSFER, true);
curl_setopt($ch, CURLOPT_HTTPHEADER, [
'key: YOUR_API_KEY',
'Content-Type: application/json',
]);
$response = curl_exec($ch);
curl_close($ch);
{
"next_page_url": "https://api2.ecomailapp.cz/pipelines/12345/stats-detail?page=2",
"total": 2546,
"per_page": 100,
"subscribers": {
"foo@bar.com": {
"open": 2,
"send": 3,
"unsub": 0,
"soft_bounce": 0,
"click": 0,
"hard_bounce": 0,
"out_of_band": 0,
"spam": 0
}
}
}
{
"next_page_url": null,
"total": 3,
"per_page": 100,
"subscribers": {
"foo@bar.com": [
{
"url": "",
"event": "open",
"occured_at": "2026-03-22 10:15:03",
"action_id": "a1b2c3d4e5",
"mail_name": "Welcome email"
}
]
}
}