Přeskočit na obsah
API dokumentace

Šablony a obsah

Reference API pro šablony a obsah: e-mailové šablony, verze, kontroly, patičky, odhlašovací a landing pages, dotazníky, SMS šablony a soubory.

Technická reference je anglicky (stejně jako strojově čitelný dokument OpenAPI). Celou skupinu pro AI agenta načtete z /api/openapi.json?tag=Templates.

Přihlášení: Authorization: Bearer pst_... nebo HTTP Basic (e-mail člena firmy a API klíč).

Operace

MetodaCestaPopis
GET/api/v1/tenants/{tenant}/content/coupon-samplesSample coupon codes shaped like the stacks' codes, for previews
POST/api/v1/tenants/{tenant}/content/lintCheck e-mail content (variables, links, required parts)
POST/api/v1/tenants/{tenant}/content/previewRender e-mail content with sample data in its template scripts
POST/api/v1/tenants/{tenant}/content/spam-checkAntispam check of e-mail content
GET/api/v1/tenants/{tenant}/editor-elementsList saved editor elements
POST/api/v1/tenants/{tenant}/editor-elementsSave an editor element
PATCH/api/v1/tenants/{tenant}/editor-elements/{element_id}Update a saved editor element
DELETE/api/v1/tenants/{tenant}/editor-elements/{element_id}Delete a saved editor element
GET/api/v1/tenants/{tenant}/file-foldersList folders of the file manager
POST/api/v1/tenants/{tenant}/file-foldersCreate a folder
PATCH/api/v1/tenants/{tenant}/file-folders/{folder_id}Rename a folder
DELETE/api/v1/tenants/{tenant}/file-folders/{folder_id}Delete a folder
GET/api/v1/tenants/{tenant}/filesList files of the file manager
POST/api/v1/tenants/{tenant}/filesUpload a file (multipart)
POST/api/v1/tenants/{tenant}/files/stock-photoSave a stock photo to the file manager
POST/api/v1/tenants/{tenant}/files/video-thumbnailCreate a video thumbnail image
GET/api/v1/tenants/{tenant}/files/{asset_id}Get a file
PATCH/api/v1/tenants/{tenant}/files/{asset_id}Rename or move a file
DELETE/api/v1/tenants/{tenant}/files/{asset_id}Delete a file
POST/api/v1/tenants/{tenant}/files/{asset_id}/pickedRecord that a file was used
GET/api/v1/tenants/{tenant}/footersList footers
POST/api/v1/tenants/{tenant}/footersCreate a footer
GET/api/v1/tenants/{tenant}/footers/{footer_id}Get a footer
PATCH/api/v1/tenants/{tenant}/footers/{footer_id}Rename a footer
DELETE/api/v1/tenants/{tenant}/footers/{footer_id}Delete a footer
PUT/api/v1/tenants/{tenant}/footers/{footer_id}/contentSave the content of a footer
POST/api/v1/tenants/{tenant}/footers/{footer_id}/copyCopy a footer
POST/api/v1/tenants/{tenant}/footers/{footer_id}/defaultMake a footer the default
DELETE/api/v1/tenants/{tenant}/footers/{footer_id}/defaultStop using a footer as the default
POST/api/v1/tenants/{tenant}/footers/{footer_id}/publishPublish a footer
GET/api/v1/tenants/{tenant}/footers/{footer_id}/versionsList saved versions of a footer
GET/api/v1/tenants/{tenant}/footers/{footer_id}/versions/{version_id}Get one version of a footer
GET/api/v1/tenants/{tenant}/landing-pagesList landing pages
POST/api/v1/tenants/{tenant}/landing-pagesCreate a landing page
GET/api/v1/tenants/{tenant}/landing-pages/{landing_page_id}Get a landing page
PATCH/api/v1/tenants/{tenant}/landing-pages/{landing_page_id}Update a landing page
DELETE/api/v1/tenants/{tenant}/landing-pages/{landing_page_id}Delete a landing page
POST/api/v1/tenants/{tenant}/landing-pages/{landing_page_id}/copyCopy a landing page
GET/api/v1/tenants/{tenant}/script-templatesList script templates (Twig)
POST/api/v1/tenants/{tenant}/script-templatesCreate a script template
GET/api/v1/tenants/{tenant}/script-templates/{script_id}Get a script template
PATCH/api/v1/tenants/{tenant}/script-templates/{script_id}Update a script template
DELETE/api/v1/tenants/{tenant}/script-templates/{script_id}Delete a script template
GET/api/v1/tenants/{tenant}/signaturesList the e-mail signatures
POST/api/v1/tenants/{tenant}/signaturesCreate an e-mail signature
GET/api/v1/tenants/{tenant}/signatures/{signature_id}Get an e-mail signature
PATCH/api/v1/tenants/{tenant}/signatures/{signature_id}Update an e-mail signature
DELETE/api/v1/tenants/{tenant}/signatures/{signature_id}Delete an e-mail signature
POST/api/v1/tenants/{tenant}/signatures/{signature_id}/defaultMake an e-mail signature the default one
POST/api/v1/tenants/{tenant}/signatures/{signature_id}/duplicateDuplicate an e-mail signature
GET/api/v1/tenants/{tenant}/sms-templatesList SMS templates
POST/api/v1/tenants/{tenant}/sms-templatesCreate an SMS template
GET/api/v1/tenants/{tenant}/sms-templates/{sms_template_id}Get an SMS template
PATCH/api/v1/tenants/{tenant}/sms-templates/{sms_template_id}Update an SMS template
DELETE/api/v1/tenants/{tenant}/sms-templates/{sms_template_id}Delete an SMS template
POST/api/v1/tenants/{tenant}/sms-templates/{sms_template_id}/copyCopy an SMS template
GET/api/v1/tenants/{tenant}/stock-photosSearch stock photos
GET/api/v1/tenants/{tenant}/stock-photos/statusWhether the stock photo search is available
GET/api/v1/tenants/{tenant}/surveysList surveys
POST/api/v1/tenants/{tenant}/surveysCreate a survey
GET/api/v1/tenants/{tenant}/surveys/{survey_id}Get a survey
PATCH/api/v1/tenants/{tenant}/surveys/{survey_id}Update a survey
DELETE/api/v1/tenants/{tenant}/surveys/{survey_id}Delete a survey
POST/api/v1/tenants/{tenant}/surveys/{survey_id}/copyCopy a survey
GET/api/v1/tenants/{tenant}/surveys/{survey_id}/responsesList responses of a survey
GET/api/v1/tenants/{tenant}/surveys/{survey_id}/resultsSummary results of a survey
GET/api/v1/tenants/{tenant}/templatesList templates
POST/api/v1/tenants/{tenant}/templatesCreate a template
POST/api/v1/tenants/{tenant}/templates/tagsChange labels of templates
GET/api/v1/tenants/{tenant}/templates/{template_id}Get a template with its content
PATCH/api/v1/tenants/{tenant}/templates/{template_id}Update template settings (name, subject, preheader ...)
DELETE/api/v1/tenants/{tenant}/templates/{template_id}Delete a template
POST/api/v1/tenants/{tenant}/templates/{template_id}/archiveArchive a template
PUT/api/v1/tenants/{tenant}/templates/{template_id}/contentSave the content of a template
POST/api/v1/tenants/{tenant}/templates/{template_id}/convert-to-visualConvert an HTML template to the visual editor
DELETE/api/v1/tenants/{tenant}/templates/{template_id}/draftDiscard the unpublished draft of a template
POST/api/v1/tenants/{tenant}/templates/{template_id}/duplicateDuplicate a template
POST/api/v1/tenants/{tenant}/templates/{template_id}/publishPublish the draft of a template used by an active automation
POST/api/v1/tenants/{tenant}/templates/{template_id}/testSend a test e-mail of a template
POST/api/v1/tenants/{tenant}/templates/{template_id}/unarchiveRestore an archived template
GET/api/v1/tenants/{tenant}/templates/{template_id}/versionsList saved content versions of a template
GET/api/v1/tenants/{tenant}/templates/{template_id}/versions/{version_id}Get one content version of a template
GET/api/v1/tenants/{tenant}/test-recipientsList the test addresses of the company
PUT/api/v1/tenants/{tenant}/test-recipientsReplace the test addresses of the company
GET/api/v1/tenants/{tenant}/unsubscribe-pagesList unsubscribe pages
POST/api/v1/tenants/{tenant}/unsubscribe-pagesCreate an unsubscribe page
POST/api/v1/tenants/{tenant}/unsubscribe-pages/previewRender an unsubscribe page preview
GET/api/v1/tenants/{tenant}/unsubscribe-pages/{unsub_page_id}Get an unsubscribe page
PATCH/api/v1/tenants/{tenant}/unsubscribe-pages/{unsub_page_id}Update an unsubscribe page
DELETE/api/v1/tenants/{tenant}/unsubscribe-pages/{unsub_page_id}Delete an unsubscribe page
POST/api/v1/tenants/{tenant}/unsubscribe-pages/{unsub_page_id}/copyCopy an unsubscribe page
POST/api/v1/tenants/{tenant}/unsubscribe-pages/{unsub_page_id}/defaultMake an unsubscribe page the default
DELETE/api/v1/tenants/{tenant}/unsubscribe-pages/{unsub_page_id}/defaultStop using an unsubscribe page as the default

Sample coupon codes shaped like the stacks' codes, for previews

GET /api/v1/tenants/{tenant}/content/coupon-samples

Oprávnění: oblast content, úroveň read; klíč s přístupem read nebo full

?keys=a,b (merge keys of coupon tags, at most COUPON_SAMPLE_KEYS_MAX): {samples: {'coupon_<key>': code}} for the previews the app fills itself: each stack's sample code shaped like its codes, labelled as a sample in the user's language (core/coupons.sample_codes; the plain sample for a key without a stack). Reads no real code out: a sample is never a code of the stack.

Parametry

NázevKdeTypPovinnéPopis
tenantpathstring (uuid)anoPublic 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.
keysquerystringne

Odpovědi

  • 200 OK: application/json object

Chyby

StavKódHodnoty message
400validationkeys
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

Check e-mail content (variables, links, required parts)

POST /api/v1/tenants/{tenant}/content/lint

Oprávnění: oblast content, úroveň read; klíč s přístupem read nebo full · Nástroj MCP: lint_content

Checks e-mail content (variables, emoji rules, footer, size, scripts) and answers issue codes.

Body {html, subject, preheader}: {issues: [{code, severity, params}]}, errors first (codes only).

Parametry

NázevKdeTypPovinnéPopis
tenantpathstring (uuid)anoPublic id of the company (tenant), a UUID: GET /api/v3/account-info answers it as data.guid; the app shows it on the API keys page.

Tělo požadavku (application/json)

PoleTypPovinnéPopis
htmlstringano
subjectstringano
preheaderstringano

Odpovědi

  • 200 OK: application/json object

Chyby

StavKódHodnoty message
400validationhtml, subject
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

Render e-mail content with sample data in its template scripts

POST /api/v1/tenants/{tenant}/content/preview

Oprávnění: oblast content, úroveň read; klíč s přístupem read nebo full

Náhled: body {html, shopId?, subject?, preheader?, editor?, templateId?}: the e-mail rendered as the sending path renders it for a sample recipient, its template scripts filled with sample data (orders of products from the e-shop's feed, the real feed for data.products, the sample promo code). {subject, preheader, html}, with script {reason, line?, detail} and html '' when the script stops or cannot run. Nothing of any contact is read, nothing is sent or recorded.

Parametry

NázevKdeTypPovinnéPopis
tenantpathstring (uuid)anoPublic id of the company (tenant), a UUID: GET /api/v3/account-info answers it as data.guid; the app shows it on the API keys page.

Tělo požadavku (application/json)

PoleTypPovinnéPopis
htmlstringano
shopIdstringne
subjectstringne
preheaderstringne
editorone of: html, visualne
templateIdstringne

Odpovědi

Chyby

StavKódHodnoty message
400validationeditor, html
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

Antispam check of e-mail content

POST /api/v1/tenants/{tenant}/content/spam-check

Oprávnění: oblast content, úroveň read; klíč s přístupem read nebo full

Body {html, subject, preheader}: {score, verdict (ok | spam | blocked), sizeKb, rules: [{code, points, found?}]} of Poštárna's own antispam rules; found = the phrases, hosts, domains or tags a rule found.

Parametry

NázevKdeTypPovinnéPopis
tenantpathstring (uuid)anoPublic id of the company (tenant), a UUID: GET /api/v3/account-info answers it as data.guid; the app shows it on the API keys page.

Tělo požadavku (application/json)

PoleTypPovinnéPopis
htmlstringano
subjectstringano
preheaderstringano

Odpovědi

Chyby

StavKódHodnoty message
400validationhtml, subject
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

List saved editor elements

GET /api/v1/tenants/{tenant}/editor-elements

Oprávnění: oblast content, úroveň read; klíč s přístupem read nebo full

{items: [{id, name, category, kind, mjml, createdAt, updatedAt}]} by category, then name.

Parametry

NázevKdeTypPovinnéPopis
tenantpathstring (uuid)anoPublic id of the company (tenant), a UUID: GET /api/v3/account-info answers it as data.guid; the app shows it on the API keys page.

Odpovědi

  • 200 OK: application/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

Save an editor element

POST /api/v1/tenants/{tenant}/editor-elements

Oprávnění: oblast content, úroveň full; klíč s přístupem full

Body {name, category?, kind, mjml}: 201 with the element; 409 conflict name (taken in the category), 400 validation limit (500 elements per tenant) or the field.

Parametry

NázevKdeTypPovinnéPopis
tenantpathstring (uuid)anoPublic id of the company (tenant), a UUID: GET /api/v3/account-info answers it as data.guid; the app shows it on the API keys page.

Tělo požadavku (application/json)

PoleTypPovinnéPopis
namestringano
categorystringne
kindEditorElementKindano
mjmlstringano

Odpovědi

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

Update a saved editor element

PATCH /api/v1/tenants/{tenant}/editor-elements/{element_id}

Oprávnění: oblast content, úroveň full; klíč s přístupem full

Body {name?, category?, mjml?}: the element.

Parametry

NázevKdeTypPovinnéPopis
tenantpathstring (uuid)anoPublic 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.
element_idpathstringanoId of the element (string of digits).

Tělo požadavku (application/json)

PoleTypPovinnéPopis
namestringne
categorystringne
mjmlstringne

Odpovědi

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

Delete a saved editor element

DELETE /api/v1/tenants/{tenant}/editor-elements/{element_id}

Oprávnění: oblast content, úroveň full; klíč s přístupem full

Parametry

NázevKdeTypPovinnéPopis
tenantpathstring (uuid)anoPublic 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.
element_idpathstringanoId of the element (string of digits).

Odpovědi

  • 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
429429 rate_limited: wait Retry-After seconds.
503unavailablebusy

List folders of the file manager

GET /api/v1/tenants/{tenant}/file-folders

Oprávnění: oblast files, úroveň read; klíč s přístupem read nebo full

Parametry

NázevKdeTypPovinnéPopis
tenantpathstring (uuid)anoPublic id of the company (tenant), a UUID: GET /api/v3/account-info answers it as data.guid; the app shows it on the API keys page.

Odpovědi

  • 200 OK: application/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

Create a folder

POST /api/v1/tenants/{tenant}/file-folders

Oprávnění: oblast files, úroveň full; klíč s přístupem full

Parametry

NázevKdeTypPovinnéPopis
tenantpathstring (uuid)anoPublic id of the company (tenant), a UUID: GET /api/v3/account-info answers it as data.guid; the app shows it on the API keys page.

Tělo požadavku (application/json)

PoleTypPovinnéPopis
namestringano
parentIdstring or nullano

Odpovědi

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.
429429 rate_limited: wait Retry-After seconds.
503unavailablebusy, storage

Rename a folder

PATCH /api/v1/tenants/{tenant}/file-folders/{folder_id}

Oprávnění: oblast files, úroveň full; klíč s přístupem full

Parametry

NázevKdeTypPovinnéPopis
tenantpathstring (uuid)anoPublic 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.
folder_idpathstringanoId of the folder (string of digits).

Tělo požadavku (application/json)

PoleTypPovinnéPopis
namestringne
parentIdstring or nullne

Odpovědi

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, storage

Delete a folder

DELETE /api/v1/tenants/{tenant}/file-folders/{folder_id}

Oprávnění: oblast files, úroveň full; klíč s přístupem full

Parametry

NázevKdeTypPovinnéPopis
tenantpathstring (uuid)anoPublic 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.
folder_idpathstringanoId of the folder (string of digits).

Odpovědi

  • 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
429429 rate_limited: wait Retry-After seconds.
503unavailablebusy, storage

List files of the file manager

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

Oprávnění: oblast files, úroveň read; klíč s přístupem read nebo full

?folderId= (empty or missing = the root), ?q= (name contains, all folders), ?sort= name (default), -name, created, -created, size, -size, ?type=image (pictures only), ?recent=1 (files picked into an e-mail, newest pick first, all folders: folderId and sort are ignored), page, pageSize.

Parametry

NázevKdeTypPovinnéPopis
tenantpathstring (uuid)anoPublic 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.
folderIdquerystringne
pagequeryintegernePage number, from 1. default 1, min 1
pageSizequeryintegerneItems per page, 1 to 100. default 25, min 1, max 100
qquerystringneSearch text (case and diacritics insensitive). max 200 chars
recentquerystringne
sortquerystringneSort fields separated by commas, "-" = descending, at most 3 (e.g. name,-id).
typequerystringne

Odpovědi

  • 200 OK: application/json object

Chyby

StavKódHodnoty message
400validationrecent, sort, type
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, storage

Upload a file (multipart)

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

Oprávnění: oblast files, úroveň full; klíč s přístupem full

multipart/form-data: file (one file), folderId (optional). 201 with the file.

Parametry

NázevKdeTypPovinnéPopis
tenantpathstring (uuid)anoPublic id of the company (tenant), a UUID: GET /api/v3/account-info answers it as data.guid; the app shows it on the API keys page.

Tělo požadavku (multipart/form-data)

PoleTypPovinnéPopis
filestring (binary)anoThe file.

Odpovědi

Chyby

StavKódHodnoty message
400validationfile
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, storage

Save a stock photo to the file manager

POST /api/v1/tenants/{tenant}/files/stock-photo

Oprávnění: oblast files, úroveň full; klíč s přístupem full

Body {id, size?, folderId?}: the picture of the photo bank downloaded into the file manager (no hotlinking), in the root folder Fotobanka unless folderId is given; size large (1280 px, default) or web (640 px). An identical picture stored before is returned instead of a copy. 201 {file, photo: {id, pageUrl, user, userUrl}, existing}.

Parametry

NázevKdeTypPovinnéPopis
tenantpathstring (uuid)anoPublic id of the company (tenant), a UUID: GET /api/v3/account-info answers it as data.guid; the app shows it on the API keys page.

Tělo požadavku (application/json): Required by the server: id.

PoleTypPovinnéPopis
idstringano
sizeone of: web, largene
folderIdstring or nullne

Odpovědi

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.
429rate_limitedstock
502upstreamstock
503unavailablebusy, stock, storage

Create a video thumbnail image

POST /api/v1/tenants/{tenant}/files/video-thumbnail

Oprávnění: oblast files, úroveň full; klíč s přístupem full

Body {url, folderId?}: the thumbnail of a YouTube or Vimeo video as a file (core/video_thumbs.py), in the root folder Videa unless folderId is given; an identical picture already stored is returned instead. 201 {file, provider, videoId, videoUrl, title}. 400 validation url (reason unsupported) for another address, 502 upstream url (reason not_found, http_<status>, network, too_large, invalid, host) when the picture cannot be fetched.

Parametry

NázevKdeTypPovinnéPopis
tenantpathstring (uuid)anoPublic id of the company (tenant), a UUID: GET /api/v3/account-info answers it as data.guid; the app shows it on the API keys page.

Tělo požadavku (application/json): Required by the server: url.

PoleTypPovinnéPopis
urlstringano
folderIdstring or nullne

Odpovědi

Chyby

StavKódHodnoty message
400validationurl
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.
502upstreamurl
503unavailablebusy, storage

Get a file

GET /api/v1/tenants/{tenant}/files/{asset_id}

Oprávnění: oblast files, úroveň read; klíč s přístupem read nebo full

The file and its uses: {templates, campaigns} whose content names its address (shown before a delete).

Parametry

NázevKdeTypPovinnéPopis
tenantpathstring (uuid)anoPublic 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.
asset_idpathstringanoId of the asset (string of digits).

Odpovědi

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

Rename or move a file

PATCH /api/v1/tenants/{tenant}/files/{asset_id}

Oprávnění: oblast files, úroveň full; klíč s přístupem full

Body {name, folderId} (any of them): the address stays the same.

Parametry

NázevKdeTypPovinnéPopis
tenantpathstring (uuid)anoPublic 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.
asset_idpathstringanoId of the asset (string of digits).

Tělo požadavku (application/json)

PoleTypPovinnéPopis
namestringne
folderIdstring or nullne

Odpovědi

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, storage

Delete a file

DELETE /api/v1/tenants/{tenant}/files/{asset_id}

Oprávnění: oblast files, úroveň full; klíč s přístupem full

Parametry

NázevKdeTypPovinnéPopis
tenantpathstring (uuid)anoPublic 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.
asset_idpathstringanoId of the asset (string of digits).

Odpovědi

  • 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
429429 rate_limited: wait Retry-After seconds.
503unavailablebusy

Record that a file was used

POST /api/v1/tenants/{tenant}/files/{asset_id}/picked

Oprávnění: oblast files, úroveň full; klíč s přístupem full

The editor picked the file into an e-mail: picked_at = now (the library's recently used tab). The file.

Parametry

NázevKdeTypPovinnéPopis
tenantpathstring (uuid)anoPublic 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.
asset_idpathstringanoId of the asset (string of digits).

Odpovědi

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 footers

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

Oprávnění: oblast content, úroveň read; klíč s přístupem read nebo full

?editor=visual|html (default all), ?q= part of the name, ?sort= id, name, default with '-' for descending.

Parametry

NázevKdeTypPovinnéPopis
tenantpathstring (uuid)anoPublic 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.
editorquerystringne
qquerystringneSearch text (case and diacritics insensitive). max 200 chars
sortquerystringneSort fields separated by commas, "-" = descending, at most 3 (e.g. name,-id).

Odpovědi

  • 200 OK: application/json object

Chyby

StavKódHodnoty message
400validationeditor, sort
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 footer

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

Oprávnění: oblast content, úroveň full; klíč s přístupem full

Parametry

NázevKdeTypPovinnéPopis
tenantpathstring (uuid)anoPublic id of the company (tenant), a UUID: GET /api/v3/account-info answers it as data.guid; the app shows it on the API keys page.

Tělo požadavku (application/json)

PoleTypPovinnéPopis
namestringano
editorone of: html, visualano
htmlstringano
designEmailDesign or nullano

Odpovědi

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 a footer

GET /api/v1/tenants/{tenant}/footers/{footer_id}

Oprávnění: oblast content, úroveň read; klíč s přístupem read nebo full

Parametry

NázevKdeTypPovinnéPopis
tenantpathstring (uuid)anoPublic 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.
footer_idpathstringanoId of the footer (string of digits).

Odpovědi

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

Rename a footer

PATCH /api/v1/tenants/{tenant}/footers/{footer_id}

Oprávnění: oblast content, úroveň full; klíč s přístupem full

Parametry

NázevKdeTypPovinnéPopis
tenantpathstring (uuid)anoPublic 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.
footer_idpathstringanoId of the footer (string of digits).

Tělo požadavku (application/json)

PoleTypPovinnéPopis
namestringano

Odpovědi

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

Delete a footer

DELETE /api/v1/tenants/{tenant}/footers/{footer_id}

Oprávnění: oblast content, úroveň full; klíč s přístupem full

204; 409 default for the default footer.

Parametry

NázevKdeTypPovinnéPopis
tenantpathstring (uuid)anoPublic 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.
footer_idpathstringanoId of the footer (string of digits).

Odpovědi

  • 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
429429 rate_limited: wait Retry-After seconds.
503unavailablebusy

Save the content of a footer

PUT /api/v1/tenants/{tenant}/footers/{footer_id}/content

Oprávnění: oblast content, úroveň full; klíč s přístupem full

The draft as e-mail content {editor, html, design, baseVersion, saveKind}: EmailContent; 409 version.

Parametry

NázevKdeTypPovinnéPopis
tenantpathstring (uuid)anoPublic 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.
footer_idpathstringanoId of the footer (string of digits).

Tělo požadavku (application/json)

PoleTypPovinnéPopis
editorone of: html, visualano
htmlstringano
designEmailDesign or nullano
baseVersionnumberanoThe version the editor started from; a newer one on the server answers 409 version (saved elsewhere meanwhile).
saveKindone of: manual, auto, restoreneHistory entry kind: auto (autosave, journaled), manual (Uložit), restore (a version taken back). Default auto.

Odpovědi

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

Copy a footer

POST /api/v1/tenants/{tenant}/footers/{footer_id}/copy

Oprávnění: oblast content, úroveň full; klíč s přístupem full

Kopírovat patičku: body {suffix} (the word after the name, from the client's language, default 'kopie').

Parametry

NázevKdeTypPovinnéPopis
tenantpathstring (uuid)anoPublic 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.
footer_idpathstringanoId of the footer (string of digits).

Tělo požadavku (application/json)

PoleTypPovinnéPopis
suffixstringano

Odpovědi

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

Make a footer the default

POST /api/v1/tenants/{tenant}/footers/{footer_id}/default

Oprávnění: oblast content, úroveň full; klíč s přístupem full

Nastavit jako výchozí: 409 published for a footer that was never published.

Parametry

NázevKdeTypPovinnéPopis
tenantpathstring (uuid)anoPublic 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.
footer_idpathstringanoId of the footer (string of digits).

Tělo požadavku (application/json)

object

Odpovědi

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

Stop using a footer as the default

DELETE /api/v1/tenants/{tenant}/footers/{footer_id}/default

Oprávnění: oblast content, úroveň full; klíč s přístupem full

Parametry

NázevKdeTypPovinnéPopis
tenantpathstring (uuid)anoPublic 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.
footer_idpathstringanoId of the footer (string of digits).

Odpovědi

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

Publish a footer

POST /api/v1/tenants/{tenant}/footers/{footer_id}/publish

Oprávnění: oblast content, úroveň full; klíč s přístupem full

Publikovat: 409 incomplete with {gaps: [link, sender, loop, empty]}.

Parametry

NázevKdeTypPovinnéPopis
tenantpathstring (uuid)anoPublic 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.
footer_idpathstringanoId of the footer (string of digits).

Tělo požadavku (application/json)

object

Odpovědi

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 versions of a footer

GET /api/v1/tenants/{tenant}/footers/{footer_id}/versions

Oprávnění: oblast content, úroveň read; klíč s přístupem read nebo full

Parametry

NázevKdeTypPovinnéPopis
tenantpathstring (uuid)anoPublic 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.
footer_idpathstringanoId of the footer (string of digits).
beforequerystringne
limitquerystringne

Odpovědi

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 version of a footer

GET /api/v1/tenants/{tenant}/footers/{footer_id}/versions/{version_id}

Oprávnění: oblast content, úroveň read; klíč s přístupem read nebo full

Parametry

NázevKdeTypPovinnéPopis
tenantpathstring (uuid)anoPublic 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.
footer_idpathstringanoId of the footer (string of digits).
version_idpathstringanoId of the version (string of digits).

Odpovědi

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 landing pages

GET /api/v1/tenants/{tenant}/landing-pages

Oprávnění: oblast landing_pages, úroveň read; klíč s přístupem read nebo full

{items: LandingPageSummary[]} without the HTML.

Parametry

NázevKdeTypPovinnéPopis
tenantpathstring (uuid)anoPublic 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.
qquerystringneSearch text (case and diacritics insensitive). max 200 chars
sortquerystringneSort fields separated by commas, "-" = descending, at most 3 (e.g. name,-id).

Odpovědi

  • 200 OK: application/json object

Chyby

StavKódHodnoty message
400validationsort
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 landing page

POST /api/v1/tenants/{tenant}/landing-pages

Oprávnění: oblast landing_pages, úroveň full; klíč s přístupem full

Parametry

NázevKdeTypPovinnéPopis
tenantpathstring (uuid)anoPublic id of the company (tenant), a UUID: GET /api/v3/account-info answers it as data.guid; the app shows it on the API keys page.

Tělo požadavku (application/json)

PoleTypPovinnéPopis
namestringano
activebooleanano
htmlstringano

Odpovědi

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 a landing page

GET /api/v1/tenants/{tenant}/landing-pages/{landing_page_id}

Oprávnění: oblast landing_pages, úroveň read; klíč s přístupem read nebo full

Parametry

NázevKdeTypPovinnéPopis
tenantpathstring (uuid)anoPublic 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.
landing_page_idpathstringanoId of the landing page (string of digits).

Odpovědi

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 landing page

PATCH /api/v1/tenants/{tenant}/landing-pages/{landing_page_id}

Oprávnění: oblast landing_pages, úroveň full; klíč s přístupem full

Parametry

NázevKdeTypPovinnéPopis
tenantpathstring (uuid)anoPublic 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.
landing_page_idpathstringanoId of the landing page (string of digits).

Tělo požadavku (application/json)

PoleTypPovinnéPopis
namestringne
activebooleanne
htmlstringne

Odpovědi

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

Delete a landing page

DELETE /api/v1/tenants/{tenant}/landing-pages/{landing_page_id}

Oprávnění: oblast landing_pages, úroveň full; klíč s přístupem full

Parametry

NázevKdeTypPovinnéPopis
tenantpathstring (uuid)anoPublic 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.
landing_page_idpathstringanoId of the landing page (string of digits).

Odpovědi

  • 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
429429 rate_limited: wait Retry-After seconds.
503unavailablebusy

Copy a landing page

POST /api/v1/tenants/{tenant}/landing-pages/{landing_page_id}/copy

Oprávnění: oblast landing_pages, úroveň full; klíč s přístupem full

Parametry

NázevKdeTypPovinnéPopis
tenantpathstring (uuid)anoPublic 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.
landing_page_idpathstringanoId of the landing page (string of digits).

Tělo požadavku (application/json)

PoleTypPovinnéPopis
suffixstringano

Odpovědi

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 script templates (Twig)

GET /api/v1/tenants/{tenant}/script-templates

Oprávnění: oblast content, úroveň read; klíč s přístupem read nebo full

{items: [{id, name, content, parses, createdAt, updatedAt}]}; ?q= (name or content contains), ?sort= id, name, content, createdAt, updatedAt with a leading '-' for descending.

Parametry

NázevKdeTypPovinnéPopis
tenantpathstring (uuid)anoPublic 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.
qquerystringneSearch text (case and diacritics insensitive). max 200 chars
sortquerystringneSort fields separated by commas, "-" = descending, at most 3 (e.g. name,-id).

Odpovědi

  • 200 OK: application/json object

Chyby

StavKódHodnoty message
400validationsort
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 script template

POST /api/v1/tenants/{tenant}/script-templates

Oprávnění: oblast content, úroveň full; klíč s přístupem full

Body {name, content}: 201 with the template; 409 conflict name, 400 validation (field or limit).

Parametry

NázevKdeTypPovinnéPopis
tenantpathstring (uuid)anoPublic id of the company (tenant), a UUID: GET /api/v3/account-info answers it as data.guid; the app shows it on the API keys page.

Tělo požadavku (application/json)

PoleTypPovinnéPopis
namestringano
contentstringano

Odpovědi

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

Get a script template

GET /api/v1/tenants/{tenant}/script-templates/{script_id}

Oprávnění: oblast content, úroveň read; klíč s přístupem read nebo full

Parametry

NázevKdeTypPovinnéPopis
tenantpathstring (uuid)anoPublic 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.
script_idpathstringanoId of the script (string of digits).

Odpovědi

  • 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

Update a script template

PATCH /api/v1/tenants/{tenant}/script-templates/{script_id}

Oprávnění: oblast content, úroveň full; klíč s přístupem full

Body {name?, content?}: the template.

Parametry

NázevKdeTypPovinnéPopis
tenantpathstring (uuid)anoPublic 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.
script_idpathstringanoId of the script (string of digits).

Tělo požadavku (application/json)

PoleTypPovinnéPopis
namestringne
contentstringne

Odpovědi

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

Delete a script template

DELETE /api/v1/tenants/{tenant}/script-templates/{script_id}

Oprávnění: oblast content, úroveň full; klíč s přístupem full

Parametry

NázevKdeTypPovinnéPopis
tenantpathstring (uuid)anoPublic 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.
script_idpathstringanoId of the script (string of digits).

Odpovědi

  • 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
429429 rate_limited: wait Retry-After seconds.
503unavailablebusy

List the e-mail signatures

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

Oprávnění: oblast content, úroveň read; klíč s přístupem read nebo full

{items: [...]}: the default signature first, then by name; ?shopId= only those offered for that e-shop (its own and the ones for every e-shop).

Parametry

NázevKdeTypPovinnéPopis
tenantpathstring (uuid)anoPublic 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.
shopIdquerystringne

Odpovědi

  • 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.
429429 rate_limited: wait Retry-After seconds.
503unavailablebusy

Create an e-mail signature

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

Oprávnění: oblast content, úroveň full; klíč s přístupem full

{name, shopId?, mode?, fields?, customHtml?}: a new signature (the account's first one becomes the default). 400 validation <field>, 409 conflict name / limit (20 per account). 201 with the signature.

Parametry

NázevKdeTypPovinnéPopis
tenantpathstring (uuid)anoPublic id of the company (tenant), a UUID: GET /api/v3/account-info answers it as data.guid; the app shows it on the API keys page.

Tělo požadavku (application/json)

PoleTypPovinnéPopis
namestringne
shopIdstring or nullne
modeone of: form, htmlne
fieldsSignatureFieldsne
customHtmlstringne

Odpovědi

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

Get an e-mail signature

GET /api/v1/tenants/{tenant}/signatures/{signature_id}

Oprávnění: oblast content, úroveň read; klíč s přístupem read nebo full

Parametry

NázevKdeTypPovinnéPopis
tenantpathstring (uuid)anoPublic 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.
signature_idpathstringanoId of the signature (string of digits).

Odpovědi

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 an e-mail signature

PATCH /api/v1/tenants/{tenant}/signatures/{signature_id}

Oprávnění: oblast content, úroveň full; klíč s přístupem full

Any of {name, shopId, mode, fields, customHtml}; the html and text follow. 409 conflict name.

Parametry

NázevKdeTypPovinnéPopis
tenantpathstring (uuid)anoPublic 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.
signature_idpathstringanoId of the signature (string of digits).

Tělo požadavku (application/json)

PoleTypPovinnéPopis
namestringne
shopIdstring or nullne
modeone of: form, htmlne
fieldsSignatureFieldsne
customHtmlstringne

Odpovědi

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

Delete an e-mail signature

DELETE /api/v1/tenants/{tenant}/signatures/{signature_id}

Oprávnění: oblast content, úroveň full; klíč s přístupem full

Deletes the signature; e-mails that name it keep the copy they carry. 204.

Parametry

NázevKdeTypPovinnéPopis
tenantpathstring (uuid)anoPublic 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.
signature_idpathstringanoId of the signature (string of digits).

Odpovědi

  • 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
429429 rate_limited: wait Retry-After seconds.
503unavailablebusy

Make an e-mail signature the default one

POST /api/v1/tenants/{tenant}/signatures/{signature_id}/default

Oprávnění: oblast content, úroveň full; klíč s přístupem full

The signature becomes the account's default one (preselected in the editor).

Parametry

NázevKdeTypPovinnéPopis
tenantpathstring (uuid)anoPublic 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.
signature_idpathstringanoId of the signature (string of digits).

Odpovědi

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

Duplicate an e-mail signature

POST /api/v1/tenants/{tenant}/signatures/{signature_id}/duplicate

Oprávnění: oblast content, úroveň full; klíč s přístupem full

A copy ("<name> (2)"), not the default. 201 with the copy; 409 conflict limit.

Parametry

NázevKdeTypPovinnéPopis
tenantpathstring (uuid)anoPublic 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.
signature_idpathstringanoId of the signature (string of digits).

Odpovědi

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 SMS templates

GET /api/v1/tenants/{tenant}/sms-templates

Oprávnění: oblast sms, úroveň read; klíč s přístupem read nebo full

Parametry

NázevKdeTypPovinnéPopis
tenantpathstring (uuid)anoPublic 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.
qquerystringneSearch text (case and diacritics insensitive). max 200 chars
sortquerystringneSort fields separated by commas, "-" = descending, at most 3 (e.g. name,-id).

Odpovědi

  • 200 OK: application/json object

Chyby

StavKódHodnoty message
400validationsort
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 an SMS template

POST /api/v1/tenants/{tenant}/sms-templates

Oprávnění: oblast sms, úroveň full; klíč s přístupem full

Parametry

NázevKdeTypPovinnéPopis
tenantpathstring (uuid)anoPublic id of the company (tenant), a UUID: GET /api/v3/account-info answers it as data.guid; the app shows it on the API keys page.

Tělo požadavku (application/json)

PoleTypPovinnéPopis
namestringano
bodystringano
stripDiacriticsbooleananoOdeslat bez diakritiky: the text goes without accents (GSM 7-bit).

Odpovědi

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 an SMS template

GET /api/v1/tenants/{tenant}/sms-templates/{sms_template_id}

Oprávnění: oblast sms, úroveň read; klíč s přístupem read nebo full

Parametry

NázevKdeTypPovinnéPopis
tenantpathstring (uuid)anoPublic 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.
sms_template_idpathstringanoId of the sms template (string of digits).

Odpovědi

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 an SMS template

PATCH /api/v1/tenants/{tenant}/sms-templates/{sms_template_id}

Oprávnění: oblast sms, úroveň full; klíč s přístupem full

Parametry

NázevKdeTypPovinnéPopis
tenantpathstring (uuid)anoPublic 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.
sms_template_idpathstringanoId of the sms template (string of digits).

Tělo požadavku (application/json)

PoleTypPovinnéPopis
namestringne
bodystringne
stripDiacriticsbooleanneOdeslat bez diakritiky: the text goes without accents (GSM 7-bit).

Odpovědi

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

Delete an SMS template

DELETE /api/v1/tenants/{tenant}/sms-templates/{sms_template_id}

Oprávnění: oblast sms, úroveň full; klíč s přístupem full

Parametry

NázevKdeTypPovinnéPopis
tenantpathstring (uuid)anoPublic 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.
sms_template_idpathstringanoId of the sms template (string of digits).

Odpovědi

  • 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
429429 rate_limited: wait Retry-After seconds.
503unavailablebusy

Copy an SMS template

POST /api/v1/tenants/{tenant}/sms-templates/{sms_template_id}/copy

Oprávnění: oblast sms, úroveň full; klíč s přístupem full

Parametry

NázevKdeTypPovinnéPopis
tenantpathstring (uuid)anoPublic 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.
sms_template_idpathstringanoId of the sms template (string of digits).

Tělo požadavku (application/json)

PoleTypPovinnéPopis
suffixstringano

Odpovědi

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 /api/v1/tenants/{tenant}/stock-photos

Oprávnění: oblast files, úroveň read; klíč s přístupem read nebo full

Search of the photo bank (core/stock_photos.search_params): ?q, lang (cs, sk, en ...), imageType (all, photo, illustration, vector), orientation (all, horizontal, vertical), category, colors (comma separated), order (popular, latest), minWidth, minHeight, editorsChoice, page, perPage (3 to 200; at most 500 results). safesearch is always on. {total, totalHits, page, perPage, hits, source, sourceUrl}; the answers are cached for 24 hours.

Parametry

NázevKdeTypPovinnéPopis
tenantpathstring (uuid)anoPublic 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.
categoryquerystringne
colorsquerystringne
editorsChoicequerystringne
imageTypequerystringne
langquerystringne
minHeightquerystringne
minWidthquerystringne
orderquerystringne
orientationquerystringne
pagequeryintegernePage number, from 1. default 1, min 1
perPagequerystringne
qquerystringneSearch text (case and diacritics insensitive). max 200 chars

Odpovědi

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.
429rate_limitedstock
502upstreamstock
503unavailablebusy, stock

Whether the stock photo search is available

GET /api/v1/tenants/{tenant}/stock-photos/status

Oprávnění: oblast files, úroveň read; klíč s přístupem read nebo full

{configured, source}: whether the photo bank has its key (the tab says it is not set up otherwise).

Parametry

NázevKdeTypPovinnéPopis
tenantpathstring (uuid)anoPublic id of the company (tenant), a UUID: GET /api/v3/account-info answers it as data.guid; the app shows it on the API keys page.

Odpovědi

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

List surveys

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

Oprávnění: oblast surveys, úroveň read; klíč s přístupem read nebo full

Parametry

NázevKdeTypPovinnéPopis
tenantpathstring (uuid)anoPublic 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.
qquerystringneSearch text (case and diacritics insensitive). max 200 chars
sortquerystringneSort fields separated by commas, "-" = descending, at most 3 (e.g. name,-id).
withQuestionsquerystringne

Odpovědi

  • 200 OK: application/json object

Chyby

StavKódHodnoty message
400validationsort
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 survey

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

Oprávnění: oblast surveys, úroveň full; klíč s přístupem full

Parametry

NázevKdeTypPovinnéPopis
tenantpathstring (uuid)anoPublic id of the company (tenant), a UUID: GET /api/v3/account-info answers it as data.guid; the app shows it on the API keys page.

Tělo požadavku (application/json)

PoleTypPovinnéPopis
namestringne
activebooleanneAn inactive survey answers 404.
titlestringne
introstringne
pagesarray of SurveyPagene
thanksHtmlstringne
afterUrlstringneAddress after the last page instead of the thank-you text.
oneResponsebooleanneOne contact answers once (the recipient's link).

Odpovědi

  • 201 Created: application/json Survey

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 a survey

GET /api/v1/tenants/{tenant}/surveys/{survey_id}

Oprávnění: oblast surveys, úroveň read; klíč s přístupem read nebo full

Parametry

NázevKdeTypPovinnéPopis
tenantpathstring (uuid)anoPublic 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.
survey_idpathstringanoId of the survey (string of digits).

Odpovědi

  • 200 OK: application/json Survey

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 survey

PATCH /api/v1/tenants/{tenant}/surveys/{survey_id}

Oprávnění: oblast surveys, úroveň full; klíč s přístupem full

Parametry

NázevKdeTypPovinnéPopis
tenantpathstring (uuid)anoPublic 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.
survey_idpathstringanoId of the survey (string of digits).

Tělo požadavku (application/json)

PoleTypPovinnéPopis
namestringne
activebooleanneAn inactive survey answers 404.
titlestringne
introstringne
pagesarray of SurveyPagene
thanksHtmlstringne
afterUrlstringneAddress after the last page instead of the thank-you text.
oneResponsebooleanneOne contact answers once (the recipient's link).

Odpovědi

  • 200 OK: application/json Survey

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

Delete a survey

DELETE /api/v1/tenants/{tenant}/surveys/{survey_id}

Oprávnění: oblast surveys, úroveň full; klíč s přístupem full

Parametry

NázevKdeTypPovinnéPopis
tenantpathstring (uuid)anoPublic 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.
survey_idpathstringanoId of the survey (string of digits).

Odpovědi

  • 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
429429 rate_limited: wait Retry-After seconds.
503unavailablebusy

Copy a survey

POST /api/v1/tenants/{tenant}/surveys/{survey_id}/copy

Oprávnění: oblast surveys, úroveň full; klíč s přístupem full

Parametry

NázevKdeTypPovinnéPopis
tenantpathstring (uuid)anoPublic 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.
survey_idpathstringanoId of the survey (string of digits).

Tělo požadavku (application/json)

PoleTypPovinnéPopis
suffixstringano

Odpovědi

  • 201 Created: application/json Survey

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 responses of a survey

GET /api/v1/tenants/{tenant}/surveys/{survey_id}/responses

Oprávnění: oblast surveys, úroveň read; klíč s přístupem read nebo full

?page=, ?pageSize= (at most 100): {items: [{id, contactId, email, answers, submittedAt}], total, page, pageSize}, newest first; email '' for an anonymous answer.

Parametry

NázevKdeTypPovinnéPopis
tenantpathstring (uuid)anoPublic 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.
survey_idpathstringanoId of the survey (string of digits).
pagequeryintegernePage number, from 1. default 1, min 1
pageSizequeryintegerneItems per page, 1 to 100. default 25, min 1, max 100

Odpovědi

  • 200 OK: application/json object

Chyby

StavKódHodnoty message
400validationpage
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

Summary results of a survey

GET /api/v1/tenants/{tenant}/surveys/{survey_id}/results

Oprávnění: oblast surveys, úroveň read; klíč s přístupem read nebo full

Parametry

NázevKdeTypPovinnéPopis
tenantpathstring (uuid)anoPublic 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.
survey_idpathstringanoId of the survey (string of digits).

Odpovědi

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 templates

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

Oprávnění: oblast content, úroveň read; klíč s přístupem read nebo full · Nástroj MCP: list_templates

E-mail templates (status active, archived or all) with size, usage and the stored content check.

?status=active (default), archived or all.

Parametry

NázevKdeTypPovinnéPopis
tenantpathstring (uuid)anoPublic 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.
statusqueryone of: active, archived, allneStatus filter.

Odpovědi

  • 200 OK: application/json object

Chyby

StavKódHodnoty message
400validationstatus
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 template

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

Oprávnění: oblast content, úroveň full; klíč s přístupem full · Nástroj MCP: create_template

Creates a template with content {editor: html|visual, html, design}.

Body {name, subject, preheader, tags, content, saveKind?}: 201 with the template; its first content goes to the save history with saveKind (default auto).

Parametry

NázevKdeTypPovinnéPopis
tenantpathstring (uuid)anoPublic id of the company (tenant), a UUID: GET /api/v3/account-info answers it as data.guid; the app shows it on the API keys page.

Tělo požadavku (application/json)

PoleTypPovinnéPopis
namestringano
subjectstringano
preheaderstringano
tagsarray of stringne
contentobjectanoA copy of a design: a starter, a campaign or another template.

Odpovědi

Chyby

StavKódHodnoty message
400validationsaveKind
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 templates

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

Oprávnění: oblast content, úroveň full; klíč s přístupem full

Štítky of e-mail templates.

Parametry

NázevKdeTypPovinnéPopis
tenantpathstring (uuid)anoPublic id of the company (tenant), a UUID: GET /api/v3/account-info answers it as data.guid; the app shows it on the API keys page.

Tělo požadavku (application/json): Required by the server: ids.

PoleTypPovinnéPopis
idsarray of stringano
addarray of stringne
removearray of stringne
tagsarray of stringne

Odpovědi

  • 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 template with its content

GET /api/v1/tenants/{tenant}/templates/{template_id}

Oprávnění: oblast content, úroveň read; klíč s přístupem read nebo full · Nástroj MCP: get_template

One template with its content (editor, html, design, version).

Parametry

NázevKdeTypPovinnéPopis
tenantpathstring (uuid)anoPublic 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.
template_idpathstringanoId of the template (string of digits).

Odpovědi

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 template settings (name, subject, preheader ...)

PATCH /api/v1/tenants/{tenant}/templates/{template_id}

Oprávnění: oblast content, úroveň full; klíč s přístupem full · Nástroj MCP: update_template (přes MCP jen s náhledem a potvrzením)

Changes name, subject, preheader or tags.

Parametry

NázevKdeTypPovinnéPopis
tenantpathstring (uuid)anoPublic 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.
template_idpathstringanoId of the template (string of digits).

Tělo požadavku (application/json)

PoleTypPovinnéPopis
namestringne
tagsarray of stringne
subjectstringne
preheaderstringne
linkParamsarray of CampaignLinkParamneGoogle Analytics parameters added to links of the e-shop (as a campaign's linkParams).
headersarray of CampaignHeaderneOwn e-mail headers (X-...).
unsubscribePageIdstring or nullneNull = the default unsubscribe page.
footerIdstring or nullneNull = the default footer of the editor.

Odpovědi

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

Delete a template

DELETE /api/v1/tenants/{tenant}/templates/{template_id}

Oprávnění: oblast content, úroveň full; klíč s přístupem full · Nástroj MCP: delete_template (přes MCP jen s náhledem a potvrzením)

Deletes a template (campaigns keep their own copy of the content).

Parametry

NázevKdeTypPovinnéPopis
tenantpathstring (uuid)anoPublic 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.
template_idpathstringanoId of the template (string of digits).

Odpovědi

  • 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
429429 rate_limited: wait Retry-After seconds.
503unavailablebusy

Archive a template

POST /api/v1/tenants/{tenant}/templates/{template_id}/archive

Oprávnění: oblast content, úroveň full; klíč s přístupem full · Nástroj MCP: archive_template

Archives a template.

Parametry

NázevKdeTypPovinnéPopis
tenantpathstring (uuid)anoPublic 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.
template_idpathstringanoId of the template (string of digits).

Tělo požadavku (application/json)

object

Odpovědi

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 template

PUT /api/v1/tenants/{tenant}/templates/{template_id}/content

Oprávnění: oblast content, úroveň full; klíč s přístupem full · Nástroj MCP: save_template_content (přes MCP jen s náhledem a potvrzením)

Saves the HTML or MJML content of a template. baseVersion = the version you read (conflict when someone saved since).

Parametry

NázevKdeTypPovinnéPopis
tenantpathstring (uuid)anoPublic 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.
template_idpathstringanoId of the template (string of digits).

Tělo požadavku (application/json)

PoleTypPovinnéPopis
editorone of: html, visualano
htmlstringano
designEmailDesign or nullano
baseVersionnumberanoThe version the editor started from; a newer one on the server answers 409 version (saved elsewhere meanwhile).
saveKindone of: manual, auto, restoreneHistory entry kind: auto (autosave, journaled), manual (Uložit), restore (a version taken back). Default auto.

Odpovědi

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

Convert an HTML template to the visual editor

POST /api/v1/tenants/{tenant}/templates/{template_id}/convert-to-visual

Oprávnění: oblast content, úroveň full; klíč s přístupem full · Nástroj MCP: convert_template_to_visual

Creates a NEW visual (block) template converted from an HTML template; the original stays. Answers the template and conversion {quality: clean|partial|raw, stats}.

Body {name} (optional, default "<name> (vizuální)"): a NEW visual template converted from an HTML template (core/html_to_mjml.py), 201 with the template and conversion {quality, stats}; the original stays as it is. 409 editor (not an HTML template), 409 content (nothing to convert), 409 name, 400 lint (banned hosts).

Parametry

NázevKdeTypPovinnéPopis
tenantpathstring (uuid)anoPublic 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.
template_idpathstringanoId of the template (string of digits).

Tělo požadavku (application/json)

PoleTypPovinnéPopis
namestringano

Odpovědi

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

Discard the unpublished draft of a template

DELETE /api/v1/tenants/{tenant}/templates/{template_id}/draft

Oprávnění: oblast content, úroveň full; klíč s přístupem full

Zahodit změny: the draft goes, the published content stays (409 draft without one). Answers the template.

Parametry

NázevKdeTypPovinnéPopis
tenantpathstring (uuid)anoPublic 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.
template_idpathstringanoId of the template (string of digits).

Odpovědi

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

Duplicate a template

POST /api/v1/tenants/{tenant}/templates/{template_id}/duplicate

Oprávnění: oblast content, úroveň full; klíč s přístupem full · Nástroj MCP: duplicate_template

Copies a template under a new name.

Body {name}: the copy (active, writable), 201.

Parametry

NázevKdeTypPovinnéPopis
tenantpathstring (uuid)anoPublic 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.
template_idpathstringanoId of the template (string of digits).

Tělo požadavku (application/json)

object

Odpovědi

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

Publish the draft of a template used by an active automation

POST /api/v1/tenants/{tenant}/templates/{template_id}/publish

Oprávnění: oblast content, úroveň full; klíč s přístupem full

Body {password} (a person with a password) or {confirm: <template name>} (Google sign-in, API key): the draft of a template becomes the content its e-mails send. 401 invalid_credentials (wrong password, counted like a sign-in), 429 after too many, 400 confirm, 409 draft (nothing to publish), 400 lint (hard checks). Answers the template.

Parametry

NázevKdeTypPovinnéPopis
tenantpathstring (uuid)anoPublic 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.
template_idpathstringanoId of the template (string of digits).

Tělo požadavku (application/json)

TemplatePublishInput

Odpovědi

Chyby

StavKódHodnoty message
400validationconfirm
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 template

POST /api/v1/tenants/{tenant}/templates/{template_id}/test

Oprávnění: oblast content, úroveň full; klíč s přístupem full · Nástroj MCP: send_template_test

Sends a test e-mail of a template to the account's test addresses only (list_test_recipients), with [TEST] in the subject.

Body {shopId, to}: the shop gives the sender and the footer.

Parametry

NázevKdeTypPovinnéPopis
tenantpathstring (uuid)anoPublic 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.
template_idpathstringanoId of the template (string of digits).

Tělo požadavku (application/json)

PoleTypPovinnéPopis
shopIdstringano
tostringano

Odpovědi

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

Restore an archived template

POST /api/v1/tenants/{tenant}/templates/{template_id}/unarchive

Oprávnění: oblast content, úroveň full; klíč s přístupem full

409 read_only for archive copies of imported originals, 409 lint (codes, hosts) for banned addresses.

Parametry

NázevKdeTypPovinnéPopis
tenantpathstring (uuid)anoPublic 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.
template_idpathstringanoId of the template (string of digits).

Odpovědi

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 template

GET /api/v1/tenants/{tenant}/templates/{template_id}/versions

Oprávnění: oblast content, úroveň read; klíč s přístupem read nebo full

?before=<snapshot id>&limit=1..100 (default 50): {items: [{id, version, kind, createdAt, createdBy}], more}, newest first; createdBy = the saver's name or e-mail, null when not known.

Parametry

NázevKdeTypPovinnéPopis
tenantpathstring (uuid)anoPublic 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.
template_idpathstringanoId of the template (string of digits).
beforequerystringne
limitquerystringne

Odpovědi

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 template

GET /api/v1/tenants/{tenant}/templates/{template_id}/versions/{version_id}

Oprávnění: oblast content, úroveň read; klíč s přístupem read nebo full

One snapshot with content {editor, html, design}.

Parametry

NázevKdeTypPovinnéPopis
tenantpathstring (uuid)anoPublic 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.
template_idpathstringanoId of the template (string of digits).
version_idpathstringanoId of the version (string of digits).

Odpovědi

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 the test addresses of the company

GET /api/v1/tenants/{tenant}/test-recipients

Oprávnění: oblast content, úroveň read; klíč s přístupem read nebo full · Nástroj MCP: list_test_recipients

Addresses that may receive test e-mails.

The account's test addresses (Nastavení › Rozesílky). ?usable=1 = the addresses a test e-mail of this person may go to right now: the same list, or, while the account sends its tests through the shared trial sender (core/trial_sender.py), the person's login address and the confirmed extra addresses.

Parametry

NázevKdeTypPovinnéPopis
tenantpathstring (uuid)anoPublic 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.
usablequerystringne

Odpovědi

  • 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.
429429 rate_limited: wait Retry-After seconds.
503unavailablebusy

Replace the test addresses of the company

PUT /api/v1/tenants/{tenant}/test-recipients

Oprávnění: oblast settings, úroveň full; klíč s přístupem full

Body {items: [e-mail, ...]} (at most 20): the addresses test e-mails may go to (Nastavení › Rozesílky).

Parametry

NázevKdeTypPovinnéPopis
tenantpathstring (uuid)anoPublic id of the company (tenant), a UUID: GET /api/v3/account-info answers it as data.guid; the app shows it on the API keys page.

Tělo požadavku (application/json): Required by the server: items.

PoleTypPovinnéPopis
itemsarray of stringano

Odpovědi

  • 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.
429429 rate_limited: wait Retry-After seconds.
503unavailablebusy

List unsubscribe pages

GET /api/v1/tenants/{tenant}/unsubscribe-pages

Oprávnění: oblast content, úroveň read; klíč s přístupem read nebo full

Parametry

NázevKdeTypPovinnéPopis
tenantpathstring (uuid)anoPublic id of the company (tenant), a UUID: GET /api/v3/account-info answers it as data.guid; the app shows it on the API keys page.

Odpovědi

  • 200 OK: application/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

Create an unsubscribe page

POST /api/v1/tenants/{tenant}/unsubscribe-pages

Oprávnění: oblast content, úroveň full; klíč s přístupem full

Parametry

NázevKdeTypPovinnéPopis
tenantpathstring (uuid)anoPublic id of the company (tenant), a UUID: GET /api/v3/account-info answers it as data.guid; the app shows it on the API keys page.

Tělo požadavku (application/json)

PoleTypPovinnéPopis
namestringne
activebooleanneActive pages may be the default; an active page cannot be deleted.
modeone of: page, redirectnepage = Zobrazit odhlašovací stránku; redirect = skip it, unsubscribe and go to redirectUrl.
redirectUrlstringne
logoUrlstringne
videoUrlstringneYouTube only.
languageone of: cs, sk, auto, en, pl, de, hu, it, ro, ukne
customHtmlstringne
questionEnabledbooleanne
questionstringne
answersarray of stringne
afterUrlstringnePřesměrování po odhlášení ('' = the thank-you page); variables of the contact allowed.

Odpovědi

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

Render an unsubscribe page preview

POST /api/v1/tenants/{tenant}/unsubscribe-pages/preview

Oprávnění: oblast content, úroveň read; klíč s přístupem read nebo full

The page of unsaved settings ({name, ... as a create}) as HTML with sample values.

Parametry

NázevKdeTypPovinnéPopis
tenantpathstring (uuid)anoPublic id of the company (tenant), a UUID: GET /api/v3/account-info answers it as data.guid; the app shows it on the API keys page.

Tělo požadavku (application/json)

PoleTypPovinnéPopis
namestringne
activebooleanneActive pages may be the default; an active page cannot be deleted.
modeone of: page, redirectnepage = Zobrazit odhlašovací stránku; redirect = skip it, unsubscribe and go to redirectUrl.
redirectUrlstringne
logoUrlstringne
videoUrlstringneYouTube only.
languageone of: cs, sk, auto, en, pl, de, hu, it, ro, ukne
customHtmlstringne
questionEnabledbooleanne
questionstringne
answersarray of stringne
afterUrlstringnePřesměrování po odhlášení ('' = the thank-you page); variables of the contact allowed.

Odpovědi

  • 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.
429429 rate_limited: wait Retry-After seconds.
503unavailablebusy

Get an unsubscribe page

GET /api/v1/tenants/{tenant}/unsubscribe-pages/{unsub_page_id}

Oprávnění: oblast content, úroveň read; klíč s přístupem read nebo full

Parametry

NázevKdeTypPovinnéPopis
tenantpathstring (uuid)anoPublic 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.
unsub_page_idpathstringanoId of the unsub page (string of digits).

Odpovědi

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 an unsubscribe page

PATCH /api/v1/tenants/{tenant}/unsubscribe-pages/{unsub_page_id}

Oprávnění: oblast content, úroveň full; klíč s přístupem full

409 default when the default page would stop being active.

Parametry

NázevKdeTypPovinnéPopis
tenantpathstring (uuid)anoPublic 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.
unsub_page_idpathstringanoId of the unsub page (string of digits).

Tělo požadavku (application/json)

PoleTypPovinnéPopis
namestringne
activebooleanneActive pages may be the default; an active page cannot be deleted.
modeone of: page, redirectnepage = Zobrazit odhlašovací stránku; redirect = skip it, unsubscribe and go to redirectUrl.
redirectUrlstringne
logoUrlstringne
videoUrlstringneYouTube only.
languageone of: cs, sk, auto, en, pl, de, hu, it, ro, ukne
customHtmlstringne
questionEnabledbooleanne
questionstringne
answersarray of stringne
afterUrlstringnePřesměrování po odhlášení ('' = the thank-you page); variables of the contact allowed.

Odpovědi

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

Delete an unsubscribe page

DELETE /api/v1/tenants/{tenant}/unsubscribe-pages/{unsub_page_id}

Oprávnění: oblast content, úroveň full; klíč s přístupem full

204; 409 active for an active page (deactivate it first).

Parametry

NázevKdeTypPovinnéPopis
tenantpathstring (uuid)anoPublic 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.
unsub_page_idpathstringanoId of the unsub page (string of digits).

Odpovědi

  • 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
429429 rate_limited: wait Retry-After seconds.
503unavailablebusy

Copy an unsubscribe page

POST /api/v1/tenants/{tenant}/unsubscribe-pages/{unsub_page_id}/copy

Oprávnění: oblast content, úroveň full; klíč s přístupem full

An inactive copy; body {suffix} (default 'kopie').

Parametry

NázevKdeTypPovinnéPopis
tenantpathstring (uuid)anoPublic 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.
unsub_page_idpathstringanoId of the unsub page (string of digits).

Tělo požadavku (application/json)

PoleTypPovinnéPopis
suffixstringano

Odpovědi

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

Make an unsubscribe page the default

POST /api/v1/tenants/{tenant}/unsubscribe-pages/{unsub_page_id}/default

Oprávnění: oblast content, úroveň full; klíč s přístupem full

409 active for an inactive page.

Parametry

NázevKdeTypPovinnéPopis
tenantpathstring (uuid)anoPublic 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.
unsub_page_idpathstringanoId of the unsub page (string of digits).

Tělo požadavku (application/json)

object

Odpovědi

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

Stop using an unsubscribe page as the default

DELETE /api/v1/tenants/{tenant}/unsubscribe-pages/{unsub_page_id}/default

Oprávnění: oblast content, úroveň full; klíč s přístupem full

Parametry

NázevKdeTypPovinnéPopis
tenantpathstring (uuid)anoPublic 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.
unsub_page_idpathstringanoId of the unsub page (string of digits).

Odpovědi

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

Schémata

BorderDefault

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

PoleTypPovinnéPopis
widthnumberano
stylestringano
colorstringano

BoxPadding

PoleTypPovinnéPopis
topnumberano
rightnumberano
bottomnumberano
leftnumberano

CampaignHeader

PoleTypPovinnéPopis
namestringano
valuestringano

CampaignLinkParam

PoleTypPovinnéPopis
namestringano
valuestringano

ContentVersion

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

PoleTypPovinnéPopis
idstringano
versionnumberano
kindone of: manual, auto, restoreano
createdAtstringano
createdBystring or nullanoName or e-mail of the user; null for the API or unknown.

ContentVersionDetail

PoleTypPovinnéPopis
contentobjectano
idstringano
versionnumberano
kindone of: manual, auto, restoreano
createdAtstringano
createdBystring or nullanoName or e-mail of the user; null for the API or unknown.

ContentVersionList

PoleTypPovinnéPopis
itemsarray of ContentVersionano
morebooleanano

ConvertedTemplate

Result of POST /templates/{id}/convert-to-visual: the new template and how much of it became blocks.

PoleTypPovinnéPopis
conversionobjectano
contentEmailContentanoWhat the editor opens: the draft of a template in use, else the published content.
settingsTemplateSettingsano
draftobjectanoA template that active automations send keeps its published content; the editor saves a draft until it is published with the password (POST /templates/{id}/publish) or thrown away (DELETE /templates/{id}/draft).
activeUsesTemplateActiveUsesano
publicUrlstringanoVeřejný náhled: a public page with the content (variables unfilled).
idstringano
namestringano
subjectstringano
preheaderstringano
editorone of: html, visualano
createdAtstringano
updatedAtstringano
tagsarray of stringano
sizenumberanoSize of the HTML in bytes (Gmail clips messages over 102 kB).
archivedbooleananoArchived templates are not offered for new campaigns; they can be duplicated or restored.
archivedAtstring or nullano
readOnlybooleananoArchive copy of an imported SmartEmailing original: content, name and tags never change, no delete or restore.
usageobjectanoCampaigns made from the template and e-mail nodes of automations naming it.
lastUsedAtstring or nullanoNewest such campaign or automation e-mail.
checkTemplateCheckano

EditorElement

PoleTypPovinnéPopis
idstringano
namestringano
categorystringano
kindEditorElementKindano
mjmlstringano
createdAtstringano
updatedAtstringano

EditorElementInput

PoleTypPovinnéPopis
namestringano
categorystringne
kindEditorElementKindano
mjmlstringano

EditorElementKind

one of: text, image, button, divider, row, feed, logo, video, spacer, section

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
rowPaddingBoxPaddingne
rowRadiusnumberne
rowBorderBorderDefault or nullne
rowBorderColorstringneVzhled značky › Barvy: the preferred colour of a row border (BR-03; the border a new row turns on).
rowDirectionone of: ltr, rtlneVzhled 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, bottomne
rowGapnumberne
rowBackgroundstringne
innerRowPaddingBoxPaddingne
innerRowRadiusnumberne
innerRowBorderBorderDefault or nullne
columnPaddingBoxPaddingne
columnRadiusnumberne
columnBorderBorderDefault or nullne
innerColumnPaddingBoxPaddingne
innerColumnRadiusnumberne
innerColumnBorderBorderDefault or nullne
textPaddingBoxPaddingne
imagePaddingBoxPaddingne
imageWidthnumberne% of the column (100 = the whole width).
imageRadiusnumberne
videoPaddingBoxPaddingne
videoWidthnumberne
videoRadiusnumberne
buttonTypeone of: link, primary, secondaryne
buttonPaddingBoxPaddingne
buttonInnerPaddingobjectne
buttonRadiusnumberne
buttonFullWidthbooleanne
buttonBorderBorderDefault or nullne
dividerPaddingBoxPaddingne
dividerWidthnumberne
dividerThicknessnumberne
dividerStyleone of: solid, dashed, dottedne
spacerHeightnumberne

ElementDefaultsMobile

PoleTypPovinnéPopis
rowPaddingBoxPaddingne
columnPaddingBoxPaddingne
textPaddingBoxPaddingne
imagePaddingBoxPaddingne
imageWidthnumberne
videoWidthnumberne
buttonPaddingBoxPaddingne
dividerPaddingBoxPaddingne
dividerWidthnumberne
spacerHeightnumberne

EmailContent

E-mail content of a template or a campaign.

PoleTypPovinnéPopis
editorone of: html, visualano
htmlstringanoHTML with variables left in place (compiled from the design, or written by hand); the core personalises and sends it.
designEmailDesign or nullanoVisual editor only.
versionnumberano0 = no content yet; every save adds one.
updatedAtstring or nullano

EmailContentInput

PoleTypPovinnéPopis
editorone of: html, visualano
htmlstringano
designEmailDesign or nullano
baseVersionnumberanoThe version the editor started from; a newer one on the server answers 409 version (saved elsewhere meanwhile).
saveKindone of: manual, auto, restoreneHistory 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-1anoFormat version; a later editor migrates older designs.
mjmlstringano
stylesEmailStylesano

EmailStyles

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

PoleTypPovinnéPopis
fontFamilystringanoOne of EMAIL_FONTS (web-safe stacks; recipients' clients have no web fonts by default).
headingFontFamilystringano
fontSizenumberanoBase text size in px (12 to 20).
textColorstringano
headingColorstringano
linkColorstringano
buttonColorstringano
buttonTextColorstringano
backgroundColorstringanoAround the e-mail.
contentColorstringanoBody of the e-mail.
widthnumberanoWidth of the e-mail in px (480 to 800).
magicMagicStylesneSettings 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
errorobjectano
json
{
  "error": {
    "code": "validation",
    "message": "email"
  }
}

FileFolder

PoleTypPovinnéPopis
idstringano
namestringano
parentIdstring or nullanonull = the root.
filesnumberanoFiles directly in the folder.
createdAtstringano

FileSource

PoleTypPovinnéPopis
namestringano
authorstringano
authorUrlstringano
pageUrlstringano

FooterDetail

PoleTypPovinnéPopis
contentEmailContentano
publishedHtmlstringanoThe copy e-mails end with ('' before the first Publikovat); the visual editor shows it (PA-01).
idstringano
namestringano
editorone of: html, visualanovisual = visual editor list, html = HTML editor list.
isDefaultbooleananoE-mails of this editor end with it (instead of the e-shop's standard footer); at most one per editor.
publishedbooleananoE-mails use only the published copy (Publikovat).
publishedAtstring or nullano
unpublishedChangesbooleananoThe draft differs from the published copy (or was never published).
gapsarray of FooterGapano
createdAtstringano
updatedAtstringano
contentUpdatedAtstring or nullano
publicUrlstringanoPublic preview of the draft (Zkopírovat veřejný odkaz).

FooterGap

one of: senderEmail, sender, email, link, contrast, loop, empty

FooterInput

PoleTypPovinnéPopis
namestringano
editorone of: html, visualano
htmlstringano
designEmailDesign or nullano

FooterSummary

PoleTypPovinnéPopis
idstringano
namestringano
editorone of: html, visualanovisual = visual editor list, html = HTML editor list.
isDefaultbooleananoE-mails of this editor end with it (instead of the e-shop's standard footer); at most one per editor.
publishedbooleananoE-mails use only the published copy (Publikovat).
publishedAtstring or nullano
unpublishedChangesbooleananoThe draft differs from the published copy (or was never published).
gapsarray of FooterGapano
createdAtstringano
updatedAtstringano
contentUpdatedAtstring or nullano
publicUrlstringanoPublic preview of the draft (Zkopírovat veřejný odkaz).

GridTagsInput

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

PoleTypPovinnéPopis
idsarray of stringano
addarray of stringne
removearray of stringne
tagsarray of stringne

LandingPage

PoleTypPovinnéPopis
htmlstringano
idstringano
namestringano
activebooleananoAn inactive page answers 404 on its address.
urlstringanoThe public address on the link domain.
createdAtstringano
updatedAtstringano

LandingPageInput

PoleTypPovinnéPopis
namestringano
activebooleanano
htmlstringano

LandingPageSummary

PoleTypPovinnéPopis
idstringano
namestringano
activebooleananoAn inactive page answers 404 on its address.
urlstringanoThe public address on the link domain.
createdAtstringano
updatedAtstringano

LintIssue

PoleTypPovinnéPopis
codeone of: subject_missing, subject_too_long, content_empty, unknown_tag, foreign_tag, script_tag, script_error, unsupported_filter, bad_fallback, emoji, forbidden_word, image_placeholder, image_data_uri, sample_text, sample_link, banned_host, html_too_large, no_unsubscribe, footer_incomplete, subject_long, img_without_alt, insecure_image, image_too_large, image_foreign_host, text_image_ratio, hidden_joinerano
severityLintSeverityanoErrors block the approval of a campaign; warnings do not.
paramsmap of string or numberano

LintRequest

PoleTypPovinnéPopis
htmlstringano
subjectstringano
preheaderstringano

LintSeverity

one of: error, warning

MagicBackground

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

PoleTypPovinnéPopis
typeone of: color, gradient, imageano
fromstringne
tostringne
anglenumberneGradient direction in degrees (180 = top to bottom).
imagestringne
fitone of: cover, repeat, originalnePicture: cover the area, tile, or the original size once.

MagicStyles

PoleTypPovinnéPopis
paddingBoxPaddingneSpace around the e-mail body, desktop and mobile.
paddingMobileBoxPaddingne
darkModebooleanneDark mode in the recipient's app (prefers-color-scheme) with its colours.
darkBackgroundColorstringne
darkContentColorstringne
darkTextColorstringne
darkHeadingColorstringne
darkLinkColorstringne
darkButtonColorstringneDark mode colours of the buttons and the divider (each colour has its "(tmavé schéma)" variant).
darkButtonTextColorstringne
darkButton2Colorstringne
darkButton2TextColorstringne
darkDividerColorstringne
backgroundMagicBackgroundneA gradient or a picture over the colour (backgroundColor / contentColor stay the fallback of clients without head styles).
bodyBackgroundMagicBackgroundne
button2ColorstringneSecondary button and divider colours.
button2TextColorstringne
button2BorderColorstringne
buttonBorderColorstringne
dividerColorstringne
headingColorsobjectneOwn colours of Nadpis H1, H2 and H3 (ED-07); missing = headingColor.
darkButtonBorderColorstringneDark variants of the button borders (ED-07).
darkButton2BorderColorstringne
innerRowColorstringneBarva těla - vnitřní řádka, Barva pozadí sloupce (also of an inner row) and Pozadí prvku; missing = none (the body shows through).
columnColorstringne
innerColumnColorstringne
elementColorstringne
darkColorsobjectneDark variants of the slots without an older dark field (editor/magic/colorScheme.ts).
colorsMobileobjectnePhone colours (light and dark) under 480 px; missing = desktop.
darkColorsMobileobjectne
footerDefaultbooleanneSystem footer: its own default look instead of the e-mail's, and no background.
footerTransparentbooleanne
textobjectneText styles per kind; missing keys = defaults. Mobile values override desktop ones under 480 px.
textMobileobjectne
defaultsElementDefaultsneDefaults of new elements (editor/magic/elementDefaults.ts applies them).
defaultsMobileElementDefaultsMobilenePhone values of the element defaults: paddings, widths and the spacer height under 480 px.

RenderPreviewRequest

Náhled with sample data (POST /content/preview): the e-mail rendered by the sending path for a sample recipient, Its template scripts filled with sample orders from the e-shop's feed.

PoleTypPovinnéPopis
htmlstringano
shopIdstringne
subjectstringne
preheaderstringne
editorone of: html, visualne
templateIdstringne

RenderedPreview

PoleTypPovinnéPopis
subjectstringano
preheaderstringano
htmlstringano'' when the script stopped (data.terminate) or cannot run: script says why.
scriptobjectne

ScriptTemplate

A script template: a reusable piece of template script.

PoleTypPovinnéPopis
idstringano
namestringano
contentstringano
parsesbooleananoThe piece is a complete script by itself (half of a pair is allowed too).
createdAtstringano
updatedAtstringano

ScriptTemplateInput

PoleTypPovinnéPopis
namestringano
contentstringano

Signature

GET /tenants/{t}/signatures (Nastavení › Odesílání › Podpisy).

PoleTypPovinnéPopis
idstringano
namestringano
shopIdstring or nullanoThe e-shop it is offered for; null = every e-shop.
isDefaultbooleanano
modeone of: form, htmlanoform = built from fields, html = the client's own HTML (customHtml).
fieldsSignatureFields or map of anyano
customHtmlstringano
htmlstringanoE-mail ready HTML the e-mails render (generated by the server).
textstringanoPlain text of the text part of e-mails.
createdAtstringano
updatedAtstringano

SignatureFields

The structured form of a signature (core/signatures.FIELDS); the server builds the e-mail HTML and text from it.

PoleTypPovinnéPopis
imageUrlstringanohttps address of the logo or photo ('' = none).
imageLinkstringanoWhere a click on the picture leads ('' = nowhere).
imageWidthnumberanoWidth of the picture in px, 40 to 120.
imageAltstringano
greetingstringano
namestringano
rolestringano
phonestringano
emailstringano
webstringanowww.example.cz or https://www.example.cz/
linksarray of SignatureLinkano
legalstringanoSmall line below (company, IČO ...).
accentstringano#rrggbb: the vertical line; texts in it are darkened to read on white.

SignatureInput

POST / PATCH body of a signature: 400 name, shopId, mode, fields.<name>, customHtml; 409 name, limit.

PoleTypPovinnéPopis
namestringne
shopIdstring or nullne
modeone of: form, htmlne
fieldsSignatureFieldsne
customHtmlstringne

One extra link of a signature (Odkazy, at most 3).

PoleTypPovinnéPopis
labelstringano
urlstringanohttp(s) address.

SmsTemplate

PoleTypPovinnéPopis
idstringano
lengthnumberanoThe counter of the server (screens/sms/smsModel.ts gives the same).
partsnumberano
capacitynumberano
encodingone of: gsm, ucs2ano
createdAtstringano
updatedAtstringano
namestringano
bodystringano
stripDiacriticsbooleananoOdeslat bez diakritiky: the text goes without accents (GSM 7-bit).

SmsTemplateInput

PoleTypPovinnéPopis
namestringano
bodystringano
stripDiacriticsbooleananoOdeslat bez diakritiky: the text goes without accents (GSM 7-bit).

SpamCheck

POST /content/spam-check: Poštárna's own antispam rules.

PoleTypPovinnéPopis
scorenumberano
verdictone of: ok, blocked, spamano
sizeKbnumberano
rulesarray of objectanofound = what the rule found in the content (phrases, hosts, domains, HTML tags), at most 5.

StockPhoto

PoleTypPovinnéPopis
idstringano
pageUrlstringano
tagsstringano
typestringano
previewUrlstringano
previewWidthnumberano
previewHeightnumberano
webformatUrlstringano
webformatWidthnumberano
webformatHeightnumberano
largeImageUrlstringano
imageWidthnumberano
imageHeightnumberano
viewsnumberano
downloadsnumberano
likesnumberano
userstringano
userUrlstringano

StockPhotoSaved

PoleTypPovinnéPopis
fileStoredFileano
photoobjectano
existingbooleanano

StockResult

PoleTypPovinnéPopis
totalnumberano
totalHitsnumberano
pagenumberano
perPagenumberano
hitsarray of StockPhotoano
sourcestringano
sourceUrlstringano

StockStatus

Fotobanka of the image library (Pixabay through Poštárna's server, one platform key).

PoleTypPovinnéPopis
configuredbooleanano
sourcestringano
sourceUrlstringano

StoredFile

PoleTypPovinnéPopis
idstringano
namestringano
folderIdstring or nullano
contentTypestringano
sizenumberano
widthnumber or nullanoPictures only.
heightnumber or nullano
urlstringanoStable public address on the link domain: renaming or moving the file keeps it.
createdAtstringano
pickedAtstring or nullneLast time the editor chose it (Zvolit obrázek); null = never.
sourceFileSource or nullneWhere a picture of the photo bank comes from (Pixabay, its page and author); null for own files.

StoredFileDetail

PoleTypPovinnéPopis
usageobjectanoTemplates and draft campaigns whose content names the address (shown before a delete).
idstringano
namestringano
folderIdstring or nullano
contentTypestringano
sizenumberano
widthnumber or nullanoPictures only.
heightnumber or nullano
urlstringanoStable public address on the link domain: renaming or moving the file keeps it.
createdAtstringano
pickedAtstring or nullneLast time the editor chose it (Zvolit obrázek); null = never.
sourceFileSource or nullneWhere a picture of the photo bank comes from (Pixabay, its page and author); null for own files.

Survey

PoleTypPovinnéPopis
idstringano
namestringano
activebooleananoAn inactive survey answers 404.
urlstringanoAnonymous public page.
linkTagstringano{{surveylink_<id>}}: each recipient's own link in an e-mail.
questionsnumberano
responsesnumberne
createdAtstringano
updatedAtstringano
titlestringano
introstringano
pagesarray of SurveyPageano
thanksHtmlstringano
afterUrlstringanoAddress after the last page instead of the thank-you text.
oneResponsebooleananoOne contact answers once (the recipient's link).

SurveyPage

PoleTypPovinnéPopis
questionsarray of SurveyQuestionano

SurveyQuestion

PoleTypPovinnéPopis
idstringano'q' + digits, stable: the answers are kept under it.
typeone of: number, date, short_text, long_text, single, multiple, dropdown, scale, starsano
labelstringano
helpstringano
requiredbooleanano
optionsarray of stringnesingle, multiple, dropdown.
minnumber or nullnescale (0 or 1 to 3..10), stars (1 to 5), number (optional range).
maxnumber or nullne
minLabelstringne
maxLabelstringne

SurveyResponse

PoleTypPovinnéPopis
idstringano
contactIdstring or nullano
emailstringano
answersmap of string or number or array of stringano
submittedAtstringano

SurveyResults

PoleTypPovinnéPopis
totalnumberano
questionsarray of objectano

SurveySummary

PoleTypPovinnéPopis
idstringano
namestringano
activebooleanano
urlstringanoAnonymous public page.
linkTagstringano{{surveylink_<id>}}: each recipient's own link in an e-mail.
questionsnumberano
responsesnumberne
createdAtstringano
updatedAtstringano

TemplateActiveUses

Active automations (and their e-mails) sending the template, running campaigns made of it.

PoleTypPovinnéPopis
automationsnumberano
emailsnumberano
campaignsnumberano

TemplateCheck

Result of the content check stored with every save (server rules with the tenant's).

PoleTypPovinnéPopis
errorsarray of one of: subject_missing, subject_too_long, content_empty, unknown_tag, foreign_tag, script_tag, script_error, unsupported_filter, bad_fallback, emoji, forbidden_word, image_placeholder, image_data_uri, sample_text, sample_link, banned_host, html_too_large, no_unsubscribe, footer_incomplete, subject_long, img_without_alt, insecure_image, image_too_large, image_foreign_host, text_image_ratio, hidden_joinerano
warningsarray of one of: subject_missing, subject_too_long, content_empty, unknown_tag, foreign_tag, script_tag, script_error, unsupported_filter, bad_fallback, emoji, forbidden_word, image_placeholder, image_data_uri, sample_text, sample_link, banned_host, html_too_large, no_unsubscribe, footer_incomplete, subject_long, img_without_alt, insecure_image, image_too_large, image_foreign_host, text_image_ratio, hidden_joinerano
checkedAtstring or nullano

TemplateDetail

PoleTypPovinnéPopis
contentEmailContentanoWhat the editor opens: the draft of a template in use, else the published content.
settingsTemplateSettingsano
draftobjectanoA template that active automations send keeps its published content; the editor saves a draft until it is published with the password (POST /templates/{id}/publish) or thrown away (DELETE /templates/{id}/draft).
activeUsesTemplateActiveUsesano
publicUrlstringanoVeřejný náhled: a public page with the content (variables unfilled).
idstringano
namestringano
subjectstringano
preheaderstringano
editorone of: html, visualano
createdAtstringano
updatedAtstringano
tagsarray of stringano
sizenumberanoSize of the HTML in bytes (Gmail clips messages over 102 kB).
archivedbooleananoArchived templates are not offered for new campaigns; they can be duplicated or restored.
archivedAtstring or nullano
readOnlybooleananoArchive copy of an imported SmartEmailing original: content, name and tags never change, no delete or restore.
usageobjectanoCampaigns made from the template and e-mail nodes of automations naming it.
lastUsedAtstring or nullanoNewest such campaign or automation e-mail.
checkTemplateCheckano

TemplateInput

PoleTypPovinnéPopis
namestringano
subjectstringano
preheaderstringano
tagsarray of stringne
contentobjectanoA copy of a design: a starter, a campaign or another template.

TemplatePatch

PATCH /templates/{id}: name, subject, preheader, tags and the e-mail settings (any of them).

PoleTypPovinnéPopis
namestringne
tagsarray of stringne
subjectstringne
preheaderstringne
linkParamsarray of CampaignLinkParamneGoogle Analytics parameters added to links of the e-shop (as a campaign's linkParams).
headersarray of CampaignHeaderneOwn e-mail headers (X-...).
unsubscribePageIdstring or nullneNull = the default unsubscribe page.
footerIdstring or nullneNull = the default footer of the editor.

TemplatePublishInput

object

TemplateSettings

Nastavení e-mailu of a template (migration 0231): Data a statistiky, the unsubscribe page and the footer.

PoleTypPovinnéPopis
linkParamsarray of CampaignLinkParamanoGoogle Analytics parameters added to links of the e-shop (as a campaign's linkParams).
headersarray of CampaignHeaderanoOwn e-mail headers (X-...).
unsubscribePageIdstring or nullanoNull = the default unsubscribe page.
footerIdstring or nullanoNull = the default footer of the editor.

TemplateSummary

PoleTypPovinnéPopis
idstringano
namestringano
subjectstringano
preheaderstringano
editorone of: html, visualano
createdAtstringano
updatedAtstringano
tagsarray of stringano
sizenumberanoSize of the HTML in bytes (Gmail clips messages over 102 kB).
archivedbooleananoArchived templates are not offered for new campaigns; they can be duplicated or restored.
archivedAtstring or nullano
readOnlybooleananoArchive copy of an imported SmartEmailing original: content, name and tags never change, no delete or restore.
usageobjectanoCampaigns made from the template and e-mail nodes of automations naming it.
lastUsedAtstring or nullanoNewest such campaign or automation e-mail.
checkTemplateCheckano

TestSendResult

PoleTypPovinnéPopis
tostringano
sentAtstringano

UnsubscribePage

PoleTypPovinnéPopis
idstringano
isDefaultbooleananoServes every unsubscribe link of the tenant (Poštárna; without one the standard page).
createdAtstringano
updatedAtstringano
namestringano
activebooleananoActive pages may be the default; an active page cannot be deleted.
modeone of: page, redirectanopage = Zobrazit odhlašovací stránku; redirect = skip it, unsubscribe and go to redirectUrl.
redirectUrlstringano
logoUrlstringano
videoUrlstringanoYouTube only.
languageone of: cs, sk, auto, en, pl, de, hu, it, ro, ukano
customHtmlstringano
questionEnabledbooleanano
questionstringano
answersarray of stringano
afterUrlstringanoPřesměrování po odhlášení ('' = the thank-you page); variables of the contact allowed.

VideoThumbnail

POST .../files/video-thumbnail: the preview picture of a YouTube or Vimeo video, kept in the file manager.

PoleTypPovinnéPopis
fileStoredFileano
providerone of: youtube, vimeoano
videoIdstringano
videoUrlstringano
titlestringano