Preskočiť na obsah
API dokumentácia

Campaigns

One-off e-mail campaigns (newsletters): draft, audience, content, test, approve (send now or schedule), pause, resume, cancel, language variants.

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}/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: modul 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.

Create a campaign (draft)

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

Oprávnenie: modul 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.

Count and explain the recipients of an audience

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

Oprávnenie: modul 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.

Change labels of campaigns

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

Oprávnenie: modul 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.

Get a campaign

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

Oprávnenie: modul 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.

Update a campaign draft

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

Oprávnenie: modul 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.

Delete a campaign draft

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

Oprávnenie: modul 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.

Approve a campaign: send now or schedule

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

Oprávnenie: modul 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) when the audience drifted more than 5 %.

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
409conflicttest_only
429429 rate_limited: wait Retry-After seconds.

Cancel a scheduled or paused campaign

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

Oprávnenie: modul 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.

Get the content of a campaign

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

Oprávnenie: modul 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.

Save the content of a campaign draft

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

Oprávnenie: modul 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: visual, htmlá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.

Pause a sending or scheduled campaign

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

Oprávnenie: modul 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.

Render a campaign for one contact

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

Oprávnenie: modul 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 merge tag 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.

Resume a paused campaign

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

Oprávnenie: modul 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
409conflictstatus
429429 rate_limited: wait Retry-After seconds.

Statistics of a campaign by provider and domain

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

Oprávnenie: modul 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.

Send a test e-mail of a campaign

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

Oprávnenie: modul 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
429429 rate_limited: wait Retry-After seconds.
503unavailablemail

Get the language variants of a campaign

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

Oprávnenie: modul 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.

Create language variants of a campaign

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

Oprávnenie: modul 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.

Change the language variants of a campaign

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

Oprávnenie: modul 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.

Approve the language variants (send or schedule)

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

Oprávnenie: modul 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
409conflicttest_only
429429 rate_limited: wait Retry-After seconds.

Cancel the language variants

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

Oprávnenie: modul 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
409conflictstatus, variants
429429 rate_limited: wait Retry-After seconds.

Pause the language variants

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

Oprávnenie: modul 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
409conflictstatus, variants
429429 rate_limited: wait Retry-After seconds.

Preview the audience split of language variants

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

Oprávnenie: modul 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.

Resume the language variants

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

Oprávnenie: modul 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
409conflictstatus, variants
429429 rate_limited: wait Retry-After seconds.

Statistics of the language variants

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

Oprávnenie: modul 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.

List saved content versions of a campaign

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

Oprávnenie: modul 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.

Get one content version of a campaign

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

Oprávnenie: modul 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.

List verified senders

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

Oprávnenie: modul 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.

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) when the audience drifted more than 5 %.

AudienceCount

PoleTypPovinnéPopis
matchednumberánoUnique contacts in the chosen lists and segments.
recipientsnumberánoWho would receive the campaign now.
excludedobjectá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: manual, bounce_rate, complaint_rate, unsubscribe_rate, recipient_drift, template_error, nulláno
approvedAtstring or nullánoSE's Aktivováno: when the campaign was approved for sending (null for drafts).
trackOpensbooleanánoAdvanced step: tracking (on by default as in SE), 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ů" (SE): 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 (SE, migration 0391): 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 (merge tags 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 nullnieSE's Aktivováno: when the campaign was approved for sending (null for drafts).
publicUrlstringnieOdkaz ke sdílení: the campaign's public preview (merge tags 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 merge tag 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: manual, bounce_rate, complaint_rate, unsubscribe_rate, recipient_drift, 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

EmailContent

E-mail content of a template or a campaign.

PoleTypPovinnéPopis
editorone of: visual, htmláno
htmlstringánoHTML with merge tags 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: visual, htmlá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 Magic 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 Magic 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 (SE: every colour has its "(tmavé schéma)" variant).
darkButtonTextColorstringnie
darkButton2Colorstringnie
darkButton2TextColorstringnie
darkDividerColorstringnie
backgroundMagicBackgroundnieSE "Typ pozadí" of the e-mail (around the body) and of the body: a 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
footerDefaultbooleannieSystem footer (SmartEmailing "Patička"): 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
defaultsobjectnieDefaults of new elements (SmartEmailing "Prvky").

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

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.