curl "https://api2.ecomailapp.cz/campaigns/1/log?email=foo@bar.cz&per_page=10&events[]=open&events[]=click" \
-H "key: YOUR_API_KEY" \
-H "Content-Type: application/json"
$ch = curl_init();
curl_setopt($ch, CURLOPT_URL, "https://api2.ecomailapp.cz/campaigns/1/log?email=foo@bar.cz&per_page=10&events[]=open&events[]=click");
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);
{
"campaign_log": [
{
"id": 5678,
"campaign_id": 1,
"autoresponder_id": null,
"action_id": null,
"event": "open",
"msg": null,
"url": null,
"email": "foo@bar.cz",
"occured_at": "2025-03-15T14:30:00.000000Z",
"mail_name": null
},
{
"id": 5677,
"campaign_id": 1,
"autoresponder_id": null,
"action_id": null,
"event": "click",
"msg": null,
"url": "https://example.com/offer",
"email": "foo@bar.cz",
"occured_at": "2025-03-15T14:25:00.000000Z",
"mail_name": null
}
],
"current_page": 1,
"per_page": 10,
"total": 2,
"last_page": 1
}
Campaigns
Get campaign log
Search and browse the campaign log — sends, opens, clicks, bounces, unsubscribes, complaints, and other events. Filter by subscriber email, event types, and date range.
GET
/
campaigns
/
{campaignId}
/
log
curl "https://api2.ecomailapp.cz/campaigns/1/log?email=foo@bar.cz&per_page=10&events[]=open&events[]=click" \
-H "key: YOUR_API_KEY" \
-H "Content-Type: application/json"
$ch = curl_init();
curl_setopt($ch, CURLOPT_URL, "https://api2.ecomailapp.cz/campaigns/1/log?email=foo@bar.cz&per_page=10&events[]=open&events[]=click");
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);
{
"campaign_log": [
{
"id": 5678,
"campaign_id": 1,
"autoresponder_id": null,
"action_id": null,
"event": "open",
"msg": null,
"url": null,
"email": "foo@bar.cz",
"occured_at": "2025-03-15T14:30:00.000000Z",
"mail_name": null
},
{
"id": 5677,
"campaign_id": 1,
"autoresponder_id": null,
"action_id": null,
"event": "click",
"msg": null,
"url": "https://example.com/offer",
"email": "foo@bar.cz",
"occured_at": "2025-03-15T14:25:00.000000Z",
"mail_name": null
}
],
"current_page": 1,
"per_page": 10,
"total": 2,
"last_page": 1
}
string
Filter by subscriber email address.
string
Filter by event types. Can be specified multiple times. Possible values:
send, open, click, bounce, hard_bounce, soft_bounce, out_of_band, unsub, spam, spam_complaint, not_opened, not_clicked, open_no_click, sms_sent, sms_inv_nr, sms_accepted, whatsapp_sent, whatsapp_failed.string
Filter events from this date (inclusive, ISO format e.g.
2025-01-01).string
Filter events up to this date (inclusive, ISO format e.g.
2025-12-31). Must be after date_from if provided.integer
Number of results per page. Default
20, maximum 100.integer
Page number.
string
Column to sort by. Possible values:
occured_at, id, event. Default occured_at.string
Sort direction. Possible values:
asc, desc. Default desc.curl "https://api2.ecomailapp.cz/campaigns/1/log?email=foo@bar.cz&per_page=10&events[]=open&events[]=click" \
-H "key: YOUR_API_KEY" \
-H "Content-Type: application/json"
$ch = curl_init();
curl_setopt($ch, CURLOPT_URL, "https://api2.ecomailapp.cz/campaigns/1/log?email=foo@bar.cz&per_page=10&events[]=open&events[]=click");
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);
{
"campaign_log": [
{
"id": 5678,
"campaign_id": 1,
"autoresponder_id": null,
"action_id": null,
"event": "open",
"msg": null,
"url": null,
"email": "foo@bar.cz",
"occured_at": "2025-03-15T14:30:00.000000Z",
"mail_name": null
},
{
"id": 5677,
"campaign_id": 1,
"autoresponder_id": null,
"action_id": null,
"event": "click",
"msg": null,
"url": "https://example.com/offer",
"email": "foo@bar.cz",
"occured_at": "2025-03-15T14:25:00.000000Z",
"mail_name": null
}
],
"current_page": 1,
"per_page": 10,
"total": 2,
"last_page": 1
}