Preskočiť na obsah
API dokumentácia

Forms

Sign-up forms (double opt-in): builder settings, embed code, history.

Technická referencia je v angličtine (rovnako ako strojovo čitateľný dokument OpenAPI). Celú skupinu pre AI agenta načítate z /api/openapi.json?tag=Forms.

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

Operácie

MetódaCestaPopis
GET/api/v1/tenants/{tenant}/formsList forms
POST/api/v1/tenants/{tenant}/formsCreate a form
GET/api/v1/tenants/{tenant}/forms/doi-templatesList templates usable as the double opt-in e-mail
POST/api/v1/tenants/{tenant}/forms/previewRender a form preview
POST/api/v1/tenants/{tenant}/forms/tagsChange labels of forms
GET/api/v1/tenants/{tenant}/forms/{form_id}Get a form
PATCH/api/v1/tenants/{tenant}/forms/{form_id}Update a form
DELETE/api/v1/tenants/{tenant}/forms/{form_id}Delete a form
POST/api/v1/tenants/{tenant}/forms/{form_id}/copyCopy a form
GET/api/v1/tenants/{tenant}/forms/{form_id}/embedGet the embed code of a form
GET/api/v1/tenants/{tenant}/forms/{form_id}/historyChange history of a form
GET/api/v1/tenants/{tenant}/forms/{form_id}/welcomeGet the e-mail after a sign-up (the form's own automation)
PUT/api/v1/tenants/{tenant}/forms/{form_id}/welcomeSwitch the e-mail after a sign-up on or off

List forms

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

Oprávnenie: modul content, úroveň read; kľúč s prístupom read alebo full · Nástroj MCP: list_forms

Sign-up forms (classic or popup).

Parametre

NázovKdeTypPovinnéPopis
tenantpathstring (uuid)ánoPublic id of the company (tenant), a UUID: GET /api/v3/account-info answers it as data.guid; the app shows it on the API keys page.
tagquerystringnieLabel filter; repeat for more labels.

Odpovede

  • 200 OK: application/json object

Chyby

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

Create a form

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

Oprávnenie: modul content, úroveň full; kľúč s prístupom full · Nástroj MCP: create_form

Creates a double opt-in sign-up form.

Parametre

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

Telo požiadavky (application/json)

PoleTypPovinnéPopis
namestringáno
shopIdstringáno
statusone of: active, inactivenie
fieldsarray of FormFieldnie
listIdsarray of stringáno
purposeIdstring or nulláno
consentTextstringáno
titlestringnie
descriptionstringnie
submitLabelstringnie
successUrlstringnie
confirmedUrlstringnie
captchabooleannie
kindone of: classic, popup, slidenie
popupobject or nullniePop-up settings, completed with POPUP_DEFAULTS; ignored for a classic form.
designobjectnie
settingsobjectnie
tagsarray of stringnie

Odpovede

Chyby

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

List templates usable as the double opt-in e-mail

GET /api/v1/tenants/{tenant}/forms/doi-templates

Oprávnenie: modul content, úroveň read; kľúč s prístupom read alebo full

E-mail templates with the confirmation link ({{confirmlink}}) a form may send as its double opt-in.

Parametre

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

Odpovede

  • 200 OK: application/json object

Chyby

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

Render a form preview

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

Oprávnenie: modul content, úroveň read; kľúč s prístupom read alebo full

Parametre

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

Telo požiadavky (application/json)

PoleTypPovinnéPopis
namestringnie
shopIdstringnie
statusone of: active, inactivenie
fieldsarray of FormFieldnie
listIdsarray of stringnie
purposeIdstring or nullnie
consentTextstringnie
titlestringnie
descriptionstringnie
submitLabelstringnie
successUrlstringnie
confirmedUrlstringnie
captchabooleannie
kindone of: classic, popup, slidenie
popupobject or nullniePop-up settings, completed with POPUP_DEFAULTS; ignored for a classic form.
designobjectnie
settingsobjectnie
tagsarray of stringnie

Odpovede

  • 200 OK: application/json object

Chyby

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

Change labels of forms

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

Oprávnenie: modul content, úroveň full; kľúč s prístupom full

Parametre

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

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

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

Odpovede

  • 200 OK: application/json object

Chyby

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

Get a form

GET /api/v1/tenants/{tenant}/forms/{form_id}

Oprávnenie: modul content, úroveň read; kľúč s prístupom read alebo full · Nástroj MCP: get_form

One form with its fields, consent text and public address.

Parametre

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

Odpovede

Chyby

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

Update a form

PATCH /api/v1/tenants/{tenant}/forms/{form_id}

Oprávnenie: modul content, úroveň full; kľúč s prístupom full · Nástroj MCP: update_form

Changes a form.

Parametre

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

Telo požiadavky (application/json)

PoleTypPovinnéPopis
namestringnie
shopIdstringnie
statusone of: active, inactivenie
fieldsarray of FormFieldnie
listIdsarray of stringnie
purposeIdstring or nullnie
consentTextstringnie
titlestringnie
descriptionstringnie
submitLabelstringnie
successUrlstringnie
confirmedUrlstringnie
captchabooleannie
kindone of: classic, popup, slidenie
popupobject or nullniePop-up settings, completed with POPUP_DEFAULTS; ignored for a classic form.
designobjectnie
settingsobjectnie
tagsarray of stringnie

Odpovede

Chyby

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

Delete a form

DELETE /api/v1/tenants/{tenant}/forms/{form_id}

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

Deletes a form (its address stops working).

Parametre

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

Odpovede

  • 204 No content

Chyby

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

Copy a form

POST /api/v1/tenants/{tenant}/forms/{form_id}/copy

Oprávnenie: modul content, úroveň full; kľúč s prístupom full

Vytvořit kopii formuláře: an inactive copy with a free name.

Parametre

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

Telo požiadavky (application/json)

object

Odpovede

Chyby

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

Get the embed code of a form

GET /api/v1/tenants/{tenant}/forms/{form_id}/embed

Oprávnenie: modul content, úroveň read; kľúč s prístupom read alebo full

The codes of Vložit do stránky: script (JavaScript, always current), url (Odkaz na webový formulář), styled (HTML), html (Minimální HTML).

Parametre

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

Odpovede

Chyby

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

Change history of a form

GET /api/v1/tenants/{tenant}/forms/{form_id}/history

Oprávnenie: modul content, úroveň read; kľúč s prístupom read alebo full

Historie vyplnění: the sign-ups of a form, newest first (?q= address, ?filledFrom= and ?filledTo= calendar days of the tenant, ?page=, ?pageSize=, ?sort=).

Parametre

NázovKdeTypPovinnéPopis
tenantpathstring (uuid)ánoPublic id of the company (tenant), a UUID: GET /api/v3/account-info answers it as data.guid; the app shows it on the API keys page.
form_idpathstringánoId of the form (string of digits).
filledFromquerystringnie
filledToquerystringnie
pagequeryintegerniePage number, from 1. default 1, min 1
pageSizequeryintegernieItems per page, 1 to 100. default 25, min 1, max 100
qquerystringnieSearch text (case and diacritics insensitive). max 200 chars
sortquerystringnieSort fields separated by commas, "-" = descending, at most 3 (e.g. name,-id).

Odpovede

  • 200 OK: application/json object

Chyby

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

Get the e-mail after a sign-up (the form's own automation)

GET /api/v1/tenants/{tenant}/forms/{form_id}/welcome

Oprávnenie: modul content, úroveň read; kľúč s prístupom read alebo full

E-mail po přihlášení (core/form_welcome.py): the form's own automation and its e-mail, the coupon tags of the template (?templateId= another template to check before saving) and the shop's coupon stacks.

Parametre

NázovKdeTypPovinnéPopis
tenantpathstring (uuid)ánoPublic id of the company (tenant), a UUID: GET /api/v3/account-info answers it as data.guid; the app shows it on the API keys page.
form_idpathstringánoId of the form (string of digits).
templateIdquerystringnie

Odpovede

Chyby

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

Switch the e-mail after a sign-up on or off

PUT /api/v1/tenants/{tenant}/forms/{form_id}/welcome

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

Switches the e-mail after a sign-up on (creates or adopts the form's automation, saves its e-mail and starts it) or off (pauses it). Module campaigns: it runs an automation.

Parametre

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

Telo požiadavky (application/json)

PoleTypPovinnéPopis
enabledbooleanáno
templateIdstring or nullnie
senderIdstring or nullnie
senderNamestringnie
replyTostringnie
couponStackIdstring or nullnie

Odpovede

Chyby

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

Schémy

AutomationStatus

one of: active, draft, paused

DoiTemplate

An e-mail template with {{confirmlink}} a form may send as its double opt-in.

PoleTypPovinnéPopis
idstringáno
namestringáno

Error

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

FormDesign

Vzhled (step 2): core/form_builder.py DESIGN_DEFAULTS.

PoleTypPovinnéPopis
templateFormTemplateáno
stylestringáno<category>-<colour> of formStyles.json.
widthnumberáno
imagestringánohttps address of the picture, '' = none.
imagePositionone of: top, asideáno
showTitlebooleanáno
showTextbooleanáno
titleColorstringáno#rrggbb or '' (the style's colour).
textColorstringáno
buttonColorstringáno
buttonTextColorstringáno
fontFormFontánoPísmo (core/form_builder.FONTS): fonts every device has.
titleSizenumberánopx, 14 to 48 / 12 to 28 (core/form_builder.SIZE_LIMITS).
textSizenumberáno

FormDetail

PoleTypPovinnéPopis
popupPopupSettings or nullánoPop-up and slide-in forms only.
scriptUrlstring or nulláno<hostedUrl>/popup.js for a pop-up or slide-in, else null.
fieldsarray of FormFieldánoThe e-mail address is always there, first and required.
consentTextstringánoThe operator's text next to the required check box (consentMode checkbox).
consentVersionnumberánoGrows with every change of the consent text; each sign-up records the exact text and version.
titlestringáno
descriptionstringáno
submitLabelstringánoEmpty = the default label in the shop's language.
successUrlstringánohttps:// or empty (the thank-you page).
confirmedUrlstringáno
captchabooleanánoOnly with a verifier of the platform (none yet: 400 captcha).
hostedUrlstringánohttps://<link domain of the shop>/f/<tenant id>/<publicId>
designFormDesignáno
settingsFormSettingsáno
idstringáno
namestringáno
shopIdstringáno
statusone of: active, inactiveánoinactive = the form takes no sign-ups (its page answers 410).
listIdsarray of stringáno
purposeIdstring or nullánonull = Bez účelu zpracování.
createdAtstringáno
updatedAtstringáno
kindFormKindánoclassic = in the page; popup = a dialog of popup.js; slide = Vyjíždějící (a button of popup.js opens it).
tagsarray of stringáno
fillsnumberánoNumber of sign-ups (Historie vyplnění).
publicIdstringáno
previewUrlstringánohostedUrl?preview=1: Náhled webového formuláře (works for an inactive form too).

FormEmbed

PoleTypPovinnéPopis
htmlstringánoMinimální HTML: inputs only, no style and no script.
styledstringánoHTML: the styled form (step 2) with its CSS; re-paste after a change.
urlstringánoOdkaz na webový formulář.
scriptstringánoJavaScript: popup.js of a pop-up or slide-in, form.js of a classic form (always current).

FormExtraPurpose

PoleTypPovinnéPopis
purposeIdstringáno
labelstringáno
linkTextstringáno
linkUrlstringáno

FormField

PoleTypPovinnéPopis
fieldFormFieldNameáno
requiredbooleanáno
labelstringnieEmpty = the default label (catalogue or custom field name).
errorstringnieEmpty = the default message.
placeholderstringniePředvyplněný text (placeholder).

FormFieldName

FormFieldName

FormFill

A sign-up of Historie vyplnění.

PoleTypPovinnéPopis
idstringáno
contactIdstring or nulláno
emailstringáno
filledAtstringáno
pageUrlstringáno
affiliatestringáno

FormFont

one of: arial, verdana, tahoma, trebuchet, georgia, times, courier

FormInput

PoleTypPovinnéPopis
namestringáno
shopIdstringáno
statusone of: active, inactivenie
fieldsarray of FormFieldnie
listIdsarray of stringáno
purposeIdstring or nulláno
consentTextstringáno
titlestringnie
descriptionstringnie
submitLabelstringnie
successUrlstringnie
confirmedUrlstringnie
captchabooleannie
kindone of: classic, popup, slidenie
popupobject or nullniePop-up settings, completed with POPUP_DEFAULTS; ignored for a classic form.
designobjectnie
settingsobjectnie
tagsarray of stringnie

FormKind

one of: classic, popup, slide

FormSettings

Nastavení (step 3) and Přiřadit účely zpracování: core/form_builder.py SETTINGS_DEFAULTS.

PoleTypPovinnéPopis
existingModeone of: error, update, keepáno
errorUrlstringáno
notifyarray of stringáno
newTabbooleanáno
keepParamsbooleanáno
affiliateParamstringáno
thanksHtmlstringáno
typoCheckbooleanáno
doibooleanáno
doiTemplateIdstring or nulláno
senderNamestringáno
senderEmailstringáno
replyTostringáno
doiAfterone of: redirect, thanksáno
doiThanksHtmlstringáno
consentModeone of: text, checkboxánocheckbox = a required check box with consentText; text = SmartEmailing's information text with a link.
consentLabelstringáno
consentLinkTextstringáno
consentLinkUrlstringáno
extraPurposesarray of FormExtraPurposeáno

FormSummary

PoleTypPovinnéPopis
idstringáno
namestringáno
shopIdstringáno
statusone of: active, inactiveánoinactive = the form takes no sign-ups (its page answers 410).
listIdsarray of stringáno
purposeIdstring or nullánonull = Bez účelu zpracování.
createdAtstringáno
updatedAtstringáno
kindFormKindánoclassic = in the page; popup = a dialog of popup.js; slide = Vyjíždějící (a button of popup.js opens it).
tagsarray of stringáno
fillsnumberánoNumber of sign-ups (Historie vyplnění).
publicIdstringáno
previewUrlstringánohostedUrl?preview=1: Náhled webového formuláře (works for an inactive form too).

FormTemplate

one of: classic, popup, slide, popup-image, popup-image-aside, slide-image

FormWelcome

E-mail po přihlášení (core/form_welcome.py): the form's own automation (trigger form_submitted of the form, each contact once, one send_email node).

PoleTypPovinnéPopis
enabledbooleanánoThe own automation runs.
automationobject or nullánocustom = changed in the automation editor (more nodes): shown only, edited there.
templateIdstring or nulláno
senderIdstring or nulláno
senderNamestringáno
replyTostringáno
templateobject or nullánoThe template asked for (?templateId=) or the automation's one, with the coupon keys it carries.
couponStackIdstring or nullánoThe stack whose tag the template carries.
stacksarray of FormWelcomeStackáno
othersarray of objectánoOther automations started by this form.

FormWelcomeInput

PoleTypPovinnéPopis
enabledbooleanáno
templateIdstring or nullnie
senderIdstring or nullnie
senderNamestringnie
replyTostringnie
couponStackIdstring or nullnie

FormWelcomeStack

A coupon stack offered for E-mail po přihlášení (its tag in the template gives every subscriber one code).

PoleTypPovinnéPopis
idstringáno
namestringáno
mergeKeystringáno
tagstringáno{{coupon_<mergeKey>}}
freenumberáno
lowbooleanáno50 or fewer free codes.

GridTagsInput

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

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

PopupAfter

one of: redirect, thanks, close

PopupRepeat

one of: days, session, browser

PopupSettings

Settings of a pop-up or slide-in form (core/form_popup.py).

PoleTypPovinnéPopis
triggerPopupTriggeráno
delaySecondsnumberánodelay: 1 to 600 seconds after the page is ready.
scrollUnitone of: percent, pixelsánoscroll in % of the page (10 to 100) or in pixels from the top (1 to 20000, SmartEmailing).
scrollPercentnumberáno
scrollPixelsnumberáno
repeatPopupRepeatánosession = after closing hidden for the browser session, never after a sign-up; browser = again in the next session, a sign-up too; days = hidden for repeatDays (1 to 365) after closing.
repeatDaysnumberáno
afterPopupAfteránothanks = Děkovací okno (the thank-you message in the same dialog, closes itself after closeSeconds); close = Bez děkovací stránky (the dialog closes at once, "Hotovo" shows for 2 s); redirect needs successUrl (the whole page goes there after the sign-up).
closeSecondsnumberánoDěkovací okno closes itself after 0 to 60 seconds, 0 = stays open until the visitor closes it.
delayScopeone of: page, siteánosite = the delay counts time on the whole e-shop across page views; page = each page starts again.
mobileone of: off, sheetánosheet = a bottom sheet on phones and tablets; off = never there (SmartEmailing's recommended default).
sideone of: left, rightánoSlide-in: the button at the bottom right or left.
skipLoggedInbooleanánoNever for a signed-in Shoptet customer (dataLayer).
skipFromEmailbooleanánoNever for visitors from a Poštárna e-mail (marker parameter emailParam or utm_source in emailSources), 365 days.
emailParamstringáno
emailSourcesarray of stringáno
skipAfterOrderbooleanánoNever after an order (thank-you page address contains one of orderPatterns), 365 days.
orderPatternsarray of stringáno
excludePatternsarray of stringánoNever on addresses containing one of these (cart, checkout).

PopupTrigger

one of: load, delay, scroll