Forms
Sign-up forms (double opt-in): builder settings, embed code, history.
Technická reference je anglicky (stejně jako strojově čitelný dokument OpenAPI). Celou skupinu pro AI agenta načtete z /api/openapi.json?tag=Forms.
Přihlášení: Authorization: Bearer pst_... nebo HTTP Basic (e-mail člena firmy a API klíč).
Operace
| Metoda | Cesta | Popis |
|---|---|---|
| GET | /api/v1/tenants/{tenant}/forms | List forms |
| POST | /api/v1/tenants/{tenant}/forms | Create a form |
| GET | /api/v1/tenants/{tenant}/forms/doi-templates | List templates usable as the double opt-in e-mail |
| POST | /api/v1/tenants/{tenant}/forms/preview | Render a form preview |
| POST | /api/v1/tenants/{tenant}/forms/tags | Change 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}/copy | Copy a form |
| GET | /api/v1/tenants/{tenant}/forms/{form_id}/embed | Get the embed code of a form |
| GET | /api/v1/tenants/{tenant}/forms/{form_id}/history | Change history of a form |
| GET | /api/v1/tenants/{tenant}/forms/{form_id}/welcome | Get the e-mail after a sign-up (the form's own automation) |
| PUT | /api/v1/tenants/{tenant}/forms/{form_id}/welcome | Switch the e-mail after a sign-up on or off |
List forms
GET /api/v1/tenants/{tenant}/forms
Oprávnění: modul content, úroveň read; klíč s přístupem read nebo full · Nástroj MCP: list_forms
Sign-up forms (classic or popup).
Parametry
| Název | Kde | Typ | Povinné | Popis |
|---|---|---|---|---|
tenant | path | string (uuid) | ano | Public id of the company (tenant), a UUID: GET /api/v3/account-info answers it as data.guid; the app shows it on the API keys page. |
tag | query | string | ne | Label filter; repeat for more labels. |
Odpovědi
- 200 OK:
application/jsonobject
Chyby
| Stav | Kód | Hodnoty message |
|---|---|---|
| 400 | validation | tag |
| 401 | 401 unauthorized: missing, unknown, revoked, expired or idle API key. | |
| 403 | 403 forbidden: message tenant (another company), scope (read-only key), api_key (person only), or the module the key's roles lack. | |
| 429 | 429 rate_limited: wait Retry-After seconds. |
Create a form
POST /api/v1/tenants/{tenant}/forms
Oprávnění: modul content, úroveň full; klíč s přístupem full · Nástroj MCP: create_form
Creates a double opt-in sign-up form.
Parametry
| Název | Kde | Typ | Povinné | Popis |
|---|---|---|---|---|
tenant | path | string (uuid) | ano | Public id of the company (tenant), a UUID: GET /api/v3/account-info answers it as data.guid; the app shows it on the API keys page. |
Tělo požadavku (application/json)
| Pole | Typ | Povinné | Popis |
|---|---|---|---|
name | string | ano | |
shopId | string | ano | |
status | one of: active, inactive | ne | |
fields | array of FormField | ne | |
listIds | array of string | ano | |
purposeId | string or null | ano | |
consentText | string | ano | |
title | string | ne | |
description | string | ne | |
submitLabel | string | ne | |
successUrl | string | ne | |
confirmedUrl | string | ne | |
captcha | boolean | ne | |
kind | one of: classic, popup, slide | ne | |
popup | object or null | ne | Pop-up settings, completed with POPUP_DEFAULTS; ignored for a classic form. |
design | object | ne | |
settings | object | ne | |
tags | array of string | ne |
Odpovědi
- 201 Created:
application/jsonFormDetail
Chyby
| Stav | Kód | Hodnoty message |
|---|---|---|
| 400 | validation | |
| 401 | 401 unauthorized: missing, unknown, revoked, expired or idle API key. | |
| 403 | 403 forbidden: message tenant (another company), scope (read-only key), api_key (person only), or the module the key's roles lack. | |
| 404 | not_found | |
| 429 | 429 rate_limited: wait Retry-After seconds. |
List templates usable as the double opt-in e-mail
GET /api/v1/tenants/{tenant}/forms/doi-templates
Oprávnění: modul content, úroveň read; klíč s přístupem read nebo full
E-mail templates with the confirmation link ({{confirmlink}}) a form may send as its double opt-in.
Parametry
| Název | Kde | Typ | Povinné | Popis |
|---|---|---|---|---|
tenant | path | string (uuid) | ano | Public id of the company (tenant), a UUID: GET /api/v3/account-info answers it as data.guid; the app shows it on the API keys page. |
Odpovědi
- 200 OK:
application/jsonobject
Chyby
| Stav | Kód | Hodnoty message |
|---|---|---|
| 401 | 401 unauthorized: missing, unknown, revoked, expired or idle API key. | |
| 403 | 403 forbidden: message tenant (another company), scope (read-only key), api_key (person only), or the module the key's roles lack. | |
| 429 | 429 rate_limited: wait Retry-After seconds. |
Render a form preview
POST /api/v1/tenants/{tenant}/forms/preview
Oprávnění: modul content, úroveň read; klíč s přístupem read nebo full
Parametry
| Název | Kde | Typ | Povinné | Popis |
|---|---|---|---|---|
tenant | path | string (uuid) | ano | Public id of the company (tenant), a UUID: GET /api/v3/account-info answers it as data.guid; the app shows it on the API keys page. |
Tělo požadavku (application/json)
| Pole | Typ | Povinné | Popis |
|---|---|---|---|
name | string | ne | |
shopId | string | ne | |
status | one of: active, inactive | ne | |
fields | array of FormField | ne | |
listIds | array of string | ne | |
purposeId | string or null | ne | |
consentText | string | ne | |
title | string | ne | |
description | string | ne | |
submitLabel | string | ne | |
successUrl | string | ne | |
confirmedUrl | string | ne | |
captcha | boolean | ne | |
kind | one of: classic, popup, slide | ne | |
popup | object or null | ne | Pop-up settings, completed with POPUP_DEFAULTS; ignored for a classic form. |
design | object | ne | |
settings | object | ne | |
tags | array of string | ne |
Odpovědi
- 200 OK:
application/jsonobject
Chyby
| Stav | Kód | Hodnoty message |
|---|---|---|
| 400 | validation | |
| 401 | 401 unauthorized: missing, unknown, revoked, expired or idle API key. | |
| 403 | 403 forbidden: message tenant (another company), scope (read-only key), api_key (person only), or the module the key's roles lack. | |
| 429 | 429 rate_limited: wait Retry-After seconds. |
Change labels of forms
POST /api/v1/tenants/{tenant}/forms/tags
Oprávnění: modul content, úroveň full; klíč s přístupem full
Parametry
| Název | Kde | Typ | Povinné | Popis |
|---|---|---|---|---|
tenant | path | string (uuid) | ano | Public id of the company (tenant), a UUID: GET /api/v3/account-info answers it as data.guid; the app shows it on the API keys page. |
Tělo požadavku (application/json): Required by the server: ids.
| Pole | Typ | Povinné | Popis |
|---|---|---|---|
ids | array of string | ano | |
add | array of string | ne | |
remove | array of string | ne | |
tags | array of string | ne |
Odpovědi
- 200 OK:
application/jsonobject
Chyby
| Stav | Kód | Hodnoty message |
|---|---|---|
| 400 | validation | ids |
| 401 | 401 unauthorized: missing, unknown, revoked, expired or idle API key. | |
| 403 | 403 forbidden: message tenant (another company), scope (read-only key), api_key (person only), or the module the key's roles lack. | |
| 429 | 429 rate_limited: wait Retry-After seconds. |
Get a form
GET /api/v1/tenants/{tenant}/forms/{form_id}
Oprávnění: modul content, úroveň read; klíč s přístupem read nebo full · Nástroj MCP: get_form
One form with its fields, consent text and public address.
Parametry
| Název | Kde | Typ | Povinné | Popis |
|---|---|---|---|---|
tenant | path | string (uuid) | ano | Public id of the company (tenant), a UUID: GET /api/v3/account-info answers it as data.guid; the app shows it on the API keys page. |
form_id | path | string | ano | Id of the form (string of digits). |
Odpovědi
- 200 OK:
application/jsonFormDetail
Chyby
| Stav | Kód | Hodnoty message |
|---|---|---|
| 400 | validation | |
| 401 | 401 unauthorized: missing, unknown, revoked, expired or idle API key. | |
| 403 | 403 forbidden: message tenant (another company), scope (read-only key), api_key (person only), or the module the key's roles lack. | |
| 404 | not_found | |
| 429 | 429 rate_limited: wait Retry-After seconds. |
Update a form
PATCH /api/v1/tenants/{tenant}/forms/{form_id}
Oprávnění: modul content, úroveň full; klíč s přístupem full · Nástroj MCP: update_form
Changes a form.
Parametry
| Název | Kde | Typ | Povinné | Popis |
|---|---|---|---|---|
tenant | path | string (uuid) | ano | Public id of the company (tenant), a UUID: GET /api/v3/account-info answers it as data.guid; the app shows it on the API keys page. |
form_id | path | string | ano | Id of the form (string of digits). |
Tělo požadavku (application/json)
| Pole | Typ | Povinné | Popis |
|---|---|---|---|
name | string | ne | |
shopId | string | ne | |
status | one of: active, inactive | ne | |
fields | array of FormField | ne | |
listIds | array of string | ne | |
purposeId | string or null | ne | |
consentText | string | ne | |
title | string | ne | |
description | string | ne | |
submitLabel | string | ne | |
successUrl | string | ne | |
confirmedUrl | string | ne | |
captcha | boolean | ne | |
kind | one of: classic, popup, slide | ne | |
popup | object or null | ne | Pop-up settings, completed with POPUP_DEFAULTS; ignored for a classic form. |
design | object | ne | |
settings | object | ne | |
tags | array of string | ne |
Odpovědi
- 200 OK:
application/jsonFormDetail
Chyby
| Stav | Kód | Hodnoty message |
|---|---|---|
| 400 | validation | |
| 401 | 401 unauthorized: missing, unknown, revoked, expired or idle API key. | |
| 403 | 403 forbidden: message tenant (another company), scope (read-only key), api_key (person only), or the module the key's roles lack. | |
| 404 | not_found | |
| 429 | 429 rate_limited: wait Retry-After seconds. |
Delete a form
DELETE /api/v1/tenants/{tenant}/forms/{form_id}
Oprávnění: modul content, úroveň full; klíč s přístupem full · Nástroj MCP: delete_form (přes MCP jen s náhledem a potvrzením)
Deletes a form (its address stops working).
Parametry
| Název | Kde | Typ | Povinné | Popis |
|---|---|---|---|---|
tenant | path | string (uuid) | ano | Public id of the company (tenant), a UUID: GET /api/v3/account-info answers it as data.guid; the app shows it on the API keys page. |
form_id | path | string | ano | Id of the form (string of digits). |
Odpovědi
- 204 No content
Chyby
| Stav | Kód | Hodnoty message |
|---|---|---|
| 400 | validation | |
| 401 | 401 unauthorized: missing, unknown, revoked, expired or idle API key. | |
| 403 | 403 forbidden: message tenant (another company), scope (read-only key), api_key (person only), or the module the key's roles lack. | |
| 404 | not_found | |
| 429 | 429 rate_limited: wait Retry-After seconds. |
Copy a form
POST /api/v1/tenants/{tenant}/forms/{form_id}/copy
Oprávnění: modul content, úroveň full; klíč s přístupem full
Vytvořit kopii formuláře: an inactive copy with a free name.
Parametry
| Název | Kde | Typ | Povinné | Popis |
|---|---|---|---|---|
tenant | path | string (uuid) | ano | Public id of the company (tenant), a UUID: GET /api/v3/account-info answers it as data.guid; the app shows it on the API keys page. |
form_id | path | string | ano | Id of the form (string of digits). |
Tělo požadavku (application/json)
object
Odpovědi
- 201 Created:
application/jsonFormDetail
Chyby
| Stav | Kód | Hodnoty message |
|---|---|---|
| 400 | validation | |
| 401 | 401 unauthorized: missing, unknown, revoked, expired or idle API key. | |
| 403 | 403 forbidden: message tenant (another company), scope (read-only key), api_key (person only), or the module the key's roles lack. | |
| 404 | not_found | |
| 429 | 429 rate_limited: wait Retry-After seconds. |
Get the embed code of a form
GET /api/v1/tenants/{tenant}/forms/{form_id}/embed
Oprávnění: modul content, úroveň read; klíč s přístupem read nebo full
The codes of Vložit do stránky: script (JavaScript, always current), url (Odkaz na webový formulář), styled (HTML), html (Minimální HTML).
Parametry
| Název | Kde | Typ | Povinné | Popis |
|---|---|---|---|---|
tenant | path | string (uuid) | ano | Public id of the company (tenant), a UUID: GET /api/v3/account-info answers it as data.guid; the app shows it on the API keys page. |
form_id | path | string | ano | Id of the form (string of digits). |
Odpovědi
- 200 OK:
application/jsonFormEmbed
Chyby
| Stav | Kód | Hodnoty message |
|---|---|---|
| 400 | validation | |
| 401 | 401 unauthorized: missing, unknown, revoked, expired or idle API key. | |
| 403 | 403 forbidden: message tenant (another company), scope (read-only key), api_key (person only), or the module the key's roles lack. | |
| 404 | not_found | |
| 429 | 429 rate_limited: wait Retry-After seconds. |
Change history of a form
GET /api/v1/tenants/{tenant}/forms/{form_id}/history
Oprávnění: modul content, úroveň read; klíč s přístupem read nebo 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=).
Parametry
| Název | Kde | Typ | Povinné | Popis |
|---|---|---|---|---|
tenant | path | string (uuid) | ano | Public id of the company (tenant), a UUID: GET /api/v3/account-info answers it as data.guid; the app shows it on the API keys page. |
form_id | path | string | ano | Id of the form (string of digits). |
filledFrom | query | string | ne | |
filledTo | query | string | ne | |
page | query | integer | ne | Page number, from 1. default 1, min 1 |
pageSize | query | integer | ne | Items per page, 1 to 100. default 25, min 1, max 100 |
q | query | string | ne | Search text (case and diacritics insensitive). max 200 chars |
sort | query | string | ne | Sort fields separated by commas, "-" = descending, at most 3 (e.g. name,-id). |
Odpovědi
- 200 OK:
application/jsonobject
Chyby
| Stav | Kód | Hodnoty message |
|---|---|---|
| 400 | validation | filledTo, page |
| 401 | 401 unauthorized: missing, unknown, revoked, expired or idle API key. | |
| 403 | 403 forbidden: message tenant (another company), scope (read-only key), api_key (person only), or the module the key's roles lack. | |
| 404 | not_found | |
| 429 | 429 rate_limited: wait Retry-After seconds. |
Get the e-mail after a sign-up (the form's own automation)
GET /api/v1/tenants/{tenant}/forms/{form_id}/welcome
Oprávnění: modul content, úroveň read; klíč s přístupem read nebo 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.
Parametry
| Název | Kde | Typ | Povinné | Popis |
|---|---|---|---|---|
tenant | path | string (uuid) | ano | Public id of the company (tenant), a UUID: GET /api/v3/account-info answers it as data.guid; the app shows it on the API keys page. |
form_id | path | string | ano | Id of the form (string of digits). |
templateId | query | string | ne |
Odpovědi
- 200 OK:
application/jsonFormWelcome
Chyby
| Stav | Kód | Hodnoty message |
|---|---|---|
| 400 | validation | |
| 401 | 401 unauthorized: missing, unknown, revoked, expired or idle API key. | |
| 403 | 403 forbidden: message tenant (another company), scope (read-only key), api_key (person only), or the module the key's roles lack. | |
| 404 | not_found | |
| 429 | 429 rate_limited: wait Retry-After seconds. |
Switch the e-mail after a sign-up on or off
PUT /api/v1/tenants/{tenant}/forms/{form_id}/welcome
Oprávnění: modul campaigns, úroveň full; klíč s přístupem 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.
Parametry
| Název | Kde | Typ | Povinné | Popis |
|---|---|---|---|---|
tenant | path | string (uuid) | ano | Public id of the company (tenant), a UUID: GET /api/v3/account-info answers it as data.guid; the app shows it on the API keys page. |
form_id | path | string | ano | Id of the form (string of digits). |
Tělo požadavku (application/json)
| Pole | Typ | Povinné | Popis |
|---|---|---|---|
enabled | boolean | ano | |
templateId | string or null | ne | |
senderId | string or null | ne | |
senderName | string | ne | |
replyTo | string | ne | |
couponStackId | string or null | ne |
Odpovědi
- 200 OK:
application/jsonFormWelcome
Chyby
| Stav | Kód | Hodnoty message |
|---|---|---|
| 400 | validation | |
| 401 | 401 unauthorized: missing, unknown, revoked, expired or idle API key. | |
| 403 | 403 forbidden: message tenant (another company), scope (read-only key), api_key (person only), or the module the key's roles lack. | |
| 404 | not_found | |
| 409 | conflict | welcome.custom |
| 429 | 429 rate_limited: wait Retry-After seconds. |
Schémata
AutomationStatus
one of: active, draft, paused
DoiTemplate
An e-mail template with {{confirmlink}} a form may send as its double opt-in.
| Pole | Typ | Povinné | Popis |
|---|---|---|---|
id | string | ano | |
name | string | ano |
Error
| Pole | Typ | Povinné | Popis |
|---|---|---|---|
error | object | ano |
{
"error": {
"code": "validation",
"message": "email"
}
}FormDesign
Vzhled (step 2): core/form_builder.py DESIGN_DEFAULTS.
| Pole | Typ | Povinné | Popis |
|---|---|---|---|
template | FormTemplate | ano | |
style | string | ano | <category>-<colour> of formStyles.json. |
width | number | ano | |
image | string | ano | https address of the picture, '' = none. |
imagePosition | one of: top, aside | ano | |
showTitle | boolean | ano | |
showText | boolean | ano | |
titleColor | string | ano | #rrggbb or '' (the style's colour). |
textColor | string | ano | |
buttonColor | string | ano | |
buttonTextColor | string | ano | |
font | FormFont | ano | Písmo (core/form_builder.FONTS): fonts every device has. |
titleSize | number | ano | px, 14 to 48 / 12 to 28 (core/form_builder.SIZE_LIMITS). |
textSize | number | ano |
FormDetail
| Pole | Typ | Povinné | Popis |
|---|---|---|---|
popup | PopupSettings or null | ano | Pop-up and slide-in forms only. |
scriptUrl | string or null | ano | <hostedUrl>/popup.js for a pop-up or slide-in, else null. |
fields | array of FormField | ano | The e-mail address is always there, first and required. |
consentText | string | ano | The operator's text next to the required check box (consentMode checkbox). |
consentVersion | number | ano | Grows with every change of the consent text; each sign-up records the exact text and version. |
title | string | ano | |
description | string | ano | |
submitLabel | string | ano | Empty = the default label in the shop's language. |
successUrl | string | ano | https:// or empty (the thank-you page). |
confirmedUrl | string | ano | |
captcha | boolean | ano | Only with a verifier of the platform (none yet: 400 captcha). |
hostedUrl | string | ano | https://<link domain of the shop>/f/<tenant id>/<publicId> |
design | FormDesign | ano | |
settings | FormSettings | ano | |
id | string | ano | |
name | string | ano | |
shopId | string | ano | |
status | one of: active, inactive | ano | inactive = the form takes no sign-ups (its page answers 410). |
listIds | array of string | ano | |
purposeId | string or null | ano | null = Bez účelu zpracování. |
createdAt | string | ano | |
updatedAt | string | ano | |
kind | FormKind | ano | classic = in the page; popup = a dialog of popup.js; slide = Vyjíždějící (a button of popup.js opens it). |
tags | array of string | ano | |
fills | number | ano | Number of sign-ups (Historie vyplnění). |
publicId | string | ano | |
previewUrl | string | ano | hostedUrl?preview=1: Náhled webového formuláře (works for an inactive form too). |
FormEmbed
| Pole | Typ | Povinné | Popis |
|---|---|---|---|
html | string | ano | Minimální HTML: inputs only, no style and no script. |
styled | string | ano | HTML: the styled form (step 2) with its CSS; re-paste after a change. |
url | string | ano | Odkaz na webový formulář. |
script | string | ano | JavaScript: popup.js of a pop-up or slide-in, form.js of a classic form (always current). |
FormExtraPurpose
| Pole | Typ | Povinné | Popis |
|---|---|---|---|
purposeId | string | ano | |
label | string | ano | |
linkText | string | ano | |
linkUrl | string | ano |
FormField
| Pole | Typ | Povinné | Popis |
|---|---|---|---|
field | FormFieldName | ano | |
required | boolean | ano | |
label | string | ne | Empty = the default label (catalogue or custom field name). |
error | string | ne | Empty = the default message. |
placeholder | string | ne | Předvyplněný text (placeholder). |
FormFieldName
FormFill
A sign-up of Historie vyplnění.
| Pole | Typ | Povinné | Popis |
|---|---|---|---|
id | string | ano | |
contactId | string or null | ano | |
email | string | ano | |
filledAt | string | ano | |
pageUrl | string | ano | |
affiliate | string | ano |
FormFont
one of: arial, verdana, tahoma, trebuchet, georgia, times, courier
FormInput
| Pole | Typ | Povinné | Popis |
|---|---|---|---|
name | string | ano | |
shopId | string | ano | |
status | one of: active, inactive | ne | |
fields | array of FormField | ne | |
listIds | array of string | ano | |
purposeId | string or null | ano | |
consentText | string | ano | |
title | string | ne | |
description | string | ne | |
submitLabel | string | ne | |
successUrl | string | ne | |
confirmedUrl | string | ne | |
captcha | boolean | ne | |
kind | one of: classic, popup, slide | ne | |
popup | object or null | ne | Pop-up settings, completed with POPUP_DEFAULTS; ignored for a classic form. |
design | object | ne | |
settings | object | ne | |
tags | array of string | ne |
FormKind
one of: classic, popup, slide
FormSettings
Nastavení (step 3) and Přiřadit účely zpracování: core/form_builder.py SETTINGS_DEFAULTS.
| Pole | Typ | Povinné | Popis |
|---|---|---|---|
existingMode | one of: error, update, keep | ano | |
errorUrl | string | ano | |
notify | array of string | ano | |
newTab | boolean | ano | |
keepParams | boolean | ano | |
affiliateParam | string | ano | |
thanksHtml | string | ano | |
typoCheck | boolean | ano | |
doi | boolean | ano | |
doiTemplateId | string or null | ano | |
senderName | string | ano | |
senderEmail | string | ano | |
replyTo | string | ano | |
doiAfter | one of: redirect, thanks | ano | |
doiThanksHtml | string | ano | |
consentMode | one of: text, checkbox | ano | checkbox = a required check box with consentText; text = SmartEmailing's information text with a link. |
consentLabel | string | ano | |
consentLinkText | string | ano | |
consentLinkUrl | string | ano | |
extraPurposes | array of FormExtraPurpose | ano |
FormSummary
| Pole | Typ | Povinné | Popis |
|---|---|---|---|
id | string | ano | |
name | string | ano | |
shopId | string | ano | |
status | one of: active, inactive | ano | inactive = the form takes no sign-ups (its page answers 410). |
listIds | array of string | ano | |
purposeId | string or null | ano | null = Bez účelu zpracování. |
createdAt | string | ano | |
updatedAt | string | ano | |
kind | FormKind | ano | classic = in the page; popup = a dialog of popup.js; slide = Vyjíždějící (a button of popup.js opens it). |
tags | array of string | ano | |
fills | number | ano | Number of sign-ups (Historie vyplnění). |
publicId | string | ano | |
previewUrl | string | ano | hostedUrl?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).
| Pole | Typ | Povinné | Popis |
|---|---|---|---|
enabled | boolean | ano | The own automation runs. |
automation | object or null | ano | custom = changed in the automation editor (more nodes): shown only, edited there. |
templateId | string or null | ano | |
senderId | string or null | ano | |
senderName | string | ano | |
replyTo | string | ano | |
template | object or null | ano | The template asked for (?templateId=) or the automation's one, with the coupon keys it carries. |
couponStackId | string or null | ano | The stack whose tag the template carries. |
stacks | array of FormWelcomeStack | ano | |
others | array of object | ano | Other automations started by this form. |
FormWelcomeInput
| Pole | Typ | Povinné | Popis |
|---|---|---|---|
enabled | boolean | ano | |
templateId | string or null | ne | |
senderId | string or null | ne | |
senderName | string | ne | |
replyTo | string | ne | |
couponStackId | string or null | ne |
FormWelcomeStack
A coupon stack offered for E-mail po přihlášení (its tag in the template gives every subscriber one code).
| Pole | Typ | Povinné | Popis |
|---|---|---|---|
id | string | ano | |
name | string | ano | |
mergeKey | string | ano | |
tag | string | ano | {{coupon_<mergeKey>}} |
free | number | ano | |
low | boolean | ano | 50 or fewer free codes. |
GridTagsInput
Bulk label change: add and remove, or tags = the new labels of every row.
| Pole | Typ | Povinné | Popis |
|---|---|---|---|
ids | array of string | ano | |
add | array of string | ne | |
remove | array of string | ne | |
tags | array of string | ne |
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).
| Pole | Typ | Povinné | Popis |
|---|---|---|---|
trigger | PopupTrigger | ano | |
delaySeconds | number | ano | delay: 1 to 600 seconds after the page is ready. |
scrollUnit | one of: percent, pixels | ano | scroll in % of the page (10 to 100) or in pixels from the top (1 to 20000, SmartEmailing). |
scrollPercent | number | ano | |
scrollPixels | number | ano | |
repeat | PopupRepeat | ano | session = 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. |
repeatDays | number | ano | |
after | PopupAfter | ano | thanks = 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). |
closeSeconds | number | ano | Děkovací okno closes itself after 0 to 60 seconds, 0 = stays open until the visitor closes it. |
delayScope | one of: page, site | ano | site = the delay counts time on the whole e-shop across page views; page = each page starts again. |
mobile | one of: off, sheet | ano | sheet = a bottom sheet on phones and tablets; off = never there (SmartEmailing's recommended default). |
side | one of: left, right | ano | Slide-in: the button at the bottom right or left. |
skipLoggedIn | boolean | ano | Never for a signed-in Shoptet customer (dataLayer). |
skipFromEmail | boolean | ano | Never for visitors from a Poštárna e-mail (marker parameter emailParam or utm_source in emailSources), 365 days. |
emailParam | string | ano | |
emailSources | array of string | ano | |
skipAfterOrder | boolean | ano | Never after an order (thank-you page address contains one of orderPatterns), 365 days. |
orderPatterns | array of string | ano | |
excludePatterns | array of string | ano | Never on addresses containing one of these (cart, checkout). |
PopupTrigger
one of: load, delay, scroll