Statistiky
Reference API pro statistiky e-mailů z kampaní a automatizací, přehled a konverze.
Technická reference je anglicky (stejně jako strojově čitelný dokument OpenAPI). Celou skupinu pro AI agenta načtete z /api/openapi.json?tag=Statistics.
Přihlášení: Authorization: Bearer pst_... nebo HTTP Basic (e-mail člena firmy a API klíč).
Operace
| Metoda | Cesta | Popis |
|---|---|---|
| GET | /api/v1/tenants/{tenant}/conversions | Conversions summary |
| GET | /api/v1/tenants/{tenant}/dashboard | Dashboard numbers |
| GET | /api/v1/tenants/{tenant}/stats/api-emails | Statistics of the e-mails sent through the API (API campaigns or transactional tags) |
| GET | /api/v1/tenants/{tenant}/stats/api-emails/{api_email_id} | Log of the e-mails of one API tag |
| GET | /api/v1/tenants/{tenant}/stats/automations/{automation_id} | Statistics of an automation |
| GET | /api/v1/tenants/{tenant}/stats/automations/{automation_id}/activity | Activity of an automation over time |
| GET | /api/v1/tenants/{tenant}/stats/automations/{automation_id}/conversions | Conversions (orders) of an automation |
| GET | /api/v1/tenants/{tenant}/stats/automations/{automation_id}/heatmap | Click map of an automation |
| GET | /api/v1/tenants/{tenant}/stats/automations/{automation_id}/recipients | Recipients of an automation with their events (JSON or CSV) |
| GET | /api/v1/tenants/{tenant}/stats/automations/{automation_id}/report | Report of an automation (JSON or CSV) |
| GET | /api/v1/tenants/{tenant}/stats/campaigns/{campaign_id} | Statistics of a campaign |
| GET | /api/v1/tenants/{tenant}/stats/campaigns/{campaign_id}/activity | Activity of a campaign over time |
| GET | /api/v1/tenants/{tenant}/stats/campaigns/{campaign_id}/conversions | Conversions (orders) of a campaign |
| GET | /api/v1/tenants/{tenant}/stats/campaigns/{campaign_id}/heatmap | Click map of a campaign |
| GET | /api/v1/tenants/{tenant}/stats/campaigns/{campaign_id}/recipients | Recipients of a campaign with their events (JSON or CSV) |
| GET | /api/v1/tenants/{tenant}/stats/campaigns/{campaign_id}/report | Report of a campaign (JSON or CSV) |
| GET | /api/v1/tenants/{tenant}/stats/emails | E-mail statistics of campaigns and automations |
| GET | /api/v1/tenants/{tenant}/stats/se-history | Campaigns taken over from SmartEmailing |
Conversions summary
GET /api/v1/tenants/{tenant}/conversions
Oprávnění: oblast campaigns, úroveň read; klíč s přístupem read nebo full
Conversions per kind and currency, optionally of one campaign or automation and in [from, to).
Parametry
| Název | Kde | Typ | Povinné | Popis |
|---|---|---|---|---|
tenant | path | string (uuid) | ano | Public id of the company (tenant), a UUID: GET /api/v3/account-info answers it as data.guid; the app shows it on the API keys page. |
automationId | query | string | ne | |
campaignId | query | string | ne | |
from | query | string | ne | Start of the period (YYYY-MM-DD local day, or ISO time where noted). |
to | query | string | ne | End of the period (YYYY-MM-DD local day, or ISO time where noted). |
Odpovědi
- 200 OK:
application/jsonobject
Chyby
| Stav | Kód | Hodnoty message |
|---|---|---|
| 400 | validation | |
| 401 | 401 unauthorized: missing, unknown, revoked, expired or idle API key. | |
| 403 | 403 forbidden: message tenant (another company), scope (read-only key), api_key (person only), or the module the key's roles lack. | |
| 429 | 429 rate_limited: wait Retry-After seconds. | |
| 503 | unavailable | busy |
Dashboard numbers
GET /api/v1/tenants/{tenant}/dashboard
Oprávnění: oblast null, úroveň read; klíč s přístupem read nebo full · Nástroj MCP: get_dashboard
Dashboard: contacts (total, subscribed, added and lost in the period, daily trend) and e-mails of the period against the period of the same length before it. Default the last 30 days; from / to choose other days (at most 366).
?preset= (default 30d) or ?from=&to= (the tenant's calendar days, at most periods.MAX_DAYS): the period of the statistics, compared with the period of the same length right before.
Parametry
| Název | Kde | Typ | Povinné | Popis |
|---|---|---|---|---|
tenant | path | string (uuid) | ano | Public id of the company (tenant), a UUID: GET /api/v3/account-info answers it as data.guid; the app shows it on the API keys page. |
from | query | string | ne | First day YYYY-MM-DD. |
preset | query | one of: all, today, yesterday, 7d, 30d, 90d, this_week, last_week, month, last_month, this_year, last_year | ne | A period preset instead of from / to, resolved to the account's calendar days ending today (weeks start on Monday; all = no limit where the list allows it). The same days as from / to give the same numbers. |
to | query | string | ne | Last day YYYY-MM-DD. |
Odpovědi
- 200 OK:
application/jsonDashboardData
Chyby
| Stav | Kód | Hodnoty message |
|---|---|---|
| 400 | validation | |
| 401 | 401 unauthorized: missing, unknown, revoked, expired or idle API key. | |
| 403 | 403 forbidden: message tenant (another company), scope (read-only key), api_key (person only), or the module the key's roles lack. | |
| 429 | 429 rate_limited: wait Retry-After seconds. | |
| 503 | unavailable | busy |
Statistics of the e-mails sent through the API (API campaigns or transactional tags)
GET /api/v1/tenants/{tenant}/stats/api-emails
Oprávnění: oblast campaigns, úroveň read; klíč s přístupem read nebo full
?kind=custom (API kampaně, default) | transactional, ?q= (tag or id), ?sort=name | -name | id | -id | sent | -sent, the Filtry panel ?idFrom=&idTo=, ?createdFrom=&createdTo= (the tenant's days), ?page=&pageSize=: {items, total, page, pageSize, enabled}.
Parametry
| Název | Kde | Typ | Povinné | Popis |
|---|---|---|---|---|
tenant | path | string (uuid) | ano | Public id of the company (tenant), a UUID: GET /api/v3/account-info answers it as data.guid; the app shows it on the API keys page. |
kind | query | string | ne | |
page | query | integer | ne | Page number, from 1. default 1, min 1 |
pageSize | query | integer | ne | Items per page, 1 to 100. default 25, min 1, max 100 |
q | query | string | ne | Search text (case and diacritics insensitive). max 200 chars |
sort | query | string | ne | Sort fields separated by commas, "-" = descending, at most 3 (e.g. name,-id). |
tag | query | string | ne | Label filter; repeat for more labels. |
Odpovědi
- 200 OK:
application/jsonApiEmailStatsPage
Chyby
| Stav | Kód | Hodnoty message |
|---|---|---|
| 400 | validation | kind, q, sort |
| 401 | 401 unauthorized: missing, unknown, revoked, expired or idle API key. | |
| 403 | 403 forbidden: message tenant (another company), scope (read-only key), api_key (person only), or the module the key's roles lack. | |
| 429 | 429 rate_limited: wait Retry-After seconds. | |
| 503 | unavailable | busy |
Log of the e-mails of one API tag
GET /api/v1/tenants/{tenant}/stats/api-emails/{api_email_id}
Oprávnění: oblast campaigns, úroveň read; klíč s přístupem read nebo full
The log of one tag, newest first: {tag {id, kind, name, createdAt}, items [{id, requestId, email, subject, from, status, error, queuedAt, sentAt, openedAt, clickedAt, unsubscribedAt, bouncedAt, complainedAt, attachments}], total, page, pageSize}; ?q= (address, subject or request id).
Parametry
| Název | Kde | Typ | Povinné | Popis |
|---|---|---|---|---|
tenant | path | string (uuid) | ano | Public id of the company (tenant), a UUID: GET /api/v3/account-info answers it as data.guid; the app shows it on the API keys page. |
api_email_id | path | string | ano | Id of the api email (string of digits). |
page | query | integer | ne | Page number, from 1. default 1, min 1 |
pageSize | query | integer | ne | Items per page, 1 to 100. default 25, min 1, max 100 |
q | query | string | ne | Search text (case and diacritics insensitive). max 200 chars |
Odpovědi
- 200 OK:
application/jsonApiEmailLog
Chyby
| Stav | Kód | Hodnoty message |
|---|---|---|
| 400 | validation | q |
| 401 | 401 unauthorized: missing, unknown, revoked, expired or idle API key. | |
| 403 | 403 forbidden: message tenant (another company), scope (read-only key), api_key (person only), or the module the key's roles lack. | |
| 404 | not_found | |
| 429 | 429 rate_limited: wait Retry-After seconds. | |
| 503 | unavailable | busy |
Statistics of an automation
GET /api/v1/tenants/{tenant}/stats/automations/{automation_id}
Oprávnění: oblast campaigns, úroveň read; klíč s přístupem read nebo full · Nástroj MCP: get_automation_stats
E-mail statistics of an automation (or of one e-mail node).
Parametry
| Název | Kde | Typ | Povinné | Popis |
|---|---|---|---|---|
tenant | path | string (uuid) | ano | Public id of the company (tenant), a UUID: GET /api/v3/account-info answers it as data.guid; the app shows it on the API keys page. |
automation_id | path | string | ano | Id of the automation (string of digits). |
from | query | string | ne | First day YYYY-MM-DD. |
node | query | string | ne | E-mail node key. |
to | query | string | ne | Last day YYYY-MM-DD. |
Odpovědi
- 200 OK:
application/jsonEmailStatsDetail
Chyby
| Stav | Kód | Hodnoty message |
|---|---|---|
| 400 | validation | node |
| 401 | 401 unauthorized: missing, unknown, revoked, expired or idle API key. | |
| 403 | 403 forbidden: message tenant (another company), scope (read-only key), api_key (person only), or the module the key's roles lack. | |
| 404 | not_found | |
| 429 | 429 rate_limited: wait Retry-After seconds. | |
| 503 | unavailable | busy |
Activity of an automation over time
GET /api/v1/tenants/{tenant}/stats/automations/{automation_id}/activity
Oprávnění: oblast campaigns, úroveň read; klíč s přístupem read nebo full
Parametry
| Název | Kde | Typ | Povinné | Popis |
|---|---|---|---|---|
tenant | path | string (uuid) | ano | Public id of the company (tenant), a UUID: GET /api/v3/account-info answers it as data.guid; the app shows it on the API keys page. |
automation_id | path | string | ano | Id of the automation (string of digits). |
from | query | string | ne | Start of the period (YYYY-MM-DD local day, or ISO time where noted). |
node | query | string | ne | |
page | query | integer | ne | Page number, from 1. default 1, min 1 |
pageSize | query | integer | ne | Items per page, 1 to 100. default 25, min 1, max 100 |
q | query | string | ne | Search text (case and diacritics insensitive). max 200 chars |
tab | query | string | ne | |
to | query | string | ne | End of the period (YYYY-MM-DD local day, or ISO time where noted). |
Odpovědi
- 200 OK:
application/jsonobject
Chyby
| Stav | Kód | Hodnoty message |
|---|---|---|
| 400 | validation | node, q, tab |
| 401 | 401 unauthorized: missing, unknown, revoked, expired or idle API key. | |
| 403 | 403 forbidden: message tenant (another company), scope (read-only key), api_key (person only), or the module the key's roles lack. | |
| 404 | not_found | |
| 429 | 429 rate_limited: wait Retry-After seconds. | |
| 503 | unavailable | busy |
Conversions (orders) of an automation
GET /api/v1/tenants/{tenant}/stats/automations/{automation_id}/conversions
Oprávnění: oblast campaigns, úroveň read; klíč s přístupem read nebo full
Parametry
| Název | Kde | Typ | Povinné | Popis |
|---|---|---|---|---|
tenant | path | string (uuid) | ano | Public id of the company (tenant), a UUID: GET /api/v3/account-info answers it as data.guid; the app shows it on the API keys page. |
automation_id | path | string | ano | Id of the automation (string of digits). |
node | query | string | ne |
Odpovědi
- 200 OK:
application/jsonEmailConversions
Chyby
| Stav | Kód | Hodnoty message |
|---|---|---|
| 400 | validation | node |
| 401 | 401 unauthorized: missing, unknown, revoked, expired or idle API key. | |
| 403 | 403 forbidden: message tenant (another company), scope (read-only key), api_key (person only), or the module the key's roles lack. | |
| 404 | not_found | |
| 429 | 429 rate_limited: wait Retry-After seconds. | |
| 503 | unavailable | busy |
Click map of an automation
GET /api/v1/tenants/{tenant}/stats/automations/{automation_id}/heatmap
Oprávnění: oblast campaigns, úroveň read; klíč s přístupem read nebo full
The same for one e-mail node of an automation (?node=) with a choice of snapshot (?snapshot=, the template versions the node sent, default the newest); without a node no HTML.
Parametry
| Název | Kde | Typ | Povinné | Popis |
|---|---|---|---|---|
tenant | path | string (uuid) | ano | Public id of the company (tenant), a UUID: GET /api/v3/account-info answers it as data.guid; the app shows it on the API keys page. |
automation_id | path | string | ano | Id of the automation (string of digits). |
node | query | string | ne | |
snapshot | query | string | ne |
Odpovědi
- 200 OK:
application/jsonEmailClickMap
Chyby
| Stav | Kód | Hodnoty message |
|---|---|---|
| 400 | validation | node |
| 401 | 401 unauthorized: missing, unknown, revoked, expired or idle API key. | |
| 403 | 403 forbidden: message tenant (another company), scope (read-only key), api_key (person only), or the module the key's roles lack. | |
| 404 | not_found | |
| 429 | 429 rate_limited: wait Retry-After seconds. | |
| 503 | unavailable | busy |
Recipients of an automation with their events (JSON or CSV)
GET /api/v1/tenants/{tenant}/stats/automations/{automation_id}/recipients
Oprávnění: oblast campaigns, úroveň read; klíč s přístupem read nebo full
Parametry
| Název | Kde | Typ | Povinné | Popis |
|---|---|---|---|---|
tenant | path | string (uuid) | ano | Public id of the company (tenant), a UUID: GET /api/v3/account-info answers it as data.guid; the app shows it on the API keys page. |
automation_id | path | string | ano | Id of the automation (string of digits). |
engagement | query | string | ne | |
format | query | one of: json, csv | ne | csv = a CSV file (UTF-8 with BOM, semicolons). |
from | query | string | ne | Start of the period (YYYY-MM-DD local day, or ISO time where noted). |
humans | query | string | ne | |
node | query | string | ne | |
page | query | integer | ne | Page number, from 1. default 1, min 1 |
pageSize | query | integer | ne | Items per page, 1 to 100. default 25, min 1, max 100 |
q | query | string | ne | Search text (case and diacritics insensitive). max 200 chars |
rows | query | string | ne | |
tab | query | string | ne | |
to | query | string | ne | End of the period (YYYY-MM-DD local day, or ISO time where noted). |
vat | query | string | ne |
Odpovědi
- 200 JSON, or CSV with format=csv:
application/jsonobject,text/csvstring
Chyby
| Stav | Kód | Hodnoty message |
|---|---|---|
| 400 | validation | engagement, node, q, tab |
| 401 | 401 unauthorized: missing, unknown, revoked, expired or idle API key. | |
| 403 | 403 forbidden: message tenant (another company), scope (read-only key), api_key (person only), or the module the key's roles lack. | |
| 404 | not_found | |
| 429 | 429 rate_limited: wait Retry-After seconds. | |
| 503 | unavailable | busy |
Report of an automation (JSON or CSV)
GET /api/v1/tenants/{tenant}/stats/automations/{automation_id}/report
Oprávnění: oblast campaigns, úroveň read; klíč s přístupem read nebo full
Parametry
| Název | Kde | Typ | Povinné | Popis |
|---|---|---|---|---|
tenant | path | string (uuid) | ano | Public id of the company (tenant), a UUID: GET /api/v3/account-info answers it as data.guid; the app shows it on the API keys page. |
automation_id | path | string | ano | Id of the automation (string of digits). |
engagement | query | string | ne | |
from | query | string | ne | Start of the period (YYYY-MM-DD local day, or ISO time where noted). |
humans | query | string | ne | |
node | query | string | ne | |
to | query | string | ne | End of the period (YYYY-MM-DD local day, or ISO time where noted). |
vat | query | string | ne |
Odpovědi
- 200 OK:
application/jsonEmailStatsReport
Chyby
| Stav | Kód | Hodnoty message |
|---|---|---|
| 400 | validation | engagement, node |
| 401 | 401 unauthorized: missing, unknown, revoked, expired or idle API key. | |
| 403 | 403 forbidden: message tenant (another company), scope (read-only key), api_key (person only), or the module the key's roles lack. | |
| 404 | not_found | |
| 429 | 429 rate_limited: wait Retry-After seconds. | |
| 503 | unavailable | busy |
Statistics of a campaign
GET /api/v1/tenants/{tenant}/stats/campaigns/{campaign_id}
Oprávnění: oblast campaigns, úroveň read; klíč s přístupem read nebo full · Nástroj MCP: get_campaign_stats
E-mail statistics of a campaign: totals, rates (base: sent), providers, daily timeline, links.
Parametry
| Název | Kde | Typ | Povinné | Popis |
|---|---|---|---|---|
tenant | path | string (uuid) | ano | Public id of the company (tenant), a UUID: GET /api/v3/account-info answers it as data.guid; the app shows it on the API keys page. |
campaign_id | path | string | ano | Id of the campaign (string of digits). |
from | query | string | ne | First day YYYY-MM-DD. |
node | query | string | ne | |
to | query | string | ne | Last day YYYY-MM-DD. |
Odpovědi
- 200 OK:
application/jsonEmailStatsDetail
Chyby
| Stav | Kód | Hodnoty message |
|---|---|---|
| 400 | validation | |
| 401 | 401 unauthorized: missing, unknown, revoked, expired or idle API key. | |
| 403 | 403 forbidden: message tenant (another company), scope (read-only key), api_key (person only), or the module the key's roles lack. | |
| 404 | not_found | |
| 429 | 429 rate_limited: wait Retry-After seconds. | |
| 503 | unavailable | busy |
Activity of a campaign over time
GET /api/v1/tenants/{tenant}/stats/campaigns/{campaign_id}/activity
Oprávnění: oblast campaigns, úroveň read; klíč s přístupem read nebo full · Nástroj MCP: get_campaign_activity
Who opened, clicked, unsubscribed or bounced (tab).
Parametry
| Název | Kde | Typ | Povinné | Popis |
|---|---|---|---|---|
tenant | path | string (uuid) | ano | Public id of the company (tenant), a UUID: GET /api/v3/account-info answers it as data.guid; the app shows it on the API keys page. |
campaign_id | path | string | ano | Id of the campaign (string of digits). |
from | query | string | ne | First day YYYY-MM-DD. |
node | query | string | ne | |
page | query | integer | ne | Page number, from 1. default 1, min 1 |
pageSize | query | integer | ne | Items per page, 1 to 100. default 25, min 1, max 100 |
q | query | string | ne | Search text. max 200 chars |
tab | query | one of: opened, clicked, unsubscribed, bounced | ne | Tab. |
to | query | string | ne | Last day YYYY-MM-DD. |
Odpovědi
- 200 OK:
application/jsonobject
Chyby
| Stav | Kód | Hodnoty message |
|---|---|---|
| 400 | validation | q, tab |
| 401 | 401 unauthorized: missing, unknown, revoked, expired or idle API key. | |
| 403 | 403 forbidden: message tenant (another company), scope (read-only key), api_key (person only), or the module the key's roles lack. | |
| 404 | not_found | |
| 429 | 429 rate_limited: wait Retry-After seconds. | |
| 503 | unavailable | busy |
Conversions (orders) of a campaign
GET /api/v1/tenants/{tenant}/stats/campaigns/{campaign_id}/conversions
Oprávnění: oblast campaigns, úroveň read; klíč s přístupem read nebo full · Nástroj MCP: get_campaign_conversions
Orders after clicks of the campaign (direct within 24 hours, assisted), per currency.
Parametry
| Název | Kde | Typ | Povinné | Popis |
|---|---|---|---|---|
tenant | path | string (uuid) | ano | Public id of the company (tenant), a UUID: GET /api/v3/account-info answers it as data.guid; the app shows it on the API keys page. |
campaign_id | path | string | ano | Id of the campaign (string of digits). |
node | query | string | ne |
Odpovědi
- 200 OK:
application/jsonEmailConversions
Chyby
| Stav | Kód | Hodnoty message |
|---|---|---|
| 400 | validation | |
| 401 | 401 unauthorized: missing, unknown, revoked, expired or idle API key. | |
| 403 | 403 forbidden: message tenant (another company), scope (read-only key), api_key (person only), or the module the key's roles lack. | |
| 404 | not_found | |
| 429 | 429 rate_limited: wait Retry-After seconds. | |
| 503 | unavailable | busy |
Click map of a campaign
GET /api/v1/tenants/{tenant}/stats/campaigns/{campaign_id}/heatmap
Oprávnění: oblast campaigns, úroveň read; klíč s přístupem read nebo full
The sent e-mail with its variables filled for a sample recipient (the UI shows it in a sandboxed frame without scripts) and the clicks per link; an HTML editor e-mail has no picture.
Parametry
| Název | Kde | Typ | Povinné | Popis |
|---|---|---|---|---|
tenant | path | string (uuid) | ano | Public id of the company (tenant), a UUID: GET /api/v3/account-info answers it as data.guid; the app shows it on the API keys page. |
campaign_id | path | string | ano | Id of the campaign (string of digits). |
node | query | string | ne | |
snapshot | query | string | ne |
Odpovědi
- 200 OK:
application/jsonEmailClickMap
Chyby
| Stav | Kód | Hodnoty message |
|---|---|---|
| 400 | validation | |
| 401 | 401 unauthorized: missing, unknown, revoked, expired or idle API key. | |
| 403 | 403 forbidden: message tenant (another company), scope (read-only key), api_key (person only), or the module the key's roles lack. | |
| 404 | not_found | |
| 429 | 429 rate_limited: wait Retry-After seconds. | |
| 503 | unavailable | busy |
Recipients of a campaign with their events (JSON or CSV)
GET /api/v1/tenants/{tenant}/stats/campaigns/{campaign_id}/recipients
Oprávnění: oblast campaigns, úroveň read; klíč s přístupem read nebo full
Parametry
| Název | Kde | Typ | Povinné | Popis |
|---|---|---|---|---|
tenant | path | string (uuid) | ano | Public id of the company (tenant), a UUID: GET /api/v3/account-info answers it as data.guid; the app shows it on the API keys page. |
campaign_id | path | string | ano | Id of the campaign (string of digits). |
engagement | query | string | ne | |
format | query | one of: json, csv | ne | csv = a CSV file (UTF-8 with BOM, semicolons). |
from | query | string | ne | Start of the period (YYYY-MM-DD local day, or ISO time where noted). |
humans | query | string | ne | |
node | query | string | ne | |
page | query | integer | ne | Page number, from 1. default 1, min 1 |
pageSize | query | integer | ne | Items per page, 1 to 100. default 25, min 1, max 100 |
q | query | string | ne | Search text (case and diacritics insensitive). max 200 chars |
rows | query | string | ne | |
tab | query | string | ne | |
to | query | string | ne | End of the period (YYYY-MM-DD local day, or ISO time where noted). |
vat | query | string | ne |
Odpovědi
- 200 JSON, or CSV with format=csv:
application/jsonobject,text/csvstring
Chyby
| Stav | Kód | Hodnoty message |
|---|---|---|
| 400 | validation | engagement, q, tab |
| 401 | 401 unauthorized: missing, unknown, revoked, expired or idle API key. | |
| 403 | 403 forbidden: message tenant (another company), scope (read-only key), api_key (person only), or the module the key's roles lack. | |
| 404 | not_found | |
| 429 | 429 rate_limited: wait Retry-After seconds. | |
| 503 | unavailable | busy |
Report of a campaign (JSON or CSV)
GET /api/v1/tenants/{tenant}/stats/campaigns/{campaign_id}/report
Oprávnění: oblast campaigns, úroveň read; klíč s přístupem read nebo full
Parametry
| Název | Kde | Typ | Povinné | Popis |
|---|---|---|---|---|
tenant | path | string (uuid) | ano | Public id of the company (tenant), a UUID: GET /api/v3/account-info answers it as data.guid; the app shows it on the API keys page. |
campaign_id | path | string | ano | Id of the campaign (string of digits). |
engagement | query | string | ne | |
from | query | string | ne | Start of the period (YYYY-MM-DD local day, or ISO time where noted). |
humans | query | string | ne | |
node | query | string | ne | |
to | query | string | ne | End of the period (YYYY-MM-DD local day, or ISO time where noted). |
vat | query | string | ne |
Odpovědi
- 200 OK:
application/jsonEmailStatsReport
Chyby
| Stav | Kód | Hodnoty message |
|---|---|---|
| 400 | validation | engagement |
| 401 | 401 unauthorized: missing, unknown, revoked, expired or idle API key. | |
| 403 | 403 forbidden: message tenant (another company), scope (read-only key), api_key (person only), or the module the key's roles lack. | |
| 404 | not_found | |
| 429 | 429 rate_limited: wait Retry-After seconds. | |
| 503 | unavailable | busy |
E-mail statistics of campaigns and automations
GET /api/v1/tenants/{tenant}/stats/emails
Oprávnění: oblast campaigns, úroveň read; klíč s přístupem read nebo full · Nástroj MCP: list_email_stats
Sent campaigns and automation e-mails with their metrics, newest first.
Parametry
| Název | Kde | Typ | Povinné | Popis |
|---|---|---|---|---|
tenant | path | string (uuid) | ano | Public id of the company (tenant), a UUID: GET /api/v3/account-info answers it as data.guid; the app shows it on the API keys page. |
automationIds | query | string | ne | |
kind | query | one of: campaign, automation | ne | campaign or automation. |
name | query | string | ne | |
page | query | integer | ne | Page number, from 1. default 1, min 1 |
pageSize | query | integer | ne | Items per page, 1 to 100. default 25, min 1, max 100 |
q | query | string | ne | Search text. max 200 chars |
ref | query | string | ne | |
shop | query | string | ne | Shop id filter. |
sort | query | string | ne | Sort fields separated by commas, "-" = descending, at most 3 (e.g. name,-id). |
tag | query | string | ne | Label filter; repeat for more labels. |
transactional | query | string | ne |
Odpovědi
- 200 OK:
application/jsonEmailStatsPage
Chyby
| Stav | Kód | Hodnoty message |
|---|---|---|
| 400 | validation | automationIds, countTo, kind, name, q, sentTo, sort, transactional |
| 401 | 401 unauthorized: missing, unknown, revoked, expired or idle API key. | |
| 403 | 403 forbidden: message tenant (another company), scope (read-only key), api_key (person only), or the module the key's roles lack. | |
| 429 | 429 rate_limited: wait Retry-After seconds. | |
| 503 | unavailable | busy |
Campaigns taken over from SmartEmailing
GET /api/v1/tenants/{tenant}/stats/se-history
Oprávnění: oblast campaigns, úroveň read; klíč s přístupem read nebo full
The campaigns taken over from SmartEmailing by the switch (MG-05, se-spec v2 11 §11.2 step 11), newest first: SE's name, sender and counts (unique contacts) and how many of their events are on Poštárna's contacts (their Aktivity show them). q: words in the name. Read only; an account without a switch has none.
Parametry
| Název | Kde | Typ | Povinné | Popis |
|---|---|---|---|---|
tenant | path | string (uuid) | ano | Public id of the company (tenant), a UUID: GET /api/v3/account-info answers it as data.guid; the app shows it on the API keys page. |
page | query | integer | ne | Page number, from 1. default 1, min 1 |
pageSize | query | integer | ne | Items per page, 1 to 100. default 25, min 1, max 100 |
q | query | string | ne | Search text (case and diacritics insensitive). max 200 chars |
Odpovědi
- 200 OK:
application/jsonobject
Chyby
| Stav | Kód | Hodnoty message |
|---|---|---|
| 400 | validation | q |
| 401 | 401 unauthorized: missing, unknown, revoked, expired or idle API key. | |
| 403 | 403 forbidden: message tenant (another company), scope (read-only key), api_key (person only), or the module the key's roles lack. | |
| 429 | 429 rate_limited: wait Retry-After seconds. | |
| 503 | unavailable | busy |
Schémata
ApiEmailKind
one of: custom, transactional
ApiEmailLog
| Pole | Typ | Povinné | Popis |
|---|---|---|---|
tag | object | ano | |
items | array of ApiEmailLogItem | ano | |
total | number | ano | |
page | number | ano | |
pageSize | number | ano |
ApiEmailLogItem
One e-mail of the log (queued, sent or skipped with the reason).
| Pole | Typ | Povinné | Popis |
|---|---|---|---|
id | string | ano | |
requestId | string | ano | The id the API answered for the e-mail (32 hex). |
email | string | ano | |
subject | string | ano | |
from | string | ano | |
status | one of: unknown, sent, queued, sending, failed, skipped | ano | |
error | string | ano | |
queuedAt | string or null | ano | |
sentAt | string or null | ano | |
openedAt | string or null | ano | |
clickedAt | string or null | ano | |
unsubscribedAt | string or null | ano | |
bouncedAt | string or null | ano | |
complainedAt | string or null | ano | |
attachments | number | ano | Number of attachments (transactional e-mails). |
ApiEmailStat
One tag of API e-mails with its columns (rates are shares of the sent e-mails, 0 to 1).
| Pole | Typ | Povinné | Popis |
|---|---|---|---|
id | string | ano | |
name | string | ano | |
sent | number | ano | |
openRate | number | ano | |
clickRate | number | ano | |
unsubscribeRate | number | ano | |
lastQueuedAt | string or null | ano |
ApiEmailStatsPage
| Pole | Typ | Povinné | Popis |
|---|---|---|---|
enabled | boolean | ano | The platform turned e-mails through the API on for the account (off by default, on request). |
items | array of ApiEmailStat | ano | |
total | number | ano | |
page | number | ano | |
pageSize | number | ano |
ConversionCurrency
One currency: CZK and EUR are never added up or converted.
| Pole | Typ | Povinné | Popis |
|---|---|---|---|
currency | Currency | ano | |
direct | ConversionPart | ano | |
assisted | ConversionPart | ano |
ConversionOrder
| Pole | Typ | Povinné | Popis |
|---|---|---|---|
orderId | string | ano | |
code | string | ano | |
contactId | string or null | ano | |
email | string or null | ano | |
kind | one of: direct, assisted | ano | |
clickedAt | string | ano | |
orderedAt | string | ano | |
currency | Currency | ano | |
totalWithVat | string or null | ano | |
totalWithoutVat | string or null | ano |
ConversionPart
| Pole | Typ | Povinné | Popis |
|---|---|---|---|
orders | number | ano | |
revenue | string or null | ano | |
revenueWithoutVat | string or null | ano |
Currency
one of: CZK, EUR
DashboardData
| Pole | Typ | Povinné | Popis |
|---|---|---|---|
days | number | ano | Days of the period (from..to, both included) and of the comparison right before it. |
from | string | ne | |
to | string | ne | |
contacts | object or null | ano | null when the member's roles cannot read contacts. |
lastContact | object or null | ano | |
emails | object or null | ano | null when the member's roles cannot read campaigns. |
lastEmail | object or null | ano |
EmailClickMap
The e-mail's HTML and the clicks of every link.
| Pole | Typ | Povinné | Popis |
|---|---|---|---|
editor | one of: html, visual | ano | The editor of the e-mail: the click map exists only for the visual editor (visual); html is '' for the others. |
html | string | ano | The e-mail as it went out, its variables filled for a sample recipient. |
snapshots | array of object | ano | The template versions the node sent, newest first. |
snapshotId | string or null | ano | |
links | array of object | ano |
EmailConversions
| Pole | Typ | Povinné | Popis |
|---|---|---|---|
available | boolean | ano | false = no conversion provider yet (the tab says so instead of showing zeros). |
directHours | number | ano | |
assistedDays | number | ano | |
lastClickRuleFrom | string or null | ne | Since when an order goes to the last clicked e-mail, else the last opened one (owner 3 Dec 2026, migration 0706); orders placed before keep the last delivered e-mail. null = the rule applies to every order. |
currencies | array of ConversionCurrency | ano | |
orders | array of ConversionOrder | ano |
EmailMetrics
Counts of e-mails and their events (server core/stats.py). Rates: openRate, unsubscribeRate and complaintRate over the delivered e-mails, ctr and bounceRate over the sent ones; ctor = unique clicks / unique opens. Test e-mails never count.
| Pole | Typ | Povinné | Popis |
|---|---|---|---|
sent | number | ano | |
delivered | number | ano | sent - undelivered |
undelivered | number | ano | Hard or soft bounce. |
bounced | number | ano | |
softBounced | number | ano | |
opens | number | ano | |
uniqueOpens | number | ano | |
repeatedOpens | number | ano | |
machineOpens | number | ano | E-mails whose pixel only a machine fetched (Apple Mail Privacy Protection, security gateways): whether a person read them is unknown, so they are in no open count or rate. |
machineClicks | number | ne | Clicks of link scanners of mail servers and other machines (rules in core/machine.py): in no click count or rate, shown apart so the filtering is visible. Missing in older answers. |
clicks | number | ano | |
uniqueClicks | number | ano | |
unsubscribed | number | ano | |
complained | number | ano | |
queued | number | ano | |
failed | number | ano | |
skipped | number | ano | |
openRate | number | ano | |
ctr | number | ano | |
ctor | number | ano | |
unsubscribeRate | number | ano | |
bounceRate | number | ano | |
complaintRate | number | ano | |
deliveryRate | number | ano | delivered / sent |
EmailStatsDetail
| Pole | Typ | Povinné | Popis |
|---|---|---|---|
kind | one of: campaign, automation | ano | |
campaignId | string or null | ano | |
automationId | string or null | ano | |
nodeKey | string or null | ano | |
name | string | ano | |
subject | string | ano | |
shopId | string | ano | |
status | string | ano | |
sentAt | string or null | ano | |
nodes | array of object | ano | |
totals | EmailMetrics | ano | |
providers | array of object | ano | |
timeline | array of StatsDay | ano | |
links | array of object | ano |
EmailStatsItem
| Pole | Typ | Povinné | Popis |
|---|---|---|---|
id | string | ano | c<campaign id> or a<automation id>:<node key> |
kind | one of: campaign, automation | ano | |
campaignId | string or null | ano | |
automationId | string or null | ano | |
nodeKey | string or null | ano | |
name | string | ano | |
nodeName | string | ano | |
subject | string | ano | |
shopId | string | ano | |
status | string | ano | |
sentAt | string or null | ano | |
transactional | boolean | ne | An e-mail of a transactional automation (Statistiky › Transakční e-maily). |
stats | EmailMetrics | ano |
EmailStatsPage
A page of the statistics grid; totals = every e-mail of the asked automations together (query.automationIds).
| Pole | Typ | Povinné | Popis |
|---|---|---|---|
items | array of EmailStatsItem | ano | |
total | number | ano | |
page | number | ano | |
pageSize | number | ano | |
totals | EmailMetrics | ne |
EmailStatsReport
| Pole | Typ | Povinné | Popis |
|---|---|---|---|
kind | one of: campaign, automation | ano | |
campaignId | string or null | ano | |
automationId | string or null | ano | |
nodeKey | string or null | ano | |
name | string | ano | |
status | string | ano | |
startedAt | string or null | ano | |
completedAt | string or null | ano | |
shopId | string | ano | |
nodes | array of object | ano | |
filters | object | ano | |
firstSentAt | string or null | ano | |
lastSentAt | string or null | ano | |
totals | ReportMetrics | ano | |
baseline | ReportBaseline or null | ano | |
days | array of ReportDay | ano | |
domains | object | ano | |
clients | object | ano | |
systems | object | ano | |
links | array of object | ano | |
unsubscribeReasons | array of object | ano | |
bounceReasons | array of object | ano | |
bounceSplit | object | ano | |
revenue | array of ReportRevenue | ano | |
revenueDays | array of object | ano | |
conversionLinks | array of NamedCount | ano | Orders per clicked link. |
products | array of object | ano | Items sold (quantity) with a picture. |
engagementSpend | array of object | ano | |
topSpenders | array of object | ano | |
lastClickRuleFrom | string or null | ne | Since when an order goes to the last clicked e-mail, else the last opened one (owner 3 Dec 2026, migration 0706); orders placed before keep the last delivered e-mail. null = the rule applies to every order. |
Error
| Pole | Typ | Povinné | Popis |
|---|---|---|---|
error | object | ano |
{
"error": {
"code": "validation",
"message": "email"
}
}NamedCount
| Pole | Typ | Povinné | Popis |
|---|---|---|---|
name | string | ano | '' = the rest. |
count | number | ano |
ReportBaseline
The account's e-mails of the 30 days before (trend "oproti předchozím 30 dnům"); sent = average one-time campaign.
| Pole | Typ | Povinné | Popis |
|---|---|---|---|
sent | number or null | ano | |
openRate | number | ano | |
ctr | number | ano | |
ctor | number | ano | |
complaintRate | number | ano | |
unsubscribeRate | number | ano | |
bounceRate | number | ano | |
deliveryRate | number | ano | |
orderRate | number | ano |
ReportDay
| Pole | Typ | Povinné | Popis |
|---|---|---|---|
date | string | ano | |
opens | number | ano | |
clicks | number | ano | |
unsubscribed | number | ano | |
bounced | number | ano |
ReportMetrics
Rates: openRate, unsubscribeRate and complaintRate over delivered, ctr and orderRate over sent.
| Pole | Typ | Povinné | Popis |
|---|---|---|---|
orders | number | ano | |
orderRate | number | ano | |
reopeners | number | ano | E-mails opened more than once, and their share of the opened ones. |
reopenRate | number | ano | |
webVersionViews | number | ano | Views of the web version and prints, the e-mails with one, and their share of the opened e-mails. |
webVersionUnique | number | ano | |
webVersionRate | number | ano | |
printViews | number | ano | |
printUnique | number | ano | |
printRate | number | ano | |
sent | number | ano | |
delivered | number | ano | sent - undelivered |
undelivered | number | ano | Hard or soft bounce. |
bounced | number | ano | |
softBounced | number | ano | |
opens | number | ano | |
uniqueOpens | number | ano | |
repeatedOpens | number | ano | |
machineOpens | number | ano | E-mails whose pixel only a machine fetched (Apple Mail Privacy Protection, security gateways): whether a person read them is unknown, so they are in no open count or rate. |
machineClicks | number | ne | Clicks of link scanners of mail servers and other machines (rules in core/machine.py): in no click count or rate, shown apart so the filtering is visible. Missing in older answers. |
clicks | number | ano | |
uniqueClicks | number | ano | |
unsubscribed | number | ano | |
complained | number | ano | |
queued | number | ano | |
failed | number | ano | |
skipped | number | ano | |
openRate | number | ano | |
ctr | number | ano | |
ctor | number | ano | |
unsubscribeRate | number | ano | |
bounceRate | number | ano | |
complaintRate | number | ano | |
deliveryRate | number | ano | delivered / sent |
ReportRevenue
| Pole | Typ | Povinné | Popis |
|---|---|---|---|
currency | Currency | ano | |
orders | number | ano | |
directOrders | number | ano | |
assistedOrders | number | ano | |
total | string | ano | |
direct | string | ano | |
assisted | string | ano | |
averageOrder | string | ano | |
directAverage | string | ano | |
assistedAverage | string | ano | |
eshopOrders | number | ano | |
eshopTotal | string | ano | |
share | number | ano | |
margin | string or null | ne | From the purchase prices the e-shop sent with the order lines; null when no order of the group has one. *MarginOrders = orders with a known margin. |
marginAverage | string or null | ne | |
marginOrders | number | ne | |
directMargin | string or null | ne | |
directMarginAverage | string or null | ne | |
directMarginOrders | number | ne | |
assistedMargin | string or null | ne | |
assistedMarginAverage | string or null | ne | |
assistedMarginOrders | number | ne |
StatsActivity
| Pole | Typ | Povinné | Popis |
|---|---|---|---|
sendId | string | ano | |
contactId | string or null | ano | |
email | string | ano | |
firstAt | string | ano | |
lastAt | string | ano | |
opens | number | ano | |
clicks | number | ano | |
type | StatsActivityType | ano | |
source | string | ano | |
links | array of string | ano | |
detail | string | ano |
StatsActivityType
one of: complaint, unsubscribe, open, click, hard, soft
StatsDay
| Pole | Typ | Povinné | Popis |
|---|---|---|---|
date | string | ano | |
opens | number | ano | |
clicks | number | ano | |
unsubscribed | number | ano |