Přeskočit na obsah
API dokumentace

API kompatibilní se SmartEmailingem v3

Cesty, obálky a chyby REST API v3 SmartEmailingu: kontakty, seznamy, import, webhooky, odesílání, webtracking a objednávky. Přihlášení HTTP Basic.

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

Operace

MetodaCestaPopis
GET/api/v3/account-infoAccount info (guid = tenant id for API v1)
GET/api/v3/automationsAutomations (id, name, activated_at while active); filters id, name, activated_at
GET/api/v3/automations/{ref}One automation
POST/api/v3/change-emailaddresschange_emailaddress
GET/api/v3/check-credentialsCheck the credentials
POST/api/v3/check-credentialsCheck the credentials
GET/api/v3/confirmation-emailsE-mails with the confirmation link {{confirmlink}} (double opt-in e-mails of forms and imports)
GET/api/v3/contact-customfieldsCustom field values of contacts, one row per value and chosen option (contact_id, customfield_id)
GET/api/v3/contactlistsList contact lists
POST/api/v3/contactlistsList contact lists
GET/api/v3/contactlists/{list_id}Get a contact list
PUT/api/v3/contactlists/{list_id}Get a contact list
GET/api/v3/contactlists/{list_id}/added-contacts{count}
GET/api/v3/contactlists/{list_id}/contactsMembers of the list that were not removed, as SE's contacts (paging, select, sort, expand, filters)
GET/api/v3/contactlists/{list_id}/contacts/confirmedConfirmed members of the list
GET/api/v3/contactlists/{list_id}/contacts/unsubscribedMembers unsubscribed from the list, and members on the blacklist
GET/api/v3/contactlists/{list_id}/distributioncontactlist_distribution
POST/api/v3/contactlists/{list_id}/truncateRemoves every confirmed and unconfirmed member (the contacts and their other lists stay; unsubscribed members stay unsub
GET/api/v3/contactsList contacts
DELETE/api/v3/contacts/forget/{contact_id}forget_contact
GET/api/v3/contacts/in-listsContacts with a membership in listIds (comma separated; all lists without it) in the state status
GET/api/v3/contacts/{ref}Get a contact by its id or e-mail address
GET/api/v3/customfield-optionsOptions of the choice fields (customfield_id); an option id is unique in the account
POST/api/v3/customfield-options{customfield_id, name, order}
GET/api/v3/customfield-options/{option_id}One option of a choice field
PATCH/api/v3/customfield-options/{option_id}{name, order}
DELETE/api/v3/customfield-options/{option_id}The option and its value on every contact
GET/api/v3/customfieldsList custom fields
POST/api/v3/customfieldsList custom fields
GET/api/v3/customfields/{field_id}One custom field (expand=customfield_options)
DELETE/api/v3/customfields/{field_id}The field and its value on every contact
POST/api/v3/double-opt-in-confirmation{id}
GET/api/v3/email-performance-overviewDelivery, opens, clicks, unsubscribes and complaints in buckets of group_by (email_statistic_id, domain, infra_provider,
GET/api/v3/email-statistic-events-jsonlEvents (sent, opened, clicked, bounced, unsubscribed) of e-mail statistic ids or of campaign_id with type, as JSON Lines
GET/api/v3/emailsE-mails (Poštárna's templates), at most 10 a page as SE
POST/api/v3/emails{name, title, htmlbody, textbody, footer_id}
POST/api/v3/emails/create-from-template[{email_id, replace [{key, content}]}](#op-se-v3-email-from-template-post)
GET/api/v3/emails/{email_id}One e-mail with its HTML and text
POST/api/v3/generic/collection-item-exchange/{type_}/{command}Exchange a whole collection atomically
GET/api/v3/generic/collection-item/{type_}List the items of a collection (filters id and created_at with eq, lt, lte, gt, gte; limit, offset)
POST/api/v3/generic/collection-item/{type_}Upsert collection items
GET/api/v3/generic/collection-item/{type_}/{item_id}Get one collection item (key item)
DELETE/api/v3/generic/collection-item/{type_}/{item_id}Delete one collection item (204)
GET/api/v3/generic/eventList events (filters id, type, contact_id, emailaddress and created_at; limit, offset)
POST/api/v3/generic/eventUpsert events
GET/api/v3/generic/event/{type_}/{item_id}Get one event (key event)
DELETE/api/v3/generic/event/{type_}/{item_id}Delete one event (204)
POST/api/v3/importUpsert of at most 500 contacts by address (core/se_import.py); settings.double_opt_in_settings sends the double opt-in e
POST/api/v3/import-orders[{settings {skip_invalid_orders}, data [orders]} (at most 500)](#op-se-v3-import-orders-post)
GET/api/v3/newsletter[Finished newsletters (campaigns); filter[id][eq], filter[email_id][eq]](#op-se-v3-newsletters)
POST/api/v3/newsletter{email_id, contactlists, excluded_contactlists, name, start, measurestats, sendOnPreferredTime, senderemail, sendername,
GET/api/v3/newsletter-stats-summaryCounts and rates of every newsletter (campaign) that started sending
DELETE/api/v3/order{eshop_name, eshop_code}
GET/api/v3/pingPing (no authentication)
PATCH/api/v3/promo-codeMark a promo code used
GET/api/v3/purpose-connectionsConsents of contacts with purposes (contact_id, purpose_id); a revoked one has valid_to of its revocation
DELETE/api/v3/purpose-connections/{connection_id}SE's revocation
GET/api/v3/purposesPurposes of processing with their lawful basis and duration
POST/api/v3/purposes{lawful_basis, name, duration {value, unit
GET/api/v3/scoring-result-changesChanges of the contacts' engagement score (5 = A to 1 = E, 0 = N), oldest first
GET/api/v3/send/custom-emailsTags of the API campaigns
POST/api/v3/send/custom-emails-bulkSend custom e-mails (API campaign)
POST/api/v3/send/custom-sms-bulkPoštárna sends no SMS
POST/api/v3/send/transactional-emails-bulkSend transactional e-mails (at most 5)
GET/api/v3/statistics/email/email-history/{address}E-mails sent to a contact (newest first) with their subject and web version
GET/api/v3/transactional-emails-idsTags of the transactional e-mails with their ids
POST/api/v3/trigger-event[[{emailaddress, name, payload}] (at most 500)](#op-se-v3-trigger-event-post)
GET/api/v3/web-form-structure/{form_id}Fields of a web form in order with their input names, its lists and purposes and the address it posts to
GET/api/v3/web-formsWeb forms (id, name)
GET/api/v3/web-hooksList account webhooks
POST/api/v3/web-hooksRegister an account webhook
DELETE/api/v3/web-hooks/{webhook_id}Delete an account webhook
POST/api/v3/webtracking/{kind}webtracking

Account info (guid = tenant id for API v1)

GET /api/v3/account-info

Odpovědi

  • 200 OK: application/json object

Chyby

StavKódHodnoty message
401Authentication Failed
403Forbidden
429Rate limit exceeded (...)

Automations (id, name, activated_at while active); filters id, name, activated_at

GET /api/v3/automations

Automations (id, name, activated_at while active); filters id, name, activated_at.

Odpovědi

  • 200 OK: application/json any

One automation

GET /api/v3/automations/{ref}

One automation.

Odpovědi

  • 200 OK: application/json any

change_emailaddress

POST /api/v3/change-emailaddress

Odpovědi

  • 200 OK: application/json any

Check the credentials

GET /api/v3/check-credentials

Odpovědi

  • 200 OK: application/json object

Chyby

StavKódHodnoty message
401Authentication Failed
429Rate limit exceeded (...)

Check the credentials

POST /api/v3/check-credentials

Odpovědi

  • 200 OK: application/json object

Chyby

StavKódHodnoty message
401Authentication Failed
429Rate limit exceeded (...)

E-mails with the confirmation link {{confirmlink}} (double opt-in e-mails of forms and imports)

GET /api/v3/confirmation-emails

E-mails with the confirmation link {{confirmlink}} (double opt-in e-mails of forms and imports).

Odpovědi

  • 200 OK: application/json any

Custom field values of contacts, one row per value and chosen option (contact_id, customfield_id)

GET /api/v3/contact-customfields

Custom field values of contacts, one row per value and chosen option (contact_id, customfield_id).

Odpovědi

  • 200 OK: application/json any

List contact lists

GET /api/v3/contactlists

Parametry

NázevKdeTypPovinnéPopis
limitqueryintegernedefault 500, min 1, max 500
offsetqueryintegernedefault 0, min 0
selectquerystringneComma separated properties to return.
sortquerystringneComma separated properties, "-" = descending.

Odpovědi

  • 200 OK: application/json object

Chyby

StavKódHodnoty message
401Authentication Failed
403Forbidden
422Validation failed: <parameter>
429Rate limit exceeded (...)

List contact lists

POST /api/v3/contactlists

Parametry

NázevKdeTypPovinnéPopis
limitqueryintegernedefault 500, min 1, max 500
offsetqueryintegernedefault 0, min 0
selectquerystringneComma separated properties to return.
sortquerystringneComma separated properties, "-" = descending.

Odpovědi

  • 200 OK: application/json object

Chyby

StavKódHodnoty message
401Authentication Failed
403Forbidden
422Validation failed: <parameter>
429Rate limit exceeded (...)

Get a contact list

GET /api/v3/contactlists/{list_id}

Parametry

NázevKdeTypPovinnéPopis
list_idpathintegerano

Odpovědi

  • 200 OK: application/json object

Chyby

StavKódHodnoty message
401Authentication Failed
403Forbidden
404Not Found
429Rate limit exceeded (...)

Get a contact list

PUT /api/v3/contactlists/{list_id}

Parametry

NázevKdeTypPovinnéPopis
list_idpathintegerano

Odpovědi

  • 200 OK: application/json object

Chyby

StavKódHodnoty message
401Authentication Failed
403Forbidden
404Not Found
429Rate limit exceeded (...)

{count}

GET /api/v3/contactlists/{list_id}/added-contacts

{count}: the members of the list that were not removed.

Odpovědi

  • 200 OK: application/json any

Members of the list that were not removed, as SE's contacts (paging, select, sort, expand, filters)

GET /api/v3/contactlists/{list_id}/contacts

Members of the list that were not removed, as SE's contacts (paging, select, sort, expand, filters).

Odpovědi

  • 200 OK: application/json any

Confirmed members of the list

GET /api/v3/contactlists/{list_id}/contacts/confirmed

Confirmed members of the list.

Odpovědi

  • 200 OK: application/json any

Members unsubscribed from the list, and members on the blacklist

GET /api/v3/contactlists/{list_id}/contacts/unsubscribed

Members unsubscribed from the list, and members on the blacklist.

Odpovědi

  • 200 OK: application/json any

contactlist_distribution

GET /api/v3/contactlists/{list_id}/distribution

Odpovědi

  • 200 OK: application/json any

Removes every confirmed and unconfirmed member (the contacts and their other lists stay; unsubscribed members stay unsub

POST /api/v3/contactlists/{list_id}/truncate

Removes every confirmed and unconfirmed member (the contacts and their other lists stay; unsubscribed members stay unsubscribed).

Odpovědi

  • 200 OK: application/json any

List contacts

GET /api/v3/contacts

Parametry

NázevKdeTypPovinnéPopis
limitqueryintegernedefault 500, min 1, max 500
offsetqueryintegernedefault 0, min 0
selectquerystringneComma separated properties to return.
sortquerystringneComma separated properties, "-" = descending.
emailaddressquerystringneExact e-mail.
idqueryintegerne
blacklistedqueryone of: 0, 1ne
hardbouncedqueryone of: 0, 1ne
expandqueryone of: customfieldsne

Odpovědi

  • 200 OK: application/json object

Chyby

StavKódHodnoty message
401Authentication Failed
403Forbidden
422Validation failed: <parameter>
429Rate limit exceeded (...)

forget_contact

DELETE /api/v3/contacts/forget/{contact_id}

Odpovědi

  • 200 OK: application/json any

Contacts with a membership in listIds (comma separated; all lists without it) in the state status

GET /api/v3/contacts/in-lists

Contacts with a membership in listIds (comma separated; all lists without it) in the state status.

Odpovědi

  • 200 OK: application/json any

Get a contact by its id or e-mail address

GET /api/v3/contacts/{ref}

One contact by its id or its e-mail address (SE: "Contact ID or email address").

Parametry

NázevKdeTypPovinnéPopis
refpathstringanoContact id or e-mail address.
expandqueryone of: customfieldsne

Odpovědi

  • 200 OK: application/json object

Chyby

StavKódHodnoty message
401Authentication Failed
403Forbidden
404Not Found
429Rate limit exceeded (...)

Options of the choice fields (customfield_id); an option id is unique in the account

GET /api/v3/customfield-options

Options of the choice fields (customfield_id); an option id is unique in the account.

Odpovědi

  • 200 OK: application/json any

{customfield_id, name, order}

POST /api/v3/customfield-options

{customfield_id, name, order}.

Odpovědi

  • 200 OK: application/json any

One option of a choice field

GET /api/v3/customfield-options/{option_id}

One option of a choice field.

Odpovědi

  • 200 OK: application/json any

{name, order}

PATCH /api/v3/customfield-options/{option_id}

{name, order}: the name changes on every contact that has the option too.

Odpovědi

  • 200 OK: application/json any

The option and its value on every contact

DELETE /api/v3/customfield-options/{option_id}

The option and its value on every contact.

Odpovědi

  • 200 OK: application/json any

List custom fields

GET /api/v3/customfields

Parametry

NázevKdeTypPovinnéPopis
limitqueryintegernedefault 500, min 1, max 500
offsetqueryintegernedefault 0, min 0
selectquerystringneComma separated properties to return.
sortquerystringneComma separated properties, "-" = descending.
expandqueryone of: customfield_optionsne

Odpovědi

  • 200 OK: application/json object

Chyby

StavKódHodnoty message
401Authentication Failed
403Forbidden
422Validation failed: <parameter>
429Rate limit exceeded (...)

List custom fields

POST /api/v3/customfields

{name, type}: text, textarea, bool, numeric, date, checkbox, radio, select (options through /customfield-options).

Parametry

NázevKdeTypPovinnéPopis
limitqueryintegernedefault 500, min 1, max 500
offsetqueryintegernedefault 0, min 0
selectquerystringneComma separated properties to return.
sortquerystringneComma separated properties, "-" = descending.
expandqueryone of: customfield_optionsne

Odpovědi

  • 200 OK: application/json object

Chyby

StavKódHodnoty message
401Authentication Failed
403Forbidden
422Validation failed: <parameter>
429Rate limit exceeded (...)

One custom field (expand=customfield_options)

GET /api/v3/customfields/{field_id}

One custom field (expand=customfield_options).

Odpovědi

  • 200 OK: application/json any

The field and its value on every contact

DELETE /api/v3/customfields/{field_id}

The field and its value on every contact.

Odpovědi

  • 200 OK: application/json any

{id}

POST /api/v3/double-opt-in-confirmation

{id}: confirms a double opt-in request of POST /import (core/se_doi.py) for an integration that shows its own confirmation page (confirmation_page_url). 201 with confirmation_thank_you_page_url when the request has one, 404 unknown, replaced or expired, 409 confirmed before.

Odpovědi

  • 200 OK: application/json any

Delivery, opens, clicks, unsubscribes and complaints in buckets of group_by (email_statistic_id, domain, infra_provider,

GET /api/v3/email-performance-overview

Delivery, opens, clicks, unsubscribes and complaints in buckets of group_by (email_statistic_id, domain, infra_provider, engagement_level, time:year|month|week|day); detail brief or full.

Odpovědi

  • 200 OK: application/json any

Events (sent, opened, clicked, bounced, unsubscribed) of e-mail statistic ids or of campaign_id with type, as JSON Lines

GET /api/v3/email-statistic-events-jsonl

Events (sent, opened, clicked, bounced, unsubscribed) of e-mail statistic ids or of campaign_id with type, as JSON Lines.

Odpovědi

  • 200 OK: application/json any

E-mails (Poštárna's templates), at most 10 a page as SE

GET /api/v3/emails

E-mails (Poštárna's templates), at most 10 a page as SE.

Odpovědi

  • 200 OK: application/json any

{name, title, htmlbody, textbody, footer_id}

POST /api/v3/emails

{name, title, htmlbody, textbody, footer_id}: a new e-mail (template); the HTML is cleaned and checked as in the editor.

Odpovědi

  • 200 OK: application/json any

{email_id, replace [{key, content}]}

POST /api/v3/emails/create-from-template

{email_id, replace [{key, content}]}: a copy of the e-mail with {{replace_KEY}} filled; data {email_id}.

Odpovědi

  • 200 OK: application/json any

One e-mail with its HTML and text

GET /api/v3/emails/{email_id}

One e-mail with its HTML and text.

Odpovědi

  • 200 OK: application/json any

Exchange a whole collection atomically

POST /api/v3/generic/collection-item-exchange/{type_}/{command}

Exchange a whole collection atomically: begin puts the items aside, commit adds its items and replaces the collection with them (at most 500 items a request).

Odpovědi

  • 200 OK: application/json any

List the items of a collection (filters id and created_at with eq, lt, lte, gt, gte; limit, offset)

GET /api/v3/generic/collection-item/{type_}

List the items of a collection (filters id and created_at with eq, lt, lte, gt, gte; limit, offset).

Odpovědi

  • 200 OK: application/json any

Upsert collection items

POST /api/v3/generic/collection-item/{type_}

Upsert collection items: a JSON array of at most 500 {id, collection_references, data, created_at}.

Odpovědi

  • 200 OK: application/json any

Get one collection item (key item)

GET /api/v3/generic/collection-item/{type_}/{item_id}

Get one collection item (key item).

Odpovědi

  • 200 OK: application/json any

Delete one collection item (204)

DELETE /api/v3/generic/collection-item/{type_}/{item_id}

Delete one collection item (204).

Odpovědi

  • 200 OK: application/json any

List events (filters id, type, contact_id, emailaddress and created_at; limit, offset)

GET /api/v3/generic/event

List events (filters id, type, contact_id, emailaddress and created_at; limit, offset).

Odpovědi

  • 200 OK: application/json any

Upsert events

POST /api/v3/generic/event

Upsert events: a JSON array of at most 500 {type, id, emailaddress, collection_references, data, created_at}.

Odpovědi

  • 200 OK: application/json any

Get one event (key event)

GET /api/v3/generic/event/{type_}/{item_id}

Get one event (key event).

Odpovědi

  • 200 OK: application/json any

Delete one event (204)

DELETE /api/v3/generic/event/{type_}/{item_id}

Delete one event (204).

Odpovědi

  • 200 OK: application/json any

Upsert of at most 500 contacts by address (core/se_import.py); settings.double_opt_in_settings sends the double opt-in e

POST /api/v3/import

Upsert of at most 500 contacts by address (core/se_import.py); settings.double_opt_in_settings sends the double opt-in e-mail to new addresses (and with send_to_mode all to customers and pending sign-ups), answered in double_opt_in_map. In a capped trial (core/trial_room.py) a request that takes the account over its contact limit is still applied (an integration of SmartEmailing cannot choose) and the answer adds trial_limit {limit, contacts_before, contacts, over, order_url}: live sending stops at the next billing run until a tariff is paid or the contacts fit again; the account admins get an e-mail.

Odpovědi

  • 200 OK: application/json any

{settings {skip_invalid_orders}, data [orders]} (at most 500)

POST /api/v3/import-orders

{settings {skip_invalid_orders}, data [orders]} (at most 500): orders upserted by e-shop and number, the buyer's contact created without consent when unknown.

Odpovědi

  • 200 OK: application/json any

Finished newsletters (campaigns); filter[id][eq], filter[email_id][eq]

GET /api/v3/newsletter

Finished newsletters (campaigns); filter[id][eq], filter[email_id][eq].

Odpovědi

  • 200 OK: application/json any

{email_id, contactlists, excluded_contactlists, name, start, measurestats, sendOnPreferredTime, senderemail, sendername,

POST /api/v3/newsletter

{email_id, contactlists, excluded_contactlists, name, start, measurestats, sendOnPreferredTime, senderemail, sendername, replyto, utm_*}: a campaign from the e-mail to the lists, approved and sent (or planned to start) through the normal campaign pipeline. Off with the API e-mails (403): a platform admin turns them on.

Odpovědi

  • 200 OK: application/json any

Counts and rates of every newsletter (campaign) that started sending

GET /api/v3/newsletter-stats-summary

Counts and rates of every newsletter (campaign) that started sending.

Odpovědi

  • 200 OK: application/json any

{eshop_name, eshop_code}

DELETE /api/v3/order

{eshop_name, eshop_code}: the order is marked deleted.

Odpovědi

  • 200 OK: application/json any

Ping (no authentication)

GET /api/v3/ping

Bez přihlášení.

Odpovědi

  • 200 OK: application/json object

Mark a promo code used

PATCH /api/v3/promo-code

SE PATCH /promo-code {pool_name, value, used_at}: marks a code of a coupon stack used (without used_at now, else YYYY-MM-DD HH:MM:SS in the tenant's local time). 404 unknown stack or code, 409 used already.

Tělo požadavku (application/json)

PoleTypPovinnéPopis
pool_namestringanoName (or merge key) of the coupon stack.
valuestringanoThe code.
used_atstringneYYYY-MM-DD HH:MM:SS local time; now if missing.

Odpovědi

  • 200 OK: application/json object

Chyby

StavKódHodnoty message
401Authentication Failed
403Forbidden
404Not Found
409Already exists
422Validation failed: <parameter>
429Rate limit exceeded (...)

Consents of contacts with purposes (contact_id, purpose_id); a revoked one has valid_to of its revocation

GET /api/v3/purpose-connections

Consents of contacts with purposes (contact_id, purpose_id); a revoked one has valid_to of its revocation.

Odpovědi

  • 200 OK: application/json any

SE's revocation

DELETE /api/v3/purpose-connections/{connection_id}

SE's revocation: the consent ends now (valid_to = now), the record stays.

Odpovědi

  • 200 OK: application/json any

Purposes of processing with their lawful basis and duration

GET /api/v3/purposes

Purposes of processing with their lawful basis and duration.

Odpovědi

  • 200 OK: application/json any

{lawful_basis, name, duration {value, unit

POST /api/v3/purposes

{lawful_basis, name, duration {value, unit: days | months | years}, notes}.

Odpovědi

  • 200 OK: application/json any

Changes of the contacts' engagement score (5 = A to 1 = E, 0 = N), oldest first

GET /api/v3/scoring-result-changes

Changes of the contacts' engagement score (5 = A to 1 = E, 0 = N), oldest first.

Odpovědi

  • 200 OK: application/json any

Tags of the API campaigns

GET /api/v3/send/custom-emails

Odpovědi

  • 200 OK: application/json object

Chyby

StavKódHodnoty message
401Authentication Failed
403Forbidden
429Rate limit exceeded (...)

Send custom e-mails (API campaign)

POST /api/v3/send/custom-emails-bulk

Off until the platform turns it on for the account (403); the account's hourly cap answers 429. 201 means queued, not delivered.

Tělo požadavku (application/json)

PoleTypPovinnéPopis
sender_credentialsobjectano
tagstringanoGroups the e-mails in Statistiky (API kampaně). max 255 chars
email_idintegeranoId of a template.
custom_subjectstringne
custom_preheaderstringne
tasksarray of objectanomin 1 items, max 500 items

Odpovědi

  • 201 Queued: application/json object

Chyby

StavKódHodnoty message
401Authentication Failed
403Forbidden
413Request payload is too large
422Validation failed: <parameter>
429Rate limit exceeded (...)

Poštárna sends no SMS

POST /api/v3/send/custom-sms-bulk

Poštárna sends no SMS: 403, nothing is queued.

Odpovědi

  • 200 OK: application/json any

Send transactional e-mails (at most 5)

POST /api/v3/send/transactional-emails-bulk

Off until the platform turns it on for the account (403); the account's hourly cap answers 429. 201 means queued, not delivered.

Tělo požadavku (application/json)

PoleTypPovinnéPopis
sender_credentialsobjectano
tagstringanoGroups the e-mails in Statistiky (Transakční e-maily). max 255 chars
email_idintegerneId of a template.
custom_subjectstringne
custom_preheaderstringne
tasksarray of objectanomin 1 items, max 5 items
message_contentsobjectneOwn content instead of email_id.

Odpovědi

  • 201 Queued: application/json object

Chyby

StavKódHodnoty message
401Authentication Failed
403Forbidden
413Request payload is too large
422Validation failed: <parameter>
429Rate limit exceeded (...)

E-mails sent to a contact (newest first) with their subject and web version

GET /api/v3/statistics/email/email-history/{address}

E-mails sent to a contact (newest first) with their subject and web version.

Odpovědi

  • 200 OK: application/json any

Tags of the transactional e-mails with their ids

GET /api/v3/transactional-emails-ids

{tag: id}; created_from / created_to as SE writes times (YYYY-MM-DD HH:MM:SS, the tenant's local time).

Parametry

NázevKdeTypPovinnéPopis
created_fromquerystringneYYYY-MM-DD HH:MM:SS local time.
created_toquerystringneYYYY-MM-DD HH:MM:SS local time.

Odpovědi

  • 200 OK: application/json object

Chyby

StavKódHodnoty message
401Authentication Failed
403Forbidden
422Validation failed: <parameter>
429Rate limit exceeded (...)

[{emailaddress, name, payload}] (at most 500)

POST /api/v3/trigger-event

[{emailaddress, name, payload}] (at most 500): custom events that start the automations listening to the name (the contact is created without consent when unknown); data {events [{emailaddress, id, name}]}.

Odpovědi

  • 200 OK: application/json any

Fields of a web form in order with their input names, its lists and purposes and the address it posts to

GET /api/v3/web-form-structure/{form_id}

Fields of a web form in order with their input names, its lists and purposes and the address it posts to.

Odpovědi

  • 200 OK: application/json any

Web forms (id, name)

GET /api/v3/web-forms

Web forms (id, name).

Odpovědi

  • 200 OK: application/json any

List account webhooks

GET /api/v3/web-hooks

Parametry

NázevKdeTypPovinnéPopis
limitqueryintegernedefault 500, min 1, max 500
offsetqueryintegernedefault 0, min 0
selectquerystringneComma separated properties to return.
sortquerystringneComma separated properties, "-" = descending.
idquerystringne
eventquerystringne
urlquerystringne
activequerystringne
methodquerystringne
timeoutquerystringne

Odpovědi

  • 200 OK: application/json object

Chyby

StavKódHodnoty message
401Authentication Failed
403Forbidden
422Validation failed: <parameter>
429Rate limit exceeded (...)

Register an account webhook

POST /api/v3/web-hooks

Tělo požadavku (application/json)

PoleTypPovinnéPopis
target_urlstringanohttp(s) URL, at most 1 000 characters; public addresses only.
eventone of: new_contact, updated_contact, unsubscribed_contact, email_delivery_started, delivery_status, sent_email, email_open, email_click, scoring_result_changed, engagement_level_changed, sms_delivery_statusanoFired: new_contact, updated_contact, unsubscribed_contact, email_delivery_started, delivery_status, sent_email, email_open, email_click, scoring_result_changed, engagement_level_changed. Accepted but never fired yet: sms_delivery_status.
basic_authobjectneOptional HTTP Basic the calls send (login 1 to 200 without ":", password 1 to 500).

Odpovědi

  • 201 Created: application/json object

Chyby

StavKódHodnoty message
401Authentication Failed
403Forbidden
409Already exists
422Validation failed: <parameter>
429Rate limit exceeded (...)

Delete an account webhook

DELETE /api/v3/web-hooks/{webhook_id}

Parametry

NázevKdeTypPovinnéPopis
webhook_idpathintegerano

Odpovědi

  • 204 Deleted

Chyby

StavKódHodnoty message
401Authentication Failed
403Forbidden
404Not Found
429Rate limit exceeded (...)

webtracking

POST /api/v3/webtracking/{kind}

Odpovědi

  • 200 OK: application/json any

Schémata

SeContact

A contact in SmartEmailing's shape: times "YYYY-MM-DD HH:MM:SS" local, flags 0 / 1, gender M / F, language cs_CZ ...

PoleTypPovinnéPopis
idintegerne
guidanyne
emailaddressstringne
nameanyne
surnameanyne
titlesbeforeanyne
titlesafteranyne
salutionanyne
companyanyne
streetanyne
townanyne
postalcodeanyne
countryanyne
cellphoneanyne
phoneanyne
languageanyne
birthdayanyne
namedayanyne
genderanyne
notesanyne
realnameanyne
blacklistedintegerne
is_blacklistedanyne
hardbouncedanyne
softbouncedanyne
createdanyne
updatedanyne
created_atanyne
last_updated_atanyne
domainanyne
originanyne
last_clickedanyne
last_openedanyne
preferredDeliveryTimeanyne
preferencesanyne
contactlistsarray of objectne
customfieldsarray of objectneOnly with expand=customfields.
customfields_urlanyne

SeContactList

PoleTypPovinnéPopis
idintegerne
namestringne
publicnameanyne
sendernameanyne
senderemailanyne
replytoanyne
signatureanyne
notesanyne
categoryanyne
hiddenanyne
createdanyne
alertInanyne
alertOutanyne
clickRateanyne
openRateanyne
segment_idanyne
trackedDefaultFieldsanyne

SeCustomField

PoleTypPovinnéPopis
idanyne
nameanyne
typeanyne
customfield_options_urlanyne
customfield_optionsanyne

SeError

PoleTypPovinnéPopis
statuserrorano
metaarray of anyne
messagestringano
json
{
  "status": "error",
  "meta": [],
  "message": "Authentication Failed"
}

SeWebhook

PoleTypPovinnéPopis
idanyne
urlanyne
methodanyne
eventone of: new_contact, updated_contact, unsubscribed_contact, email_delivery_started, delivery_status, sent_email, email_open, email_click, scoring_result_changed, engagement_level_changed, sms_delivery_statusne
activeanyne
timeoutanyne
last_response_codeanyne
last_call_timeanyne
errors_in_rowanyne
basic_authanyne