Preskočiť na obsah
API dokumentácia

Kontakty

Referencia API pre kontakty: polia profilu, stav súhlasu, potlačenia, vlastné polia, účely spracúvania, aktivity a export a výmaz podľa GDPR.

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

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

Operácie

MetódaCestaPopis
GET/api/v1/tenants/{tenant}/contactsList contacts (search, filters, paging)
POST/api/v1/tenants/{tenant}/contactsCreate a contact
POST/api/v1/tenants/{tenant}/contacts/bulkStart a bulk action over contacts in the background
GET/api/v1/tenants/{tenant}/contacts/duplicatesFind possible duplicate contacts
GET/api/v1/tenants/{tenant}/contacts/summaryCount contacts by status
GET/api/v1/tenants/{tenant}/contacts/{contact_id}Get a contact
PATCH/api/v1/tenants/{tenant}/contacts/{contact_id}Update a contact
DELETE/api/v1/tenants/{tenant}/contacts/{contact_id}Delete a contact
GET/api/v1/tenants/{tenant}/contacts/{contact_id}/activitiesList activities of a contact
POST/api/v1/tenants/{tenant}/contacts/{contact_id}/activitiesAdd a manual activity (note) to a contact
GET/api/v1/tenants/{tenant}/contacts/{contact_id}/automation-runsThe real journey of a contact through the automations (runs and steps)
POST/api/v1/tenants/{tenant}/contacts/{contact_id}/blacklistBlacklist a contact
DELETE/api/v1/tenants/{tenant}/contacts/{contact_id}/blacklistRemove a contact from the blacklist
GET/api/v1/tenants/{tenant}/contacts/{contact_id}/couponsList coupons given to a contact
POST/api/v1/tenants/{tenant}/contacts/{contact_id}/eraseErase a contact (GDPR, irreversible)
GET/api/v1/tenants/{tenant}/contacts/{contact_id}/exportExport all data of a contact (GDPR access)
GET/api/v1/tenants/{tenant}/contacts/{contact_id}/neighborsPrevious and next contact of a filtered list
GET/api/v1/tenants/{tenant}/contacts/{contact_id}/purposesList consents (purposes) of a contact
POST/api/v1/tenants/{tenant}/contacts/{contact_id}/purposesRecord a consent (purpose) of a contact
POST/api/v1/tenants/{tenant}/contacts/{contact_id}/purposes/{consent_id}/withdrawWithdraw a consent of a contact
GET/api/v1/tenants/{tenant}/contacts/{contact_id}/segmentsList segments a contact belongs to
GET/api/v1/tenants/{tenant}/contacts/{contact_id}/smsGet the SMS of a contact
POST/api/v1/tenants/{tenant}/contacts/{contact_id}/sms/allowAllow marketing SMS to a contact
POST/api/v1/tenants/{tenant}/contacts/{contact_id}/sms/optoutBlock marketing SMS to a contact
POST/api/v1/tenants/{tenant}/contacts/{contact_id}/unsubscribeUnsubscribe a contact from everything
GET/api/v1/tenants/{tenant}/custom-fieldsList custom fields
POST/api/v1/tenants/{tenant}/custom-fieldsCreate a custom field
PATCH/api/v1/tenants/{tenant}/custom-fields/{field_id}Update a custom field
DELETE/api/v1/tenants/{tenant}/custom-fields/{field_id}Delete a custom field
GET/api/v1/tenants/{tenant}/purposesList purposes of processing (consent types)
POST/api/v1/tenants/{tenant}/purposesCreate a purpose of processing
PATCH/api/v1/tenants/{tenant}/purposes/{purpose_id}Update a purpose of processing
DELETE/api/v1/tenants/{tenant}/purposes/{purpose_id}Delete a purpose of processing
POST/api/v1/tenants/{tenant}/purposes/{purpose_id}/to-contact-listCreate a list of the contacts with a purpose
GET/api/v1/tenants/{tenant}/searchSearch contacts, campaigns, templates and more
GET/api/v1/tenants/{tenant}/suppressionsList suppressed addresses
POST/api/v1/tenants/{tenant}/suppressionsSuppress an address
POST/api/v1/tenants/{tenant}/suppressions/blacklist-importImport addresses to the blacklist
DELETE/api/v1/tenants/{tenant}/suppressions/{email}Remove one suppression

List contacts (search, filters, paging)

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

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

Searches contacts. Filters: q (e-mail, name or #id), tab (all, bounced, no_list, blacklisted, complained), status (pending, subscribed, unsubscribed, bounced, complained), engagement (A to E, N), shop. Paged, newest first.

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.
createdFromquerystringnie
createdToquerystringnie
engagementquerystringnieEngagement grade A to E or N (unknown).
engagementOpquerystringnie
fieldsquerystringnie
importquerystringnie
listquerystringnie
listOpquerystringnie
pagequeryintegerniePage number, from 1. default 1, min 1
pageSizequeryintegernieItems per page, 1 to 100. default 25, min 1, max 100
qquerystringnieSearch text. max 200 chars
shopquerystringnieShop id filter.
sortquerystringnieSort fields separated by commas, "-" = descending, at most 3 (e.g. name,-id).
sourcequerystringnie
sourceOpquerystringnie
statequerystringnie
stateOpquerystringnie
statusqueryone of: pending, subscribed, unsubscribed, bounced, complainednieContact status.
tabqueryone of: all, bounced, no_list, blacklisted, complainednieTab filter.

Odpovede

  • 200 OK: application/json object

Chyby

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

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

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

Creates a contact by hand (like one import row). Needs a purpose of processing and consentConfirmed true (the user confirms a documented consent). Other profile fields by their API names: titleBefore, titleAfter, mobile, companyId, street, postalCode, country, nameDay, note, salutation, salutationFormal, vocativeFirstName, vocativeLastName, affiliateId.

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: email, shopId.

PoleTypPovinnéPopis
emailstringáno
shopIdstringáno
purposeIdstringnie
consentConfirmedbooleannie
listIdsarray of stringnie
validFromstringnieA day (YYYY-MM-DD) or an ISO date-time; default now.
smsone of: rules, allow, blocknieMarketing SMS (needs a phone or mobile): allow (with smsConsentConfirmed, a consent of the SMS purpose), block (staff's block of the number) or rules (default: a customer within 12 months of a purchase).
smsConsentConfirmedbooleannie
firstNamestringnie
lastNamestringnie
titleBeforestringnie
titleAfterstringnie
salutationstringnie
salutationFormalstringnie
vocativeFirstNamestringnie
vocativeLastNamestringnie
genderone of: f, m, nullnie
languagestringnie
companystringnie
companyIdstringnie
phonestringnie
mobilestringnie
streetstringnie
citystringnie
postalCodestringnie
countrystring or nullnie
birthdaystring or nullnie
nameDaystring or nullnie
notestringnie
affiliateIdstringnie
customFieldsmap of boolean or string or number or array of string 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.
429429 rate_limited: wait Retry-After seconds.
503unavailablebusy

Start a bulk action over contacts in the background

POST /api/v1/tenants/{tenant}/contacts/bulk

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

Bulk actions of the contacts grid as a background job (core/contacts_bulk.py, KG-08): body {action: add_to_list | blacklist | delete | sms_allow | sms_block | move_to_shop, contactIds: [ids] (the ticked rows) or all: true (every contact matching the grid filters given as the query string of GET /contacts), listIds for add_to_list, consentConfirmed true for sms_allow, targetShopId for move_to_shop}. Contacts on the blacklist are left out (move_to_shop moves them too). 202 {jobId, count}; the end comes as the notification contacts_bulk_done. move_to_shop with dryRun: true is its preview (core/contacts_move.py), nothing changes: 200 {count, move, skipped: {hasOrders, alreadyInShop}, lists: [{listId, name, toListId, toName, active, unsubscribed}], automationRuns}.

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.
createdFromquerystringnie
createdToquerystringnie
engagementquerystringnie
engagementOpquerystringnie
fieldsquerystringnie
importquerystringnie
listquerystringnie
listOpquerystringnie
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
shopquerystringnieOnly objects of this shop (shop id).
sortquerystringnieSort fields separated by commas, "-" = descending, at most 3 (e.g. name,-id).
sourcequerystringnie
sourceOpquerystringnie
statequerystringnie
stateOpquerystringnie
statusquerystringnieStatus filter.
tabquerystringnie

Telo požiadavky (application/json)

PoleTypPovinnéPopis
actionone of: blacklist, add_to_list, delete, sms_allow, sms_block, move_to_shopáno
contactIdsarray of stringnieThe ticked contacts; or all: every contact matching the grid query (no cap).
allbooleannie
listIdsarray of stringnieadd_to_list: the manual lists.
consentConfirmedbooleanniesms_allow: the person confirms that the contacts' consent to marketing SMS is documented (required true).
targetShopIdstringniemove_to_shop ("Přesunout do e-shopu"): the e-shop the contacts move to (blacklisted contacts move too).
dryRunbooleanniemove_to_shop only: the preview, nothing changes (ContactsMovePreview, 200).

Odpovede

Chyby

StavKódHodnoty message
400validationall, contactIds, dryRun, q
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

Find possible duplicate contacts

GET /api/v1/tenants/{tenant}/contacts/duplicates

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

Possible duplicates (core/contacts.possible_duplicates): groups of contacts with the same phone or the same name and company. A report only, nothing is merged.

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

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

Count contacts by status

GET /api/v1/tenants/{tenant}/contacts/summary

Oprávnenie: oblasť contacts, ú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.
createdFromquerystringnie
createdToquerystringnie
engagementquerystringnie
engagementOpquerystringnie
fieldsquerystringnie
listquerystringnie
listOpquerystringnie
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
shopquerystringnieOnly objects of this shop (shop id).
sortquerystringnieSort fields separated by commas, "-" = descending, at most 3 (e.g. name,-id).
sourcequerystringnie
sourceOpquerystringnie
statequerystringnie
stateOpquerystringnie
statusquerystringnieStatus filter.
tabquerystringnie

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

Get a contact

GET /api/v1/tenants/{tenant}/contacts/{contact_id}

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

Contact card: profile fields, status and consent, lists, last 90 days of e-mail activity, recent activities and orders (totals per currency).

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.
contact_idpathstringánoId of the contact (string of digits).

Odpovede

Chyby

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

Update a contact

PATCH /api/v1/tenants/{tenant}/contacts/{contact_id}

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

Changes profile fields and custom fields of a contact (never its e-mail, status or consent). Other profile fields by their API names: titleBefore, titleAfter, mobile, companyId, street, postalCode, country, nameDay, note, salutation, salutationFormal, vocativeFirstName, vocativeLastName, affiliateId.

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.
contact_idpathstringánoId of the contact (string of digits).

Telo požiadavky (application/json)

PoleTypPovinnéPopis
firstNamestringnie
lastNamestringnie
titleBeforestringnie
titleAfterstringnie
salutationstringnie
salutationFormalstringnie
vocativeFirstNamestringnie
vocativeLastNamestringnie
genderone of: f, m, nullnie
languagestringnie
companystringnie
companyIdstringnie
phonestringnie
mobilestringnie
streetstringnie
citystringnie
postalCodestringnie
countrystring or nullnie
birthdaystring or nullnie
nameDaystring or nullnie
notestringnie
affiliateIdstringnie
customFieldsmap of boolean or string or number or array of string or nullnie
emailstringnie

Odpovede

Chyby

StavKódHodnoty message
400validationemail, email_domain
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
409conflictemail, email_suppressed
429429 rate_limited: wait Retry-After seconds.
503unavailablebusy

Delete a contact

DELETE /api/v1/tenants/{tenant}/contacts/{contact_id}

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

Deletes a contact (its suppression stays, so it is never mailed again by mistake). For a data erasure request use erase_contact.

204, 404, or 423 recently_sent: a campaign e-mail to the contact is queued or went out within 24 hours.

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.
contact_idpathstringánoId of the contact (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
423recently_sent
429429 rate_limited: wait Retry-After seconds.
503unavailablebusy

List activities of a contact

GET /api/v1/tenants/{tenant}/contacts/{contact_id}/activities

Oprávnenie: oblasť contacts, ú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.
contact_idpathstringánoId of the contact (string of digits).
fromquerystringnieStart of the period (YYYY-MM-DD local day, or ISO time where noted).
pagequeryintegerniePage number, from 1. default 1, min 1
pageSizequeryintegernieItems per page, 1 to 100. default 25, min 1, max 100
presetqueryone of: all, today, yesterday, 7d, 30d, 90d, this_week, last_week, month, last_month, this_year, last_yearnieA period preset instead of from / to, resolved to the account's calendar days ending today (weeks start on Monday; all = no limit where the list allows it). The same days as from / to give the same numbers.
qquerystringnieSearch text (case and diacritics insensitive). max 200 chars
toquerystringnieEnd of the period (YYYY-MM-DD local day, or ISO time where noted).
typequerystringnie

Odpovede

  • 200 OK: application/json object

Chyby

StavKódHodnoty message
400validationq, 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.
404not_found
429429 rate_limited: wait Retry-After seconds.
503unavailablebusy

Add a manual activity (note) to a contact

POST /api/v1/tenants/{tenant}/contacts/{contact_id}/activities

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

Adds a note, call, deal or other activity to a contact.

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.
contact_idpathstringánoId of the contact (string of digits).

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

PoleTypPovinnéPopis
kindone of: other, note, call, dealáno
titlestringáno
bodystringnie
atstringnieISO time; default now.

Odpovede

Chyby

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

The real journey of a contact through the automations (runs and steps)

GET /api/v1/tenants/{tenant}/contacts/{contact_id}/automation-runs

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

The real journey of one contact through the automations (contact card, tab Automatizace): its runs, newest first, each with {automation: {id, name, status}, nodes: {key: {type, name}}} and its real steps (outcome, branch, next node, reason). Paged. 404 for a contact of another tenant.

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.
contact_idpathstringánoId of the contact (string of digits).
pagequeryintegerniePage number, from 1. default 1, min 1
pageSizequeryintegernieItems per page, 1 to 100. default 25, min 1, max 100

Odpovede

  • 200 OK: application/json object

Chyby

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

Blacklist a contact

POST /api/v1/tenants/{tenant}/contacts/{contact_id}/blacklist

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

Puts the contact on the blacklist (manual suppression: never mailed).

Card menu "Přidat na blacklist" (KK-02): 201 newly added, 200 already there (the note stays); 409 suppression_locked with params.reason when the address is suppressed for another reason.

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.
contact_idpathstringánoId of the contact (string of digits).

Telo požiadavky (application/json)

PoleTypPovinnéPopis
notestringáno

Odpovede

  • 200 OK: it already existed or nothing changed: application/json BlacklistResult
  • 201 Created (200 when it already existed or nothing changed): application/json BlacklistResult

Chyby

StavKódHodnoty message
400validationemail, note
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
409suppression_locked
429429 rate_limited: wait Retry-After seconds.
503unavailablebusy

Remove a contact from the blacklist

DELETE /api/v1/tenants/{tenant}/contacts/{contact_id}/blacklist

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

Takes the contact off the blacklist (it stays unsubscribed until it subscribes again).

Card menu "Odebrat z blacklistu": 204; 404 when the contact is not on the blacklist; 409 suppression_locked when its suppression has another reason (only a confirmed double opt-in lifts those).

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.
contact_idpathstringánoId of the contact (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
409suppression_locked
429429 rate_limited: wait Retry-After seconds.
503unavailablebusy

List coupons given to a contact

GET /api/v1/tenants/{tenant}/contacts/{contact_id}/coupons

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

The codes of one contact (tab Slevové kupóny): code, stack, status, assigned and used.

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.
contact_idpathstringánoId of the contact (string of digits).

Odpovede

  • 200 OK: application/json object

Chyby

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

Erase a contact (GDPR, irreversible)

POST /api/v1/tenants/{tenant}/contacts/{contact_id}/erase

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

Erasure on request (GDPR): erases the person and their data, keeps only a keyed hash that blocks a new import.

Erasure on request: the tenant's data in the request's transaction, then the consent log as the platform role (only after the tenant transaction committed). When that second step fails, the same request again finishes it (review of batch 4): the contact is gone, but its consent log rows still name the address (cd.erasure_state); a contact that was never erased here stays 404.

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.
contact_idpathstringánoId of the contact (string of digits).

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

PoleTypPovinnéPopis
confirmbooleanáno

Odpovede

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

Export all data of a contact (GDPR access)

GET /api/v1/tenants/{tenant}/contacts/{contact_id}/export

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

Everything stored about one contact (data access request), as JSON.

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.
contact_idpathstringánoId of the contact (string of digits).

Odpovede

  • 200 OK: application/json map of any

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

Previous and next contact of a filtered list

GET /api/v1/tenants/{tenant}/contacts/{contact_id}/neighbors

Oprávnenie: oblasť contacts, ú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.
contact_idpathstringánoId of the contact (string of digits).
createdFromquerystringnie
createdToquerystringnie
engagementquerystringnie
engagementOpquerystringnie
fieldsquerystringnie
importquerystringnie
listquerystringnie
listOpquerystringnie
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
shopquerystringnieOnly objects of this shop (shop id).
sortquerystringnieSort fields separated by commas, "-" = descending, at most 3 (e.g. name,-id).
sourcequerystringnie
sourceOpquerystringnie
statequerystringnie
stateOpquerystringnie
statusquerystringnieStatus filter.
tabquerystringnie

Odpovede

Chyby

StavKódHodnoty message
400validationq
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 consents (purposes) of a contact

GET /api/v1/tenants/{tenant}/contacts/{contact_id}/purposes

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

Consents (purposes of processing) of a contact.

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.
contact_idpathstringánoId of the contact (string of digits).

Odpovede

  • 200 OK: application/json object

Chyby

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

Record a consent (purpose) of a contact

POST /api/v1/tenants/{tenant}/contacts/{contact_id}/purposes

Oprávnenie: oblasť contacts, ú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.
contact_idpathstringánoId of the contact (string of digits).

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

PoleTypPovinnéPopis
validFromstringnie
validUntilstringnie
purposeIdstringáno

Odpovede

  • 201 Created: 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

Withdraw a consent of a contact

POST /api/v1/tenants/{tenant}/contacts/{contact_id}/purposes/{consent_id}/withdraw

Oprávnenie: oblasť contacts, ú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.
contact_idpathstringánoId of the contact (string of digits).
consent_idpathstringánoId of the consent (string of digits).

Odpovede

  • 200 OK: application/json object

Chyby

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

List segments a contact belongs to

GET /api/v1/tenants/{tenant}/contacts/{contact_id}/segments

Oprávnenie: oblasť contacts, ú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.
contact_idpathstringánoId of the contact (string of digits).

Odpovede

  • 200 OK: application/json object

Chyby

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

Get the SMS of a contact

GET /api/v1/tenants/{tenant}/contacts/{contact_id}/sms

Oprávnenie: oblasť contacts, ú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.
contact_idpathstringánoId of the contact (string of digits).

Odpovede

Chyby

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

Allow marketing SMS to a contact

POST /api/v1/tenants/{tenant}/contacts/{contact_id}/sms/allow

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

Povolit SMS: body {confirmed: true (the contact's consent is documented), liftOptOut (also lift the contact's own opt-out: it gave a new consent)}. A consent of the SMS purpose (source admin, who and when) and the manual block lifted. 409 purpose (no SMS purpose), optout (the contact opted out itself, liftOptOut not set).

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.
contact_idpathstringánoId of the contact (string of digits).

Telo požiadavky (application/json)

PoleTypPovinnéPopis
confirmedtrueáno
liftOptOutbooleannie

Odpovede

Chyby

StavKódHodnoty message
400validationconfirmed, liftOptOut
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

Block marketing SMS to a contact

POST /api/v1/tenants/{tenant}/contacts/{contact_id}/sms/optout

Oprávnenie: oblasť contacts, ú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.
contact_idpathstringánoId of the contact (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
409conflictphone
429429 rate_limited: wait Retry-After seconds.
503unavailablebusy

Unsubscribe a contact from everything

POST /api/v1/tenants/{tenant}/contacts/{contact_id}/unsubscribe

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

Unsubscribes a contact from all e-mails, as its own unsubscribe link would (only a new double opt-in subscribes it again).

Unsubscribes the contact from everything, as its own unsubscribe link would (store.unsubscribe: status unsubscribed, the address suppressed, queued e-mails skipped, the consent log). Only a new double opt-in subscribes it again. Body optional {note}: up to 500 characters for the consent log. Answers the contact detail.

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.
contact_idpathstringánoId of the contact (string of digits).

Telo požiadavky (application/json)

PoleTypPovinnéPopis
notestringnieReason for the consent log, up to 500 characters. max 500 chars

Odpovede

Chyby

StavKódHodnoty message
400validationnote
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 custom fields

GET /api/v1/tenants/{tenant}/custom-fields

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

Custom contact fields (id, name, type, options).

Parametre

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

Odpovede

  • 200 OK: application/json object

Chyby

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

Create a custom field

POST /api/v1/tenants/{tenant}/custom-fields

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

Creates a custom contact field.

Parametre

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

Telo požiadavky (application/json)

PoleTypPovinnéPopis
namestringáno
typeone of: number, text, date, checkbox, textarea, select, multi_checkbox, radioáno
optionsarray 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.
429429 rate_limited: wait Retry-After seconds.
503unavailablebusy

Update a custom field

PATCH /api/v1/tenants/{tenant}/custom-fields/{field_id}

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

Renames a custom field or changes its options.

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.
field_idpathstringánoId of the field (string of digits).

Telo požiadavky (application/json)

PoleTypPovinnéPopis
namestringnie
optionsarray 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.
503unavailablebusy

Delete a custom field

DELETE /api/v1/tenants/{tenant}/custom-fields/{field_id}

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

Deletes a custom field and its values.

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.
field_idpathstringánoId of the field (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.
503unavailablebusy

List purposes of processing (consent types)

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

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

Purposes of processing (consents) with legal basis and validity.

Parametre

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

Odpovede

  • 200 OK: application/json object

Chyby

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

Create a purpose of processing

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

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

Creates a purpose of processing.

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
legalBasisone of: consent, contract, legal_obligation, legitimate_interest, vital_interest, public_interestáno
validityDaysnumber or nullnieOlder callers send whole days; the purpose form sends validity.
validityValidityLength or nullnie
notesstringáno

Odpovede

  • 201 Created: application/json Purpose

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 purpose of processing

PATCH /api/v1/tenants/{tenant}/purposes/{purpose_id}

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

Changes a purpose of processing.

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.
purpose_idpathstringánoId of the purpose (string of digits).

Telo požiadavky (application/json)

PoleTypPovinnéPopis
namestringnie
legalBasisone of: consent, contract, legal_obligation, legitimate_interest, vital_interest, public_interestnie
validityDaysnumber or nullnieOlder callers send whole days; the purpose form sends validity.
validityValidityLength or nullnie
notesstringnie

Odpovede

Chyby

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

Delete a purpose of processing

DELETE /api/v1/tenants/{tenant}/purposes/{purpose_id}

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

Deletes an unused purpose of processing.

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.
purpose_idpathstringánoId of the purpose (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
409conflictin_use
429429 rate_limited: wait Retry-After seconds.
503unavailablebusy

Create a list of the contacts with a purpose

POST /api/v1/tenants/{tenant}/purposes/{purpose_id}/to-contact-list

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

Body {listId}; answers {count} of the consents added.

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.
purpose_idpathstringánoId of the purpose (string of digits).

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

PoleTypPovinnéPopis
listIdstringáno

Odpovede

  • 200 OK: application/json object

Chyby

StavKódHodnoty message
400validationlistId
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}/search

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

Quick search over contacts and lists (at least 2 characters).

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.
qquerystringnieSearch text. max 200 chars

Odpovede

Chyby

StavKódHodnoty message
400validationq
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 suppressed addresses

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

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

Suppression list (addresses never mailed) with reason.

Parametre

NázovKdeTypPovinnéPopis
tenantpathstring (uuid)ánoPublic id of the company (tenant), a UUID: GET /api/v3/account-info answers it as data.guid; the app shows it on the API keys page.
pagequeryintegerniePage number, from 1. default 1, min 1
pageSizequeryintegernieItems per page, 1 to 100. default 25, min 1, max 100
qquerystringnieSearch text. max 200 chars
reasonquerystringnieReason filter (manual, unsubscribed, hard_bounce, complaint...).

Odpovede

  • 200 OK: application/json object

Chyby

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

Suppress an address

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

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

Adds an address to the suppression list (manual blacklist), also when it is not a contact.

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
emailstringánoAddress.
detailstringnieNote.

Odpovede

  • 200 OK: it already existed or nothing changed: application/json object
  • 201 Created (200 when it already existed or nothing changed): application/json object

Chyby

StavKódHodnoty message
400validationdetail, email
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

Import addresses to the blacklist

POST /api/v1/tenants/{tenant}/suppressions/blacklist-import

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

SmartEmailing's blacklist on the tenant's blacklist (core/blacklist.py, migration 0180): body {contacts: the SmartEmailing backup list (blacklisted.json) or {emails: [addresses]}, apply: true to write (default: a dry run that writes nothing)}. Idempotent; nothing is sent, no automation starts, no other suppression or contact changes. 200 with the counts (never an 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.

Telo požiadavky (application/json)

PoleTypPovinnéPopis
applyanynie
contactsanynie
emailsanynie

Odpovede

  • 200 OK: application/json object

Chyby

StavKódHodnoty message
400validationapply, contacts
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

Remove one suppression

DELETE /api/v1/tenants/{tenant}/suppressions/{email}

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

Removes a manual suppression of an address (other reasons are locked).

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.
emailpathstringánoE-mail address (URL encoded).

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

Schémy

Activity

PoleTypPovinnéPopis
idstringáno
typeActivityTypeáno
atstringáno
titlestringánoCampaign, form or order name; tenant data, shown as is.

ActivityDetail

What the expanded activity card shows; null = none.

PoleTypPovinnéPopis
emailstring or nulláno
messageKindone of: campaign, automation, nulláno
campaignIdstring or nulláno
campaignNamestring or nulláno
automationIdstring or nulláno
automationNamestring or nulláno
templateIdstring or nulláno
templateNamestring or nulláno
sourcestring or nulláno
orderIdstring or nulláno
surveyIdstring or nullnieThe survey of a Dotazník card (its results).
bounceReasonone of: unknown, inactive, blockedcontent, overquota, emaildoesntexist, relayerror, domaindoesntexist, invalidemail, remoteconfigerror, nullnieThe return reason of a bounce card (Důvod) and the id of the bounce (ID bounce).
bounceIdstring or nullnie

ActivityType

one of: other, unsubscribed, bounced, form, sent, opened, clicked, doi, survey, order, status_change, web_tracking, note, call, deal

AutomationRunStatus

one of: active, completed, exited

AutomationStatus

one of: active, draft, paused

AutomationStepOutcome

one of: expired, queued, yes, no, failed, skipped, passed, released, goal, reset, end, entered, variant, jumped

BillingCurrency

one of: CZK, EUR

BlacklistResult

A blacklist entry made from the contact card (POST /contacts/{id}/blacklist).

PoleTypPovinnéPopis
emailstringáno
reasonone of: invalid, manual, complaint, unsubscribed, hard_bounce, soft_bounce_limitáno
sourcestringáno
detailstringánoThe note why (empty when none was given).
createdAtstringáno
createdbooleanánoFalse when the contact was already on the blacklist (its note stays).

ConsentBasis

one of: none, soft_opt_in_customer, double_opt_in, imported

ContactActivity

PoleTypPovinnéPopis
bodystringánoText of a custom activity, '' for the others.
detailActivityDetailnieReferences of the activity (missing from older servers).
idstringáno
typeActivityTypeáno
atstringáno
titlestringánoCampaign, form or order name; tenant data, shown as is.

ContactAutomationRun

A run of one contact with its automation (contact card, tab Automatizace).

PoleTypPovinnéPopis
automationobjectáno
nodesmap of objectánoThe nodes of the automation by key: type and name (the name may be empty).
idstringáno
contactobjectáno
statusAutomationRunStatusáno
nodestring or nulláno
entryKeystringáno
enteredAtstringáno
dueAtstring or nulláno
finishedAtstring or nulláno
exitReasonstring or nulláno
stepsarray of objectánoThe real steps (automation_steps): reason = why a step was skipped or failed (for an SMS step also why the delivery skipped its SMS later), messageId = the e-mail it queued, smsId and smsStatus = the SMS of a send_sms step and its state now.
triggerstring or nullnieThe trigger node the run came in through.

ContactConsent

PoleTypPovinnéPopis
idstringáno
purposeIdstringáno
namestringáno
legalBasisone of: consent, contract, legal_obligation, legitimate_interest, vital_interest, public_interestáno
validFromstringáno
validUntilstring or nulláno
withdrawnAtstring or nulláno
sourcestringáno
stateone of: expired, valid, future, withdrawnáno

ContactCoupon

PoleTypPovinnéPopis
idstringáno
codestringáno
statusCouponStatusáno
assignedAtstring or nulláno
usedAtstring or nulláno
stackIdstringáno
stackNamestringáno
shopIdstringáno

ContactCreateInput

A contact added by hand: like a one-row import. With a purpose the confirmation is required and the consent is documented; without one the consent is weak (KK-17).

PoleTypPovinnéPopis
emailstringáno
shopIdstringáno
purposeIdstringnie
consentConfirmedbooleannie
listIdsarray of stringnie
validFromstringnieA day (YYYY-MM-DD) or an ISO date-time; default now.
smsone of: rules, allow, blocknieMarketing SMS (needs a phone or mobile): allow (with smsConsentConfirmed, a consent of the SMS purpose), block (staff's block of the number) or rules (default: a customer within 12 months of a purchase).
smsConsentConfirmedbooleannie
firstNamestringnie
lastNamestringnie
titleBeforestringnie
titleAfterstringnie
salutationstringnie
salutationFormalstringnie
vocativeFirstNamestringnie
vocativeLastNamestringnie
genderone of: f, m, nullnie
languagestringnie
companystringnie
companyIdstringnie
phonestringnie
mobilestringnie
streetstringnie
citystringnie
postalCodestringnie
countrystring or nullnie
birthdaystring or nullnie
nameDaystring or nullnie
notestringnie
affiliateIdstringnie
customFieldsmap of boolean or string or number or array of string or nullnie

ContactDetail

PoleTypPovinnéPopis
guidstring or nullnieThe grid search finds it as #GUID (KG-07).
sourcesarray of ContactSourceRecordnieSource records; the contact's own state is the most restrictive one.
editedFieldsarray of stringnieFields a person edited in Poštárna: imports and syncs never overwrite them.
phonestringáno
mobilestringáno
titleBeforestringáno
titleAfterstringáno
salutationstringáno
salutationFormalstringáno
vocativeFirstNamestringáno
vocativeLastNamestringáno
genderone of: f, m, nulláno
languagestringáno
companystringáno
companyIdstringáno
streetstringáno
citystringáno
postalCodestringáno
countrystring or nulláno
birthdaystring or nulláno
nameDaystring or nullánoMM-DD
notestringáno
affiliateIdstringáno
sourceContactSourceáno
seOriginone of: double-opt-in, unsubscribe, purpose, webform, api-v3, csv-import, web-tracking, user-interaction, backend-job, internal, integration-base, integration-upgates, integration-colosseum-ticket, integration-shoptet, integration-bloomreach, unknown, nullnieSmartEmailing's Původ kontaktu code (KK-19) when SmartEmailing knew the contact; else the source is shown.
consentBasisConsentBasisáno
consentWeakbooleanáno
statusAtstringánoWhen the current status (ContactListItem.status) started; always set.
consentAtstring or nullánoWhen the current consent was given; null without one (e.g. weak consent).
consentSeListsarray of stringnieSmartEmailing lists the migration found the contact confirmed in (names in Poštárna); [] without.
softBouncesnumberáno
lastSentAtstring or nulláno
lastOpenAtstring or nulláno
lastClickAtstring or nulláno
suppressedAtstring or nulláno
suppressionNotestring or nullánoNote given when the address was put on the blacklist by hand (suppressionReason 'manual'), else null.
stats90dContactStatsáno
listsarray of ContactListMembershipáno
recentActivitiesarray of ActivityánoNewest first, at most 20.
ordersarray of ContactOrderánoNewest first, at most 20.
orderTotalsarray of OrderTotaláno
engagementAtstring or nullánoWhen the engagement grade last changed (weekly recomputation).
customFieldsmap of CustomFieldValueánoValues of custom fields by field id.
updatedAtstringáno
idstringáno
emailstringáno
firstNamestringáno
lastNamestringáno
statusone of: pending, subscribed, unsubscribed, bounced, complained, customeráno
engagementone of: A, B, C, D, E, Náno
excludedbooleanánoLong inactive yet mailed often (recomputed weekly with the engagement).
shopIdstring or nullánoMain e-shop (contacts.shop_id), null when unknown.
suppressionReasonone of: invalid, manual, complaint, unsubscribed, hard_bounce, soft_bounce_limit, nullánoSet when the address is on the tenant suppression list.
blacklistedbooleannieOn the tenant's blacklist ("Na blacklistu"): a manual entry, or an entry of SmartEmailing's blacklist that keeps its own reason (migration 0180). Older servers leave it out: then suppressionReason 'manual' decides.
blacklistedAtstring or nullnieWhen the address went on the blacklist (the suppression's time), null when it is not on it ("Přidán na blacklist").
stateone of: active, bounced, blacklistednieThe contact state in three values; older servers leave it out (contactState derives it).
createdAtstringáno
extramap of boolean or string or number or nullnieValues of the extra columns asked for (ContactQuery.fields): dates as YYYY-MM-DD, times as ISO.

ContactListItem

PoleTypPovinnéPopis
idstringáno
emailstringáno
firstNamestringáno
lastNamestringáno
statusone of: pending, subscribed, unsubscribed, bounced, complained, customeráno
engagementone of: A, B, C, D, E, Náno
excludedbooleanánoLong inactive yet mailed often (recomputed weekly with the engagement).
shopIdstring or nullánoMain e-shop (contacts.shop_id), null when unknown.
suppressionReasonone of: invalid, manual, complaint, unsubscribed, hard_bounce, soft_bounce_limit, nullánoSet when the address is on the tenant suppression list.
blacklistedbooleannieOn the tenant's blacklist ("Na blacklistu"): a manual entry, or an entry of SmartEmailing's blacklist that keeps its own reason (migration 0180). Older servers leave it out: then suppressionReason 'manual' decides.
blacklistedAtstring or nullnieWhen the address went on the blacklist (the suppression's time), null when it is not on it ("Přidán na blacklist").
stateone of: active, bounced, blacklistednieThe contact state in three values; older servers leave it out (contactState derives it).
createdAtstringáno
extramap of boolean or string or number or nullnieValues of the extra columns asked for (ContactQuery.fields): dates as YYYY-MM-DD, times as ISO.

ContactListMembership

PoleTypPovinnéPopis
listIdstringáno
namestringáno
stateListMembershipStateáno
changedAtstringáno
listSizenumberáno

ContactNeighbors

PoleTypPovinnéPopis
prevIdstring or nulláno
nextIdstring or nulláno

ContactOrder

PoleTypPovinnéPopis
idstringáno
shopIdstringáno
codestringáno
statusOrderStatusáno
sourceStatusstringánoState name in the e-shop
currencyCurrencyáno
totalWithVatstring or nullánoDecimal string with VAT in the order currency, as sent by the e-shop.
orderedAtstringáno
paidAtstring or nulláno
itemsarray of OrderItemPreviewánoFirst items only; itemCount is the full number of lines.
itemCountnumberáno

ContactPatch

Profile changes; the address, state and consent never change here. A null custom field value removes it.

PoleTypPovinnéPopis
firstNamestringnie
lastNamestringnie
titleBeforestringnie
titleAfterstringnie
salutationstringnie
salutationFormalstringnie
vocativeFirstNamestringnie
vocativeLastNamestringnie
genderone of: f, m, nullnie
languagestringnie
companystringnie
companyIdstringnie
phonestringnie
mobilestringnie
streetstringnie
citystringnie
postalCodestringnie
countrystring or nullnie
birthdaystring or nullnie
nameDaystring or nullnie
notestringnie
affiliateIdstringnie
customFieldsmap of boolean or string or number or array of string or nullnie
emailstringnie

ContactSegment

PoleTypPovinnéPopis
idstringáno
namestringáno
shopIdstringáno
refreshone of: static, dailyáno
computedAtstring or nulláno
updatedAtstringáno
tagsarray of stringánoThe segment's labels.
activenumberánoContacts of the segment that can be e-mailed.

ContactSms

PoleTypPovinnéPopis
phonestringáno'' = no number to send to.
optedOutbooleanáno
optedOutAtstring or nulláno
optoutSourcestring or nullánoreply (STOP), link, manual (blocked by staff), api, platform
consentbooleanánoAn active consent of the SMS purpose (also while a block wins over it).
eligibilitySmsEligibilityáno
purposeIdstring or nullánoThe account's SMS consent purpose (Povolit SMS gives a consent of it); null = none chosen.
messagesarray of SmsMessageáno
inboundarray of SmsInboundáno

ContactSource

one of: manual, shoptet, smartemailing, api, erp_order, signup_form, import

ContactSourceRecord

One source record of a contact (provenance): what that source says about consent.

PoleTypPovinnéPopis
sourceone of: manual, shoptet, csv, smartemailing, api, form, erpáno
consentone of: none, unsubscribed, hard_bounce, blacklisted, opt_ináno
consentAtstring or nulláno
firstSeenAtstringáno
lastSeenAtstringáno

ContactStats

PoleTypPovinnéPopis
receivednumberáno
openednumberáno
clickednumberáno
bestHournumber or nullánoHour of day (0 to 23, tenant time zone) with the most opens, null without data.
preferredDeliveryTimestring or nullnieThe contact's ideal delivery time 'HH:MM' (KK-20): the same ideal time the automations' Individuální čas and the campaigns' Ideální čas odeslání use; null without an open.

ContactSummary

PoleTypPovinnéPopis
totalnumberáno
byStatusobjectáno
blacklistednumberáno

ContactsBulkRequest

PoleTypPovinnéPopis
actionone of: blacklist, add_to_list, delete, sms_allow, sms_block, move_to_shopáno
contactIdsarray of stringnieThe ticked contacts; or all: every contact matching the grid query (no cap).
allbooleannie
listIdsarray of stringnieadd_to_list: the manual lists.
consentConfirmedbooleanniesms_allow: the person confirms that the contacts' consent to marketing SMS is documented (required true).
targetShopIdstringniemove_to_shop ("Přesunout do e-shopu"): the e-shop the contacts move to (blacklisted contacts move too).
dryRunbooleanniemove_to_shop only: the preview, nothing changes (ContactsMovePreview, 200).

ContactsBulkStarted

PoleTypPovinnéPopis
jobIdstringáno
countnumberánoContacts the action will go over (blacklisted ones left out).

CouponStatus

one of: free, assigned, used

Currency

one of: CZK, EUR

CustomActivityInput

PoleTypPovinnéPopis
kindone of: other, note, call, dealáno
titlestringáno
bodystringnie
atstringnieISO time; default now.

CustomField

PoleTypPovinnéPopis
idstringáno
namestringáno
typeone of: number, text, date, checkbox, textarea, select, multi_checkbox, radioánoFixed once created.
optionsarray of stringáno
usednumberánoContacts with a value.
createdAtstringáno

CustomFieldInput

PoleTypPovinnéPopis
namestringáno
typeone of: number, text, date, checkbox, textarea, select, multi_checkbox, radioáno
optionsarray of stringnie

CustomFieldValue

boolean or string or number or array of string

DuplicateGroup

Possible duplicates: contacts with the same phone or the same name and company (a report, nothing is merged).

PoleTypPovinnéPopis
kindone of: phone, name_companyáno
contactsarray of objectáno

DuplicateReport

PoleTypPovinnéPopis
groupsarray of DuplicateGroupáno
truncatedbooleanánoMore groups exist than the report shows (200).

EraseResult

PoleTypPovinnéPopis
erasedbooleanáno
consentLogRowsnumberánoConsent log rows whose address and evidence were blanked.

Error

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

ListMembershipState

one of: unsubscribed, confirmed, unconfirmed, removed

OrderItemPreview

PoleTypPovinnéPopis
namestringáno
quantitystringánodecimal string, orders can have fractional quantities
priceWithVatstring or nulláno

OrderStatus

one of: other, cancelled, pending, completed

OrderTotal

One row per currency. CZK and EUR are never added together or converted.

PoleTypPovinnéPopis
currencyCurrencyáno
countnumberáno
totalWithVatstringáno

Purpose

PoleTypPovinnéPopis
idstringáno
namestringáno
legalBasisone of: consent, contract, legal_obligation, legitimate_interest, vital_interest, public_interestáno
validityDaysnumber or nullánoHow long a consent lasts in whole days; null = no fixed period.
validityValidityLength or nullnieThe same length as entered (number and unit); null = no fixed period.
notesstringáno
consentsnumberánoActive (not withdrawn) consents.
createdAtstringáno

PurposeInput

PoleTypPovinnéPopis
namestringáno
legalBasisone of: consent, contract, legal_obligation, legitimate_interest, vital_interest, public_interestáno
validityDaysnumber or nullnieOlder callers send whole days; the purpose form sends validity.
validityValidityLength or nullnie
notesstringáno

SearchResults

PoleTypPovinnéPopis
contactsarray of ContactListItemáno
listsarray of objectáno

SmsEligibility

PoleTypPovinnéPopis
allowedbooleanáno
basisone of: customer, consent, nullánoconsent (a consent of the SMS purpose) or customer (a completed purchase within customerMonths, subscribed to e-mails); null when not allowed.
reasonone of: optout, no_consent, no_phone, blocked, nullánoWhy not: no mobile number, blocked by staff (wins), opted out itself (STOP, the link), no basis.
customerMonthsnumber or nullánoThe soft opt-in of the contact's shop in months: 0 off, null without a time limit (like_email).
customerWindowone of: months_12, like_emailáno

SmsEncoding

one of: gsm, ucs2

SmsInbound

PoleTypPovinnéPopis
idstringáno
phonestringáno
contactIdstring or nulláno
textstringáno
stopbooleanáno
receivedAtstringáno

SmsMessage

PoleTypPovinnéPopis
idstringáno
phonestringáno
contactIdstring or nulláno
campaignIdstring or nulláno
automationIdstring or nulláno
nodeKeystring or nulláno
kindone of: test, promo, transactionaláno
statusone of: delivered, sent, queued, undelivered, failed, skippedáno
skipReasonSmsSkipReasonáno
textstringáno
partsnumberáno
encodingSmsEncodingáno
pricestring or nulláno
currencyBillingCurrencyáno
errorstringáno
createdAtstringáno
sentAtstring or nulláno
deliveredAtstring or nulláno

SmsSkipReason

one of: `, cancelled, price, blacklisted, disabled, optout, no_consent, no_phone, cap, invalid_number, quiet_hours`

ValidityLength

Length of a purpose's validity as entered (months count 30 days and years 365 for the consent ends).

PoleTypPovinnéPopis
valuenumberáno
unitone of: seconds, minutes, hours, days, weeks, months, yearsáno