Odosielanie a doručiteľnosť
Referencia API pre odosielateľov, odosielacie domény (SPF, DKIM, DMARC), reporty DMARC a režim odosielania.
Technická referencia je v angličtine (rovnako ako strojovo čitateľný dokument OpenAPI). Celú skupinu pre AI agenta načítate z /api/openapi.json?tag=Sending.
Prihlásenie: Authorization: Bearer pst_... alebo HTTP Basic (e-mail člena firmy a API kľúč).
Operácie
| Metóda | 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ávnenie: oblasť dmarc, úroveň read; kľúč s prístupom read alebo full
Parametre
| Názov | Kde | Typ | Povinné | Popis |
|---|---|---|---|---|
tenant | path | string (uuid) | áno | 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. |
Odpovede
- 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ávnenie: oblasť dmarc, úroveň read; kľúč s prístupom read alebo 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).
Parametre
| Názov | Kde | Typ | Povinné | Popis |
|---|---|---|---|---|
tenant | path | string (uuid) | áno | 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 | nie | |
from | query | string | nie | 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 | nie | 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 | nie | |
to | query | string | nie | End of the period (YYYY-MM-DD local day, or ISO time where noted). |
Odpovede
- 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ávnenie: oblasť settings, úroveň read; kľúč s prístupom read alebo full
Parametre
| Názov | Kde | Typ | Povinné | Popis |
|---|---|---|---|---|
tenant | path | string (uuid) | áno | 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. |
Odpovede
- 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ávnenie: oblasť settings, úroveň full; kľúč s prístupom full
Parametre
| Názov | Kde | Typ | Povinné | Popis |
|---|---|---|---|---|
tenant | path | string (uuid) | áno | 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. |
Telo požiadavky (application/json): Required by the server: domain.
| Pole | Typ | Povinné | Popis |
|---|---|---|---|
domain | string | áno | |
dkimSelectors | array of string | nie |
Odpovede
- 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ávnenie: oblasť settings, úroveň full; kľúč s prístupom full
Parametre
| Názov | Kde | Typ | Povinné | Popis |
|---|---|---|---|---|
tenant | path | string (uuid) | áno | 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 | áno | Id of the domain (string of digits). |
Telo požiadavky (application/json): Required by the server: dkimSelectors.
| Pole | Typ | Povinné | Popis |
|---|---|---|---|
dkimSelectors | array of string | áno |
Odpovede
- 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ávnenie: oblasť settings, úroveň full; kľúč s prístupom full
Parametre
| Názov | Kde | Typ | Povinné | Popis |
|---|---|---|---|---|
tenant | path | string (uuid) | áno | 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 | áno | Id of the domain (string of digits). |
Odpovede
- 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ávnenie: oblasť settings, úroveň full; kľúč s prístupom full
Parametre
| Názov | Kde | Typ | Povinné | Popis |
|---|---|---|---|---|
tenant | path | string (uuid) | áno | 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 | áno | Id of the domain (string of digits). |
Odpovede
- 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ávnenie: oblasť settings, úroveň read; kľúč s prístupom read alebo full
Parametre
| Názov | Kde | Typ | Povinné | Popis |
|---|---|---|---|---|
tenant | path | string (uuid) | áno | 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. |
Odpovede
- 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ávnenie: oblasť settings, úroveň read; kľúč s prístupom read alebo 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.
Parametre
| Názov | Kde | Typ | Povinné | Popis |
|---|---|---|---|---|
tenant | path | string (uuid) | áno | 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. |
Odpovede
- 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ávnenie: oblasť settings, úroveň full; kľúč s prístupom 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.
Parametre
| Názov | Kde | Typ | Povinné | Popis |
|---|---|---|---|---|
tenant | path | string (uuid) | áno | 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. |
Telo požiadavky (application/json): Required by the server: utmDefaultOn.
| Pole | Typ | Povinné | Popis |
|---|---|---|---|
utmDefaultOn | boolean | áno |
Odpovede
- 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ávnenie: oblasť null, úroveň read; kľúč s prístupom read alebo 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).
Parametre
| Názov | Kde | Typ | Povinné | Popis |
|---|---|---|---|---|
tenant | path | string (uuid) | áno | 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. |
Odpovede
- 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ávnenie: oblasť settings, úroveň full; kľúč s prístupom full
Parametre
| Názov | Kde | Typ | Povinné | Popis |
|---|---|---|---|---|
tenant | path | string (uuid) | áno | 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. |
Telo požiadavky (application/json): Required by the server: domain.
| Pole | Typ | Povinné | Popis |
|---|---|---|---|
domain | string | áno |
Odpovede
- 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ávnenie: oblasť settings, úroveň full; kľúč s prístupom full
Parametre
| Názov | Kde | Typ | Povinné | Popis |
|---|---|---|---|---|
tenant | path | string (uuid) | áno | 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 | áno | Id of the domain (string of digits). |
Odpovede
- 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ávnenie: oblasť settings, úroveň full; kľúč s prístupom full
Parametre
| Názov | Kde | Typ | Povinné | Popis |
|---|---|---|---|---|
tenant | path | string (uuid) | áno | 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 | áno | Id of the domain (string of digits). |
Odpovede
- 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ávnenie: oblasť settings, úroveň full; kľúč s prístupom full
Parametre
| Názov | Kde | Typ | Povinné | Popis |
|---|---|---|---|---|
tenant | path | string (uuid) | áno | 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. |
Telo požiadavky (application/json): Required by the server: email, shopId.
| Pole | Typ | Povinné | Popis |
|---|---|---|---|
shopId | string | áno | |
email | string | áno | |
name | string | nie | |
replyTo | string | nie | |
isDefault | boolean | nie |
Odpovede
- 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ávnenie: oblasť settings, úroveň full; kľúč s prístupom full
Parametre
| Názov | Kde | Typ | Povinné | Popis |
|---|---|---|---|---|
tenant | path | string (uuid) | áno | 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 | áno | Id of the sender (string of digits). |
Telo požiadavky (application/json)
| Pole | Typ | Povinné | Popis |
|---|---|---|---|
name | string | nie | From name, at most 100 characters without < > { } " and line breaks. |
replyTo | string | nie | Address for replies, '' = replies go to the sender address. |
isDefault | true | nie |
Odpovede
- 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ávnenie: oblasť settings, úroveň full; kľúč s prístupom 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.
Parametre
| Názov | Kde | Typ | Povinné | Popis |
|---|---|---|---|---|
tenant | path | string (uuid) | áno | 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 | áno | Id of the sender (string of digits). |
replacementId | query | string | nie |
Odpovede
- 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ávnenie: oblasť settings, úroveň full; kľúč s prístupom full
Zkontrolovat of an unverified sender (DO-03): verified once its address is on a verified sending domain.
Parametre
| Názov | Kde | Typ | Povinné | Popis |
|---|---|---|---|---|
tenant | path | string (uuid) | áno | 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 | áno | Id of the sender (string of digits). |
Odpovede
- 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ávnenie: oblasť settings, úroveň read; kľúč s prístupom read alebo full
Where a sender is used: {items: [{type, id, name, status}]}, type default (its shop's default sender), campaign or automation.
Parametre
| Názov | Kde | Typ | Povinné | Popis |
|---|---|---|---|---|
tenant | path | string (uuid) | áno | 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 | áno | Id of the sender (string of digits). |
Odpovede
- 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ávnenie: oblasť settings, úroveň read; kľúč s prístupom read alebo full
Parametre
| Názov | Kde | Typ | Povinné | Popis |
|---|---|---|---|---|
tenant | path | string (uuid) | áno | 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. |
Odpovede
- 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émy
DmarcReport
| Pole | Typ | Povinné | Popis |
|---|---|---|---|
totals | object | áno | |
domains | array of object | áno | |
days | array of object | áno | |
ips | array of object | áno | 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 | áno | |
countries | array of object | áno | Every server of the period by country, most first. |
reporters | array of object | áno | |
dispositions | array of object | áno | |
cases | array of object | áno | |
reporterChoices | array of string | áno | |
domainChoices | array of object | áno |
DmarcSummary
| Pole | Typ | Povinné | Popis |
|---|---|---|---|
days | number | áno | |
domains | array of object | áno | |
sources | array of object | áno | |
reports | array of object | áno | |
complaints | object | áno |
Error
| Pole | Typ | Povinné | Popis |
|---|---|---|---|
error | object | áno |
{
"error": {
"code": "validation",
"message": "email"
}
}SenderAuth
| Pole | Typ | Povinné | Popis |
|---|---|---|---|
id | string | áno | |
shopId | string | áno | |
name | string | áno | |
email | string | áno | |
replyTo | string | áno | |
domain | string | áno | |
domainId | string or null | áno | |
verified | boolean | áno | |
isDefault | boolean | áno | |
freemail | boolean | áno | |
spf | one of: ok, invalid, unknown, error, missing | áno | |
dkim | one of: ok, invalid, unknown, error, missing | áno | |
dmarc | one of: ok, invalid, unknown, error, missing | áno | |
usableAsSender | boolean | áno | |
policyIssue | one of: freemail, domain_not_verified, null | nie | 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 | áno | |
id | string | áno | |
name | string | áno | |
status | string | áno |
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 | áno | |
automationNodeSendWindowHours | number | áno | 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 | áno |
SendingDomain
| Pole | Typ | Povinné | Popis |
|---|---|---|---|
id | string | áno | |
domain | string | áno | |
dkimSelectors | array of string | áno | |
spf | object | áno | |
dkim | object | áno | |
dmarc | object | áno | |
issues | array of string | áno | Codes, texts in the catalogs (deliverability.issue.<code>). |
checkedAt | string or null | áno | |
createdAt | string | áno |
SendingDomainInput
| Pole | Typ | Povinné | Popis |
|---|---|---|---|
domain | string | áno | |
dkimSelectors | array of string | nie |
SendingDomainList
| Pole | Typ | Povinné | Popis |
|---|---|---|---|
items | array of SendingDomain | áno | |
suggestions | array of string | áno | Domains of sender addresses without a sending domain yet. |
SendingMode
one of: live, test, folder, off
SendingModeInfo
| Pole | Typ | Povinné | Popis |
|---|---|---|---|
mode | SendingMode | áno | |
testRecipients | number | áno | How many addresses the tenant's test list has. |
sendingEnabled | boolean | nie | 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 | nie | 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` | nie | Why a live tenant is held: the platform switch or billing (trial or free tier used up, unpaid invoice). |
trial | TrialUsage or null | nie | 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` | nie | 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 | nie | A verified sending domain exists, so a person with full settings rights may turn the switch on. |
trialSender | TrialSenderInfo or null | nie | 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 | nie | 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 | áno | The tenant sends through the platform account (Poštárna creates the identity). |
platformReady | boolean | áno | false = the platform still has to finish its part (no identity credential). |
domains | array of SetupDomain | áno | |
suggestions | array of string | áno | |
shops | array of object | áno | |
senders | array of SetupSender | áno | |
apiEmailEnabled | boolean | nie | The platform turned e-mails through the API (transactional) on for the account (AP-05). |
agencyDomains | array of string | nie | Verified domains of the agency this client account may send from (agencies). |
advanced | object | nie | Platform admins only. |
SetupDnsRecord
| Pole | Typ | Povinné | Popis |
|---|---|---|---|
kind | one of: dkim, spf, dmarc, return_path | áno | return_path = the custom MAIL FROM subdomain (bounce.<domain>): an MX and a TXT record. |
type | one of: CNAME, TXT, MX | áno | |
priority | number | nie | MX records only. |
host | string | áno | Name without the domain (what most DNS hosts ask for); '@ |
name | string | áno | Full name. |
value | string | áno | |
required | boolean | áno | |
status | SetupRecordStatus | áno |
SetupDomain
| Pole | Typ | Povinné | Popis |
|---|---|---|---|
id | string | áno | |
domain | string | áno | |
state | SetupDomainState | áno | |
records | array of SetupDnsRecord | áno | |
checkedAt | string or null | áno | |
createdAt | string | áno | |
recheckUntil | string or null | áno | Until when Poštárna checks the unverified domain by itself (null when verified or waiting for the platform). |
restartedAt | string or null | áno | When Poštárna last started the failed check again after it found the records in DNS (null = never). |
advanced | object | nie | Platform admins only. |
SetupDomainState
one of: pending, failed, verified, setup
SetupRecordStatus
one of: ok, unknown, missing
SetupSender
| Pole | Typ | Povinné | Popis |
|---|---|---|---|
id | string | áno | |
shopId | string | áno | |
name | string | áno | |
email | string | áno | |
replyTo | string | áno | |
isDefault | boolean | áno | |
verified | boolean | áno | |
domainVerified | boolean | áno | |
verifyMethod | one of: domain, email | nie | DO-03: domain = verified by the DKIM of its domain, email = confirmed (or waiting for) a confirmation e-mail. |
verificationSentAt | string or null | nie | When the last confirmation e-mail went out; null = none could be sent. |
freemail | boolean | nie | 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 | nie | DO-03: why Terms 7.4 would refuse this address today (it keeps working, the UI warns). |
SetupSenderInput
| Pole | Typ | Povinné | Popis |
|---|---|---|---|
shopId | string | áno | |
email | string | áno | |
name | string | nie | |
replyTo | string | nie | |
isDefault | boolean | nie |
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 | nie | From name, at most 100 characters without < > { } " and line breaks. |
replyTo | string | nie | Address for replies, '' = replies go to the sender address. |
isDefault | true | nie |
TrialSenderInfo
The shared trial sender of test e-mails (GET /tenants/{t}/sending-mode, trialSender).
| Pole | Typ | Povinné | Popis |
|---|---|---|---|
from | string | áno | "Company přes Poštárnu <t-…@ |
addresses | array of string | áno | Who may get a trial test: the login address first, then the confirmed extra addresses. |
maxExtra | number | áno | How many extra addresses may be confirmed besides the login address. |
dailyCap | number | áno | Trial tests of the account in 24 hours and how many of them are used. |
usedToday | number | áno | |
disabled | boolean | áno | A hard bounce or a complaint on a trial test switched the trial sender of this account off. |
waitMinutes | number | nie | Minutes until a new account may send through it; 0 or missing = now. |
TrialUsage
| Pole | Typ | Povinné | Popis |
|---|---|---|---|
contacts | number | áno | |
contactsLimit | number | áno | |
emailsMonth | number | áno | E-mails of this calendar month (campaigns, automations, transactional, double opt-in). |
emailsLimit | number | áno | |
hourly | number | áno | |
daily | number | áno | |
firstCampaign | number | áno | |
endsAt | string or null | áno | |
daysLeft | number or null | áno | |
firstPaymentPending | boolean | nie | 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 | nie |