Přeskočit na obsah
API dokumentace

Přehled operací

Podrobná technická reference každé skupiny (parametry, těla, odpovědi, chyby a schémata) je anglicky, stejně jako dokument OpenAPI 3.1, ze kterého se generuje. Jen jednu skupinu načtete parametrem ?tag= (například https://www.postarna.cz/api/openapi.json?tag=Automations).

Každá operace v OpenAPI nese:

  • x-postarna-permission: modul, úroveň a potřebný přístup klíče,
  • x-mcp-tool: nástroj serveru MCP, který ji obaluje,
  • x-mcp-confirm: operace posílá skutečným lidem nebo maže (přes MCP jen s potvrzením),
  • u odpovědí se seznamem kódů chyb a hodnot message, které operace může vrátit.

Cesty se počítají od https://www.postarna.cz; {tenant} je ID firmy.

Kontakty

MetodaCestaPopis
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

Seznamy

MetodaCestaPopis
GET/api/v1/tenants/{tenant}/listsList contact lists
POST/api/v1/tenants/{tenant}/listsCreate a list
POST/api/v1/tenants/{tenant}/lists/mergeMerge lists into a new list (background)
POST/api/v1/tenants/{tenant}/lists/tagsChange labels of lists
GET/api/v1/tenants/{tenant}/lists/{list_id}Get a list
PATCH/api/v1/tenants/{tenant}/lists/{list_id}Update a list
DELETE/api/v1/tenants/{tenant}/lists/{list_id}Delete a list (only the list, with its contacts, or keeping contacts in other lists)
POST/api/v1/tenants/{tenant}/lists/{list_id}/autofillFill empty name day, gender and salutations of the members
POST/api/v1/tenants/{tenant}/lists/{list_id}/copyCopy a list with its members
GET/api/v1/tenants/{tenant}/lists/{list_id}/membersList members of a list
POST/api/v1/tenants/{tenant}/lists/{list_id}/membersAdd contacts to a list
POST/api/v1/tenants/{tenant}/lists/{list_id}/members/removeRemove contacts from a list
POST/api/v1/tenants/{tenant}/lists/{list_id}/members/unsubscribeUnsubscribe contacts from a list

Segmenty

MetodaCestaPopis
GET/api/v1/tenants/{tenant}/segmentsList segments
POST/api/v1/tenants/{tenant}/segmentsCreate a segment
POST/api/v1/tenants/{tenant}/segments/previewCount the contacts of a segment definition (no save)
POST/api/v1/tenants/{tenant}/segments/tagsChange labels of segments
GET/api/v1/tenants/{tenant}/segments/{segment}Get a segment
PATCH/api/v1/tenants/{tenant}/segments/{segment}Update a segment
DELETE/api/v1/tenants/{tenant}/segments/{segment}Delete a segment no campaign, segment or automation names
GET/api/v1/tenants/{tenant}/segments/{segment}/membersList the members of a segment
POST/api/v1/tenants/{tenant}/segments/{segment}/recomputeRecompute a segment now
POST/api/v1/tenants/{tenant}/segments/{segment}/to-listConvert a segment into a manual list of its mailable contacts

Kampaně

MetodaCestaPopis
GET/api/v1/tenants/{tenant}/campaignsList campaigns
POST/api/v1/tenants/{tenant}/campaignsCreate a campaign (draft)
POST/api/v1/tenants/{tenant}/campaigns/audienceCount and explain the recipients of an audience
POST/api/v1/tenants/{tenant}/campaigns/tagsChange labels of campaigns
GET/api/v1/tenants/{tenant}/campaigns/{campaign_id}Get a campaign
PATCH/api/v1/tenants/{tenant}/campaigns/{campaign_id}Update a campaign draft
DELETE/api/v1/tenants/{tenant}/campaigns/{campaign_id}Delete a campaign draft
POST/api/v1/tenants/{tenant}/campaigns/{campaign_id}/approveApprove a campaign: send now or schedule
POST/api/v1/tenants/{tenant}/campaigns/{campaign_id}/cancelCancel a scheduled or paused campaign
GET/api/v1/tenants/{tenant}/campaigns/{campaign_id}/contentGet the content of a campaign
PUT/api/v1/tenants/{tenant}/campaigns/{campaign_id}/contentSave the content of a campaign draft
POST/api/v1/tenants/{tenant}/campaigns/{campaign_id}/deactivateReturn an approved campaign that has not started to a draft
POST/api/v1/tenants/{tenant}/campaigns/{campaign_id}/pausePause a sending or scheduled campaign
POST/api/v1/tenants/{tenant}/campaigns/{campaign_id}/previewRender a campaign for one contact
POST/api/v1/tenants/{tenant}/campaigns/{campaign_id}/resumeResume a paused campaign
GET/api/v1/tenants/{tenant}/campaigns/{campaign_id}/statsStatistics of a campaign by provider and domain
POST/api/v1/tenants/{tenant}/campaigns/{campaign_id}/testSend a test e-mail of a campaign
GET/api/v1/tenants/{tenant}/campaigns/{campaign_id}/variantsGet the language variants of a campaign
POST/api/v1/tenants/{tenant}/campaigns/{campaign_id}/variantsCreate language variants of a campaign
PUT/api/v1/tenants/{tenant}/campaigns/{campaign_id}/variantsChange the language variants of a campaign
POST/api/v1/tenants/{tenant}/campaigns/{campaign_id}/variants/approveApprove the language variants (send or schedule)
POST/api/v1/tenants/{tenant}/campaigns/{campaign_id}/variants/cancelCancel the language variants
POST/api/v1/tenants/{tenant}/campaigns/{campaign_id}/variants/pausePause the language variants
POST/api/v1/tenants/{tenant}/campaigns/{campaign_id}/variants/previewPreview the audience split of language variants
POST/api/v1/tenants/{tenant}/campaigns/{campaign_id}/variants/resumeResume the language variants
GET/api/v1/tenants/{tenant}/campaigns/{campaign_id}/variants/statsStatistics of the language variants
GET/api/v1/tenants/{tenant}/campaigns/{campaign_id}/versionsList saved content versions of a campaign
GET/api/v1/tenants/{tenant}/campaigns/{campaign_id}/versions/{version_id}Get one content version of a campaign
GET/api/v1/tenants/{tenant}/sendersList verified senders

Šablony a obsah

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

Automatizace

MetodaCestaPopis
GET/api/v1/tenants/{tenant}/automationsList automations
POST/api/v1/tenants/{tenant}/automationsCreate an automation (draft)
GET/api/v1/tenants/{tenant}/automations/custom-eventsNames of own events already used in scenarios
POST/api/v1/tenants/{tenant}/automations/resolve-timeResolve a time spec to a moment (preview)
POST/api/v1/tenants/{tenant}/automations/tagsChange labels of automations
POST/api/v1/tenants/{tenant}/automations/validateValidate a graph without saving
GET/api/v1/tenants/{tenant}/automations/{automation_id}Get an automation with its graph and issues
PATCH/api/v1/tenants/{tenant}/automations/{automation_id}Update name, description or labels of an automation
DELETE/api/v1/tenants/{tenant}/automations/{automation_id}Delete an automation that never ran
POST/api/v1/tenants/{tenant}/automations/{automation_id}/activateActivate (start) an automation
POST/api/v1/tenants/{tenant}/automations/{automation_id}/contactsAdd contacts by hand to a running automation
POST/api/v1/tenants/{tenant}/automations/{automation_id}/copyCopy an automation as a new draft
GET/api/v1/tenants/{tenant}/automations/{automation_id}/countsLive counts per node and output
POST/api/v1/tenants/{tenant}/automations/{automation_id}/editingReport that the editor has a scenario open and see who else has it
GET/api/v1/tenants/{tenant}/automations/{automation_id}/editorEverything the editor needs in one answer
PUT/api/v1/tenants/{tenant}/automations/{automation_id}/graphSave the graph of an automation (new version)
GET/api/v1/tenants/{tenant}/automations/{automation_id}/nodes/{key}/passesContacts that went through a node
POST/api/v1/tenants/{tenant}/automations/{automation_id}/nodes/{key}/releaseRelease the contacts waiting in a node
POST/api/v1/tenants/{tenant}/automations/{automation_id}/nodes/{key}/rescheduleRecompute the end of waiting in a node
POST/api/v1/tenants/{tenant}/automations/{automation_id}/pausePause an automation
GET/api/v1/tenants/{tenant}/automations/{automation_id}/reportStatistics of the e-mail nodes (JSON or CSV)
GET/api/v1/tenants/{tenant}/automations/{automation_id}/runsRun history per contact
POST/api/v1/tenants/{tenant}/automations/{automation_id}/testTest the scenario on today's data (nothing is sent)
POST/api/v1/tenants/{tenant}/automations/{automation_id}/traceTrace one contact through the scenario (nothing is sent)
GET/api/v1/tenants/{tenant}/automations/{automation_id}/versionsList saved versions of the graph
GET/api/v1/tenants/{tenant}/automations/{automation_id}/versions/{version}Get one saved version of the graph
POST/api/v1/tenants/{tenant}/contact-eventsRecord an event of a contact (custom event, cart, page visit)

Formuláře

MetodaCestaPopis
GET/api/v1/tenants/{tenant}/formsList forms
POST/api/v1/tenants/{tenant}/formsCreate a form
GET/api/v1/tenants/{tenant}/forms/captchaWhether web forms can use Google reCAPTCHA (the platform has its keys)
GET/api/v1/tenants/{tenant}/forms/doi-templatesList templates usable as the double opt-in e-mail
POST/api/v1/tenants/{tenant}/forms/previewRender a form preview
POST/api/v1/tenants/{tenant}/forms/preview-embedRender the shop page preview of a form (the real popup.js or form.js)
POST/api/v1/tenants/{tenant}/forms/tagsChange labels of forms
GET/api/v1/tenants/{tenant}/forms/{form_id}Get a form
PATCH/api/v1/tenants/{tenant}/forms/{form_id}Update a form
DELETE/api/v1/tenants/{tenant}/forms/{form_id}Delete a form
POST/api/v1/tenants/{tenant}/forms/{form_id}/copyCopy a form
GET/api/v1/tenants/{tenant}/forms/{form_id}/embedGet the embed code of a form
GET/api/v1/tenants/{tenant}/forms/{form_id}/historyChange history of a form
GET/api/v1/tenants/{tenant}/forms/{form_id}/welcomeGet the e-mail after a sign-up (the form's own automation)
PUT/api/v1/tenants/{tenant}/forms/{form_id}/welcomeSwitch the e-mail after a sign-up on or off

Importy a exporty

MetodaCestaPopis
GET/api/v1/tenants/{tenant}/export-fieldsFields an export can contain
GET/api/v1/tenants/{tenant}/exportsList exports
POST/api/v1/tenants/{tenant}/exportsStart a CSV export
GET/api/v1/tenants/{tenant}/exports/{export_id}Get an export
GET/api/v1/tenants/{tenant}/exports/{export_id}/downloadDownload an export (CSV)
GET/api/v1/tenants/{tenant}/importsList imports
POST/api/v1/tenants/{tenant}/importsStart an import
POST/api/v1/tenants/{tenant}/imports/draftsStart an import draft (wizard)
GET/api/v1/tenants/{tenant}/imports/drafts/{import_id}Get an import draft
PUT/api/v1/tenants/{tenant}/imports/drafts/{import_id}Save an import draft
POST/api/v1/tenants/{tenant}/imports/filesUpload a CSV file for import
POST/api/v1/tenants/{tenant}/imports/previewPreview an import: mapping, counts, problems
GET/api/v1/tenants/{tenant}/imports/{import_id}Get an import with its progress and result
DELETE/api/v1/tenants/{tenant}/imports/{import_id}Delete an import record

Objednávky, feedy a kupóny

MetodaCestaPopis
GET/api/v1/tenants/{tenant}/coupon-stacksList coupon stacks
POST/api/v1/tenants/{tenant}/coupon-stacksCreate a coupon stack
GET/api/v1/tenants/{tenant}/coupon-stacks/{stack_id}Get a coupon stack
DELETE/api/v1/tenants/{tenant}/coupon-stacks/{stack_id}Delete a coupon stack
POST/api/v1/tenants/{tenant}/coupon-stacks/{stack_id}/assignGive a coupon of a stack to a contact
POST/api/v1/tenants/{tenant}/coupon-stacks/{stack_id}/codesAdd coupon codes to a stack
GET/api/v1/tenants/{tenant}/coupon-stacks/{stack_id}/couponsList coupons of a stack
POST/api/v1/tenants/{tenant}/coupon-stacks/{stack_id}/usedMark coupons as used
GET/api/v1/tenants/{tenant}/feed-articlesSearch articles of the article feeds
GET/api/v1/tenants/{tenant}/feed-productsSearch products of the product feeds
GET/api/v1/tenants/{tenant}/feedsList feeds
POST/api/v1/tenants/{tenant}/feedsCreate a feed
GET/api/v1/tenants/{tenant}/feeds/{feed_id}Get a feed
PATCH/api/v1/tenants/{tenant}/feeds/{feed_id}Update a feed
DELETE/api/v1/tenants/{tenant}/feeds/{feed_id}Delete a feed
POST/api/v1/tenants/{tenant}/feeds/{feed_id}/importImport a feed file by upload
GET/api/v1/tenants/{tenant}/feeds/{feed_id}/itemsList items of a feed
GET/api/v1/tenants/{tenant}/feeds/{feed_id}/previewPreview a feed (first items, detected fields)
POST/api/v1/tenants/{tenant}/feeds/{feed_id}/refreshDownload and process a feed now
GET/api/v1/tenants/{tenant}/order-statesGet the order state mapping
PUT/api/v1/tenants/{tenant}/order-statesReplace the order state mapping
GET/api/v1/tenants/{tenant}/ordersList orders
POST/api/v1/tenants/{tenant}/ordersCreate or update an order
POST/api/v1/tenants/{tenant}/orders/paid-atMaintenance: fill empty dates of payment of orders (SmartEmailing data)
GET/api/v1/tenants/{tenant}/orders/{order_id}Get an order

Statistiky

MetodaCestaPopis
GET/api/v1/tenants/{tenant}/conversionsConversions summary
GET/api/v1/tenants/{tenant}/dashboardDashboard numbers
GET/api/v1/tenants/{tenant}/stats/api-emailsStatistics of the e-mails sent through the API (API campaigns or transactional tags)
GET/api/v1/tenants/{tenant}/stats/api-emails/{api_email_id}Log of the e-mails of one API tag
GET/api/v1/tenants/{tenant}/stats/automations/{automation_id}Statistics of an automation
GET/api/v1/tenants/{tenant}/stats/automations/{automation_id}/activityActivity of an automation over time
GET/api/v1/tenants/{tenant}/stats/automations/{automation_id}/conversionsConversions (orders) of an automation
GET/api/v1/tenants/{tenant}/stats/automations/{automation_id}/heatmapClick map of an automation
GET/api/v1/tenants/{tenant}/stats/automations/{automation_id}/recipientsRecipients of an automation with their events (JSON or CSV)
GET/api/v1/tenants/{tenant}/stats/automations/{automation_id}/reportReport of an automation (JSON or CSV)
GET/api/v1/tenants/{tenant}/stats/campaigns/{campaign_id}Statistics of a campaign
GET/api/v1/tenants/{tenant}/stats/campaigns/{campaign_id}/activityActivity of a campaign over time
GET/api/v1/tenants/{tenant}/stats/campaigns/{campaign_id}/conversionsConversions (orders) of a campaign
GET/api/v1/tenants/{tenant}/stats/campaigns/{campaign_id}/heatmapClick map of a campaign
GET/api/v1/tenants/{tenant}/stats/campaigns/{campaign_id}/recipientsRecipients of a campaign with their events (JSON or CSV)
GET/api/v1/tenants/{tenant}/stats/campaigns/{campaign_id}/reportReport of a campaign (JSON or CSV)
GET/api/v1/tenants/{tenant}/stats/emailsE-mail statistics of campaigns and automations
GET/api/v1/tenants/{tenant}/stats/se-historyCampaigns taken over from SmartEmailing

Odesílání a doručitelnost

MetodaCestaPopis
GET/api/v1/tenants/{tenant}/deliverability/dmarcDMARC summary
GET/api/v1/tenants/{tenant}/deliverability/dmarc/reportDMARC report detail
GET/api/v1/tenants/{tenant}/deliverability/domainsList domains with their DNS state
POST/api/v1/tenants/{tenant}/deliverability/domainsAdd a domain
PATCH/api/v1/tenants/{tenant}/deliverability/domains/{domain_id}Update a domain
DELETE/api/v1/tenants/{tenant}/deliverability/domains/{domain_id}Delete a domain
POST/api/v1/tenants/{tenant}/deliverability/domains/{domain_id}/checkCheck the DNS records of a domain now
GET/api/v1/tenants/{tenant}/deliverability/sendersSenders with their authentication state
GET/api/v1/tenants/{tenant}/sending-defaultsGet the default sending settings (tracking parameters of new campaigns, e-mail step window of automations)
PUT/api/v1/tenants/{tenant}/sending-defaultsSet whether new campaigns start with tracking parameters
GET/api/v1/tenants/{tenant}/sending-modeSending mode of the company (switch, limits)
POST/api/v1/tenants/{tenant}/sending/domainsAdd a sending domain
DELETE/api/v1/tenants/{tenant}/sending/domains/{domain_id}Delete a sending domain
POST/api/v1/tenants/{tenant}/sending/domains/{domain_id}/checkCheck a sending domain
POST/api/v1/tenants/{tenant}/sending/sendersAdd a sender
PATCH/api/v1/tenants/{tenant}/sending/senders/{sender_id}Update a sender
DELETE/api/v1/tenants/{tenant}/sending/senders/{sender_id}Delete a sender
POST/api/v1/tenants/{tenant}/sending/senders/{sender_id}/checkVerify a waiting sender address once its domain is verified
GET/api/v1/tenants/{tenant}/sending/senders/{sender_id}/usageWhere a sender is used
GET/api/v1/tenants/{tenant}/sending/setupState of the sending setup (domains and senders)

Účet a nastavení

MetodaCestaPopis
GET/api/v1/public/price-listPublic price list (no authentication)
GET/api/v1/tenants/{tenant}/account-webhooksList account webhooks and their events
POST/api/v1/tenants/{tenant}/account-webhooksCreate an account webhook
PATCH/api/v1/tenants/{tenant}/account-webhooks/{webhook_id}Edit, switch off or on an account webhook
DELETE/api/v1/tenants/{tenant}/account-webhooks/{webhook_id}Delete an account webhook
POST/api/v1/tenants/{tenant}/account-webhooks/{webhook_id}/testSend a test call of an account webhook now
GET/api/v1/tenants/{tenant}/billingTariff, usage and balance
GET/api/v1/tenants/{tenant}/billing/cancelWhat cancelling the tariff would mean
GET/api/v1/tenants/{tenant}/billing/invoicesList invoices
GET/api/v1/tenants/{tenant}/billing/invoices/{invoice_id}/pdfDownload an invoice (PDF)
GET/api/v1/tenants/{tenant}/billing/invoices/{invoice_id}/qr.svgQR payment code of an invoice (SVG)
GET/api/v1/tenants/{tenant}/billing/paymentsList payments
GET/api/v1/tenants/{tenant}/billing/profileGet the billing profile
GET/api/v1/tenants/{tenant}/billing/quotePrice of a tariff
GET/api/v1/tenants/{tenant}/brand-identitiesList the brand styles
POST/api/v1/tenants/{tenant}/brand-identitiesCreate a brand style
GET/api/v1/tenants/{tenant}/brand-identities/{identity_id}Get a brand style
PATCH/api/v1/tenants/{tenant}/brand-identities/{identity_id}Update a brand style
DELETE/api/v1/tenants/{tenant}/brand-identities/{identity_id}Delete a brand style
POST/api/v1/tenants/{tenant}/brand-identities/{identity_id}/defaultMake a brand style the default one
POST/api/v1/tenants/{tenant}/brand-identities/{identity_id}/duplicateDuplicate a brand style
GET/api/v1/tenants/{tenant}/companyGet the company data
PATCH/api/v1/tenants/{tenant}/companyUpdate the company data
GET/api/v1/tenants/{tenant}/consent-settingsConsent settings of every shop
PATCH/api/v1/tenants/{tenant}/consent-settings/{shop_id}Update the customer exception of a shop
GET/api/v1/tenants/{tenant}/grid-tagsLabels used in a grid
GET/api/v1/tenants/{tenant}/labelsList labels
POST/api/v1/tenants/{tenant}/labelsCreate a label
PATCH/api/v1/tenants/{tenant}/labels/{label_id}Update a label
DELETE/api/v1/tenants/{tenant}/labels/{label_id}Delete a label
POST/api/v1/tenants/{tenant}/labels/{label_id}/assignAssign a label to objects
POST/api/v1/tenants/{tenant}/maintenance/phone-landline-mobileMaintenance: move landline-stored mobile numbers to mobile (dry run unless apply)
POST/api/v1/tenants/{tenant}/maintenance/se-backfill-contactsMaintenance: fill empty contact fields from a SmartEmailing backup (dry run unless apply)
POST/api/v1/tenants/{tenant}/maintenance/shop-enrichMaintenance: fill empty contact fields from the e-shop feeds (dry run unless apply)
POST/api/v1/tenants/{tenant}/maintenance/shop-listsMaintenance: rebuild the e-shop lists (dry run unless apply)
GET/api/v1/tenants/{tenant}/notificationsList notifications
POST/api/v1/tenants/{tenant}/notifications/deleteDelete notifications
POST/api/v1/tenants/{tenant}/notifications/readMark notifications as read
POST/api/v1/tenants/{tenant}/notifications/unreadMark notifications as unread
GET/api/v1/tenants/{tenant}/onboardingState of the onboarding wizard
PATCH/api/v1/tenants/{tenant}/onboardingSave the onboarding wizard
GET/api/v1/tenants/{tenant}/order-mappingOrder state and shipping method names of one shop with their meaning
PUT/api/v1/tenants/{tenant}/order-mappingSet the meaning of order state and shipping method names of one shop
GET/api/v1/tenants/{tenant}/order-mapping/summaryHow many order state and shipping method names are not mapped yet
GET/api/v1/tenants/{tenant}/rfmState of the RFM analysis
POST/api/v1/tenants/{tenant}/rfm/enable-requestAsk to enable the RFM analysis
GET/api/v1/tenants/{tenant}/running-actionsRunning background actions (imports, exports ...)
GET/api/v1/tenants/{tenant}/shop-enrichWhether order feed imports fill empty contact fields
PUT/api/v1/tenants/{tenant}/shop-enrichTurn the ongoing contact data enrichment on or off
GET/api/v1/tenants/{tenant}/shop-settingsSending company data of every shop
PATCH/api/v1/tenants/{tenant}/shop-settings/{shop_id}Update the sending company data of a shop
GET/api/v1/tenants/{tenant}/shopsList shops (e-shops) of the company
POST/api/v1/tenants/{tenant}/shopsCreate a shop
GET/api/v1/tenants/{tenant}/shops/{shop_id}Get a shop
PATCH/api/v1/tenants/{tenant}/shops/{shop_id}Update a shop
GET/api/v1/tenants/{tenant}/shops/{shop_id}/brandGet the brand settings of a shop
PUT/api/v1/tenants/{tenant}/shops/{shop_id}/brandReplace the brand settings of a shop
PUT/api/v1/tenants/{tenant}/shops/{shop_id}/contact-languageSet the default language of new contacts of a shop
POST/api/v1/tenants/{tenant}/shops/{shop_id}/disableSwitch a shop off
POST/api/v1/tenants/{tenant}/shops/{shop_id}/enableSwitch a shop on
GET/api/v1/tenants/{tenant}/site-scriptEvery shop's one script line and connection state
PATCH/api/v1/tenants/{tenant}/site-script/{shop_id}Switch the checkout newsletter box of a shop
POST/api/v1/tenants/{tenant}/site-script/{shop_id}/checkTest whether the script is on the shop's homepage
GET/api/v1/tenants/{tenant}/smartemailingState of the SmartEmailing migration
GET/api/v1/tenants/{tenant}/smartemailing/migrations/{migration_id}Get one SmartEmailing migration run
GET/api/v1/tenants/{tenant}/sms/campaignsList SMS campaigns
POST/api/v1/tenants/{tenant}/sms/campaignsCreate an SMS campaign
GET/api/v1/tenants/{tenant}/sms/campaigns/{sms_campaign_id}Get an SMS campaign
PATCH/api/v1/tenants/{tenant}/sms/campaigns/{sms_campaign_id}Update an SMS campaign draft
DELETE/api/v1/tenants/{tenant}/sms/campaigns/{sms_campaign_id}Delete an SMS campaign draft
POST/api/v1/tenants/{tenant}/sms/campaigns/{sms_campaign_id}/cancelCancel an SMS campaign
POST/api/v1/tenants/{tenant}/sms/campaigns/{sms_campaign_id}/estimateEstimate the recipients and price of an SMS campaign
POST/api/v1/tenants/{tenant}/sms/campaigns/{sms_campaign_id}/sendSend or schedule an SMS campaign
GET/api/v1/tenants/{tenant}/sms/eligibilityWho may receive marketing SMS and why
GET/api/v1/tenants/{tenant}/sms/messagesList sent and queued SMS
POST/api/v1/tenants/{tenant}/sms/previewCount the parts and price of an SMS text
POST/api/v1/tenants/{tenant}/sms/sendersSet or order an SMS sender name
DELETE/api/v1/tenants/{tenant}/sms/senders/{sms_sender_id}Withdraw an SMS sender name
GET/api/v1/tenants/{tenant}/sms/settingsGet the SMS settings
PATCH/api/v1/tenants/{tenant}/sms/settingsUpdate the SMS settings
GET/api/v1/tenants/{tenant}/sms/statsSMS statistics of a period
POST/api/v1/tenants/{tenant}/sms/testQueue a test SMS to a test number
GET/api/v1/tenants/{tenant}/web-trackingWeb tracking state of every shop
GET/api/v1/tenants/{tenant}/web-tracking/eventsList web tracking events
PATCH/api/v1/tenants/{tenant}/web-tracking/{shop_id}Switch web tracking of a shop

API kompatibilní se SmartEmailingem v3

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}]}](reference-smartemailing-v3#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)](reference-smartemailing-v3#op-se-v3-import-orders-post)
GET/api/v3/newsletter[Finished newsletters (campaigns); filter[id][eq], filter[email_id][eq]](reference-smartemailing-v3#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)](reference-smartemailing-v3#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

Statistiky CSV jako ve SmartEmailingu

Server MCP pro AI asistenty

OAuth 2.1 pro AI asistenty

Dokument OpenAPI

MetodaCestaPopis
GET/api/openapi.jsonThis OpenAPI document