Preskočiť na obsah
API dokumentácia

Kampane

Referencia API pre kampane: koncept, príjemcovia, obsah, test, schválenie (hneď alebo naplánovať), pozastavenie, zrušenie a jazykové varianty.

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=Campaigns.

Prihlásenie: Authorization: Bearer pst_... alebo HTTP Basic (e-mail člena firmy a API kľúč).

Operácie

MetódaCestaPopis
GET/api/v1/tenants/{tenant}/campaignsList campaigns
POST/api/v1/tenants/{tenant}/campaignsCreate a campaign (draft)
POST/api/v1/tenants/{tenant}/campaigns/audienceCount and explain the recipients of an audience
POST/api/v1/tenants/{tenant}/campaigns/tagsChange labels of campaigns
GET/api/v1/tenants/{tenant}/campaigns/{campaign_id}Get a campaign
PATCH/api/v1/tenants/{tenant}/campaigns/{campaign_id}Update a campaign draft
DELETE/api/v1/tenants/{tenant}/campaigns/{campaign_id}Delete a campaign draft
POST/api/v1/tenants/{tenant}/campaigns/{campaign_id}/approveApprove a campaign: send now or schedule
POST/api/v1/tenants/{tenant}/campaigns/{campaign_id}/cancelCancel a scheduled or paused campaign
GET/api/v1/tenants/{tenant}/campaigns/{campaign_id}/contentGet the content of a campaign
PUT/api/v1/tenants/{tenant}/campaigns/{campaign_id}/contentSave the content of a campaign draft
POST/api/v1/tenants/{tenant}/campaigns/{campaign_id}/deactivateReturn an approved campaign that has not started to a draft
POST/api/v1/tenants/{tenant}/campaigns/{campaign_id}/pausePause a sending or scheduled campaign
POST/api/v1/tenants/{tenant}/campaigns/{campaign_id}/previewRender a campaign for one contact
POST/api/v1/tenants/{tenant}/campaigns/{campaign_id}/resumeResume a paused campaign
GET/api/v1/tenants/{tenant}/campaigns/{campaign_id}/statsStatistics of a campaign by provider and domain
POST/api/v1/tenants/{tenant}/campaigns/{campaign_id}/testSend a test e-mail of a campaign
GET/api/v1/tenants/{tenant}/campaigns/{campaign_id}/variantsGet the language variants of a campaign
POST/api/v1/tenants/{tenant}/campaigns/{campaign_id}/variantsCreate language variants of a campaign
PUT/api/v1/tenants/{tenant}/campaigns/{campaign_id}/variantsChange the language variants of a campaign
POST/api/v1/tenants/{tenant}/campaigns/{campaign_id}/variants/approveApprove the language variants (send or schedule)
POST/api/v1/tenants/{tenant}/campaigns/{campaign_id}/variants/cancelCancel the language variants
POST/api/v1/tenants/{tenant}/campaigns/{campaign_id}/variants/pausePause the language variants
POST/api/v1/tenants/{tenant}/campaigns/{campaign_id}/variants/previewPreview the audience split of language variants
POST/api/v1/tenants/{tenant}/campaigns/{campaign_id}/variants/resumeResume the language variants
GET/api/v1/tenants/{tenant}/campaigns/{campaign_id}/variants/statsStatistics of the language variants
GET/api/v1/tenants/{tenant}/campaigns/{campaign_id}/versionsList saved content versions of a campaign
GET/api/v1/tenants/{tenant}/campaigns/{campaign_id}/versions/{version_id}Get one content version of a campaign
GET/api/v1/tenants/{tenant}/sendersList verified senders

List campaigns

GET /api/v1/tenants/{tenant}/campaigns

Oprávnenie: oblasť campaigns, úroveň read; kľúč s prístupom read alebo full · Nástroj MCP: list_campaigns

Campaigns (draft, scheduled, sending, paused, completed, cancelled) with recipients and stats.

Parametre

NázovKdeTypPovinnéPopis
tenantpathstring (uuid)ánoPublic 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.
pagequeryintegerniePage number, from 1. default 1, min 1
pageSizequeryintegernieItems per page, 1 to 100. default 25, min 1, max 100
qquerystringnieSearch text. max 200 chars
shopquerystringnieShop id filter.
sortquerystringnieSort fields separated by commas, "-" = descending, at most 3 (e.g. name,-id).
statusqueryone of: draft, scheduled, sending, paused, completed, cancellednieStatus filter.
tagquerystringnieLabel filter; repeat for more labels.

Odpovede

  • 200 OK: application/json object

Chyby

StavKódHodnoty message
400validationq, sort, status, tag
401401 unauthorized: missing, unknown, revoked, expired or idle API key.
403403 forbidden: message tenant (another company), scope (read-only key), api_key (person only), or the module the key's roles lack.
429429 rate_limited: wait Retry-After seconds.
503unavailablebusy

Create a campaign (draft)

POST /api/v1/tenants/{tenant}/campaigns

Oprávnenie: oblasť campaigns, úroveň full; kľúč s prístupom full · Nástroj MCP: create_campaign

Creates a campaign draft (only name and shopId are required). Then save_campaign_content, preview_campaign_audience, send_campaign_test and send_campaign.

Parametre

NázovKdeTypPovinnéPopis
tenantpathstring (uuid)ánoPublic 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)

PoleTypPovinnéPopis
namestringáno
shopIdstringáno
senderIdstring or nullánoA sender address of the campaign shop; it must be verified for approval.
fromNamestringáno
subjectstringáno
preheaderstringáno
templateIdstring or nullánoTemplate the content was copied from; the content itself is saved with saveCampaignContent.
audienceCampaignAudienceáno
trackOpensbooleannie
trackClicksbooleannie
utmCampaignUtm or nullnie
headersarray of CampaignHeadernie
timingone of: now, schedule, laternie
plannedAtstring or nullnie
replyTostringnieOne of replyToOptions; '' = the sender's own reply-to.
linkParamsarray of CampaignLinkParamnie
preferTimebooleannie
unsubscribePageIdstring or nullnieAn active unsubscribe page of the tenant, null = the template's or the default; left out on a new draft made from a template = the template's page.
footerIdstring or nullnieA published footer of the tenant, null = the template's or the default; left out on a new draft made from a template = the template's footer.

Odpovede

Chyby

StavKódHodnoty message
400validationaudience, footerId, preferTime, replyTo, senderId, templateId, timing, unsubscribePageId
401401 unauthorized: missing, unknown, revoked, expired or idle API key.
403403 forbidden: message tenant (another company), scope (read-only key), api_key (person only), or the module the key's roles lack.
429429 rate_limited: wait Retry-After seconds.
503unavailablebusy

Count and explain the recipients of an audience

POST /api/v1/tenants/{tenant}/campaigns/audience

Oprávnenie: oblasť campaigns, úroveň read; kľúč s prístupom read alebo full · Nástroj MCP: preview_campaign_audience

Counts recipients of an audience without saving: matched, recipients and every excluded reason.

AudienceCount of an audience for a shop: matched, recipients and one reason per left-out contact. anyShop true = the audience of a language variant (lists and segments of any shop).

Parametre

NázovKdeTypPovinnéPopis
tenantpathstring (uuid)ánoPublic 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)

object

Odpovede

Chyby

StavKódHodnoty message
400validationanyShop, audience
401401 unauthorized: missing, unknown, revoked, expired or idle API key.
403403 forbidden: message tenant (another company), scope (read-only key), api_key (person only), or the module the key's roles lack.
429429 rate_limited: wait Retry-After seconds.
503unavailablebusy

Change labels of campaigns

POST /api/v1/tenants/{tenant}/campaigns/tags

Oprávnenie: oblasť campaigns, úroveň full; kľúč s prístupom full

Parametre

NázovKdeTypPovinnéPopis
tenantpathstring (uuid)ánoPublic 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: ids.

PoleTypPovinnéPopis
idsarray of stringáno
addarray of stringnie
removearray of stringnie
tagsarray of stringnie

Odpovede

  • 200 OK: application/json object

Chyby

StavKódHodnoty message
400validationids
401401 unauthorized: missing, unknown, revoked, expired or idle API key.
403403 forbidden: message tenant (another company), scope (read-only key), api_key (person only), or the module the key's roles lack.
429429 rate_limited: wait Retry-After seconds.
503unavailablebusy

Get a campaign

GET /api/v1/tenants/{tenant}/campaigns/{campaign_id}

Oprávnenie: oblasť campaigns, úroveň read; kľúč s prístupom read alebo full · Nástroj MCP: get_campaign

One campaign with audience, sender, tracking and state.

Parametre

NázovKdeTypPovinnéPopis
tenantpathstring (uuid)ánoPublic 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_idpathstringánoId of the campaign (string of digits).

Odpovede

Chyby

StavKódHodnoty message
400validation
401401 unauthorized: missing, unknown, revoked, expired or idle API key.
403403 forbidden: message tenant (another company), scope (read-only key), api_key (person only), or the module the key's roles lack.
404not_found
429429 rate_limited: wait Retry-After seconds.
503unavailablebusy

Update a campaign draft

PATCH /api/v1/tenants/{tenant}/campaigns/{campaign_id}

Oprávnenie: oblasť campaigns, úroveň full; kľúč s prístupom full · Nástroj MCP: update_campaign

Changes a draft campaign (any CampaignInput field).

Parametre

NázovKdeTypPovinnéPopis
tenantpathstring (uuid)ánoPublic 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_idpathstringánoId of the campaign (string of digits).

Telo požiadavky (application/json)

PoleTypPovinnéPopis
namestringnie
shopIdstringnie
senderIdstring or nullnieA sender address of the campaign shop; it must be verified for approval.
fromNamestringnie
subjectstringnie
preheaderstringnie
templateIdstring or nullnieTemplate the content was copied from; the content itself is saved with saveCampaignContent.
audienceCampaignAudiencenie
trackOpensbooleannie
trackClicksbooleannie
utmCampaignUtm or nullnie
headersarray of CampaignHeadernie
timingone of: now, schedule, laternie
plannedAtstring or nullnie
replyTostringnieOne of replyToOptions; '' = the sender's own reply-to.
linkParamsarray of CampaignLinkParamnie
preferTimebooleannie
unsubscribePageIdstring or nullnieAn active unsubscribe page of the tenant, null = the template's or the default; left out on a new draft made from a template = the template's page.
footerIdstring or nullnieA published footer of the tenant, null = the template's or the default; left out on a new draft made from a template = the template's footer.

Odpovede

Chyby

StavKódHodnoty message
400validationaudience, footerId, preferTime, replyTo, senderId, templateId, timing, unsubscribePageId
401401 unauthorized: missing, unknown, revoked, expired or idle API key.
403403 forbidden: message tenant (another company), scope (read-only key), api_key (person only), or the module the key's roles lack.
404not_found
409conflictstatus
429429 rate_limited: wait Retry-After seconds.
503unavailablebusy

Delete a campaign draft

DELETE /api/v1/tenants/{tenant}/campaigns/{campaign_id}

Oprávnenie: oblasť campaigns, úroveň full; kľúč s prístupom full · Nástroj MCP: delete_campaign (cez MCP len s náhľadom a potvrdením)

Deletes a draft campaign that sent nothing.

Parametre

NázovKdeTypPovinnéPopis
tenantpathstring (uuid)ánoPublic 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_idpathstringánoId of the campaign (string of digits).

Odpovede

  • 204 No content

Chyby

StavKódHodnoty message
400validation
401401 unauthorized: missing, unknown, revoked, expired or idle API key.
403403 forbidden: message tenant (another company), scope (read-only key), api_key (person only), or the module the key's roles lack.
404not_found
409conflictstatus
429429 rate_limited: wait Retry-After seconds.
503unavailablebusy

Approve a campaign: send now or schedule

POST /api/v1/tenants/{tenant}/campaigns/{campaign_id}/approve

Oprávnenie: oblasť campaigns, úroveň full; kľúč s prístupom full · Nástroj MCP: send_campaign (cez MCP len s náhľadom a potvrdením)

Approves a draft campaign and sends it now (sendAt null) or schedules it (sendAt ISO time, 5 minutes to 365 days ahead). The preview shows subject, sender and the exact recipient count; expectedRecipients defaults to that count.

Body {sendAt: ISO time in UTC or null (now), expectedRecipients: the number the user confirmed}.

Parametre

NázovKdeTypPovinnéPopis
tenantpathstring (uuid)ánoPublic 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_idpathstringánoId of the campaign (string of digits).

Telo požiadavky (application/json)

PoleTypPovinnéPopis
sendAtstring or nullánonull = send now; otherwise at least 5 minutes and at most 365 days ahead.
expectedRecipientsnumberánoThe number the user confirmed; the server refuses (409 recipients) only when the audience grew by more than both platform limits (default 50 % and 200 contacts, recipientDriftVerdict); a smaller audience is approved.

Odpovede

Chyby

StavKódHodnoty message
400validationsendAt
401401 unauthorized: missing, unknown, revoked, expired or idle API key.
403403 forbidden: message tenant (another company), scope (read-only key), api_key (person only), or the module the key's roles lack.
404not_found
409conflictsending_disabled, test_only
429429 rate_limited: wait Retry-After seconds.
503unavailablebusy

Cancel a scheduled or paused campaign

POST /api/v1/tenants/{tenant}/campaigns/{campaign_id}/cancel

Oprávnenie: oblasť campaigns, úroveň full; kľúč s prístupom full · Nástroj MCP: cancel_campaign

Cancels a campaign for good (what was sent stays in the statistics).

Parametre

NázovKdeTypPovinnéPopis
tenantpathstring (uuid)ánoPublic 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_idpathstringánoId of the campaign (string of digits).

Telo požiadavky (application/json)

object

Odpovede

Chyby

StavKódHodnoty message
400validation
401401 unauthorized: missing, unknown, revoked, expired or idle API key.
403403 forbidden: message tenant (another company), scope (read-only key), api_key (person only), or the module the key's roles lack.
404not_found
409conflictstatus
429429 rate_limited: wait Retry-After seconds.
503unavailablebusy

Get the content of a campaign

GET /api/v1/tenants/{tenant}/campaigns/{campaign_id}/content

Oprávnenie: oblasť campaigns, úroveň read; kľúč s prístupom read alebo full · Nástroj MCP: get_campaign_content

Content of a campaign (editor, html, design, version).

Parametre

NázovKdeTypPovinnéPopis
tenantpathstring (uuid)ánoPublic 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_idpathstringánoId of the campaign (string of digits).

Odpovede

Chyby

StavKódHodnoty message
400validation
401401 unauthorized: missing, unknown, revoked, expired or idle API key.
403403 forbidden: message tenant (another company), scope (read-only key), api_key (person only), or the module the key's roles lack.
404not_found
429429 rate_limited: wait Retry-After seconds.
503unavailablebusy

Save the content of a campaign draft

PUT /api/v1/tenants/{tenant}/campaigns/{campaign_id}/content

Oprávnenie: oblasť campaigns, úroveň full; kľúč s prístupom full · Nástroj MCP: save_campaign_content

Saves the content of a draft campaign (copy a template: get_template, then save its content here).

Parametre

NázovKdeTypPovinnéPopis
tenantpathstring (uuid)ánoPublic 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_idpathstringánoId of the campaign (string of digits).

Telo požiadavky (application/json)

PoleTypPovinnéPopis
editorone of: html, visualáno
htmlstringáno
designEmailDesign or nulláno
baseVersionnumberánoThe version the editor started from; a newer one on the server answers 409 version (saved elsewhere meanwhile).
saveKindone of: manual, auto, restorenieHistory entry kind: auto (autosave, journaled), manual (Uložit), restore (a version taken back). Default auto.

Odpovede

Chyby

StavKódHodnoty message
400validation
401401 unauthorized: missing, unknown, revoked, expired or idle API key.
403403 forbidden: message tenant (another company), scope (read-only key), api_key (person only), or the module the key's roles lack.
404not_found
429429 rate_limited: wait Retry-After seconds.
503unavailablebusy

Return an approved campaign that has not started to a draft

POST /api/v1/tenants/{tenant}/campaigns/{campaign_id}/deactivate

Oprávnenie: oblasť campaigns, úroveň full; kľúč s prístupom full

An approved campaign that has not started goes back to a draft; 409 status after the start (then only a copy).

Parametre

NázovKdeTypPovinnéPopis
tenantpathstring (uuid)ánoPublic 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_idpathstringánoId of the campaign (string of digits).

Odpovede

Chyby

StavKódHodnoty message
400validation
401401 unauthorized: missing, unknown, revoked, expired or idle API key.
403403 forbidden: message tenant (another company), scope (read-only key), api_key (person only), or the module the key's roles lack.
404not_found
409conflictstatus
429429 rate_limited: wait Retry-After seconds.
503unavailablebusy

Pause a sending or scheduled campaign

POST /api/v1/tenants/{tenant}/campaigns/{campaign_id}/pause

Oprávnenie: oblasť campaigns, úroveň full; kľúč s prístupom full · Nástroj MCP: pause_campaign

Pauses a scheduled or sending campaign.

Parametre

NázovKdeTypPovinnéPopis
tenantpathstring (uuid)ánoPublic 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_idpathstringánoId of the campaign (string of digits).

Telo požiadavky (application/json)

object

Odpovede

Chyby

StavKódHodnoty message
400validation
401401 unauthorized: missing, unknown, revoked, expired or idle API key.
403403 forbidden: message tenant (another company), scope (read-only key), api_key (person only), or the module the key's roles lack.
404not_found
409conflictstatus
429429 rate_limited: wait Retry-After seconds.
503unavailablebusy

Render a campaign for one contact

POST /api/v1/tenants/{tenant}/campaigns/{campaign_id}/preview

Oprávnenie: oblasť campaigns, úroveň read; kľúč s prístupom read alebo full

The e-mail as one contact would get it: body {email} of a contact of the tenant; answers {subject, preheader, html} with every variable filled and sample links. Nothing is sent or recorded. It shows one contact's data (name, e-mail, custom fields, orders in scripts), so it needs the module contacts too (read): campaigns read alone (content manager, developer) neither reads a contact nor learns whether an address is one (review of batch 8).

Parametre

NázovKdeTypPovinnéPopis
tenantpathstring (uuid)ánoPublic 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_idpathstringánoId of the campaign (string of digits).

Telo požiadavky (application/json): Required by the server: email.

PoleTypPovinnéPopis
emailstringáno

Odpovede

Chyby

StavKódHodnoty message
400validationscript
401401 unauthorized: missing, unknown, revoked, expired or idle API key.
403forbiddencontacts
404not_found
429429 rate_limited: wait Retry-After seconds.
503unavailablebusy

Resume a paused campaign

POST /api/v1/tenants/{tenant}/campaigns/{campaign_id}/resume

Oprávnenie: oblasť campaigns, úroveň full; kľúč s prístupom full · Nástroj MCP: resume_campaign (cez MCP len s náhľadom a potvrdením)

Resumes a paused campaign (it sends again, or goes back to scheduled when its time is ahead).

Parametre

NázovKdeTypPovinnéPopis
tenantpathstring (uuid)ánoPublic 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_idpathstringánoId of the campaign (string of digits).

Telo požiadavky (application/json)

object

Odpovede

Chyby

StavKódHodnoty message
400validation
401401 unauthorized: missing, unknown, revoked, expired or idle API key.
403403 forbidden: message tenant (another company), scope (read-only key), api_key (person only), or the module the key's roles lack.
404not_found
409conflictaudience, status, trial_limit
429429 rate_limited: wait Retry-After seconds.
503unavailablebusy

Statistics of a campaign by provider and domain

GET /api/v1/tenants/{tenant}/campaigns/{campaign_id}/stats

Oprávnenie: oblasť campaigns, úroveň read; kľúč s prístupom read alebo full

Parametre

NázovKdeTypPovinnéPopis
tenantpathstring (uuid)ánoPublic 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_idpathstringánoId of the campaign (string of digits).

Odpovede

  • 200 OK: application/json object

Chyby

StavKódHodnoty message
400validation
401401 unauthorized: missing, unknown, revoked, expired or idle API key.
403403 forbidden: message tenant (another company), scope (read-only key), api_key (person only), or the module the key's roles lack.
404not_found
429429 rate_limited: wait Retry-After seconds.
503unavailablebusy

Send a test e-mail of a campaign

POST /api/v1/tenants/{tenant}/campaigns/{campaign_id}/test

Oprávnenie: oblasť campaigns, úroveň full; kľúč s prístupom full · Nástroj MCP: send_campaign_test

Sends a test e-mail of the campaign to the account's test addresses only (list_test_recipients).

Parametre

NázovKdeTypPovinnéPopis
tenantpathstring (uuid)ánoPublic 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_idpathstringánoId of the campaign (string of digits).

Telo požiadavky (application/json)

PoleTypPovinnéPopis
tostringáno

Odpovede

Chyby

StavKódHodnoty message
400validation
401401 unauthorized: missing, unknown, revoked, expired or idle API key.
403403 forbidden: message tenant (another company), scope (read-only key), api_key (person only), or the module the key's roles lack.
404not_found
409conflicttrial
429429 rate_limited: wait Retry-After seconds.
503unavailablebusy, mail

Get the language variants of a campaign

GET /api/v1/tenants/{tenant}/campaigns/{campaign_id}/variants

Oprávnenie: oblasť campaigns, úroveň read; kľúč s prístupom read alebo full

Parametre

NázovKdeTypPovinnéPopis
tenantpathstring (uuid)ánoPublic 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_idpathstringánoId of the campaign (string of digits).

Odpovede

Chyby

StavKódHodnoty message
400validation
401401 unauthorized: missing, unknown, revoked, expired or idle API key.
403403 forbidden: message tenant (another company), scope (read-only key), api_key (person only), or the module the key's roles lack.
404not_found
429429 rate_limited: wait Retry-After seconds.
503unavailablebusy

Create language variants of a campaign

POST /api/v1/tenants/{tenant}/campaigns/{campaign_id}/variants

Oprávnenie: oblasť campaigns, úroveň full; kľúč s prístupom full

Duplicate as variant: body {shopId, label, sourceLabel?}. Answers the new variant's id and the group.

Parametre

NázovKdeTypPovinnéPopis
tenantpathstring (uuid)ánoPublic 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_idpathstringánoId of the campaign (string of digits).

Telo požiadavky (application/json): Required by the server: label, shopId.

PoleTypPovinnéPopis
shopIdstringáno
labelstringáno
sourceLabelstringnie

Odpovede

Chyby

StavKódHodnoty message
400validation
401401 unauthorized: missing, unknown, revoked, expired or idle API key.
403403 forbidden: message tenant (another company), scope (read-only key), api_key (person only), or the module the key's roles lack.
404not_found
429429 rate_limited: wait Retry-After seconds.
503unavailablebusy

Change the language variants of a campaign

PUT /api/v1/tenants/{tenant}/campaigns/{campaign_id}/variants

Oprávnenie: oblasť campaigns, úroveň full; kľúč s prístupom full

Order and labels of the group: body {variants: [{id, label}] in the new order, every variant once}.

Parametre

NázovKdeTypPovinnéPopis
tenantpathstring (uuid)ánoPublic 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_idpathstringánoId of the campaign (string of digits).

Telo požiadavky (application/json): Required by the server: variants.

PoleTypPovinnéPopis
variantsarray of objectáno

Odpovede

Chyby

StavKódHodnoty message
400validation
401401 unauthorized: missing, unknown, revoked, expired or idle API key.
403403 forbidden: message tenant (another company), scope (read-only key), api_key (person only), or the module the key's roles lack.
404not_found
429429 rate_limited: wait Retry-After seconds.
503unavailablebusy

Approve the language variants (send or schedule)

POST /api/v1/tenants/{tenant}/campaigns/{campaign_id}/variants/approve

Oprávnenie: oblasť campaigns, úroveň full; kľúč s prístupom full

One send action for every variant: body {sendAt: ISO time or null (now), expectedRecipients: {id: final}}.

Parametre

NázovKdeTypPovinnéPopis
tenantpathstring (uuid)ánoPublic 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_idpathstringánoId of the campaign (string of digits).

Telo požiadavky (application/json)

PoleTypPovinnéPopis
sendAtstring or nullánonull = now.
expectedRecipientsmap of numberánoThe final number per variant id the user confirmed.

Odpovede

Chyby

StavKódHodnoty message
400validationsendAt
401401 unauthorized: missing, unknown, revoked, expired or idle API key.
403403 forbidden: message tenant (another company), scope (read-only key), api_key (person only), or the module the key's roles lack.
404not_found
409conflictsending_disabled, test_only
429429 rate_limited: wait Retry-After seconds.
503unavailablebusy

Cancel the language variants

POST /api/v1/tenants/{tenant}/campaigns/{campaign_id}/variants/cancel

Oprávnenie: oblasť campaigns, úroveň full; kľúč s prístupom full

Parametre

NázovKdeTypPovinnéPopis
tenantpathstring (uuid)ánoPublic 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_idpathstringánoId of the campaign (string of digits).

Odpovede

Chyby

StavKódHodnoty message
400validation
401401 unauthorized: missing, unknown, revoked, expired or idle API key.
403403 forbidden: message tenant (another company), scope (read-only key), api_key (person only), or the module the key's roles lack.
404not_found
409conflictaudience, status, trial_limit, variants
429429 rate_limited: wait Retry-After seconds.
503unavailablebusy

Pause the language variants

POST /api/v1/tenants/{tenant}/campaigns/{campaign_id}/variants/pause

Oprávnenie: oblasť campaigns, úroveň full; kľúč s prístupom full

Parametre

NázovKdeTypPovinnéPopis
tenantpathstring (uuid)ánoPublic 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_idpathstringánoId of the campaign (string of digits).

Odpovede

Chyby

StavKódHodnoty message
400validation
401401 unauthorized: missing, unknown, revoked, expired or idle API key.
403403 forbidden: message tenant (another company), scope (read-only key), api_key (person only), or the module the key's roles lack.
404not_found
409conflictaudience, status, trial_limit, variants
429429 rate_limited: wait Retry-After seconds.
503unavailablebusy

Preview the audience split of language variants

POST /api/v1/tenants/{tenant}/campaigns/{campaign_id}/variants/preview

Oprávnenie: oblasť campaigns, úroveň read; kľúč s prístupom read alebo full

Final numbers per variant: matched, recipients of its own audience, taken by an earlier variant, final.

Parametre

NázovKdeTypPovinnéPopis
tenantpathstring (uuid)ánoPublic 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_idpathstringánoId of the campaign (string of digits).

Odpovede

Chyby

StavKódHodnoty message
400validation
401401 unauthorized: missing, unknown, revoked, expired or idle API key.
403403 forbidden: message tenant (another company), scope (read-only key), api_key (person only), or the module the key's roles lack.
404not_found
429429 rate_limited: wait Retry-After seconds.
503unavailablebusy

Resume the language variants

POST /api/v1/tenants/{tenant}/campaigns/{campaign_id}/variants/resume

Oprávnenie: oblasť campaigns, úroveň full; kľúč s prístupom full

Parametre

NázovKdeTypPovinnéPopis
tenantpathstring (uuid)ánoPublic 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_idpathstringánoId of the campaign (string of digits).

Odpovede

Chyby

StavKódHodnoty message
400validation
401401 unauthorized: missing, unknown, revoked, expired or idle API key.
403403 forbidden: message tenant (another company), scope (read-only key), api_key (person only), or the module the key's roles lack.
404not_found
409conflictaudience, status, trial_limit, variants
429429 rate_limited: wait Retry-After seconds.
503unavailablebusy

Statistics of the language variants

GET /api/v1/tenants/{tenant}/campaigns/{campaign_id}/variants/stats

Oprávnenie: oblasť campaigns, úroveň read; kľúč s prístupom read alebo full

Statistics per variant and combined (unique contacts: one variant per contact, so the sums add up).

Parametre

NázovKdeTypPovinnéPopis
tenantpathstring (uuid)ánoPublic 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_idpathstringánoId of the campaign (string of digits).

Odpovede

Chyby

StavKódHodnoty message
400validation
401401 unauthorized: missing, unknown, revoked, expired or idle API key.
403403 forbidden: message tenant (another company), scope (read-only key), api_key (person only), or the module the key's roles lack.
404not_found
429429 rate_limited: wait Retry-After seconds.
503unavailablebusy

List saved content versions of a campaign

GET /api/v1/tenants/{tenant}/campaigns/{campaign_id}/versions

Oprávnenie: oblasť campaigns, úroveň read; kľúč s prístupom read alebo full

Parametre

NázovKdeTypPovinnéPopis
tenantpathstring (uuid)ánoPublic 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_idpathstringánoId of the campaign (string of digits).
beforequerystringnie
limitquerystringnie

Odpovede

Chyby

StavKódHodnoty message
400validation
401401 unauthorized: missing, unknown, revoked, expired or idle API key.
403403 forbidden: message tenant (another company), scope (read-only key), api_key (person only), or the module the key's roles lack.
404not_found
429429 rate_limited: wait Retry-After seconds.
503unavailablebusy

Get one content version of a campaign

GET /api/v1/tenants/{tenant}/campaigns/{campaign_id}/versions/{version_id}

Oprávnenie: oblasť campaigns, úroveň read; kľúč s prístupom read alebo full

Parametre

NázovKdeTypPovinnéPopis
tenantpathstring (uuid)ánoPublic 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_idpathstringánoId of the campaign (string of digits).
version_idpathstringánoId of the version (string of digits).

Odpovede

Chyby

StavKódHodnoty message
400validation
401401 unauthorized: missing, unknown, revoked, expired or idle API key.
403403 forbidden: message tenant (another company), scope (read-only key), api_key (person only), or the module the key's roles lack.
404not_found
429429 rate_limited: wait Retry-After seconds.
503unavailablebusy

List verified senders

GET /api/v1/tenants/{tenant}/senders

Oprávnenie: oblasť campaigns, úroveň read; kľúč s prístupom read alebo full · Nástroj MCP: list_senders

Sender addresses per shop (only verified ones may send).

Parametre

NázovKdeTypPovinnéPopis
tenantpathstring (uuid)ánoPublic 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/json object

Chyby

StavKódHodnoty message
401401 unauthorized: missing, unknown, revoked, expired or idle API key.
403403 forbidden: message tenant (another company), scope (read-only key), api_key (person only), or the module the key's roles lack.
429429 rate_limited: wait Retry-After seconds.
503unavailablebusy

Schémy

ApproveInput

PoleTypPovinnéPopis
sendAtstring or nullánonull = send now; otherwise at least 5 minutes and at most 365 days ahead.
expectedRecipientsnumberánoThe number the user confirmed; the server refuses (409 recipients) only when the audience grew by more than both platform limits (default 50 % and 200 contacts, recipientDriftVerdict); a smaller audience is approved.

AudienceCount

PoleTypPovinnéPopis
matchednumberánoUnique contacts in the chosen lists and segments.
recipientsnumberánoWho would receive the campaign now.
excludedobjectáno

BorderDefault

A border of an element default (MJML "1px solid #rrggbb").

PoleTypPovinnéPopis
widthnumberáno
stylestringáno
colorstringáno

BoxPadding

PoleTypPovinnéPopis
topnumberáno
rightnumberáno
bottomnumberáno
leftnumberáno

CampaignAudience

PoleTypPovinnéPopis
listIdsarray of stringáno
segmentIdsarray of stringánoSegments of the campaign shop.
excludeListIdsarray of stringánoMembers of these lists are left out.
excludeInactivebooleanánoLeave out engagement E and the excluded state (long inactive); recommended.
excludeEmailsarray of stringánoAddresses left out by hand (at most 1000).
onlyWithPurposebooleanánoOnly contacts with a valid consent for one of purposeIds (any purpose when empty).
purposeIdsarray of stringáno

CampaignDetail

PoleTypPovinnéPopis
preheaderstringáno
senderIdstring or nulláno
fromNamestringáno
fromEmailstringáno
replyTostringáno
templateIdstring or nullánoTemplate the content was copied from (information only; later template edits do not change the campaign).
hasContentbooleanánoThe campaign has its own content (GET …/content); without it the approval answers 400 content.
audienceCampaignAudienceáno
pausedReasonone of: trial_limit, manual, bounce_rate, complaint_rate, unsubscribe_rate, recipient_drift, no_recipients, template_error, nulláno
approvedAtstring or nullánoWhen the campaign was approved for sending (null for drafts).
sendingCapobject or nullnieA sending campaign the engine holds today at the daily cap (daily_cap, resumes at local midnight) or the sending account's quota (account_cap): the day's sending_cap_reached notification; null otherwise.
trackOpensbooleanánoAdvanced step: tracking, UTM on links of the campaign's e-shop, own X- headers.
trackClicksbooleanáno
utmCampaignUtm or nulláno
headersarray of CampaignHeaderáno
timingSendTimingánoSend time chosen in step 1 of the draft; the approval still takes the time explicitly.
plannedAtstring or nulláno
linkParamsarray of CampaignLinkParamánoStep 3 "Sledování odkazů": free name / value pairs added to links of the campaign's e-shop.
preferTimebooleanánoStep 3 "Ideální čas odeslání": each contact at the hour of his or her usual opens, within 24 hours.
replyToOptionsarray of stringánoAddresses that may receive replies (the shop's sender addresses and their reply-to).
unsubscribePageIdstring or nullnieStep 3 Odhlašovací stránka: the campaign's own page; null = the template's or the default.
footerIdstring or nullnieVybraná patička / Patička emailu (PA-01, migration 0410): a published footer; null = the template's or the default one.
idstringáno
namestringáno
shopIdstringáno
subjectstringáno
statusone of: cancelled, completed, draft, scheduled, sending, pausedáno
recipientsnumber or nullánoRecipients frozen at approval (expected_recipients); null for drafts.
scheduledAtstring or nulláno
startedAtstring or nulláno
completedAtstring or nulláno
createdAtstringáno
updatedAtstringáno
publicUrlstringnieOdkaz ke sdílení: the campaign's public preview (variables unfilled); absent from older servers.
statsCampaignStats or nullánonull until sending starts.
variantGroupIdstring or nullnieLanguage variants sent together (Kampaně › Varianty): the group's id, null or absent for a single campaign.
variantLabelstringnieShort name of the variant (CZ, SK ...); '' for a single campaign.
variantPositionnumbernieOrder in the group: a contact in several variants' audiences receives only the first one.
tagsarray of stringnieLabels (Štítky, set from the grid's ⋮ menu or as a bulk action); absent from older servers.

CampaignHeader

PoleTypPovinnéPopis
namestringáno
valuestringáno

CampaignInput

PoleTypPovinnéPopis
namestringáno
shopIdstringáno
senderIdstring or nullánoA sender address of the campaign shop; it must be verified for approval.
fromNamestringáno
subjectstringáno
preheaderstringáno
templateIdstring or nullánoTemplate the content was copied from; the content itself is saved with saveCampaignContent.
audienceCampaignAudienceáno
trackOpensbooleannie
trackClicksbooleannie
utmCampaignUtm or nullnie
headersarray of CampaignHeadernie
timingone of: now, schedule, laternie
plannedAtstring or nullnie
replyTostringnieOne of replyToOptions; '' = the sender's own reply-to.
linkParamsarray of CampaignLinkParamnie
preferTimebooleannie
unsubscribePageIdstring or nullnieAn active unsubscribe page of the tenant, null = the template's or the default; left out on a new draft made from a template = the template's page.
footerIdstring or nullnieA published footer of the tenant, null = the template's or the default; left out on a new draft made from a template = the template's footer.

CampaignLinkParam

PoleTypPovinnéPopis
namestringáno
valuestringáno

CampaignListItem

PoleTypPovinnéPopis
idstringáno
namestringáno
shopIdstringáno
subjectstringáno
statusone of: cancelled, completed, draft, scheduled, sending, pausedáno
recipientsnumber or nullánoRecipients frozen at approval (expected_recipients); null for drafts.
scheduledAtstring or nulláno
startedAtstring or nulláno
completedAtstring or nulláno
createdAtstringáno
updatedAtstringáno
approvedAtstring or nullnieWhen the campaign was approved for sending (null for drafts).
publicUrlstringnieOdkaz ke sdílení: the campaign's public preview (variables unfilled); absent from older servers.
statsCampaignStats or nullánonull until sending starts.
variantGroupIdstring or nullnieLanguage variants sent together (Kampaně › Varianty): the group's id, null or absent for a single campaign.
variantLabelstringnieShort name of the variant (CZ, SK ...); '' for a single campaign.
variantPositionnumbernieOrder in the group: a contact in several variants' audiences receives only the first one.
tagsarray of stringnieLabels (Štítky, set from the grid's ⋮ menu or as a bulk action); absent from older servers.

CampaignPreview

The e-mail as one contact would get it (POST /campaigns/{id}/preview): every variable filled, sample links.

PoleTypPovinnéPopis
subjectstringáno
preheaderstringáno
htmlstringáno

CampaignStats

Unique contacts per event type.

PoleTypPovinnéPopis
sentnumberáno
deliverednumberáno
openednumberáno
clickednumberáno
bouncednumberáno
complainednumberáno
unsubscribednumberáno

CampaignUtm

PoleTypPovinnéPopis
sourcestringáno
mediumstringáno
campaignstringáno
termstringnie
contentstringnie

CampaignVariant

One variant: a whole campaign of its own shop (content, subject, sender, feeds) with an audience chosen by hand.

PoleTypPovinnéPopis
idstringáno
namestringáno
labelstringáno
positionnumberáno
shopIdstringáno
shopCodestringáno
currencyCurrencyáno
languageLangáno
subjectstringáno
preheaderstringáno
statusone of: cancelled, completed, draft, scheduled, sending, pausedáno
senderIdstring or nulláno
fromNamestringáno
hasContentbooleanáno
listIdsarray of stringáno
segmentIdsarray of stringáno
recipientsnumber or nullánoFinal number frozen at the approval; null for drafts.
scheduledAtstring or nulláno
pausedReasonone of: trial_limit, manual, bounce_rate, complaint_rate, unsubscribe_rate, recipient_drift, no_recipients, template_error, nulláno
statsCampaignStats or nulláno

CampaignVariantGroup

PoleTypPovinnéPopis
groupIdstring or nullánonull = a single campaign (no variants yet).
variantsarray of CampaignVariantánoIn their order.
createdstringnieId of the variant just created by addCampaignVariant.

ContentVersion

One entry of the content history (Historie uložení).

PoleTypPovinnéPopis
idstringáno
versionnumberáno
kindone of: manual, auto, restoreáno
createdAtstringáno
createdBystring or nullánoName or e-mail of the user; null for the API or unknown.

ContentVersionDetail

PoleTypPovinnéPopis
contentobjectáno
idstringáno
versionnumberáno
kindone of: manual, auto, restoreáno
createdAtstringáno
createdBystring or nullánoName or e-mail of the user; null for the API or unknown.

ContentVersionList

PoleTypPovinnéPopis
itemsarray of ContentVersionáno
morebooleanáno

Currency

one of: CZK, EUR

ElementDefaults

What a newly inserted element starts with. Missing = the built-in value. Inner rows are rows inside a wrapper row (mj-wrapper), inner columns their columns. The colours of buttons and the divider (with their dark variants) are the e-mail's colours (buttonColor, button2Color, dividerColor ...).

PoleTypPovinnéPopis
rowPaddingBoxPaddingnie
rowRadiusnumbernie
rowBorderBorderDefault or nullnie
rowBorderColorstringnieVzhled značky › Barvy: the preferred colour of a row border (BR-03; the border a new row turns on).
rowDirectionone of: ltr, rtlnieVzhled značky › Řádek (BR-03): direction of the columns (mj-section direction), their vertical alignment, the gap between them (px, half on each side of a column) and the row background of a new row.
rowAlignone of: top, middle, bottomnie
rowGapnumbernie
rowBackgroundstringnie
innerRowPaddingBoxPaddingnie
innerRowRadiusnumbernie
innerRowBorderBorderDefault or nullnie
columnPaddingBoxPaddingnie
columnRadiusnumbernie
columnBorderBorderDefault or nullnie
innerColumnPaddingBoxPaddingnie
innerColumnRadiusnumbernie
innerColumnBorderBorderDefault or nullnie
textPaddingBoxPaddingnie
imagePaddingBoxPaddingnie
imageWidthnumbernie% of the column (100 = the whole width).
imageRadiusnumbernie
videoPaddingBoxPaddingnie
videoWidthnumbernie
videoRadiusnumbernie
buttonTypeone of: link, primary, secondarynie
buttonPaddingBoxPaddingnie
buttonInnerPaddingobjectnie
buttonRadiusnumbernie
buttonFullWidthbooleannie
buttonBorderBorderDefault or nullnie
dividerPaddingBoxPaddingnie
dividerWidthnumbernie
dividerThicknessnumbernie
dividerStyleone of: solid, dashed, dottednie
spacerHeightnumbernie

ElementDefaultsMobile

PoleTypPovinnéPopis
rowPaddingBoxPaddingnie
columnPaddingBoxPaddingnie
textPaddingBoxPaddingnie
imagePaddingBoxPaddingnie
imageWidthnumbernie
videoWidthnumbernie
buttonPaddingBoxPaddingnie
dividerPaddingBoxPaddingnie
dividerWidthnumbernie
spacerHeightnumbernie

EmailContent

E-mail content of a template or a campaign.

PoleTypPovinnéPopis
editorone of: html, visualáno
htmlstringánoHTML with variables left in place (compiled from the design, or written by hand); the core personalises and sends it.
designEmailDesign or nullánoVisual editor only.
versionnumberáno0 = no content yet; every save adds one.
updatedAtstring or nulláno

EmailContentInput

PoleTypPovinnéPopis
editorone of: html, visualáno
htmlstringáno
designEmailDesign or nulláno
baseVersionnumberánoThe version the editor started from; a newer one on the server answers 409 version (saved elsewhere meanwhile).
saveKindone of: manual, auto, restorenieHistory entry kind: auto (autosave, journaled), manual (Uložit), restore (a version taken back). Default auto.

EmailDesign

Source of a visual design: MJML plus the global styles, so the editor reopens it exactly.

PoleTypPovinnéPopis
formatmjml-1ánoFormat version; a later editor migrates older designs.
mjmlstringáno
stylesEmailStylesáno

EmailStyles

Global look of a visual design. The editor writes it as MJML attributes; every element can override it.

PoleTypPovinnéPopis
fontFamilystringánoOne of EMAIL_FONTS (web-safe stacks; recipients' clients have no web fonts by default).
headingFontFamilystringáno
fontSizenumberánoBase text size in px (12 to 20).
textColorstringáno
headingColorstringáno
linkColorstringáno
buttonColorstringáno
buttonTextColorstringáno
backgroundColorstringánoAround the e-mail.
contentColorstringánoBody of the e-mail.
widthnumberánoWidth of the e-mail in px (480 to 800).
magicMagicStylesnieSettings of the visual editor (e-mail paddings, text styles, dark mode, element defaults); the server keeps the object as it is (bounded JSON, API-CONTRACT.md). Absent in designs saved before it.

Error

PoleTypPovinnéPopis
errorobjectáno
json
{
  "error": {
    "code": "validation",
    "message": "email"
  }
}

GridTagsInput

Bulk label change: add and remove, or tags = the new labels of every row.

PoleTypPovinnéPopis
idsarray of stringáno
addarray of stringnie
removearray of stringnie
tagsarray of stringnie

Lang

one of: cs, sk

MagicBackground

A background of the visual editor: a plain colour, a linear gradient or a picture (https).

PoleTypPovinnéPopis
typeone of: color, gradient, imageáno
fromstringnie
tostringnie
anglenumbernieGradient direction in degrees (180 = top to bottom).
imagestringnie
fitone of: cover, repeat, originalniePicture: cover the area, tile, or the original size once.

MagicStyles

PoleTypPovinnéPopis
paddingBoxPaddingnieSpace around the e-mail body, desktop and mobile.
paddingMobileBoxPaddingnie
darkModebooleannieDark mode in the recipient's app (prefers-color-scheme) with its colours.
darkBackgroundColorstringnie
darkContentColorstringnie
darkTextColorstringnie
darkHeadingColorstringnie
darkLinkColorstringnie
darkButtonColorstringnieDark mode colours of the buttons and the divider (each colour has its "(tmavé schéma)" variant).
darkButtonTextColorstringnie
darkButton2Colorstringnie
darkButton2TextColorstringnie
darkDividerColorstringnie
backgroundMagicBackgroundnieA gradient or a picture over the colour (backgroundColor / contentColor stay the fallback of clients without head styles).
bodyBackgroundMagicBackgroundnie
button2ColorstringnieSecondary button and divider colours.
button2TextColorstringnie
button2BorderColorstringnie
buttonBorderColorstringnie
dividerColorstringnie
headingColorsobjectnieOwn colours of Nadpis H1, H2 and H3 (ED-07); missing = headingColor.
darkButtonBorderColorstringnieDark variants of the button borders (ED-07).
darkButton2BorderColorstringnie
innerRowColorstringnieBarva těla - vnitřní řádka, Barva pozadí sloupce (also of an inner row) and Pozadí prvku; missing = none (the body shows through).
columnColorstringnie
innerColumnColorstringnie
elementColorstringnie
darkColorsobjectnieDark variants of the slots without an older dark field (editor/magic/colorScheme.ts).
colorsMobileobjectniePhone colours (light and dark) under 480 px; missing = desktop.
darkColorsMobileobjectnie
footerDefaultbooleannieSystem footer: its own default look instead of the e-mail's, and no background.
footerTransparentbooleannie
textobjectnieText styles per kind; missing keys = defaults. Mobile values override desktop ones under 480 px.
textMobileobjectnie
defaultsElementDefaultsnieDefaults of new elements (editor/magic/elementDefaults.ts applies them).
defaultsMobileElementDefaultsMobileniePhone values of the element defaults: paddings, widths and the spacer height under 480 px.

SendTiming

one of: now, schedule, later

Sender

PoleTypPovinnéPopis
idstringáno
shopIdstringáno
namestringáno
emailstringáno
replyTostringáno
verifiedbooleanánoDomain verified (SPF, DKIM, DMARC); only verified senders can send.
isDefaultbooleanáno
policyIssueone of: freemail, domain_not_verified, nullnieDO-03: why Terms 7.4 would refuse this address today; such an older sender keeps sending, pickers warn.

TestSendResult

PoleTypPovinnéPopis
tostringáno
sentAtstringáno

VariantApproveInput

PoleTypPovinnéPopis
sendAtstring or nullánonull = now.
expectedRecipientsmap of numberánoThe final number per variant id the user confirmed.

VariantPreview

PoleTypPovinnéPopis
variantsarray of VariantPreviewItemáno
totalnumberáno

VariantPreviewItem

Counts of one variant before sending: its own audience, the recipients an earlier variant takes, the final number.

PoleTypPovinnéPopis
campaignIdstringáno
labelstringáno
shopIdstringáno
takenByEarliernumberáno
finalnumberáno
matchednumberánoUnique contacts in the chosen lists and segments.
recipientsnumberánoWho would receive the campaign now.
excludedobjectáno

VariantStats

PoleTypPovinnéPopis
variantsarray of objectáno
totalCampaignStats or nullánoSums over the variants (a contact gets one variant, so these are unique contacts); null before sending.