Odesílání a doručitelnost
Reference API pro odesílatele, odesílací domény (SPF, DKIM, DMARC), reporty DMARC a režim odesílání.
Technická reference je anglicky (stejně jako strojově čitelný dokument OpenAPI). Celou skupinu pro AI agenta načtete z /api/openapi.json?tag=Sending.
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}/deliverability/dmarc | DMARC summary |
| GET | /api/v1/tenants/{tenant}/deliverability/dmarc/report | DMARC report detail |
| GET | /api/v1/tenants/{tenant}/deliverability/domains | List domains with their DNS state |
| POST | /api/v1/tenants/{tenant}/deliverability/domains | Add a domain |
| PATCH | /api/v1/tenants/{tenant}/deliverability/domains/{domain_id} | Update a domain |
| DELETE | /api/v1/tenants/{tenant}/deliverability/domains/{domain_id} | Delete a domain |
| POST | /api/v1/tenants/{tenant}/deliverability/domains/{domain_id}/check | Check the DNS records of a domain now |
| GET | /api/v1/tenants/{tenant}/deliverability/senders | Senders with their authentication state |
| GET | /api/v1/tenants/{tenant}/sending-defaults | Get the default sending settings (tracking parameters of new campaigns, e-mail step window of automations) |
| PUT | /api/v1/tenants/{tenant}/sending-defaults | Set whether new campaigns start with tracking parameters |
| GET | /api/v1/tenants/{tenant}/sending-mode | Sending mode of the company (switch, limits) |
| POST | /api/v1/tenants/{tenant}/sending/domains | Add a sending domain |
| DELETE | /api/v1/tenants/{tenant}/sending/domains/{domain_id} | Delete a sending domain |
| POST | /api/v1/tenants/{tenant}/sending/domains/{domain_id}/check | Check a sending domain |
| POST | /api/v1/tenants/{tenant}/sending/senders | Add a sender |
| PATCH | /api/v1/tenants/{tenant}/sending/senders/{sender_id} | Update a sender |
| DELETE | /api/v1/tenants/{tenant}/sending/senders/{sender_id} | Delete a sender |
| POST | /api/v1/tenants/{tenant}/sending/senders/{sender_id}/check | Verify a waiting sender address once its domain is verified |
| GET | /api/v1/tenants/{tenant}/sending/senders/{sender_id}/usage | Where a sender is used |
| GET | /api/v1/tenants/{tenant}/sending/setup | State of the sending setup (domains and senders) |
DMARC summary
GET /api/v1/tenants/{tenant}/deliverability/dmarc
Oprávnění: oblast dmarc, ú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. |
Odpovědi
- 200 OK:
application/jsonDmarcSummary
Chyby
| Stav | Kód | Hodnoty message |
|---|---|---|
| 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 |
DMARC report detail
GET /api/v1/tenants/{tenant}/deliverability/dmarc/report
Oprávnění: oblast dmarc, úroveň read; klíč s přístupem read nebo full
?from=&to= (calendar days of the tenant, both included; none = the whole history) or ?preset= (core/periods.py, all = the whole history), ?domain= (sending domain id), ?reporter= (the provider's org name).
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. |
domain | query | string | ne | |
from | query | string | ne | Start of the period (YYYY-MM-DD local day, or ISO time where noted). |
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. |
reporter | 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/jsonDmarcReport
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 |
List domains with their DNS state
GET /api/v1/tenants/{tenant}/deliverability/domains
Oprávnění: oblast settings, ú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. |
Odpovědi
- 200 OK:
application/jsonSendingDomainList
Chyby
| Stav | Kód | Hodnoty message |
|---|---|---|
| 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 |
Add a domain
POST /api/v1/tenants/{tenant}/deliverability/domains
Oprávnění: oblast settings, úroveň full; klíč s přístupem 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. |
Tělo požadavku (application/json): Required by the server: domain.
| Pole | Typ | Povinné | Popis |
|---|---|---|---|
domain | string | ano | |
dkimSelectors | array of string | ne |
Odpovědi
- 201 Created:
application/jsonSendingDomain
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 |
Update a domain
PATCH /api/v1/tenants/{tenant}/deliverability/domains/{domain_id}
Oprávnění: oblast settings, úroveň full; klíč s přístupem 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. |
domain_id | path | string | ano | Id of the domain (string of digits). |
Tělo požadavku (application/json): Required by the server: dkimSelectors.
| Pole | Typ | Povinné | Popis |
|---|---|---|---|
dkimSelectors | array of string | ano |
Odpovědi
- 200 OK:
application/jsonSendingDomain
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 |
Delete a domain
DELETE /api/v1/tenants/{tenant}/deliverability/domains/{domain_id}
Oprávnění: oblast settings, úroveň full; klíč s přístupem 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. |
domain_id | path | string | ano | Id of the domain (string of digits). |
Odpovědi
- 204 No content
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 |
Check the DNS records of a domain now
POST /api/v1/tenants/{tenant}/deliverability/domains/{domain_id}/check
Oprávnění: oblast settings, úroveň full; klíč s přístupem 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. |
domain_id | path | string | ano | Id of the domain (string of digits). |
Odpovědi
- 200 OK:
application/jsonSendingDomain
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, dns |
Senders with their authentication state
GET /api/v1/tenants/{tenant}/deliverability/senders
Oprávnění: oblast settings, ú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. |
Odpovědi
- 200 OK:
application/jsonobject
Chyby
| Stav | Kód | Hodnoty message |
|---|---|---|
| 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 |
Get the default sending settings (tracking parameters of new campaigns, e-mail step window of automations)
GET /api/v1/tenants/{tenant}/sending-defaults
Oprávnění: oblast settings, úroveň read; klíč s přístupem read nebo full
Nastavení › Odesílání › Výchozí nastavení beyond what other routes keep (senders, test recipients, the default unsubscribe page): {utmDefaultOn} = new campaign drafts start with the tracking parameters on. automationNodeSendWindowHours (read only) = the e-mail step window of automations in hours: one e-mail step e-mails one contact at most once in that many hours, 0 = no limit (setting automation_node_send_window_hours, default 24; the value the engine uses, core/automation_engine.node_send_window). The company cannot change it here: Poštárna's support sets it on a written request.
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. |
Odpovědi
- 200 OK:
application/jsonSendingDefaults
Chyby
| Stav | Kód | Hodnoty message |
|---|---|---|
| 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 |
Set whether new campaigns start with tracking parameters
PUT /api/v1/tenants/{tenant}/sending-defaults
Oprávnění: oblast settings, úroveň full; klíč s přístupem full
Body {utmDefaultOn: bool}. Audited as setting_changed. automationNodeSendWindowHours is read only: a value sent here is ignored and the answer carries the stored one.
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. |
Tělo požadavku (application/json): Required by the server: utmDefaultOn.
| Pole | Typ | Povinné | Popis |
|---|---|---|---|
utmDefaultOn | boolean | ano |
Odpovědi
- 200 OK:
application/jsonSendingDefaults
Chyby
| Stav | Kód | Hodnoty message |
|---|---|---|
| 400 | validation | utmDefaultOn |
| 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 |
Sending mode of the company (switch, limits)
GET /api/v1/tenants/{tenant}/sending-mode
Oprávnění: oblast null, úroveň read; klíč s přístupem read nebo full
What leaves Poštárna for this tenant now (core/backends.mode_of): live (everything), test (only test e-mails to the test whitelist, the platform's test mode), folder (development: files, nothing leaves) or off (nothing). testRecipients = how many addresses the test whitelist has. sendingEnabled = the tenant's kill switch (setting sending_enabled, python -m postarna.admin sending-switch): while it is off no sending tick runs, so no campaign goes out and no automation lets anybody in, whatever the mode says (test e-mails still go out). sendingState = the platform's approval of live sending (pending, live, paused, suspended; migration 0170) and sendingHold why a live tenant is held ('', platform, trial_limit, free_limit, unpaid, reputation = the sending service paused the account for its delivery quality); trial = the usage of a capped self-serve trial (trial_json) or null. sendingBlock = why nothing goes out now (core/sending_switch.BLOCKS: '' it can, held the platform's approval or a hold, no_domain no verified sending domain yet, switched_off a person switched it off, off the switch is off and turns on by itself soon) and canSwitchOn = a verified sending domain exists, so a person with full settings rights may turn the switch on (PUT sending-switch).
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. |
Odpovědi
- 200 OK:
application/jsonSendingModeInfo
Chyby
| Stav | Kód | Hodnoty message |
|---|---|---|
| 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 |
Add a sending domain
POST /api/v1/tenants/{tenant}/sending/domains
Oprávnění: oblast settings, úroveň full; klíč s přístupem 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. |
Tělo požadavku (application/json): Required by the server: domain.
| Pole | Typ | Povinné | Popis |
|---|---|---|---|
domain | string | ano |
Odpovědi
- 201 Created:
application/jsonSetupDomain
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 |
Delete a sending domain
DELETE /api/v1/tenants/{tenant}/sending/domains/{domain_id}
Oprávnění: oblast settings, úroveň full; klíč s přístupem 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. |
domain_id | path | string | ano | Id of the domain (string of digits). |
Odpovědi
- 204 No content
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 |
Check a sending domain
POST /api/v1/tenants/{tenant}/sending/domains/{domain_id}/check
Oprávnění: oblast settings, úroveň full; klíč s přístupem 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. |
domain_id | path | string | ano | Id of the domain (string of digits). |
Odpovědi
- 200 OK:
application/jsonSetupDomain
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 |
Add a sender
POST /api/v1/tenants/{tenant}/sending/senders
Oprávnění: oblast settings, úroveň full; klíč s přístupem 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. |
Tělo požadavku (application/json): Required by the server: email, shopId.
| Pole | Typ | Povinné | Popis |
|---|---|---|---|
shopId | string | ano | |
email | string | ano | |
name | string | ne | |
replyTo | string | ne | |
isDefault | boolean | ne |
Odpovědi
- 201 Created:
application/jsonSetupSender
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 |
Update a sender
PATCH /api/v1/tenants/{tenant}/sending/senders/{sender_id}
Oprávnění: oblast settings, úroveň full; klíč s přístupem 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. |
sender_id | path | string | ano | Id of the sender (string of digits). |
Tělo požadavku (application/json)
| Pole | Typ | Povinné | Popis |
|---|---|---|---|
name | string | ne | From name, at most 100 characters without < > { } " and line breaks. |
replyTo | string | ne | Address for replies, '' = replies go to the sender address. |
isDefault | true | ne |
Odpovědi
- 200 OK:
application/jsonSetupSender
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 |
Delete a sender
DELETE /api/v1/tenants/{tenant}/sending/senders/{sender_id}
Oprávnění: oblast settings, úroveň full; klíč s přístupem full
204; 409 conflict default / in_use; ?replacementId= first moves the shop's default, the unfinished campaigns and the automation e-mail steps to that sender of the same shop.
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. |
sender_id | path | string | ano | Id of the sender (string of digits). |
replacementId | query | string | ne |
Odpovědi
- 204 No content
Chyby
| Stav | Kód | Hodnoty message |
|---|---|---|
| 400 | validation | replacementId |
| 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 |
Verify a waiting sender address once its domain is verified
POST /api/v1/tenants/{tenant}/sending/senders/{sender_id}/check
Oprávnění: oblast settings, úroveň full; klíč s přístupem full
Zkontrolovat of an unverified sender (DO-03): verified once its address is on a verified sending domain.
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. |
sender_id | path | string | ano | Id of the sender (string of digits). |
Odpovědi
- 200 OK:
application/jsonSetupSender
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 |
Where a sender is used
GET /api/v1/tenants/{tenant}/sending/senders/{sender_id}/usage
Oprávnění: oblast settings, úroveň read; klíč s přístupem read nebo full
Where a sender is used: {items: [{type, id, name, status}]}, type default (its shop's default sender), campaign or automation.
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. |
sender_id | path | string | ano | Id of the sender (string of digits). |
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. | |
| 404 | not_found | |
| 429 | 429 rate_limited: wait Retry-After seconds. | |
| 503 | unavailable | busy |
State of the sending setup (domains and senders)
GET /api/v1/tenants/{tenant}/sending/setup
Oprávnění: oblast settings, ú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. |
Odpovědi
- 200 OK:
application/jsonSendingSetup
Chyby
| Stav | Kód | Hodnoty message |
|---|---|---|
| 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
DmarcReport
| Pole | Typ | Povinné | Popis |
|---|---|---|---|
totals | object | ano | |
domains | array of object | ano | |
days | array of object | ano | |
ips | array of object | ano | Sending servers (top 100): country = ISO 3166-1 alpha-2 from the bundled GeoIP data ('' unknown), own = one of the platform's sending IPs (marked "(Poštárna)"). |
ipVersions | object | ano | |
countries | array of object | ano | Every server of the period by country, most first. |
reporters | array of object | ano | |
dispositions | array of object | ano | |
cases | array of object | ano | |
reporterChoices | array of string | ano | |
domainChoices | array of object | ano |
DmarcSummary
| Pole | Typ | Povinné | Popis |
|---|---|---|---|
days | number | ano | |
domains | array of object | ano | |
sources | array of object | ano | |
reports | array of object | ano | |
complaints | object | ano |
Error
| Pole | Typ | Povinné | Popis |
|---|---|---|---|
error | object | ano |
{
"error": {
"code": "validation",
"message": "email"
}
}SenderAuth
| Pole | Typ | Povinné | Popis |
|---|---|---|---|
id | string | ano | |
shopId | string | ano | |
name | string | ano | |
email | string | ano | |
replyTo | string | ano | |
domain | string | ano | |
domainId | string or null | ano | |
verified | boolean | ano | |
isDefault | boolean | ano | |
freemail | boolean | ano | |
spf | one of: ok, invalid, unknown, error, missing | ano | |
dkim | one of: ok, invalid, unknown, error, missing | ano | |
dmarc | one of: ok, invalid, unknown, error, missing | ano | |
usableAsSender | boolean | ano | |
policyIssue | one of: freemail, domain_not_verified, null | ne | DO-03: why Terms 7.4 would refuse this address today (it keeps working, the grid warns). |
SenderUsage
One use of a sender (GET /sending/senders/{id}/usage). type default: the default sender of shop id.
| Pole | Typ | Povinné | Popis |
|---|---|---|---|
type | one of: campaign, automation, default | ano | |
id | string | ano | |
name | string | ano | |
status | string | ano |
SendingDefaults
GET/PUT /tenants/{t}/sending-defaults: utmDefaultOn = new drafts start with the tracking parameters utm_source newsletter and utm_medium email.
| Pole | Typ | Povinné | Popis |
|---|---|---|---|
utmDefaultOn | boolean | ano | |
automationNodeSendWindowHours | number | ano | Read only: the e-mail step window of automations in hours. One e-mail step e-mails one contact at most once in that many hours (0 = no limit, default 24). Support changes it on a written request; PUT ignores it. |
SendingDefaultsInput
Body of PUT /tenants/{t}/sending-defaults: what the company itself may change.
| Pole | Typ | Povinné | Popis |
|---|---|---|---|
utmDefaultOn | boolean | ano |
SendingDomain
| Pole | Typ | Povinné | Popis |
|---|---|---|---|
id | string | ano | |
domain | string | ano | |
dkimSelectors | array of string | ano | |
spf | object | ano | |
dkim | object | ano | |
dmarc | object | ano | |
issues | array of string | ano | Codes, texts in the catalogs (deliverability.issue.<code>). |
checkedAt | string or null | ano | |
createdAt | string | ano |
SendingDomainInput
| Pole | Typ | Povinné | Popis |
|---|---|---|---|
domain | string | ano | |
dkimSelectors | array of string | ne |
SendingDomainList
| Pole | Typ | Povinné | Popis |
|---|---|---|---|
items | array of SendingDomain | ano | |
suggestions | array of string | ano | Domains of sender addresses without a sending domain yet. |
SendingMode
one of: live, test, folder, off
SendingModeInfo
| Pole | Typ | Povinné | Popis |
|---|---|---|---|
mode | SendingMode | ano | |
testRecipients | number | ano | How many addresses the tenant's test list has. |
sendingEnabled | boolean | ne | The tenant's kill switch: off = no campaign goes out and no automation lets anybody in (tests still go out). |
sendingState | one of: suspended, pending, live, paused | ne | The platform's approval (B4): anything but live keeps the tenant to test e-mails. |
sendingHold | one of: `, trial_limit, free_limit, unpaid, platform, reputation` | ne | Why a live tenant is held: the platform switch or billing (trial or free tier used up, unpaid invoice). |
trial | TrialUsage or null | ne | A capped self-serve trial: what it used of its limits and the days left; null otherwise. |
sendingBlock | one of: `, off, held, no_domain, switched_off` | ne | Why nothing goes out now: '' it can, held (the platform's approval or a hold, the banner names it), no_domain (no verified sending domain yet), switched_off (a person switched it off), off (it turns on by itself soon). |
canSwitchOn | boolean | ne | A verified sending domain exists, so a person with full settings rights may turn the switch on. |
trialSender | TrialSenderInfo or null | ne | The platform's shared trial sender carries this account's test e-mails (no verified sending domain yet); null or missing while it does not apply. |
trialSenderRelogin | boolean | ne | The trial sender would carry this account's tests, but this sign-in is older than it: sign in again. |
SendingSetup
| Pole | Typ | Povinné | Popis |
|---|---|---|---|
managed | boolean | ano | The tenant sends through the platform account (Poštárna creates the identity). |
platformReady | boolean | ano | false = the platform still has to finish its part (no identity credential). |
domains | array of SetupDomain | ano | |
suggestions | array of string | ano | |
shops | array of object | ano | |
senders | array of SetupSender | ano | |
apiEmailEnabled | boolean | ne | The platform turned e-mails through the API (transactional) on for the account (AP-05). |
agencyDomains | array of string | ne | Verified domains of the agency this client account may send from (agencies). |
advanced | object | ne | Platform admins only. |
SetupDnsRecord
| Pole | Typ | Povinné | Popis |
|---|---|---|---|
kind | one of: dkim, spf, dmarc, return_path | ano | return_path = the custom MAIL FROM subdomain (bounce.<domain>): an MX and a TXT record. |
type | one of: CNAME, TXT, MX | ano | |
priority | number | ne | MX records only. |
host | string | ano | Name without the domain (what most DNS hosts ask for); '@ |
name | string | ano | Full name. |
value | string | ano | |
required | boolean | ano | |
status | SetupRecordStatus | ano |
SetupDomain
| Pole | Typ | Povinné | Popis |
|---|---|---|---|
id | string | ano | |
domain | string | ano | |
state | SetupDomainState | ano | |
records | array of SetupDnsRecord | ano | |
checkedAt | string or null | ano | |
createdAt | string | ano | |
recheckUntil | string or null | ano | Until when Poštárna checks the unverified domain by itself (null when verified or waiting for the platform). |
restartedAt | string or null | ano | When Poštárna last started the failed check again after it found the records in DNS (null = never). |
advanced | object | ne | Platform admins only. |
SetupDomainState
one of: pending, failed, verified, setup
SetupRecordStatus
one of: ok, unknown, missing
SetupSender
| Pole | Typ | Povinné | Popis |
|---|---|---|---|
id | string | ano | |
shopId | string | ano | |
name | string | ano | |
email | string | ano | |
replyTo | string | ano | |
isDefault | boolean | ano | |
verified | boolean | ano | |
domainVerified | boolean | ano | |
verifyMethod | one of: domain, email | ne | DO-03: domain = verified by the DKIM of its domain, email = confirmed (or waiting for) a confirmation e-mail. |
verificationSentAt | string or null | ne | When the last confirmation e-mail went out; null = none could be sent. |
freemail | boolean | ne | An address of a free mailbox service (its provider's DMARC fails for e-mails sent through Poštárna). |
policyIssue | one of: freemail, domain_not_verified, null | ne | DO-03: why Terms 7.4 would refuse this address today (it keeps working, the UI warns). |
SetupSenderInput
| Pole | Typ | Povinné | Popis |
|---|---|---|---|
shopId | string | ano | |
email | string | ano | |
name | string | ne | |
replyTo | string | ne | |
isDefault | boolean | ne |
SetupSenderPatch
Edit of an existing sender. The address itself never changes (it belongs to a verified domain; server 400 validation email, reason read_only).
| Pole | Typ | Povinné | Popis |
|---|---|---|---|
name | string | ne | From name, at most 100 characters without < > { } " and line breaks. |
replyTo | string | ne | Address for replies, '' = replies go to the sender address. |
isDefault | true | ne |
TrialSenderInfo
The shared trial sender of test e-mails (GET /tenants/{t}/sending-mode, trialSender).
| Pole | Typ | Povinné | Popis |
|---|---|---|---|
from | string | ano | "Company přes Poštárnu <t-…@ |
addresses | array of string | ano | Who may get a trial test: the login address first, then the confirmed extra addresses. |
maxExtra | number | ano | How many extra addresses may be confirmed besides the login address. |
dailyCap | number | ano | Trial tests of the account in 24 hours and how many of them are used. |
usedToday | number | ano | |
disabled | boolean | ano | A hard bounce or a complaint on a trial test switched the trial sender of this account off. |
waitMinutes | number | ne | Minutes until a new account may send through it; 0 or missing = now. |
TrialUsage
| Pole | Typ | Povinné | Popis |
|---|---|---|---|
contacts | number | ano | |
contactsLimit | number | ano | |
emailsMonth | number | ano | E-mails of this calendar month (campaigns, automations, transactional, double opt-in). |
emailsLimit | number | ano | |
hourly | number | ano | |
daily | number | ano | |
firstCampaign | number | ano | |
endsAt | string or null | ano | |
daysLeft | number or null | ano | |
firstPaymentPending | boolean | ne | A tariff is ordered but its first invoice is not paid yet: the trial limits hold until it is (terms 1.2). |
firstPaymentInvoice | object or null | ne |