LianaMailer REST API

ErrorResponse

succeed
​boolean

Response status.

Example: false
message
​string

Error description. Unexpected errors have a generic message with an incident ID.

Example: There was an error processing the request. Incident id: 5e609601dd092

OkResponse

succeed
​boolean

Response status.

Example: true

CustomerIdObject

id
​integer

Customer ID.

Example: 2001

CustomerOptions

site
​string

Default site domain. The site is created if it does not exist.

Example: default.domain
language
​string

Site language, such as EN. Applies only when site is set.

Example: EN
unsubscribe
​boolean

Whether unsubscribing is enabled.

Example: true
subscribe
​boolean

Whether joining mailing lists is enabled.

Example: true
rss
​boolean

Whether RSS is enabled.

Example: true
archive
​boolean

Whether the web archive is enabled.

Example: true
tracking
​boolean

Whether tracking is enabled.

Example: true
sms
​boolean

Whether SMS messaging is enabled.

Example: true
multiple_lists
​boolean

Whether contacts can subscribe to multiple mailing lists.

Example: true
unsubscribe_is_final
​boolean
delete_on_bounce
​boolean
has_individuals
​boolean
has_companies
​boolean
tellafriend
​boolean
webpage
​boolean
registration_needs_confirmation
​boolean
archive_is_public
​boolean
shortmessage_provider
​string
header_precedence
​boolean
sales_person_email
​string

Salesperson email address.

Example: salesperson@example.com
cem
​string
shortmessage_account
​string
shortmessage_password
​string
statistics
​boolean
mta
​boolean
dynamic_lists
​boolean

Whether users can create dynamic lists.

Example: true
preview_props_overrides
​boolean

Whether users can set property values when composing a newsletter.

Example: false
show_cem_deliveries
​boolean
show_draft_lang_select
​boolean
list_properties
​boolean
default_sms_country
​string

Default SMS country code. Empty sets FI.

Example: FI
property_parser
​string

Property parser version, such as 2016. Empty sets Legacy.

Example: 2016
gdpr
​boolean

Whether GDPR compliance is enabled.

Example: true
cem_tracking
​boolean

Whether LianaAutomation tracking is enabled.

Example: false
dp_officer_name
​string

Name of the data protection officer.

Example: name
dp_officer_email
​string

Email address of the data protection officer.

Example: email@example.com
approval
​boolean

Whether users can use the delivery approval workflow.

Example: false
min_list_health
​integer

Minimum mailing list health. Empty clears it.

Example: 80
rss_template_engine
​string

RSS template engine, such as PerItem. Empty sets Legacy.

Example: PerItem

GetCustomerResponse

​object

CustomerId

integer

Customer ID.

Example: 1

GetCustomerIdResponse

result
​CustomerId

Customer ID.

Example: 1

CustomerStatisticsDatabaseSize

integer

Number of contacts in the database.

Example: 4020

CustomerStatisticsActiveMembers

integer

Number of active members.

Example: 4020

CustomerStatisticsDeletedMembers

integer

Number of deleted (unsubscribed) members.

Example: 4

CustomerStatisticsUnsubscribedMembers

integer

Number of unsubscribed members.

Example: 11

CustomerStatisticsJoinPast30Days

integer

Number of members who joined in the past 30 days.

Example: 19

CustomerStatisticsLeftPast30Days

integer

Number of members who left in the past 30 days.

Example: 3

CustomerStatisticsJoinedByDay

string

Number of member joins by day.

Example: 2020-01-15:5

CustomerStatisticsLeftByDay

string

Number of members who left, by day.

Example: 2020-01-15:2

CustomerStatisticsLastSubscribersUnassocUpdate

string

Time when unassociated members were updated.

Example: 2020-01-15:2

CustomerStatisticsUnassociatedMembers

integer

Count of contacts who do not belong to any list.

Example: 11

CustomerStatisticsAllTimeEmail

integer

Count of emails sent.

Example: 612

CustomerStatisticsAllTimeSms

integer

Count of short messages sent.

Example: 7

CustomerStatisticsEmailsByMonth

string

Count of emails sent by month.

Example: 2020-01-15:128

CustomerStatisticsSmsByMonth

string

Count of short messages sent by month.

Example: 2020-01-15:7

CustomerStatisticsAllTimeSmsReal

integer

Count of short messages sent, each 160-character message part counting as one.

Example: 7

CustomerStatisticsAllTimeSmsByMonthReal

string

Count of short messages sent by month, each 160-character message part counting as one.

Example: 2020-01-15:7

CustomerStatisticsMembersReceivedMessage

integer

Count of members who have received a message.

Example: 4000

CustomerStatisticsMembersReceivedMessagePercent

string

Percentage of members who have received a message.

Example: 99.50

CustomerStatisticsMembersReceivedMessageTrend

integer

Trend of members who have received a message. Can be 1 or -1.

Example: 1

CustomerStatisticsSubscribersActive

integer

Count of contacts who have opened a message (active contacts).

Example: 4000

CustomerStatisticsSubescribersActivePercent

string

Percentage of contacts who have opened a message (active contacts).

Example: 99.50

CustomerStatisticsSubescribersActiveTrend

integer

Trend of contacts who have opened a message (active contacts). Can be 1 or -1.

Example: 1

CustomerStatisticsSubscribersEmailedByMonth

string

Number of contacts emailed by month.

Example: 2020-01-15:128

CustomerStatisticsSubscribersEmailedByYear

string

Number of contacts emailed by year.

Example: 2020:512

CustomerStatisticsSmsReceivedByMonth

string

Number of short messages received by month.

Example: 2020-01-15:12

CustomerStatisticsEnabled

integer

Count of members marked enabled.

Example: 4000

CustomerStatisticsDisabled

integer

Count of members marked disabled.

Example: 20

CustomerStatisticsSubscribersUnassociated

integer

Count of contacts who do not belong to any list.

Example: 11

CustomerStatisticsSubscribersDeleted

integer

Number of invalid contacts deleted by the system.

Example: 0

CustomerStatistics

Customer statistics.

Number of contacts in the database.

Example: 4020

Number of active members.

Example: 4020

Number of deleted (unsubscribed) members.

Example: 4

Number of unsubscribed members.

Example: 11

Number of members who joined in the past 30 days.

Example: 19

Number of members who left in the past 30 days.

Example: 3

Number of member joins by day.

Example: 2020-01-15:5

Number of members who left, by day.

Example: 2020-01-15:2
last_subscribers_unassociated_update
​CustomerStatisticsLastSubscribersUnassocUpdate

Time when unassociated members were updated.

Example: 2020-01-15:2

Count of contacts who do not belong to any list.

Example: 11

Count of emails sent.

Example: 612

Count of short messages sent.

Example: 7

Count of emails sent by month.

Example: 2020-01-15:128

Count of short messages sent by month.

Example: 2020-01-15:7

Count of short messages sent, each 160-character message part counting as one.

Example: 7

Count of short messages sent by month, each 160-character message part counting as one.

Example: 2020-01-15:7
subscribers_received_message
​CustomerStatisticsMembersReceivedMessage

Count of members who have received a message.

Example: 4000
subscribers_received_message_percent
​CustomerStatisticsMembersReceivedMessagePercent

Percentage of members who have received a message.

Example: 99.50
subscribers_received_message_trend
​CustomerStatisticsMembersReceivedMessageTrend

Trend of members who have received a message. Can be 1 or -1.

Example: 1

Count of contacts who have opened a message (active contacts).

Example: 4000
subscribers_active_percent
​CustomerStatisticsSubescribersActivePercent

Percentage of contacts who have opened a message (active contacts).

Example: 99.50

Trend of contacts who have opened a message (active contacts). Can be 1 or -1.

Example: 1
subscribers_emailed_by_month
​CustomerStatisticsSubscribersEmailedByMonth

Number of contacts emailed by month.

Example: 2020-01-15:128
subscribers_emailed_by_year
​CustomerStatisticsSubscribersEmailedByYear

Number of contacts emailed by year.

Example: 2020:512
sms_received_by_month
​CustomerStatisticsSmsReceivedByMonth

Number of short messages received by month.

Example: 2020-01-15:12

Count of members marked enabled.

Example: 4000

Count of members marked disabled.

Example: 20

Count of contacts who do not belong to any list.

Example: 11

Number of invalid contacts deleted by the system.

Example: 0

GetStatisticsResponse

Customer statistics.

GetSentMails

params
​required

Date range.

GetSentMailsResponse

result
​integer

Number of mails sent during the given time range.

Example: 3088

GetDeliverabilityRating

count
​integer

Number of rating entries to return, at most 100. Defaults to 1.

Example: 20
offset
​integer

Number of entries to skip. Defaults to 0.

Example: 10

DeliverabilityRating

Customer statistics from the last 3 months. Higher values are better.
date
​string

Date of rating values.

Example: 2024-09-12T02:18:08+03:00
rating
​integer

Total deliverability score.

Example: 76
abuse
​integer

Abuse score. Number of contacts who marked messages as spam, relative to the number of delivery contacts.

Example: 100
hardbounces
​integer

Hard bounce score. Hard bounces relative to delivered members.

Example: 72
lists
​integer

Weighted average of list healths.

Example: 96
opens
​integer

Open ratio.

Example: 100
clicks
​integer

Click-through ratio.

Example: 42
ctor
​integer

Ratio of clickers to openers.

Example: 23

GetDeliverabilityRatingResponse

Array of deliverability rating entries.

ReportSMSReceivedResponse

result
​string

Results in CSV format.

Example: source;msg;time;dest;keyword

GetMarketingSettingsResponse

​object[]

SetMarketingSettings

​object · required

Settings to save as key-value pairs. Existing keys are updated and new keys are added.

Example: {"name":"message text"}

SetMarketingSettingsResponse

result
​integer

1 if the settings were saved. 0 if settings is empty or the last setting could not be saved.

Example: 1

SetAutomationTracking

state
​boolean · required

Whether LianaAutomation tracking is enabled.

Example: true

OneOnSuccess

result
​integer

Returns 1 on success.

Example: 1

SiteShowData

Extra data to include for each site. Omitted keys default to `false`.
properties
​boolean

Include site properties.

lists
​boolean

Include mailing lists of the site.

Example: false
layout
​boolean

Include site layout.

Example: false
marketing
​boolean

Include marketing settings.

Example: false
parents
​boolean

Also return the parent sites.

Example: false
children
​boolean

Not used.

Example: false
authorization
​boolean

Include authorization settings.

Example: false

SiteOptions

all_lists
​boolean

Show more lists for a site that has no lists associated with it. Use with the lists key of data. Defaults to false.

  • If the installation does not support multiple mailing lists, shows the available list.

If the installation supports multiple mailing lists, returns the first of the following that has matching lists:

  • Lists associated with the site in the site settings (same as without all_lists).
  • Lists that have this site set as their site. See createMailingList and editMailingList.
  • For the default site: lists available for subscription that have no site set. If no default site is set, these are shown for all sites.
  • Otherwise an empty list.
Example: false

Sites

Extra data to include for each site. Omitted keys default to false.

​SiteOptions

SiteDomain

string

Site domain name.

Example: site-domain

SiteLanguage

string

Site language code, e.g. EN.

Example: EN

SiteAcceptCheck

boolean | null

Deprecated.

Example: null

SiteWelcome

integer

ID of the delivery sent as the welcome message of the site.

Example: 1

SiteSSL

boolean

Whether SSL is enabled for the site.

Example: true

SiteParent

string

Domain name of the parent site.

Example: parent.site

SiteDefault

boolean

Whether this is the customer's default site. Only one site can be the default.

Example: true

SiteEmailPos

integer

Email field position on site.

Example: 0

SiteSMSPos

integer

SMS field position on site.

Example: 1

DeletedDate

string | null

Date of deletion.

Example: null

SiteWhitelistInstruction

boolean

Whether the site uses the whitelist instruction.

Example: true

SiteWhitelistEmail

string

Whitelisted email address.

Example: sender@example.com

SiteRedirect

string

Redirect target of the site.

Example: target-site

DomainPostfix

string

Domain postfix.

Example: example.com

SiteEnvelopeSender

boolean

Whether to use the site domain as the envelope sender.

Example: false

SiteDomainAliases

array

Alternative fully qualified domain names of the site.

Example: ["alternative-name"]

RecaptchaSecret

string

reCAPTCHA secret key.

SiteEmbedNotes

string

Free-text notes on where the site is embedded.

Example: https://www.example.com/embedded

SiteEmbedOnly

boolean

Whether the site is used for embedded forms only.

Example: true

SiteReplacedBy

string

Replaced by site.

Example: replacing-site

SiteRenameTo

string

New name for the site.

Example: new-domain

SiteHidden

boolean

Site hidden state.

Example: false

CreatedTimestamp

string

Date of creation.

Example: 2020-01-15 12:45:21.0173942

SiteHasCSRF

boolean

Whether CSRF protection is enabled for the site.

Example: true

SiteDenyFraming

boolean

Whether to prevent loading the site in a frame.

Example: true

SiteObject

domain
​SiteDomain

Site domain name.

Example: site-domain
owner
​CustomerId

Customer ID.

Example: 1
language
​SiteLanguage

Site language code, e.g. EN.

Example: EN
accept_check
​SiteAcceptCheck

Deprecated.

Example: null
welcome
​SiteWelcome

ID of the delivery sent as the welcome message of the site.

Example: 1
ssl
​SiteSSL

Whether SSL is enabled for the site.

Example: true
parent
​SiteParent

Domain name of the parent site.

Example: parent.site
is_default
​SiteDefault

Whether this is the customer's default site. Only one site can be the default.

Example: true
email_pos
​SiteEmailPos

Email field position on site.

Example: 0
sms_pos
​SiteSMSPos

SMS field position on site.

Example: 1
deleted
​DeletedDate

Date of deletion.

Example: null
whitelist_instruction
​SiteWhitelistInstruction

Whether the site uses the whitelist instruction.

Example: true
whitelist_email
​SiteWhitelistEmail

Whitelisted email address.

Example: sender@example.com
redirect
​SiteRedirect

Redirect target of the site.

Example: target-site
postfix
​DomainPostfix

Domain postfix.

Example: example.com
envelope_sender
​SiteEnvelopeSender

Whether to use the site domain as the envelope sender.

Example: false
domain_aliases
​SiteDomainAliases

Alternative fully qualified domain names of the site.

Example: ["alternative-name"]
recaptcha_secret
​RecaptchaSecret

reCAPTCHA secret key.

embed_notes
​SiteEmbedNotes

Free-text notes on where the site is embedded.

Example: https://www.example.com/embedded
embed_only
​SiteEmbedOnly

Whether the site is used for embedded forms only.

Example: true
replaced_by
​SiteReplacedBy

Replaced by site.

Example: replacing-site
rename_to
​SiteRenameTo

New name for the site.

Example: new-domain
hidden
​SiteHidden

Site hidden state.

Example: false

Date of creation.

Example: 2020-01-15 12:45:21.0173942
has_csrf
​SiteHasCSRF

Whether CSRF protection is enabled for the site.

Example: true
deny_framing
​SiteDenyFraming

Whether to prevent loading the site in a frame.

Example: true

SiteFullDomain

string

Site full domain.

Example: site-domain.example.com

PropertyHandle

integer

Property handle. See getCustomerProperties.

Example: 123

PropertyName

string

Property name.

Example: Example name

PropertyPos

integer

Property list order.

Example: 4

SiteProperty

Site-specific property.
owner
​CustomerId

Customer ID.

Example: 1

Property handle. See getCustomerProperties.

Example: 123

Property name.

Example: Example name

Property list order.

Example: 4

ListId

integer

Mailing list ID.

Example: 60

ListPos

integer

List position.

Example: 4

ListName

string

Mailing list name.

Example: Sample list

SiteList

Site-specific list.
owner
​CustomerId

Customer ID.

Example: 1
id
​ListId

Mailing list ID.

Example: 60
pos
​ListPos

List position.

Example: 4
name
​ListName

Mailing list name.

Example: Sample list

SiteElementLabelId

integer

Site element ID.

Example: 200

SiteElementLabelType

string

Site element label type.

SiteElementLabelHandle

integer

Site element handle.

SiteElementLabelLabel

string

Site element label.

SiteElementLabel

Site element label.

Site element ID.

Example: 200
site
​SiteDomain

Site domain name.

Example: site-domain

Site element label type.

element_handle
​SiteElementLabelHandle

Site element handle.

Site element label.

SiteElementHtmlId

integer

Site HTML element ID.

Example: 10

SiteElementHtmlName

string

Site HTML element name.

SiteElementHtmlContent

string

Site HTML element content.

SiteElementHtmlPos

integer

Site HTML element position.

SiteElementHtml

Site element label.

Site HTML element ID.

Example: 10
site
​SiteDomain

Site domain name.

Example: site-domain

Site HTML element name.

element_handle
​SiteElementHtmlContent

Site HTML element content.

Site HTML element position.

SiteLayoutIndex

string

Layout of the site index page.

SiteLayoutCancelForm

string

Layout of the cancel subscription form.

SiteLayoutDeleted

string

Layout of the page shown after a subscription is cancelled.

SiteLayoutFooter

string

Site footer layout.

SiteLayoutHeader

string

Site header layout.

SiteLayoutListBegin

string

Site list begin layout.

SiteLayoutListEnd

string

Site list end layout.

SiteLayoutListElement

string

Site list element layout.

SiteLayoutWelcome

string

Site welcome page layout.

SiteLayoutConfirm

string

Layout of the subscription confirmation page.

SiteLayoutConfirmForget

string

Layout of the page for confirming that the contact is forgotten.

SiteLayoutDownload

string

Layout of the data download page.

SiteLayoutAlreadyConfirm

string

Layout of the page shown when the subscription is already confirmed.

SiteLayoutForgotten

string

Layout of the page shown after the contact is forgotten.

SiteLayout

Site layout data object. All values are Base64-encoded.

Layout of the site index page.

cancel-form
​SiteLayoutCancelForm

Layout of the cancel subscription form.

Layout of the page shown after a subscription is cancelled.

Site footer layout.

Site header layout.

list-begin
​SiteLayoutListBegin

Site list begin layout.

Site list end layout.

list-element
​SiteLayoutListElement

Site list element layout.

Site welcome page layout.

Layout of the subscription confirmation page.

confirm-forget-me
​SiteLayoutConfirmForget

Layout of the page for confirming that the contact is forgotten.

download-email
​SiteLayoutDownload

Layout of the data download page.

subscription-already-confirmed
​SiteLayoutAlreadyConfirm

Layout of the page shown when the subscription is already confirmed.

subscriber-forgotten
​SiteLayoutForgotten

Layout of the page shown after the contact is forgotten.

SiteMarketingFooter

string

Tell-a-friend page footer layout.

SiteMarketingHeader

string

Tell-a-friend page header layout.

SiteMarketingTAFForm

string

Tell-a-friend page form layout.

SiteMarketingTAFMessage

string

Tell-a-friend message layout.

SiteMarketingTAFTemplate

string

Tell-a-friend message template layout.

SiteMarketingTAFSent

string

Tell-a-friend sent page layout.

SiteMarketing

Site marketing page layout data object. All values are Base64-encoded.

Tell-a-friend page footer layout.

Tell-a-friend page header layout.

tellafriend-form
​SiteMarketingTAFForm

Tell-a-friend page form layout.

tellafriend-message
​SiteMarketingTAFMessage

Tell-a-friend message layout.

tellafriend-template
​SiteMarketingTAFTemplate

Tell-a-friend message template layout.

tellafriend-sent
​SiteMarketingTAFSent

Tell-a-friend sent page layout.

SiteAuthAllowed

boolean

Domain allowed state.

Example: true

SiteAuthorization

Array of site authorization settings.
part
​string

index or archive.

domain
​SiteDomain

Site domain name.

Example: site-domain
allowed
​SiteAuthAllowed

Domain allowed state.

Example: true

SiteObjectExtended

site
​SiteDomain

Site domain name.

Example: site-domain
allowed_origins
​array

Array of allowed origins for CORS requests.

Example: ["https://www.example.com"]
full_domain
​SiteFullDomain

Site full domain.

Example: site-domain.example.com
​SiteProperty[]

Array of site-specific property objects.

​SiteList[]

Array of site-specific mailing list objects.

Array of site element labels.

​SiteElementHtml[]

Array of site element labels.

​SiteLayout

Site layout data object. All values are Base64-encoded.

​SiteMarketing

Site marketing page layout data object. All values are Base64-encoded.

​SiteAuthorization

Array of site authorization settings.

domain
​SiteDomain

Site domain name.

Example: site-domain
owner
​CustomerId

Customer ID.

Example: 1
language
​SiteLanguage

Site language code, e.g. EN.

Example: EN
accept_check
​SiteAcceptCheck

Deprecated.

Example: null
welcome
​SiteWelcome

ID of the delivery sent as the welcome message of the site.

Example: 1
ssl
​SiteSSL

Whether SSL is enabled for the site.

Example: true
parent
​SiteParent

Domain name of the parent site.

Example: parent.site
is_default
​SiteDefault

Whether this is the customer's default site. Only one site can be the default.

Example: true
email_pos
​SiteEmailPos

Email field position on site.

Example: 0
sms_pos
​SiteSMSPos

SMS field position on site.

Example: 1
deleted
​DeletedDate

Date of deletion.

Example: null
whitelist_instruction
​SiteWhitelistInstruction

Whether the site uses the whitelist instruction.

Example: true
whitelist_email
​SiteWhitelistEmail

Whitelisted email address.

Example: sender@example.com
redirect
​SiteRedirect

Redirect target of the site.

Example: target-site
postfix
​DomainPostfix

Domain postfix.

Example: example.com
envelope_sender
​SiteEnvelopeSender

Whether to use the site domain as the envelope sender.

Example: false
domain_aliases
​SiteDomainAliases

Alternative fully qualified domain names of the site.

Example: ["alternative-name"]
recaptcha_secret
​RecaptchaSecret

reCAPTCHA secret key.

embed_notes
​SiteEmbedNotes

Free-text notes on where the site is embedded.

Example: https://www.example.com/embedded
embed_only
​SiteEmbedOnly

Whether the site is used for embedded forms only.

Example: true
replaced_by
​SiteReplacedBy

Replaced by site.

Example: replacing-site
rename_to
​SiteRenameTo

New name for the site.

Example: new-domain
hidden
​SiteHidden

Site hidden state.

Example: false

Date of creation.

Example: 2020-01-15 12:45:21.0173942
has_csrf
​SiteHasCSRF

Whether CSRF protection is enabled for the site.

Example: true
deny_framing
​SiteDenyFraming

Whether to prevent loading the site in a frame.

Example: true

SitesResponse

Array of site objects.

SiteRequestBody

domain
​SiteDomain · required

Site domain name.

Example: site-domain
children
​integer

Set to 1 to also look up parent sites of your sites. Defaults to 0.

Example: 0
​object

Site options.

SiteResponse

GetCustomerSites

id
​integer · required

Your own customer ID, or 0. Other IDs return an error.

Example: 0

CustomerSite

domain
​string

Site domain.

Example: example.domain
owner
​integer

Customer ID.

Example: 1000
language
​string

Site language.

Example: EN
accep_check
​boolean
welcome
​integer

Site welcome message delivery ID.

Example: 12012
ssl
​boolean

Whether SSL is enabled for the site.

Example: true
parent
​string
is_default
​boolean

Whether the site is the default site.

Example: false
email_pos
​integer

Position of the email input field on the site.

Example: 0
sms_pos
​integer

Position of the SMS input field on the site.

Example: 1
deleted
​string | null

Site deletion date.

Example: null
whitelist_instruction
​boolean

Whether contacts are instructed to whitelist the sender address.

Example: false
whitelist_email
​string

Email address that contacts are instructed to whitelist.

Example: sender@example.com
redirect
​string

Domain that this site redirects to.

Example: redirect.domain
postfix
​string

Postfix of the site name.

Example: example.com
envelope_sender
​boolean

Envelope sender.

Example: false
domain_aliases
​string

Domain aliases as a comma-separated string in curly brackets.

Example: {domain.alias,another.domain.alias}
recaptcha_secret
​string

reCAPTCHA secret.

Example: 6LeIxAcTAAAAAGG-vFI1TnRWxMZNFuojJ4WifJWe
embed_notes
​string

Embedding notes.

Example: Embedded at www.example.com
embed_only
​boolean

Whether the site is for embedded use only.

Example: true
replaced_by
​string
rename_to
​string
hidden
​boolean
created
​string

Site creation date.

Example: 2019-10-20 11:10:22.125111+02
has_csfr
​boolean

Whether the contact's browser must pass an automated CSRF test to join a mailing list. This reduces mailing list abuse.

Example: true
deny_framing
​boolean

Whether to prevent loading the site in a frame.

Example: true

GetCustomerSitesResponse

GetCustomerSite

site
​string

Site domain. If empty, the default site is returned.

Example: example.site

DomainSite

site
​string

Site domain.

Example: example.domain

GetCustomerSiteResponse

​object

GetCustomerDefaultSite

id
​integer · required

Your own customer ID, or 0. Other IDs return an error.

Example: 0

GetCustomerDefaultSiteResponse

​object

SiteAttributes

Site settings. `has_csrf` and `deny_framing` default to `true`.
site
​SiteDomain

Site domain name.

Example: site-domain

Site language code, e.g. EN.

Example: EN
welcome
​SiteWelcome

ID of the delivery sent as the welcome message of the site.

Example: 1
ssl
​SiteSSL

Whether SSL is enabled for the site.

Example: true
is_default
​SiteDefault

Whether this is the customer's default site. Only one site can be the default.

Example: true
whitelist_instruction
​SiteWhitelistInstruction

Whether the site uses the whitelist instruction.

Example: true
whitelist_email
​SiteWhitelistEmail

Whitelisted email address.

Example: sender@example.com
parent
​SiteParent

Domain name of the parent site.

Example: parent.site
redirect
​SiteRedirect

Redirect target of the site.

Example: target-site
postfix
​DomainPostfix

Domain postfix.

Example: example.com
envelope_sender
​SiteEnvelopeSender

Whether to use the site domain as the envelope sender.

Example: false
domain_aliases
​SiteDomainAliases

Alternative fully qualified domain names of the site.

Example: ["alternative-name"]
recaptcha_secret
​RecaptchaSecret

reCAPTCHA secret key.

embed_only
​SiteEmbedOnly

Whether the site is used for embedded forms only.

Example: true
embed_notes
​SiteEmbedNotes

Free-text notes on where the site is embedded.

Example: https://www.example.com/embedded
has_csrf
​SiteHasCSRF

Whether CSRF protection is enabled for the site.

Example: true
deny_framing
​SiteDenyFraming

Whether to prevent loading the site in a frame.

Example: true

SiteCreate

domain
​SiteDomain · required

Site domain name.

Example: site-domain

Site settings. has_csrf and deny_framing default to true.

SiteCreateResponse

result
​SiteDomain

Site domain name.

Example: site-domain

SiteUpdateAttributes

Site settings. They are saved only when `site` is given, and settings left out are then reset, as described in <a href="/api/sites#update-site"><code>siteUpdate</code></a>.
site
​SiteDomain

Site domain name.

Example: site-domain
language
​SiteLanguage

Site language code, e.g. EN.

Example: EN
welcome
​SiteWelcome

ID of the delivery sent as the welcome message of the site.

Example: 1
ssl
​SiteSSL

Whether SSL is enabled for the site.

Example: true
is_default
​SiteDefault

Whether this is the customer's default site. Only one site can be the default.

Example: true
whitelist_instruction
​SiteWhitelistInstruction

Whether the site uses the whitelist instruction.

Example: true
whitelist_email
​SiteWhitelistEmail

Whitelisted email address.

Example: sender@example.com
parent
​SiteParent

Domain name of the parent site.

Example: parent.site
redirect
​SiteRedirect

Redirect target of the site.

Example: target-site
postfix
​DomainPostfix

Domain postfix.

Example: example.com
envelope_sender
​SiteEnvelopeSender

Whether to use the site domain as the envelope sender.

Example: false
domain_aliases
​SiteDomainAliases

Alternative fully qualified domain names of the site.

Example: ["alternative-name"]
recaptcha_secret
​RecaptchaSecret

reCAPTCHA secret key.

embed_only
​SiteEmbedOnly

Whether the site is used for embedded forms only.

Example: true
embed_notes
​SiteEmbedNotes

Free-text notes on where the site is embedded.

Example: https://www.example.com/embedded
has_csrf
​SiteHasCSRF

Whether CSRF protection is enabled for the site.

Example: true
deny_framing
​SiteDenyFraming

Whether to prevent loading the site in a frame.

Example: true

SiteUpdate

domain
​SiteDomain · required

Site domain name.

Example: site-domain

Site settings. They are saved only when site is given, and settings left out are then reset, as described in siteUpdate.

SiteDelete

domain
​SiteDomain · required

Site domain name.

Example: site-domain

TrueOnSuccess

result
​boolean

Returns true on success.

Example: true

SetWelcomeDelivery

site
​string · required

Domain of your site.

Example: example.site
delivery
​integer · required

Delivery ID sent as the welcome message when a contact joins through the site. 0 removes the welcome message.

Example: 300

SetCustomerDefaultSite

id
​integer · required

Set to 0. Other values, including your own customer ID, return an error.

Example: 0
site
​string · required

Site domain. The site is created if it does not exist and set as the default site.

Example: new.site
language
​string · required

Site language, such as EN.

Example: EN
welcome
​integer

Delivery ID of the site welcome message.

Example: 1
ssl
​integer

Whether the site uses HTTPS: 1 or 0. Defaults to 0.

Example: 1

SetCustomerDefaultSiteResponse

result
​string

Domain name of the new default site.

Example: example.site

SetCustomerSite

site
​string · required

Domain of the site to modify. If empty or not found, a new site is created.

Example: old.site
customerId
​integer · required

Customer ID: your own, or that of your parent or child customer.

Example: 1001
newName
​string · required

New site domain. For a new site, a suffix such as -2 is added to the first label if the domain is taken.

Example: new.site
language
​string · required

Site language, such as EN.

Example: EN
welcome
​integer

Delivery ID of the site welcome message.

Example: 1
ssl
​integer

Whether the site uses HTTPS: 1 or 0. Defaults to 0.

Example: 1

SetCustomerSiteResponse

result
​string

Domain name of the new or modified site.

Example: new.site

PostfixesResponse

Array of available site postfixes.

GetDefaultPostfixResponse

result
​DomainPostfix

Domain postfix.

Example: example.com

GetSiteByName

site
​string · required

Site domain.

Example: example.site

GetSiteByNameResponse

​object

RecipientId

integer

Contact ID.

Example: 20000

RecipientDataQueryOptions

include_consents
​boolean

Include consents in the response. Defaults to true.

Example: false
include_list_memberships
​boolean

Include list memberships in the response. Defaults to true.

Example: false
include_properties
​boolean

Include properties in the response. Defaults to true.

Example: false

GetRecipient

id
​RecipientId · required

Contact ID.

Example: 20000

RecipientEmailOrNull

string | null

Email address of the contact, or null if the contact has none.

Example: recipient@example.com

RecipientSMSOrNull

string | null

Contact mobile phone number, or null if the contact has none.

Example: +358401234567

RecipientConfirmed

oneOf
Exactly one variant must match.

Decision Table

VariantMatching Criteria
type = string
type = boolean
Properties for Variant 1:
string

RecipientForgotten

boolean

Contact forgotten status.

Example: false

RecipientEnabled

boolean

Contact enabled status.

Example: true

RecipientObject

Contact.

Contact ID.

Example: 20000

Email address of the contact, or null if the contact has none.

Example: recipient@example.com

Contact mobile phone number, or null if the contact has none.

Example: +358401234567
​RecipientConfirmed

Contact confirmation time, or false if the contact is not confirmed or is deleted.

Example: 2019-12-13 14:55:12.021953
forgotten
​RecipientForgotten

Contact forgotten status.

Example: false

Contact enabled status.

Example: true

RecipientMembership

array

Contact membership as an array of 4 values: list ID, list name, list join time and list quit time in this order.

Example: [60,"Sample list","2019-12-13 14:55:12.021953",null]

RecipientProperties

Contact properties as name-value pairs.
string

Property value.

MemberConsentId

integer

Member consent ID.

Example: 123

ConsentId

integer

Consent ID.

Example: 4

ConsentRevision

integer

Consent revision number.

Example: 2

ConsentLang

string

Consent language code, e.g. EN.

Example: EN

ConsentSource

string

Source where the consent was created or granted.

Example: site

DoubleOptin

boolean

Membership must be confirmed by clicking the confirmation link.

Example: false

GrantedTime

string

Time when the consent was given.

Example: 2020-01-15 12:45:21.0173942

RevokedTime

string

Time when the consent was revoked.

Example: 2020-01-25 15:23:11.222412

ConsentDescription

string

Consent description text.

Example: Example description

ConsentTitle

string

Consent title.

Example: Example title

MemberConsentObject

Member consent ID.

Example: 123
consent_id
​ConsentId

Consent ID.

Example: 4
consent_revision
​ConsentRevision

Consent revision number.

Example: 2
consent_language
​ConsentLang

Consent language code, e.g. EN.

Example: EN
source
​ConsentSource

Source where the consent was created or granted.

Example: site
double_optin
​DoubleOptin

Membership must be confirmed by clicking the confirmation link.

Example: false
granted
​GrantedTime

Time when the consent was given.

Example: 2020-01-15 12:45:21.0173942
revoked
​RevokedTime

Time when the consent was revoked.

Example: 2020-01-25 15:23:11.222412

Date of creation.

Example: 2020-01-15 12:45:21.0173942
description
​ConsentDescription

Consent description text.

Example: Example description
title
​ConsentTitle

Consent title.

Example: Example title

ExistingRecipientObject

​RecipientObject

Contact.

​RecipientProperties

Contact properties as name-value pairs.

Example: {"property_name":"property_value"}

GetRecipientResponse

RecipientEmail

string

Email address of the contact.

Example: recipient@example.com

GetRecipientIncludeDeleted

boolean

Also search deleted contacts. Defaults to false.

Example: true

GetRecipientByEmail

email
​RecipientEmail · required

Email address of the contact.

Example: recipient@example.com
include_deleted
​GetRecipientIncludeDeleted

Also search deleted contacts. Defaults to false.

Example: true

RecipientDeleteTime

string

Deletion time.

Example: 2020-01-15 10:25:24.629731

RecipientDeleteReason

string

Free-text reason for the deletion.

Example: Example reason.

RecipientReasonProp

Deletion time.

Example: 2020-01-15 10:25:24.629731

Free-text reason for the deletion.

Example: Example reason.

GetRecipientObject

​RecipientObject

Contact.

Contact membership as an array of 4 values: list ID, list name, list join time and list quit time in this order.

​RecipientProperties

Contact properties as name-value pairs.

Example: {"property_name":"property_value"}

GetRecipientByEmailResponse

RecipientSMS

string

Contact mobile phone number, e.g. +358401234567.

Example: +358401234567

GetRecipientBySMS

sms
​RecipientSMS · required

Contact mobile phone number, e.g. +358401234567.

Example: +358401234567
include_deleted
​GetRecipientIncludeDeleted

Also search deleted contacts. Defaults to false.

Example: true

GetRecipientBySMSResponse

Offset

integer

Number of results to skip.

Example: 100

Amount

integer

Maximum number of results. 0 or omitted returns all.

Example: 100

OrderBy

string

Field to order results by: id, email, sms or a property name. Unordered when omitted.

Example: email

Sort

string

Sort direction, asc or desc. Defaults to asc.

Example: desc

Filter

string

Case-insensitive search text matched against email, SMS and property values. Use * as a wildcard.

Example: text

GetRecipients

from
​Offset

Number of results to skip.

Example: 100
num
​Amount

Maximum number of results. 0 or omitted returns all.

Example: 100
order
​OrderBy

Field to order results by: id, email, sms or a property name. Unordered when omitted.

Example: email
sort
​Sort

Sort direction, asc or desc. Defaults to asc.

Example: desc
filter
​Filter

Case-insensitive search text matched against email, SMS and property values. Use * as a wildcard.

Example: text

GetRecipientsResponse

GetRecipientList

ids
​integer[] · required

Contact IDs.

GetRecipientListResponse

result
​array

Arrays of contact details. The first array contains headers.

Example: [["member","email","sms","property"],["20001","example1@example.com","+358123456789","prop-value"],["20100","example2@example.com","+358234567890","other-prop-value"]]

PropertyValue

string

Property value to search for. Must match exactly.

Example: test

FindRecipientsByProperty

property_id
​PropertyHandle · required

Property handle. See getCustomerProperties.

Example: 123
query
​PropertyValue · required

Property value to search for. Must match exactly.

Example: test
limit
​integer

Maximum number of contacts to return, at most 25. Defaults to 1.

offset
​integer

Number of matching contacts to skip, for pagination. Defaults to 0.

FindRecipientsByPropertyResponse

QueryRecipientsBy

nm
​string · enum · required

Query to run.

Enum values:
filterRecipients
getMailingListMembers
getRecipients
getRecipientsReceivedMessage
getRecipientsActive
getUnassociatedRecipients
getDeletedRecipients
getBounceDeletedRecipients
Example: getRecipients
list
​ListId

Mailing list ID.

Example: 60
from
​Offset

Number of results to skip.

Example: 100
num
​Amount

Maximum number of results. 0 or omitted returns all.

Example: 100
order
​OrderBy

Field to order results by: id, email, sms or a property name. Unordered when omitted.

Example: email
sort
​Sort

Sort direction, asc or desc. Defaults to asc.

Example: desc
q
​Filter

Case-insensitive search text matched against email, SMS and property values. Use * as a wildcard.

Example: text
csv
​boolean

If true, the first item is semicolon-separated CSV text with all properties instead of contact IDs. Defaults to false.

Example: true
gzip
​boolean

If true, the CSV text is zlib-compressed and Base64-encoded. Applies only with csv. Defaults to false.

Example: true

QueryRecipientsByResponse

result
​array

Returns an array of contact IDs. The last item in the array is always the count of contacts.

Example: [502,7001,123,3]

ExistsRecipient

email_or_sms
​string · required

Email address or SMS number of the contact.

ExistsRecipientResponse

result
​RecipientId

Contact ID.

Example: 20000

IsEnabledRecipient

​required

Contact ID, email address or SMS number.

strict
​boolean

If true, returns 1 when the contact does not exist and 0 when it does, regardless of its state. Defaults to false.

IsEnabledRecipientResponse

result
​integer

With strict set to false: 1 for enabled, 0 for disabled.

Example: 1

GetRecipientsStatusByEmail

recipients
​string[] · required

Email addresses of the contacts.

Example: ["recipient1@example.com","recipient2@example.com"]

GetRecipientsStatusByEmailResponse

result
​object

Contact statuses keyed by email address: 0 for an active contact, 1 for a deleted contact and 2 if no contact has the address.

Example: {"recipient1@example.com":0,"recipient2@example.com":1}

GetShadowRecipient

id
​RecipientId · required

Contact ID.

Example: 20000

GetShadowRecipientResponse

​object

Contact data.

RecipientAutoConfirm

boolean

Confirm the contact automatically. Defaults to false.

Example: true

RecipientCreateReason

string

Free-text reason for creating the contact.

Example: Example reason.

Origin

string

Origin of the action, e.g. a subscription page URL or api.

Example: api

CreateAndJoinRecipient

id
​RecipientId · required

Contact ID.

Example: 20000
email
​RecipientEmail · required

Email address of the contact.

Example: recipient@example.com

Contact mobile phone number, e.g. +358401234567.

Example: +358401234567

Contact properties as name-value pairs.

Example: {"property_name":"property_value"}
autoconfirm
​RecipientAutoConfirm

Confirm the contact automatically. Defaults to false.

Example: true

Free-text reason for creating the contact.

Example: Example reason.
origin
​Origin

Origin of the action, e.g. a subscription page URL or api.

Example: api
lists
​ListId[]

IDs of the mailing lists to join.

admin
​boolean

Whether an admin made the join. false treats it as the contact's own subscription, for example in subscription statistics. Defaults to true.

Example: false

CreateAndJoinRecipientResponse

​

The contact ID, or false if the contact is deleted.

RecipientReactivateBounced

boolean

Reactivate an email address that is marked unreachable due to bounces. Defaults to false.

Note: Use this only for addresses confirmed to work. Abuse of this flag leads to suspension of REST API privileges.

Example: false

CreateRecipient

email
​RecipientEmail · required

Email address of the contact.

Example: recipient@example.com

Contact mobile phone number, e.g. +358401234567.

Example: +358401234567

Contact properties as name-value pairs.

Example: {"property_name":"property_value"}
autoconfirm
​RecipientAutoConfirm

Confirm the contact automatically. Defaults to false.

Example: true

Free-text reason for creating the contact.

Example: Example reason.
origin
​Origin

Origin of the action, e.g. a subscription page URL or api.

Example: api

Reactivate an email address that is marked unreachable due to bounces. Defaults to false.

Note: Use this only for addresses confirmed to work. Abuse of this flag leads to suspension of REST API privileges.

Example: false

CreateRecipientResponse

result
​RecipientId

Contact ID.

Example: 20000

Reason

string

Free-text reason for the action.

Example: Example reason.

UpdateRecipientCreate

boolean

Create the contact if it does not exist. A created contact is confirmed automatically. Defaults to false.

Example: true

UpdateRecipient

email
​RecipientEmail · required

Email address of the contact.

Example: recipient@example.com
sms
​RecipientSMS · required

Contact mobile phone number, e.g. +358401234567.

Example: +358401234567

Contact properties as name-value pairs.

Example: {"property_name":"property_value"}
reason
​Reason

Free-text reason for the action.

Example: Example reason.
origin
​Origin

Origin of the action, e.g. a subscription page URL or api.

Example: api

Create the contact if it does not exist. A created contact is confirmed automatically. Defaults to false.

Example: true

UpdateRecipientResponse

result
​RecipientId

Contact ID.

Example: 20000

EditRecipient

id
​RecipientId · required

Contact ID.

Example: 20000
email
​RecipientEmail · required

Email address of the contact.

Example: recipient@example.com

Contact mobile phone number, e.g. +358401234567.

Example: +358401234567

Contact properties as name-value pairs.

Example: {"property_name":"property_value"}
reason
​Reason

Free-text reason for the action.

Example: Example reason.
origin
​Origin

Origin of the action, e.g. a subscription page URL or api.

Example: api

NullResponse

result
​string | null

Returns null.

Example: null

RecipientDeleteReasonType

string

Unsubscribe reason type given by the contact.

Example: Example reason.

RecipientDeleteReasonText

string

Free-text unsubscribe reason given by the contact.

Example: Example reason.

DeleteRecipient

id
​RecipientId · required

Contact ID.

Example: 20000

Free-text reason for the deletion.

Example: Example reason.
subscriber_reason_type
​RecipientDeleteReasonType

Unsubscribe reason type given by the contact.

Example: Example reason.
subscriber_reason_text
​RecipientDeleteReasonText

Free-text unsubscribe reason given by the contact.

Example: Example reason.
origin
​Origin

Origin of the action, e.g. a subscription page URL or api.

Example: api
extra_data
​object

Extra details stored with the deletion event. Supported keys: source_delivery_id (one of your delivery IDs) and tracking-id.

Example: {"source_delivery_id":10}

DeleteRecipientResponse

result
​integer

1 if the contact was deleted, 0 if deleting it failed.

Example: 1

GetDeletedRecipient

id
​RecipientId · required

Contact ID.

Example: 20000

DeletedRecipientObject

​RecipientObject

Contact.

membership
​RecipientMembership

Contact membership as an array of 4 values: list ID, list name, list join time and list quit time in this order.

Example: [60,"Sample list","2019-12-13 14:55:12.021953",null]
​RecipientProperties

Contact properties as name-value pairs.

Example: {"property_name":"property_value"}

Deletion time.

Example: 2020-01-15 10:25:24.629731

GetDeletedRecipientResponse

GetDeletedRecipients

from
​Offset

Number of results to skip.

Example: 100
num
​Amount

Maximum number of results. 0 or omitted returns all.

Example: 100
order
​OrderBy

Field to order results by: id, email, sms or a property name. Unordered when omitted.

Example: email
sort
​Sort

Sort direction, asc or desc. Defaults to asc.

Example: desc
filter
​Filter

Case-insensitive search text matched against email, SMS and property values. Use * as a wildcard.

Example: text

GetDeletedRecipientsResponse

Deleted contact info.

EnableRecipient

id
​RecipientId · required

Contact ID.

Example: 20000
reason
​Reason

Free-text reason for the action.

Example: Example reason.

EnableRecipientResponse

result
​integer

Number of contacts enabled.

Example: 1

ReactivationIdentity

string

Name or other identifier of the person or system doing the reactivation.

Example: Admin user.

Deprecated

string | null

Deprecated. Set to null.

Example: null

ReactivateRecipient

email
​RecipientEmail · required

Email address of the contact.

Example: recipient@example.com
identity
​ReactivationIdentity · required

Name or other identifier of the person or system doing the reactivation.

Example: Admin user.
msg
​Reason · required

Free-text reason for the action.

Example: Example reason.

Confirm the contact automatically. Defaults to false.

Example: true
rise
​Deprecated

Deprecated. Set to null.

Example: null
origin
​Origin

Origin of the action, e.g. a subscription page URL or api.

Example: api

Contact properties as name-value pairs.

Example: {"property_name":"property_value"}

ReactivateRecipientResponse

result
​RecipientId

Contact ID.

Example: 20000

GetRecipientsStats

recipient_ids
​integer[] · required

Contact IDs, at most 1000.

Example: [1000,1001,1002]
values
​string[] · required

Statistics to return.

Enum values:
opens
clicks
Example: ["opens","clicks"]

DeliveryCount

integer

Count of deliveries.

Example: 2

OpenCount

integer

Count of opens.

Example: 2

OpenPct

string

Opens as a percentage of deliveries.

Example: 100.00

ClickCount

integer

Count of clicks.

Example: 2

ClickPct

string

Clicks as a percentage of deliveries.

Example: 100.00

RecipientStat

deliveries
​DeliveryCount

Count of deliveries.

Example: 2
opens
​OpenCount

Count of opens.

Example: 2
opens_pct
​OpenPct

Opens as a percentage of deliveries.

Example: 100.00
clicks
​ClickCount

Count of clicks.

Example: 2
clicks_pct
​ClickPct

Clicks as a percentage of deliveries.

Example: 100.00

RecipientStats

Arrays of the requested delivery statistics keyed by contact ID.

GetRecipientsStatsResponse

Arrays of the requested delivery statistics keyed by contact ID.

GetUniqueRecipientsCount

lists
​integer[] · required

Mailing list IDs. Active members of these lists are counted. If empty, only adhocs are counted.

Example: [100,101,102]
adhocs
​string[]

Additional email addresses to count.

Example: ["recipient@example.com"]
exclude_lists
​integer[]

IDs of mailing lists whose active members are excluded from the count.

Example: [103]

GetUniqueRecipientsCountResponse

result
​integer

Number of unique email addresses found.

Example: 421

GetUnassociatedRecipientsCountResponse

result
​integer

Number of unassociated contacts.

Example: 120

GetExcludeMembers

params
​required

Search criteria. Contacts matching deliveries or lists are returned; with neither, the result is empty.

Recipient1

id
​integer
email
​string

GetExcludeMembersResponse

​Recipient1[]

RecipientEmailArray

​string[]

Email addresses to check.

Example: ["recipient1@example.com","recipient2@example.com"]

CheckDomainsAllowed

recipients
​string[] · required

Email addresses to check.

Example: ["recipient1@example.com","recipient2@example.com"]

DomainAllowed

boolean

Returns true if all given email addresses have allowed domains and false if any of them has a non-allowed domain.

CheckDomainsAllowedResponse

result
​DomainAllowed

Returns true if all given email addresses have allowed domains and false if any of them has a non-allowed domain.

PropertyType

string · enum
Enum values:
text
numeric
select
checkbox

Property input type. Defaults to text.

Example: text

PropertyRequired

boolean

Whether the property is required on the subscription page.

Example: true

PropertySubscription

boolean

Whether the property is shown on the subscription page.

Example: true

PropertyPosition

integer

Display position of the property.

Example: 1

PropertyDataType

string · enum
Enum values:
text
datetime
numeric

Data type of the property values. Defaults to text.

Example: text

PropertyValues

array

Values of select, checkbox or radio type properties.

Example: ["value","other value"]

PropertyObject

Property handle. See getCustomerProperties.

Example: 123

Property name.

Example: Example name
type
​PropertyType · enum

Property input type. Defaults to text.

Enum values:
text
numeric
select
checkbox
Example: text
required
​PropertyRequired

Whether the property is required on the subscription page.

Example: true
subscription
​PropertySubscription

Whether the property is shown on the subscription page.

Example: true
position
​PropertyPosition

Display position of the property.

Example: 1
datatype
​PropertyDataType · enum

Data type of the property values. Defaults to text.

Enum values:
text
datetime
numeric
Example: text
hidden_from_ui
​boolean

Whether the property is hidden in the LianaMailer UI.

Example: false

Values of select, checkbox or radio type properties.

Example: ["value","other value"]

GetCustomerPropertiesResponse

PropertyLanguage

string

Property language code. Use FI, the language of normal properties: the value is used as given, not upper-cased, and leaving it out means no language. A property without a language is not listed by getCustomerProperties or shown in the LianaMailer UI.

Example: FI

PropertyChoices

​string[]

Allowed values for select and checkbox properties.

Example: ["selection-1","selection-2"]

CreateCustomerProperty

name
​PropertyName · required

Property name.

Example: Example name
language
​PropertyLanguage · required

Property language code. Use FI, the language of normal properties: the value is used as given, not upper-cased, and leaving it out means no language. A property without a language is not listed by getCustomerProperties or shown in the LianaMailer UI.

Example: FI
type
​PropertyType · enum

Property input type. Defaults to text.

Enum values:
text
numeric
select
checkbox
Example: text
choices
​string[]

Allowed values for select and checkbox properties.

Example: ["selection-1","selection-2"]
required
​PropertyRequired

Whether the property is required on the subscription page.

Example: true
subscription
​PropertySubscription

Whether the property is shown on the subscription page.

Example: true
position
​PropertyPosition

Display position of the property.

Example: 1
datatype
​PropertyDataType · enum

Data type of the property values. Defaults to text.

Enum values:
text
datetime
numeric
Example: text
hidden_from_ui
​boolean

Whether the property is hidden in the LianaMailer UI. Defaults to false.

Example: false

CreateCustomerPropertyResponse

Property handle. See getCustomerProperties.

Example: 123

PropertyNameOld

string

Current property name.

Example: Example name

PropertyNameNew

string

New property name.

Example: Example name

RenameCustomerProperty

oldname
​PropertyNameOld · required

Current property name.

Example: Example name
newname
​PropertyNameNew · required

New property name.

Example: Example name
language
​PropertyLanguage · required

Property language code. Use FI, the language of normal properties: the value is used as given, not upper-cased, and leaving it out means no language. A property without a language is not listed by getCustomerProperties or shown in the LianaMailer UI.

Example: FI

DeleteCustomerProperty

name
​PropertyName · required

Property name.

Example: Example name
language
​PropertyLanguage · required

Property language code. Use FI, the language of normal properties: the value is used as given, not upper-cased, and leaving it out means no language. A property without a language is not listed by getCustomerProperties or shown in the LianaMailer UI.

Example: FI

RecipientHistoryLimit

integer

Maximum number of mails to return. 0 returns no mails. Defaults to 10.

Example: 10

GetRecipientHistory

id
​RecipientId · required

Contact ID.

Example: 20000

Maximum number of mails to return. 0 returns no mails. Defaults to 10.

Example: 10

DeliveryId

integer

Delivery ID.

Example: 10

MailSubject

string

Mail subject.

Example: Example subject

DeliveryScheduled

string

Scheduled send time as YYYY-MM-DD HH:MM:SS.

Example: 2020-01-18 10:00:00

DeliveryMemberDelivered

boolean

Whether the contact has received the delivery.

Example: true

BasicDelivery

Delivery ID.

Example: 10
subject
​MailSubject

Mail subject.

Example: Example subject
scheduled
​DeliveryScheduled

Scheduled send time as YYYY-MM-DD HH:MM:SS.

Example: 2020-01-18 10:00:00

Whether the contact has received the delivery.

Example: true
format
​integer

GetRecipientHistoryResponse

FromDate

string

Start date and time as YYYY-MM-DD HH:MM:SS. getUnsubscriptions accepts only YYYY-MM-DD.

Example: 2019-12-20 14:00:00

EventType

string · enum
Enum values:
sent-mail
sms-sent
list-join
list-unsubscribe
mail-opened
mail-link-clicked
delete-reason
bounced

History event type.

Example: sent-mail

Limit

integer

Maximum number of results.

Example: 100

RecipientHistoryParams

Filters for the history actions.
from
​FromDate

Start date and time as YYYY-MM-DD HH:MM:SS. getUnsubscriptions accepts only YYYY-MM-DD.

Example: 2019-12-20 14:00:00
type
​EventType · enum

History event type.

Enum values:
sent-mail
sms-sent
list-join
list-unsubscribe
mail-opened
mail-link-clicked
delete-reason
bounced
Example: sent-mail
limit
​Limit

Maximum number of results.

Example: 100
offset
​Offset

Number of results to skip.

Example: 100

MemberHistoryActions

id
​RecipientId · required

Contact ID.

Example: 20000

Filters for the history actions.

EventDate

string

Event date.

Example: 2020-01-18 16:22:10.622693

Extra

string

ReferenceId

integer

Latitude

string

Longitude

string

City

string

ReferenceName

string

RemoteAddr

string

IP address.

Example: 127.0.0.1

RecipientActionHistoryObject

member_id
​RecipientId

Contact ID.

Example: 20000
type
​EventType · enum

History event type.

Enum values:
sent-mail
sms-sent
list-join
list-unsubscribe
mail-opened
mail-link-clicked
delete-reason
bounced
Example: sent-mail
date
​EventDate

Event date.

Example: 2020-01-18 16:22:10.622693
reason
​Reason

Free-text reason for the action.

Example: Example reason.
extra
​Extra
reference_id
​ReferenceId
latitude
​Latitude
longitude
​Longitude
city
​City
reference_name
​ReferenceName
remote_addr
​RemoteAddr

IP address.

Example: 127.0.0.1

MemberHistoryActionsResponse

MemberHistoryUpdate

id
​RecipientId · required

Contact ID.

Example: 20000

MemberHistoryUpdateStatus

id
​RecipientId · required

Contact ID.

Example: 20000

MemberHistoryUpdateStatusResponse

result
​integer

Returns 0 when ready, otherwise returns 1.

Example: 0

RequestMemberHistory

​object · required

Date range.

ProcessHandle

string

Process handle.

Example: H:mailer:50$20a471d4e47d950609d3d38c92b487c3

RequestMemberHistoryResponse

result
​ProcessHandle

Process handle.

Example: H:mailer:50$20a471d4e47d950609d3d38c92b487c3

ForgetRecipient

recipient_id
​RecipientId · required

Contact ID.

Example: 20000
reason
​Reason

Free-text reason for the action.

Example: Example reason.

ForgetRecipientByEmail

email
​RecipientEmail · required

Email address of the contact.

Example: recipient@example.com
reason
​Reason

Free-text reason for the action.

Example: Example reason.

ForgetRecipientBySMS

sms
​RecipientSMS · required

Contact mobile phone number, e.g. +358401234567.

Example: +358401234567
reason
​Reason

Free-text reason for the action.

Example: Example reason.

RecipientDataOptions

site
​string · required

Base URL of the subscription site, starting with http. Used for the archive placeholders in link URLs.

Example: http://www.example.com
format
​string · enum · required

File format. The json file is zipped.

Enum values:
xls
json
Example: xls
properties
​array

Property handles to include in the file. No properties are included when omitted.

GetRecipientDatafile

recipient_id
​RecipientId · required

Contact ID.

Example: 20000
​RecipientDataOptions · required

RecipientGDPRDataFile

string

Base64-encoded file.

GetRecipientDatafileResponse

Base64-encoded file.

ConsentTypeName

string

Consent type name.

Example: type

ConsentRevokable

boolean

Whether the consent can be revoked.

Example: true

ConsentTranslationObject

Consent translation.

Consent ID.

Example: 4
language
​ConsentLang

Consent language code, e.g. EN.

Example: EN
revision
​ConsentRevision

Consent revision number.

Example: 2
title
​ConsentTitle

Consent title.

Example: Example title
description
​ConsentDescription

Consent description text.

Example: Example description

Date of creation.

Example: 2020-01-15 12:45:21.0173942

ConsentObject

Consent ID.

Example: 4

Consent type name.

Example: type
is_revokable
​ConsentRevokable

Whether the consent can be revoked.

Example: true

Date of creation.

Example: 2020-01-15 12:45:21.0173942

GetConsentTypesResponse

Site

string

Domain name of the subscription site.

Example: site-domain

GetConsentTypesBySite

site
​Site · required

Domain name of the subscription site.

Example: site-domain

ConsentPosition

integer

Position on site.

Example: 1001

ConsentSiteObject

Site consent.
consent_id
​ConsentId

Consent ID.

Example: 4
is_revokable
​ConsentRevokable

Whether the consent can be revoked.

Example: true

Consent type name.

Example: type
consent_revision
​ConsentRevision

Consent revision number.

Example: 2

Position on site.

Example: 1001
title
​ConsentTitle

Consent title.

Example: Example title
description
​ConsentDescription

Consent description text.

Example: Example description
language
​ConsentLang

Consent language code, e.g. EN.

Example: EN

Date of creation.

Example: 2020-01-15 12:45:21.0173942

GetConsentTypesBySiteResponse

Source

string

Source of the consent. REST API callers should use api.

Example: api

SourceData

string

Free-text description of where the consent was given, e.g. a subscription page URL.

Example: example.com/subscribe

AddMemberConsent

member_id
​RecipientId · required

Contact ID.

Example: 20000
consent_id
​ConsentId · required

Consent ID.

Example: 4
consent_revision
​ConsentRevision · required

Consent revision number.

Example: 2
lang
​ConsentLang · required

Consent language code, e.g. EN.

Example: EN
source
​Source · required

Source of the consent. REST API callers should use api.

Example: api
source_data
​SourceData

Free-text description of where the consent was given, e.g. a subscription page URL.

Example: example.com/subscribe

AddMemberConsentResponse

Member consent ID.

Example: 123

RevokeMemberConsent

member_id
​RecipientId · required

Contact ID.

Example: 20000
consent_id
​ConsentId · required

Consent ID.

Example: 4
consent_revision
​ConsentRevision · required

Consent revision number.

Example: 2
lang
​ConsentLang · required

Consent language code, e.g. EN.

Example: EN

ConsentUpdateDataOptions

include_member_data
​boolean

Include contact data in each update. Defaults to false.

Example: true

GetMemberConsentUpdates

from_date
​FromDate · required

Start date and time as YYYY-MM-DD HH:MM:SS. getUnsubscriptions accepts only YYYY-MM-DD.

Example: 2019-12-20 14:00:00
offset
​Offset

Number of results to skip.

Example: 100
limit
​Limit

Maximum number of results.

Example: 100
consent_id
​ConsentId

Consent ID.

Example: 4

ConsentAction

string

Action of the consent update, one of the following:

  • granted: consent given by the contact
  • created: consent created by an admin in the UI or by a list import
  • revoked: consent revoked
Example: revoked

ConsentEventDate

string

Date of consent update.

Example: 2020-01-25 15:23:11.222412

ConsentUpdateData

member_id
​RecipientId

Contact ID.

Example: 20000
consent_id
​ConsentId

Consent ID.

Example: 4
consent_language
​ConsentLang

Consent language code, e.g. EN.

Example: EN
consent_revision
​ConsentRevision

Consent revision number.

Example: 2
source
​ConsentSource

Source where the consent was created or granted.

Example: site
action
​ConsentAction

Action of the consent update, one of the following:

  • granted: consent given by the contact
  • created: consent created by an admin in the UI or by a list import
  • revoked: consent revoked
Example: revoked

Date of consent update.

Example: 2020-01-25 15:23:11.222412

ConsentUpdateMeta

response_at
​string · date-time

Time of response.

Example: 2020-01-26T10:00:00+0200
​object
update_since
​string · date-time

Start date used in the query.

Example: 2020-01-10T01:00:00+0200

ConsentUpdateResponseObject

Updates found.

GetMemberConsentUpdatesResponse

CreateConsentType

name
​ConsentTypeName · required

Consent type name.

Example: type
is_revokable
​ConsentRevokable · required

Whether the consent can be revoked.

Example: true

CreateConsentTypeResponse

result
​ConsentId

Consent ID.

Example: 4

EditConsentType

consent_id
​ConsentId · required

Consent ID.

Example: 4
name
​ConsentTypeName · required

Consent type name.

Example: type
is_revokable
​ConsentRevokable · required

Whether the consent can be revoked.

Example: true

EditConsentTranslation

consent_id
​ConsentId · required

Consent ID.

Example: 4
lang
​ConsentLang · required

Consent language code, e.g. EN.

Example: EN
title
​ConsentTitle · required

Consent title.

Example: Example title
description
​ConsentDescription · required

Consent description text.

Example: Example description

EditConsentTranslationResponse

Consent revision number.

Example: 2

DeleteConsentType

consent_id
​ConsentId · required

Consent ID.

Example: 4

GetRecipientCode

id
​RecipientId · required

Contact ID.

Example: 20000

RecipientConfirmCode

string

Contact confirmation code.

Example: bdeCyBcrkf

GetRecipientCodeResponse

Contact confirmation code.

Example: bdeCyBcrkf

SetRecipientNeedConfirmation

id
​RecipientId · required

Contact ID.

Example: 20000

SetRecipientNeedConfirmationResponse

Contact confirmation code.

Example: bdeCyBcrkf

RecipientConfirmReason

string

Free-text reason for the confirmation.

Example: Example reason.

RecipientConfirmOrigin

string

Origin of the confirmation, e.g. the subscription page URL.

Example: example.com/subscription

ConfirmRecipient

code
​RecipientConfirmCode · required

Contact confirmation code.

Example: bdeCyBcrkf

Free-text reason for the confirmation.

Example: Example reason.

Origin of the confirmation, e.g. the subscription page URL.

Example: example.com/subscription

ConfirmRecipientResponse

result
​RecipientId

Contact ID.

Example: 20000

Subject

string

Message subject.

Example: Example subject.

Template

string

HTML body of the message.

Example: <h1>title</h1> Sample text

SenderEmail

string

Sender email address.

Example: sender@example.com

SenderName

string

Sender name.

Example: Message Sender

ReplyTo

string

Reply-To email address of the message.

Example: replty@example.com

ConfirmationMsg

date
​DeliveryScheduled · required

Scheduled send time as YYYY-MM-DD HH:MM:SS.

Example: 2020-01-18 10:00:00
subject
​Subject · required

Message subject.

Example: Example subject.
template
​Template · required

HTML body of the message.

Example: <h1>title</h1> Sample text
sender_email
​SenderEmail · required

Sender email address.

Example: sender@example.com
sender_name
​SenderName

Sender name.

Example: Message Sender
reply_to
​ReplyTo

Reply-To email address of the message.

Example: replty@example.com

SendRecipientConfirmationEmail

recipient_id
​RecipientId · required

Contact ID.

Example: 20000
​ConfirmationMsg · required

WelcomeSendForce

integer

Set to 0 to skip sending if the contact has already received any mail. Defaults to 1.

Example: 0

WelcomeProperties

Property values for the message, as name-value pairs.

SendWelcomeMail

recipient_id
​RecipientId · required

Contact ID.

Example: 20000
site_name
​Site · required

Domain name of the subscription site.

Example: site-domain

Set to 0 to skip sending if the contact has already received any mail. Defaults to 1.

Example: 0

Property values for the message, as name-value pairs.

Example: {"property_name":"property value"}

ConfirmationTaskType

string · enum
Enum values:
consent
membership
properties

Confirmation task type: consent adds a consent, membership joins a mailing list and properties sets contact properties.

Example: membership

ConfirmationTask

Task data, applied when the contact confirms. Required keys depend on the task type.
consent_id
​integer

For consent tasks. Consent ID.

Example: 10
lang
​string

For consent tasks. Consent language code.

Example: EN
consent_revision
​integer

For consent tasks. Consent revision.

Example: 1
source
​string

For consent tasks. Consent source. Use api.

Example: api
site
​string

Optional. Subscription site the confirmation comes from, saved as the source or origin of the change.

Example: example.com
list_id
​integer

For membership tasks, the mailing list to join. Optional for properties tasks to set list-specific properties, if they are enabled for the customer.

Example: 200
​object

For properties tasks. Property names and values to set. The properties must already exist.

AddConfirmationTask

member_id
​RecipientId · required

Contact ID.

Example: 20000
confirmation_code
​RecipientConfirmCode · required

Contact confirmation code.

Example: bdeCyBcrkf
task_type
​ConfirmationTaskType · enum · required

Confirmation task type: consent adds a consent, membership joins a mailing list and properties sets contact properties.

Enum values:
consent
membership
properties
Example: membership
​ConfirmationTask · required

Task data, applied when the contact confirms. Required keys depend on the task type.

ConfirmationTaskTypeObject

type
​ConfirmationTaskType · enum

Confirmation task type: consent adds a consent, membership joins a mailing list and properties sets contact properties.

Enum values:
consent
membership
properties
Example: membership

AddConfirmationTasks

member_id
​RecipientId · required

Contact ID.

Example: 20000
confirmation_code
​RecipientConfirmCode · required

Contact confirmation code.

Example: bdeCyBcrkf
​object[] · required

GetConfirmationTasks

confirmation_code
​RecipientConfirmCode · required

Contact confirmation code.

Example: bdeCyBcrkf

ConfirmationTaskJson

Confirmation task, with the task as a JSON object.
type
​ConfirmationTaskType · enum

Confirmation task type: consent adds a consent, membership joins a mailing list and properties sets contact properties.

Enum values:
consent
membership
properties
Example: membership
payload
​string

Task as a JSON object.

Example: {"list_id":"102","site":"site.domain","member_id":"20000"}

GetConfirmationTasksResponse

ListIncludeDeleted

integer

Set to 1 to include deleted mailing lists. Defaults to 0.

Example: 1

GetMailingLists

include_deleted
​ListIncludeDeleted

Set to 1 to include deleted mailing lists. Defaults to 0.

Example: 1

ListCondition

string

Dynamic list condition as a JSON string. Must be null for regular and segment lists.

Each condition has a contact property name, a value and a condition: = (equal), <> (not equal), ilike (contains), ilike-not (does not contain), in (in list), begins, begins-not, ends or ends-not.

Example: {"conditions":[{"name":"email", "condition":"begins", "value":"testuser+"}], "enabled":true }

ListDescription

string

Short description of the mailing list.

Example: Description text

ListSubs

boolean

Whether the list is available for subscription on subscription sites. Cannot be true for dynamic or segment lists.

Example: false

DeletedTimestamp

string

Date of deletion.

Example: 2020-01-15 12:45:21.0173942

HiddenTimestamp

string

Date of hiding.

Example: 2020-01-15 12:45:21.0173942

ListDomain

string

List site domain.

Example: list.domain

UpdatedTimestamp

string

Date of last update.

Example: 2020-01-15 12:45:21.0173942

ListAutomationSegment

integer | null

LianaAutomation segment ID of a segment list, or -1 if the segment is not determined yet. Must be null for regular and dynamic lists.

Example: null

ListHealth

integer

List health as a percentage.

Example: 100

ListHealthUpdated

string

List health update date.

Example: 2020-01-15 10:25:24.629731

ListMemberCount

integer

List member count.

Example: 4012

ListImportStatus

string | null · enum
Enum values:
waiting
importing

Status of the latest import, or null if no import is waiting or running.

Example: importing

ListImportTotal

integer

Number of members in the latest import, even after it has finished.

Example: 100

ListImportCurrent

integer

Number of members imported so far in the latest import.

Example: 92

ListImportCreated

string

Creation time of the latest import.

Example: 2020-01-15 12:45:21.0173942

ListExtendedObject

Mailing list info.
id
​ListId

Mailing list ID.

Example: 60
owner
​CustomerId

Customer ID.

Example: 1
name
​ListName

Mailing list name.

Example: Sample list
condition
​ListCondition

Dynamic list condition as a JSON string. Must be null for regular and segment lists.

Each condition has a contact property name, a value and a condition: = (equal), <> (not equal), ilike (contains), ilike-not (does not contain), in (in list), begins, begins-not, ends or ends-not.

Example: {"conditions":[{"name":"email", "condition":"begins", "value":"testuser+"}], "enabled":true }
description
​ListDescription

Short description of the mailing list.

Example: Description text
self_service
​ListSubs

Whether the list is available for subscription on subscription sites. Cannot be true for dynamic or segment lists.

Example: false

Date of deletion.

Example: 2020-01-15 12:45:21.0173942

Date of hiding.

Example: 2020-01-15 12:45:21.0173942
site
​ListDomain

List site domain.

Example: list.domain

Date of last update.

Example: 2020-01-15 12:45:21.0173942

Date of creation.

Example: 2020-01-15 12:45:21.0173942
cem_segment
​ListAutomationSegment

LianaAutomation segment ID of a segment list, or -1 if the segment is not determined yet. Must be null for regular and dynamic lists.

Example: null
health
​ListHealth

List health as a percentage.

Example: 100
health_updated
​ListHealthUpdated

List health update date.

Example: 2020-01-15 10:25:24.629731
list
​ListId

Mailing list ID.

Example: 60
members
​ListMemberCount

List member count.

Example: 4012
import_status
​ListImportStatus · enum

Status of the latest import, or null if no import is waiting or running.

Enum values:
waiting
importing
Example: importing
import_total
​ListImportTotal

Number of members in the latest import, even after it has finished.

Example: 100
import_current
​ListImportCurrent

Number of members imported so far in the latest import.

Example: 92
import_created
​ListImportCreated

Creation time of the latest import.

Example: 2020-01-15 12:45:21.0173942

GetMailingListsResponse

Array of mailing lists.

GetSmsCount

boolean

Return the number of members with an SMS number as members, instead of all members. Defaults to false.

Example: true

GetMailingList

list_id
​ListId · required

Mailing list ID.

Example: 60

Return the number of members with an SMS number as members, instead of all members. Defaults to false.

Example: true

ListSmsMembers

integer

Count of list members. If sms is true, only members with an SMS number are counted.

Example: 12

ListObject

Mailing list info.
id
​ListId

Mailing list ID.

Example: 60
name
​ListName

Mailing list name.

Example: Sample list
description
​ListDescription

Short description of the mailing list.

Example: Description text
owner
​CustomerId

Customer ID.

Example: 1
condition
​ListCondition

Dynamic list condition as a JSON string. Must be null for regular and segment lists.

Each condition has a contact property name, a value and a condition: = (equal), <> (not equal), ilike (contains), ilike-not (does not contain), in (in list), begins, begins-not, ends or ends-not.

Example: {"conditions":[{"name":"email", "condition":"begins", "value":"testuser+"}], "enabled":true }
self_service
​ListSubs

Whether the list is available for subscription on subscription sites. Cannot be true for dynamic or segment lists.

Example: false
members
​ListSmsMembers

Count of list members. If sms is true, only members with an SMS number are counted.

Example: 12
domain
​ListDomain

List site domain.

Example: list.domain

Date of deletion.

Example: 2020-01-15 12:45:21.0173942

Date of last update.

Example: 2020-01-15 12:45:21.0173942
cem_segment
​ListAutomationSegment

LianaAutomation segment ID of a segment list, or -1 if the segment is not determined yet. Must be null for regular and dynamic lists.

Example: null

GetMailingListResponse

​ListObject

Mailing list info.

ListSite

string

Domain name of the subscription site for the list. To list sites, use sites.

Example: site-domain

ListExtId

string

External ID of the mailing list.

Example: abc123

ListExtIdType

string

Type of the external ID.

Example: string

CreateMailingList

name
​ListName · required

Mailing list name.

Example: Sample list

Short description of the mailing list.

Example: Description text
subs
​ListSubs

Whether the list is available for subscription on subscription sites. Cannot be true for dynamic or segment lists.

Example: false
condition
​ListCondition

Dynamic list condition as a JSON string. Must be null for regular and segment lists.

Each condition has a contact property name, a value and a condition: = (equal), <> (not equal), ilike (contains), ilike-not (does not contain), in (in list), begins, begins-not, ends or ends-not.

Example: {"conditions":[{"name":"email", "condition":"begins", "value":"testuser+"}], "enabled":true }
site
​ListSite

Domain name of the subscription site for the list. To list sites, use sites.

Example: site-domain
cem_segment
​ListAutomationSegment

LianaAutomation segment ID of a segment list, or -1 if the segment is not determined yet. Must be null for regular and dynamic lists.

Example: null
ext_id
​ListExtId

External ID of the mailing list.

Example: abc123
ext_type
​ListExtIdType

Type of the external ID.

Example: string

CreateMailingListResponse

result
​ListId

Mailing list ID.

Example: 60

EditMailingList

id
​ListId · required

Mailing list ID.

Example: 60
new_name
​ListName · required

Mailing list name.

Example: Sample list
new_desc
​ListDescription · required

Short description of the mailing list.

Example: Description text
new_subs
​ListSubs

Whether the list is available for subscription on subscription sites. Cannot be true for dynamic or segment lists.

Example: false
new_condition
​ListCondition

Dynamic list condition as a JSON string. Must be null for regular and segment lists.

Each condition has a contact property name, a value and a condition: = (equal), <> (not equal), ilike (contains), ilike-not (does not contain), in (in list), begins, begins-not, ends or ends-not.

Example: {"conditions":[{"name":"email", "condition":"begins", "value":"testuser+"}], "enabled":true }
site
​ListSite

Domain name of the subscription site for the list. To list sites, use sites.

Example: site-domain
cem_segment
​ListAutomationSegment

LianaAutomation segment ID of a segment list, or -1 if the segment is not determined yet. Must be null for regular and dynamic lists.

Example: null

EditMailingListResponse

​

The list ID, or false if new_name is empty and the list was not changed.

DeleteMailingList

list_id
​ListId · required

Mailing list ID.

Example: 60

HideMailingList

list_id
​ListId · required

Mailing list ID.

Example: 60

TruncateMailingList

list_id
​ListId · required

Mailing list ID.

Example: 60

EditMailingListSelfService

id
​ListId · required

Mailing list ID.

Example: 60
self_service
​ListSubs · required

Whether the list is available for subscription on subscription sites. Cannot be true for dynamic or segment lists.

Example: false

EditMailingListSelfServiceResponse

result
​array

List IDs with their self-service states.

Example: [{"id":12,"self_service":true},{"id":23,"self_service":false}]

GetMailingListCondition

list_id
​ListId · required

Mailing list ID.

Example: 60

GetMailingListConditionResponse

result
​ListCondition

Dynamic list condition as a JSON string. Must be null for regular and segment lists.

Each condition has a contact property name, a value and a condition: = (equal), <> (not equal), ilike (contains), ilike-not (does not contain), in (in list), begins, begins-not, ends or ends-not.

Example: {"conditions":[{"name":"email", "condition":"begins", "value":"testuser+"}], "enabled":true }

EditMailingListCondition

list_id
​ListId · required

Mailing list ID.

Example: 60
condition
​ListCondition · required

Dynamic list condition as a JSON string. Must be null for regular and segment lists.

Each condition has a contact property name, a value and a condition: = (equal), <> (not equal), ilike (contains), ilike-not (does not contain), in (in list), begins, begins-not, ends or ends-not.

Example: {"conditions":[{"name":"email", "condition":"begins", "value":"testuser+"}], "enabled":true }

EditMailingListConditionResponse

result
​ListCondition

Dynamic list condition as a JSON string. Must be null for regular and segment lists.

Each condition has a contact property name, a value and a condition: = (equal), <> (not equal), ilike (contains), ilike-not (does not contain), in (in list), begins, begins-not, ends or ends-not.

Example: {"conditions":[{"name":"email", "condition":"begins", "value":"testuser+"}], "enabled":true }

RequestTargetgroup

list
​ListId · required

Mailing list ID.

Example: 60

RequestTargetgroupResponse

result
​string

Job handle.

Example: H:ws2-beta:231124

UpdateMailingListHealth

​required

Mailing list ID or an array of mailing list IDs.

Example: 60

UpdateMailingListHealthResponse

​object

Updated list health.

FindListExternal

ext_id
​ListExtId · required

External ID of the mailing list.

Example: abc123
type
​ListExtIdType · required

Type of the external ID.

Example: string

FindListExternalResponse

result
​ListId

Mailing list ID.

Example: 60

GetMailingListExternalId

list_id
​ListId · required

Mailing list ID.

Example: 60
type
​ListExtIdType · required

Type of the external ID.

Example: string

GetMailingListExternalIdResponse

result
​ListExtId

External ID of the mailing list.

Example: abc123

AddMailingListExternalId

list_id
​ListId · required

Mailing list ID.

Example: 60
ext_id
​ListExtId · required

External ID of the mailing list.

Example: abc123
type
​ListExtIdType · required

Type of the external ID.

Example: string

DeleteMailingListExternalId

list_id
​ListId · required

Mailing list ID.

Example: 60
type
​ListExtIdType · required

Type of the external ID.

Example: string

ListJoinNoauto

boolean

Do not confirm unconfirmed contacts automatically. Defaults to false.

Example: true

Admin

boolean

Action initiated by an admin (true) or by the contact (false). Defaults to true.

Example: false

ListImportTruncate

boolean

Remove current list members who are not in the new data. Defaults to false.

Example: false

ListRejoin

boolean

Record a new list join even for contacts already on the list, which allows repeated welcome messages. Defaults to false.

Example: true

ListJoinIgnoreErrors

boolean

Skip contacts that cannot be added, such as missing contacts, instead of failing. Defaults to false.

Example: true

JoinMailingList

list_id
​ListId · required

Mailing list ID.

Example: 60
recipient_list
​integer[] · required

IDs of the contacts to add.

Example: [1000,1001,1002]

Do not confirm unconfirmed contacts automatically. Defaults to false.

Example: true
reason
​Reason

Free-text reason for the action.

Example: Example reason.
admin
​Admin

Action initiated by an admin (true) or by the contact (false). Defaults to true.

Example: false

Remove current list members who are not in the new data. Defaults to false.

Example: false
origin
​Origin

Origin of the action, e.g. a subscription page URL or api.

Example: api
rejoin
​ListRejoin

Record a new list join even for contacts already on the list, which allows repeated welcome messages. Defaults to false.

Example: true
ignore_errors
​ListJoinIgnoreErrors

Skip contacts that cannot be added, such as missing contacts, instead of failing. Defaults to false.

Example: true

RemoveRecipientFromMailingList

member
​RecipientId · required

Contact ID.

Example: 20000
list_id
​ListId · required

Mailing list ID.

Example: 60
reason
​Reason

Free-text reason for the action.

Example: Example reason.

NumberOfListMemberEntries

integer

Maximum number of members to return. 0 or omitted returns all.

Example: 0

MailingListMemberFilter

string

Case-insensitive search text matched against email, SMS (in international format) or property values. Use * as a wildcard. Special values:

  • has_email returns members who have an email address
  • has_sms returns members who have an SMS number
Example: property-value

GetMailingListMembers

list_id
​ListId · required

Mailing list ID.

Example: 60
from
​Offset

Number of results to skip.

Example: 100

Maximum number of members to return. 0 or omitted returns all.

Example: 0
order
​OrderBy

Field to order results by: id, email, sms or a property name. Unordered when omitted.

Example: email
sort
​Sort

Sort direction, asc or desc. Defaults to asc.

Example: desc

Case-insensitive search text matched against email, SMS (in international format) or property values. Use * as a wildcard. Special values:

  • has_email returns members who have an email address
  • has_sms returns members who have an SMS number
Example: property-value

GetMailingListMembersResponse

result
​integer[]

Array of contact IDs.

Example: [402,512,493]

ListMemberCondition

string · enum
Enum values:
bounced
unsubscribed
left
joined
new

Member group to return. Omitted or other values return all members.

  • bounced members with bounces
  • unsubscribed members who have been on the list but unsubscribed
  • left members who opted out of the list
  • joined members who opted in to the list
  • new all list members
Example: bounced

ListMemberColumns

​string[]

Columns to include: property names and optionally joined, quit, unsubscribed or member_id. Empty returns all properties.

Example: ["propertyname"]

GetMailingListMembersConditional

list_id
​ListId · required

Mailing list ID.

Example: 60
from
​integer

Start time as a Unix timestamp. Defaults to 0. Ignored when condition is new or omitted.

to
​integer

End time as a Unix timestamp. Defaults to now. Ignored when condition is new or omitted.

condition
​ListMemberCondition · enum

Member group to return. Omitted or other values return all members.

  • bounced members with bounces
  • unsubscribed members who have been on the list but unsubscribed
  • left members who opted out of the list
  • joined members who opted in to the list
  • new all list members
Enum values:
bounced
unsubscribed
left
joined
new
Example: bounced
cols
​string[]

Columns to include: property names and optionally joined, quit, unsubscribed or member_id. Empty returns all properties.

Example: ["propertyname"]

ListCsv

string

List contents in CSV format.

Example: "email";"sms";"property"

GetMailingListMembersConditionalResponse

result
​ListCsv

List contents in CSV format.

Example: "email";"sms";"property"

GetMailingListMembersCount

list
​ListId · required

Mailing list ID.

Example: 60

GetMailingListMembersCountResponse

List member count.

Example: 4012

GetRecipientsMailingListProps

list_id
​ListId · required

Mailing list ID.

Example: 60
recipient_id
​RecipientId

Contact ID.

Example: 20000

ListProperty

property_name
​string

RecipientListProp

Arrays of list properties keyed by contact ID.

GetRecipientsMailingListPropsResponse

Arrays of list properties keyed by contact ID.

GetSubscriptionData

from
​FromDate

Start date and time as YYYY-MM-DD HH:MM:SS. getUnsubscriptions accepts only YYYY-MM-DD.

Example: 2019-12-20 14:00:00

JoinDate

string

Contact join date.

Example: 2019-11-10 14:22:04

SubscriptionData

joined
​JoinDate

Contact join date.

Example: 2019-11-10 14:22:04
list_id
​ListId

Mailing list ID.

Example: 60
member
​RecipientId

Contact ID.

Example: 20000

GetSubscriptionDataResponse

Array of subscription data.

GetUnsubscriptions

from
​FromDate

Start date and time as YYYY-MM-DD HH:MM:SS. getUnsubscriptions accepts only YYYY-MM-DD.

Example: 2019-12-20 14:00:00

UnsubscriptionDate

string

Unsubscription date.

Example: 2019-11-10 14:22:04

UnsubscribedRecipientObject

Unsubscriber.
list
​ListId

Mailing list ID.

Example: 60
member_id
​RecipientId

Contact ID.

Example: 20000
member_email
​RecipientEmailOrNull

Email address of the contact, or null if the contact has none.

Example: recipient@example.com
reason
​Reason

Free-text reason for the action.

Example: Example reason.
unsubscribed
​UnsubscriptionDate

Unsubscription date.

Example: 2019-11-10 14:22:04

GetUnsubscriptionsResponse

Array of unsubscriptions.

QuitMailingList

list_id
​ListId · required

Mailing list ID.

Example: 60
recipient_id
​RecipientId · required

Contact ID.

Example: 20000
reason
​Reason

Free-text reason for the action.

Example: Example reason.
admin
​Admin

Action initiated by an admin (true) or by the contact (false). Defaults to true.

Example: false
origin
​Origin

Origin of the action, e.g. a subscription page URL or api.

Example: api

ListImportCSV

string

CSV data, raw or Base64-encoded, with property names in the header row. Use:

  • Field separator ;
  • Encapsulation "
  • Encoding UTF-8
  • Unix-style line endings \n

ListImportB64Encoded

boolean

csv is Base64-encoded. Defaults to false.

Example: false

ListImportDisableAutomationEvents

boolean

Do not send LianaAutomation events for the import. Defaults to false.

Example: false

ListImportUseListProps

boolean

Import properties as list-specific values instead of contact default values. Defaults to false.

Example: false

ListImportUseDuplicates

boolean

When the email and SMS of a row match two different contacts, add both to the list instead of rejecting the row. Defaults to false.

Example: false

ListImportUserId

integer

ID of the user to associate with the import. Must be the ID of the authenticated user.

Example: 123

ListImportId

integer

ID of an existing import to use. Applies only with user_id, and the import must belong to that user.

Example: 1234

ImportCSVToMailingList

list_id
​ListId · required

Mailing list ID.

Example: 60
properties_client
​Deprecated · required

Deprecated. Set to null.

Example: null
csv
​ListImportCSV · required

CSV data, raw or Base64-encoded, with property names in the header row. Use:

  • Field separator ;
  • Encapsulation "
  • Encoding UTF-8
  • Unix-style line endings \n
receipt
​Deprecated

Deprecated. Set to null.

Example: null
base64encoded
​ListImportB64Encoded

csv is Base64-encoded. Defaults to false.

Example: false

Remove current list members who are not in the new data. Defaults to false.

Example: false

Do not send LianaAutomation events for the import. Defaults to false.

Example: false
use_list_props
​ListImportUseListProps

Import properties as list-specific values instead of contact default values. Defaults to false.

Example: false
use_duplicates
​ListImportUseDuplicates

When the email and SMS of a row match two different contacts, add both to the list instead of rejecting the row. Defaults to false.

Example: false
fork
​Deprecated

Deprecated. Set to null.

Example: null

ID of the user to associate with the import. Must be the ID of the authenticated user.

Example: 123
import_id
​ListImportId

ID of an existing import to use. Applies only with user_id, and the import must belong to that user.

Example: 1234
consent_id
​ConsentId

Consent ID.

Example: 4
consent_lang
​ConsentLang

Consent language code, e.g. EN.

Example: EN

ImportJSONToMailingList

list_id
​ListId · required

Mailing list ID.

Example: 60
emails
​string · required

JSON array of email addresses, or of objects with email, sms and property values keyed by property name. Property names are case-insensitive.

IsCSVToMailingListAllowed

list_id
​ListId · required

Mailing list ID.

Example: 60
properties_client
​Deprecated · required

Deprecated. Set to null.

Example: null
csv
​ListImportCSV · required

CSV data, raw or Base64-encoded, with property names in the header row. Use:

  • Field separator ;
  • Encapsulation "
  • Encoding UTF-8
  • Unix-style line endings \n
receipt
​Deprecated

Deprecated. Set to null.

Example: null
base64encoded
​ListImportB64Encoded

csv is Base64-encoded. Defaults to false.

Example: false

Remove current list members who are not in the new data. Defaults to false.

Example: false

IsCSVToMailingListAllowedResponse

result
​string

Boolean true if all rows are allowed, false if the data has no email or SMS column, otherwise the blocked addresses in CSV format.

Example: email recipient@bad.domain

GetImportStatus

list_id
​ListId · required

Mailing list ID.

Example: 60

ImportStatus

integer

Current status: -1 if the list is fully imported, or [0, lines] if still importing.

Example: -1

GetImportStatusResponse

result
​ImportStatus

Current status: -1 if the list is fully imported, or [0, lines] if still importing.

Example: -1

Base64Result

boolean

Return the content Base64-encoded. Defaults to false.

Example: false

GetImportLog

list_id
​ListId · required

Mailing list ID.

Example: 60
base64encoded
​Base64Result

Return the content Base64-encoded. Defaults to false.

Example: false

ImportLog

string

Log data of list import.

Example: Import summary: 1 records imported to listname Details: Source CSV file had 2 lines New records: 1 Updated records: 0 Duplicates: 0 Empty email or SMS: 0 Rejected: 0 Unsubscribed: 0 Deleted: 0 Domain rejected: 0 Member limit exceeded: 0 Target list: lista Import took 0 s Cancelled subscriptions: None Deleted subscribers: None Domain rejected records: All OK Member limit exceeded records: None Rejected records: All OK Errors: No errors

GetImportLogResponse

result
​ImportLog

Log data of list import.

Example: Import summary: 1 records imported to listname Details: Source CSV file had 2 lines New records: 1 Updated records: 0 Duplicates: 0 Empty email or SMS: 0 Rejected: 0 Unsubscribed: 0 Deleted: 0 Domain rejected: 0 Member limit exceeded: 0 Target list: lista Import took 0 s Cancelled subscriptions: None Deleted subscribers: None Domain rejected records: All OK Member limit exceeded records: None Rejected records: All OK Errors: No errors

MailId

integer

Mail ID.

Example: 20

GetMail

id
​MailId · required

Mail ID.

Example: 20
encode
​Base64Result

Return the content Base64-encoded. Defaults to false.

Example: false

Html

string

HTML content of the message.

Example: <h1>Title</h1> This is message content.

Plain

string

Plain text content of the message.

Example: This is message content.

Sms

string

SMS message content.

Example: Custom SMS content

MailTracking

integer

Mail tracking state.

Example: 1

MailArchive

integer

Mail archive state.

Example: 1

MailFileId

integer

Image ID.

Example: 4012

MailFileName

string

File name.

Example: f56ed425e86524927b8dcad24ec057b6.jpg

MailFileMimetype

string

MIME type of the file.

Example: image/jpg

MailFileContentMd5

string

MD5 hash of the file content.

Example: f56ed425e86524927b8dcad24ec057b6

MailImage

Mail image.

Image ID.

Example: 4012
filename
​MailFileName

File name.

Example: f56ed425e86524927b8dcad24ec057b6.jpg
mimetype
​MailFileMimetype

MIME type of the file.

Example: image/jpg
content_md5
​MailFileContentMd5

MD5 hash of the file content.

Example: f56ed425e86524927b8dcad24ec057b6

MailImagesArr

Mail images.

Mail image.

Image ID.

Example: 4012
filename
​MailFileName

File name.

Example: f56ed425e86524927b8dcad24ec057b6.jpg
mimetype
​MailFileMimetype

MIME type of the file.

Example: image/jpg
content_md5
​MailFileContentMd5

MD5 hash of the file content.

Example: f56ed425e86524927b8dcad24ec057b6

MailAttachment

Mail attachment.

Image ID.

Example: 4012
filename
​MailFileName

File name.

Example: f56ed425e86524927b8dcad24ec057b6.jpg
content_md5
​MailFileContentMd5

MD5 hash of the file content.

Example: f56ed425e86524927b8dcad24ec057b6

MailAttachmentsArr

Mail attachments.

Mail attachment.

Image ID.

Example: 4012
filename
​MailFileName

File name.

Example: f56ed425e86524927b8dcad24ec057b6.jpg
content_md5
​MailFileContentMd5

MD5 hash of the file content.

Example: f56ed425e86524927b8dcad24ec057b6

MailObject

Mail template.
id
​MailId

Mail ID.

Example: 20
template
​Html

HTML content of the message.

Example: <h1>Title</h1> This is message content.
plaintext
​Plain

Plain text content of the message.

Example: This is message content.
subject
​MailSubject

Mail subject.

Example: Example subject
shortmessage
​Sms

SMS message content.

Example: Custom SMS content
tracking
​MailTracking

Mail tracking state.

Example: 1
archive
​MailArchive

Mail archive state.

Example: 1
​MailImage[]

Mail images.

​MailAttachment[]

Mail attachments.

GetMailResponse

​MailObject

Mail template.

GetMailName

mail_id
​MailId · required

Mail ID.

Example: 20

MailName

string

Mail name.

Example: Mail name.

GetMailNameResponse

result
​MailName

Mail name.

Example: Mail name.

GetMailTrackingState

id
​MailId · required

Mail ID.

Example: 20

LinkId

integer

Link ID.

Example: 600

LinkOriginal

string

Original link URL.

Example: https://www.example.com/
A tracked link. Unlike other link objects, it has `id` instead of `link_id`.
id
​LinkId

Link ID.

Example: 600
original
​LinkOriginal

Original link URL.

Example: https://www.example.com/
clicks
​ClickCount

Count of clicks.

Example: 2
clickers
​integer

Number of clickers.

Example: 7

GetMailTrackingStateResponse

​object

GetMailLinkData

id
​MailId · required

Mail ID.

Example: 20
link_id
​LinkId

Link ID.

Example: 600
original
​LinkOriginal

Original link URL.

Example: https://www.example.com/
clicks
​ClickCount

Count of clicks.

Example: 2
clickers
​integer

Number of clickers.

Example: 7

LinkFriendClicks

integer

Number of clicks by friends.

Example: 2

LinkFriendClicksObject

friend_clicks
​LinkFriendClicks

Number of clicks by friends.

Example: 2

GetMailLinkDataResponse

​object[]

LinkConverted

string

Tracking link.

Example: $SYSTEM:SITE$/go/600-10

LinkChecksum

integer

Link checksum.

Example: 9

GetLinksResponse

​object[]

GetDelivery

id
​integer

Delivery ID. If omitted, all your mailing list deliveries are returned.

Example: 10

DeliveryMembers

integer

Count of delivery contacts.

Example: 21

DeliveryDelivered

integer

Count of contacts the message was delivered to.

Example: 21

DeliveryBounces

integer

Number of bounced contacts in the delivery.

Example: 1

DeliveryCreated

string

Delivery creation time.

Example: 2020-01-15 14:55:00

SubjectB64

string

Base64-encoded subject of the delivery.

Example: RXhhbXBsZSBzdWJqZWN0

DeliveryArchive

array

Array of archives the delivery appears in.

Example: ["archive-name"]

DeliveryRss

array

Array of RSS feeds the delivery appears in.

Example: ["archive-name"]

CampaignId

integer

Campaign ID.

Example: 5

DeliverySMSCount

integer

Count of short messages sent including previews.

Example: 412

DeliveryUnsubscribed

integer

Count of contacts who unsubscribed.

Example: 2

DeliveryDirectUnsubscriptions

integer

Count of contacts who unsubscribed via the delivered message.

Example: 1

DeliveryDirectSubscriptions

integer

Count of contacts subscribed via the delivered message.

Example: 3

DeliveryDone

boolean | null

Whether the delivery has finished. Can be null.

Example: true

DeliverySMSReceived

integer

Count of short messages received.

Example: 0

Delivery

Delivery ID.

Example: 10
mail_id
​MailId

Mail ID.

Example: 20
owner
​CustomerId

Customer ID.

Example: 1
members
​DeliveryMembers

Count of delivery contacts.

Example: 21
delivered
​DeliveryDelivered

Count of contacts the message was delivered to.

Example: 21
bounced
​DeliveryBounces

Number of bounced contacts in the delivery.

Example: 1
created
​DeliveryCreated

Delivery creation time.

Example: 2020-01-15 14:55:00
scheduled
​DeliveryScheduled

Scheduled send time as YYYY-MM-DD HH:MM:SS.

Example: 2020-01-18 10:00:00
subject
​SubjectB64

Base64-encoded subject of the delivery.

Example: RXhhbXBsZSBzdWJqZWN0
clicks
​ClickCount

Count of clicks.

Example: 2
clickers
​integer

Count of contacts who clicked a link in the delivery.

Example: 36
opens
​integer

Count of opens in the delivery.

Example: 974
openers
​integer

Count of contacts who opened the delivery.

Example: 974
noopeners
​integer

Count of contacts who did not open the message.

Example: 25
list_id
​ListId

Mailing list ID.

Example: 60
list_name
​string

Name of the mailing list connected to the delivery.

Example: Example list
list_deleted
​string | null

Time when the list was deleted, if it was.

Example: null
list_hidden
​string

Time when the list was hidden, if it was.

Example: 2020-01-30 14:22:00
archive
​DeliveryArchive

Array of archives the delivery appears in.

Example: ["archive-name"]

Array of RSS feeds the delivery appears in.

Example: ["archive-name"]
html
​string

Base64-encoded HTML content of the message.

plain
​string

Base64-encoded plain text version of the message.

campaign
​CampaignId

Campaign ID.

Example: 5
smscount
​DeliverySMSCount

Count of short messages sent including previews.

Example: 412
excluded
​integer

Count of excluded contacts.

Example: 33
unsubscribed
​DeliveryUnsubscribed

Count of contacts who unsubscribed.

Example: 2
direct_unsubscriptions
​DeliveryDirectUnsubscriptions

Count of contacts who unsubscribed via the delivered message.

Example: 1
direct_subscriptions
​DeliveryDirectSubscriptions

Count of contacts subscribed via the delivered message.

Example: 3

Whether the delivery has finished. Can be null.

Example: true
smsreceived
​DeliverySMSReceived

Count of short messages received.

Example: 0
type
​string

Delivery type. Can be bulk, preview, event, sms or sms-preview.

Example: bulk
user_id
​integer

User ID of the user who created the delivery.

Example: 4000
user_display_name
​string

Display name of the user who created the delivery.

Example: Test Person
tags
​array

Delivery tags.

Example: ["Tag1","Tag2"]

GetDeliveryResponse

​Delivery[]

GetDeliveries

Delivery IDs. If omitted or empty, all your mailing list deliveries are returned.

GetDeliveriesResponse

​Delivery[]

Array of deliveries.

DeliveriesRangeFrom

oneOf
Exactly one variant must match.

Decision Table

VariantMatching Criteria
type = string
type = integer
Properties for Variant 1:
string

DeliveriesRangeTo

oneOf
Exactly one variant must match.

Decision Table

VariantMatching Criteria
type = string
type = integer
Properties for Variant 1:
string

GetDeliveriesRange

Number of deliveries to skip as an integer, or a start date such as 2019-12-20 to return deliveries scheduled on or after that day.

Example: 2019-12-20

Maximum number of deliveries as an integer, or an end date such as 2020-01-31 to return deliveries scheduled on or before that day. 0 means no limit.

Example: 100
sort
​string

Sort key: created, subject, id, members, bounced, campaign, list_id or scheduled, optionally followed by ASC or DESC. Defaults to created DESC.

Example: created ASC

GetDeliveriesRangeResponse

​Delivery[]

Array of deliveries.

GetDeliveriesRangeCSV

Number of deliveries to skip as an integer, or a start date such as 2019-12-20 to return deliveries scheduled on or after that day.

Example: 2019-12-20

Maximum number of deliveries as an integer, or an end date such as 2020-01-31 to return deliveries scheduled on or before that day. 0 means no limit.

Example: 100
sort
​string

Sort key: created, subject, id, members, bounced, campaign, list_id or scheduled, optionally followed by ASC or DESC. Defaults to created DESC.

Example: created ASC

DeliveryCsv

string

Deliveries in CSV format.

Example: "id";"mail_id";"owner";"members";"delivered";"bounced";"created";"scheduled";"subject";"clicks";"clickers";"opens";"openers";"noopeners";"list_id";"list_name";"list_deleted";"list_hidden";"archive";"rss";"html";"plain";"campaign";"smscount";"excluded";"unsubscribed";"direct_unsubscriptions";"direct_subscriptions";"done";"smsreceived";"type";"user_id";"user_display_name";"tags";

GetDeliveriesRangeCSVResponse

result
​DeliveryCsv

Deliveries in CSV format.

Example: "id";"mail_id";"owner";"members";"delivered";"bounced";"created";"scheduled";"subject";"clicks";"clickers";"opens";"openers";"noopeners";"list_id";"list_name";"list_deleted";"list_hidden";"archive";"rss";"html";"plain";"campaign";"smscount";"excluded";"unsubscribed";"direct_unsubscriptions";"direct_subscriptions";"done";"smsreceived";"type";"user_id";"user_display_name";"tags";

GetScheduledDeliveries

num
​integer

Maximum number of deliveries to return. 0 returns all.

Example: 10
reverse
​integer

Set to 1 to sort by scheduled time in descending order. Defaults to ascending.

Example: 0

GetScheduledDeliveriesResponse

​object[]

Array of scheduled deliveries.

GetEventAutomationDeliveryIdsResponse

result
​array

Delivery IDs.

Example: [11,19]

GetRelatedDeliveries

id
​DeliveryId · required

Delivery ID.

Example: 10

GetRelatedDeliveriesResponse

result
​DeliveryId[]

Array of related delivery IDs.

GetDeliveryStatuses

deliveries
​integer[] · required

Delivery IDs.

Example: [11,19]

DeliveryStatus

Delivery ID.

Example: 10
members
​DeliveryMembers

Count of delivery contacts.

Example: 21
delivered
​DeliveryDelivered

Count of contacts the message was delivered to.

Example: 21

Whether the delivery has finished. Can be null.

Example: true

GetDeliveryStatusesResponse

Array of delivery status objects.

GetDeliverySize

delivery_id
​DeliveryId · required

Delivery ID.

Example: 10
inline_only
​integer

Which files are added to the size: 1 adds inline images and attachments, 0 adds all images but no attachments. Defaults to 1.

DeliverySize

integer

Delivery size in bytes.

Example: 35490

GetDeliverySizeResponse

result
​DeliverySize

Delivery size in bytes.

Example: 35490

HasTemporaryBlockResponse

result
​boolean

Returns true if sending is temporarily blocked for your account.

Example: false

RescheduleDeliveryToMailingList

​required

ID of the delivery to send again, or the name of its mail, as returned by getMailName.

Example: 10
list_id
​ListId

Mailing list ID.

Example: 60
​object

Delivery settings.

RescheduleDeliveryToMailingListResponse

result
​integer

ID of the newly created delivery.

Example: 2010

CancelDelivery

id
​DeliveryId · required

Delivery ID.

Example: 10

CancelDeliveryRelated

id
​DeliveryId · required

Delivery ID.

Example: 10

HideDelivery

delivery_id
​integer · required

ID of the delivery to hide from reports.

Example: 10

GetSyndication

delivery
​integer

Delivery ID. If set, the result also includes the syndication states of this delivery.

Example: 1100

SyndicationPoint

id
​integer

Syndication point ID.

Example: 3
name
​string

Syndication point name.

Example: news
lists
​string | null

Mailing list IDs as a string in curly brackets.

Example: {6,14}
campaigns
​string | null

Campaign IDs as a string in curly brackets.

Example: null

DeliverySyndicationState

rss_ingress
​string[]

RSS lead texts (ingress) of the delivery.

Example: ["Summary of the newsletter"]
archived
​string[]

Names of the syndication points where the delivery is in the web archive.

Example: ["news"]
syndicated
​string[]

Names of the syndication points where the delivery is in the RSS feed.

Example: ["news"]

GetSyndicationResponse

​array

Without delivery: the syndication points of your account.

With delivery: two items. The first is the array of syndication points, and the second is the archive and RSS state of the delivery.

Example: [{"id":3,"name":"news","lists":"{6,14}","campaigns":null}]

ArchiveName

string

Archive or RSS feed name.

Example: Archive

ArchiveOrder

integer

Sort order by send time: 2 for ascending, other values for descending. Defaults to descending.

Example: 0

GetArchived

archive
​ArchiveName · required

Archive or RSS feed name.

Example: Archive
num
​integer · required

Maximum number of deliveries to return, from 0 to 100. 0 returns no deliveries, and other values return 10.

Example: 100
limit
​ArchiveOrder

Sort order by send time: 2 for ascending, other values for descending. Defaults to descending.

Example: 0

FeedTitle

string

Feed title.

Example: Sample-feed

DeliveryArchiveItem

id
​integer

Mail ID of the delivery. This is not the delivery ID.

Example: 20
template
​Template

HTML body of the message.

Example: <h1>title</h1> Sample text
plaintext
​Plain

Plain text content of the message.

Example: This is message content.
subject
​Subject

Message subject.

Example: Example subject.
scheduled
​DeliveryScheduled

Scheduled send time as YYYY-MM-DD HH:MM:SS.

Example: 2020-01-18 10:00:00

Date of creation.

Example: 2020-01-15 12:45:21.0173942
members
​DeliveryMembers

Count of delivery contacts.

Example: 21
delivered
​DeliveryDelivered

Count of contacts the message was delivered to.

Example: 21
list_id
​ListId

Mailing list ID.

Example: 60
campaign
​CampaignId

Campaign ID.

Example: 5
feed_title
​FeedTitle

Feed title.

Example: Sample-feed

GetArchivedResponse

Array of archived deliveries.

GetSyndicated

archive
​ArchiveName · required

Archive or RSS feed name.

Example: Archive
num
​integer · required

Maximum number of deliveries to return, from 0 to 100. 0 returns no deliveries, and other values return 10.

Example: 100
limit
​ArchiveOrder

Sort order by send time: 2 for ascending, other values for descending. Defaults to descending.

Example: 0

DeliveryArchiveItemWithIngress

rss_ingress
​string
id
​integer

Mail ID of the delivery. This is not the delivery ID.

Example: 20
template
​Template

HTML body of the message.

Example: <h1>title</h1> Sample text
plaintext
​Plain

Plain text content of the message.

Example: This is message content.
subject
​Subject

Message subject.

Example: Example subject.
scheduled
​DeliveryScheduled

Scheduled send time as YYYY-MM-DD HH:MM:SS.

Example: 2020-01-18 10:00:00

Date of creation.

Example: 2020-01-15 12:45:21.0173942
members
​DeliveryMembers

Count of delivery contacts.

Example: 21
delivered
​DeliveryDelivered

Count of contacts the message was delivered to.

Example: 21
list_id
​ListId

Mailing list ID.

Example: 60
campaign
​CampaignId

Campaign ID.

Example: 5
feed_title
​FeedTitle

Feed title.

Example: Sample-feed

GetSyndicatedResponse

Array of archived deliveries.

SetArchivedState

delivery
​DeliveryId · required

Delivery ID.

Example: 10
archive
​string[] · required

Names of the web archive feeds where the delivery is shown. The delivery is removed from all other feeds; an empty array removes it from the archive.

Example: ["feed-name","another-feed"]

SetArchivedStateResponse

result
​array

Names of the feeds where the delivery is now shown.

Example: ["feed-name","another-feed"]

SetSyndicatedState

delivery
​DeliveryId · required

Delivery ID.

Example: 10
archive
​string[] · required

Names of the RSS feeds where the delivery is shown. The delivery is removed from all other feeds; an empty array removes it from all.

Example: ["feed-name","another-feed"]
ingress
​string · required

Summary text of the delivery in the RSS feeds.

SetSyndicatedStateResponse

result
​array

Names of the RSS feeds where the delivery is now shown.

Example: ["feed-name","another-feed"]

GetDeliveryReport

id
​DeliveryId · required

Delivery ID.

Example: 10

DeliveryReportDone

integer · enum
Enum values:
0
1

Whether the delivery has finished: 1 or 0.

Example: 1

ListDeleted

string

List deleted date.

Example: 2020-01-15 10:25:24.629731

ListHidden

string

List hidden date.

Example: 2020-01-15 10:25:24.629731

DeliveryReport

members
​DeliveryMembers

Count of delivery contacts.

Example: 21
delivered
​DeliveryDelivered

Count of contacts the message was delivered to.

Example: 21
bounced
​DeliveryBounces

Number of bounced contacts in the delivery.

Example: 1
customer
​CustomerId

Customer ID.

Example: 1
mail
​MailId

Mail ID.

Example: 20
done
​DeliveryReportDone · enum

Whether the delivery has finished: 1 or 0.

Enum values:
0
1
Example: 1
scheduled
​DeliveryScheduled

Scheduled send time as YYYY-MM-DD HH:MM:SS.

Example: 2020-01-18 10:00:00
created
​DeliveryCreated

Delivery creation time.

Example: 2020-01-15 14:55:00
campaign
​CampaignId

Campaign ID.

Example: 5
list
​ListId

Mailing list ID.

Example: 60
list_name
​ListName

Mailing list name.

Example: Sample list
list_deleted
​ListDeleted

List deleted date.

Example: 2020-01-15 10:25:24.629731
list_hidden
​ListHidden

List hidden date.

Example: 2020-01-15 10:25:24.629731
unsubscribed
​DeliveryUnsubscribed

Count of contacts who unsubscribed.

Example: 2

Array of RSS feeds the delivery appears in.

Example: ["archive-name"]
archive
​DeliveryArchive

Array of archives the delivery appears in.

Example: ["archive-name"]
smscount
​DeliverySMSCount

Count of short messages sent including previews.

Example: 412
direct_subscriptions
​DeliveryDirectSubscriptions

Count of contacts subscribed via the delivered message.

Example: 3
direct_unsubscriptions
​DeliveryDirectUnsubscriptions

Count of contacts who unsubscribed via the delivered message.

Example: 1
smsreceived
​DeliverySMSReceived

Count of short messages received.

Example: 0

GetDeliveryReportResponse

GetOpenersOrNon

integer

Return openers (1) or non-openers (0). Defaults to 1.

Example: 0

GetTrackingOpenInfo

id
​DeliveryId · required

Delivery ID.

Example: 10

Return openers (1) or non-openers (0). Defaults to 1.

Example: 0

TrackingClickedAt

string

Time of the tracking link click.

Example: 2020-01-13 08:50:29.723545

OpenerData

member
​RecipientId

Contact ID.

Example: 20000

Email address of the contact.

Example: recipient@example.com

Time of the tracking link click.

Example: 2020-01-13 08:50:29.723545
number
​OpenCount

Count of opens.

Example: 2

GetTrackingOpenInfoResponse

​OpenerData[]

Array of delivery openers.

GetLinkData

id
​DeliveryId · required

Delivery ID.

Example: 10

GetLinkDataResponse

​object[]

LinkSummary

integer

Return an hourly click summary (1) instead of individual clicks (0). Defaults to 0.

Example: 0

GetTrackingLinkInfo

id
​LinkId · required

Link ID.

Example: 600
summary
​LinkSummary

Return an hourly click summary (1) instead of individual clicks (0). Defaults to 0.

Example: 0

ClickerData

member
​RecipientId

Contact ID.

Example: 20000

Email address of the contact.

Example: recipient@example.com

Time of the tracking link click.

Example: 2020-01-13 08:50:29.723545
number
​ClickCount

Count of clicks.

Example: 2

Number of clicks by friends.

Example: 2

LinkClicksByHour

date
​string

Start of the hour of the first clicks.

Example: 2020-01-13 08:00:00
clickers
​integer

Number of contacts whose first click on the link was during the hour.

Example: 12
clicks
​integer

Total number of clicks on the link by those contacts.

Example: 15

GetTrackingLinkInfoResponse

​array

Array of link clickers, or with summary set to 1, the clicks by hour.

GetClickers

from
​FromDate · required

Start date and time as YYYY-MM-DD HH:MM:SS. getUnsubscriptions accepts only YYYY-MM-DD.

Example: 2019-12-20 14:00:00
offset
​Offset

Number of results to skip.

Example: 100

NextOffset

integer

Next offset.

Example: 200

ClickerObject

Email address of the contact.

Example: recipient@example.com

Contact mobile phone number, e.g. +358401234567.

Example: +358401234567
​RecipientProperties

Contact properties as name-value pairs.

Example: {"property_name":"property_value"}
clicked_at
​TrackingClickedAt

Time of the tracking link click.

Example: 2020-01-13 08:50:29.723545

Original link URL.

Example: https://www.example.com/
subject
​Subject

Message subject.

Example: Example subject.

GetClickersResponse

​object

DeliveryMemberCondition

string · enum
Enum values:
openers
smsreceived
noopeners
clickers
bounced
unsubscribed
delivered
undelivered

Contact group to return. Omitted or unsupported values return all delivery contacts.

Example: clickers

DeliveryMemberTranslation

Custom CSV column headers, mapping default header names to new ones.

GetDeliveryMembersConditional

id
​DeliveryId · required

Delivery ID.

Example: 10
condition
​DeliveryMemberCondition · enum

Contact group to return. Omitted or unsupported values return all delivery contacts.

Enum values:
openers
smsreceived
noopeners
clickers
bounced
unsubscribed
delivered
undelivered
Example: clickers

Custom CSV column headers, mapping default header names to new ones.

Example: {"sms":"phone_number"}
extra
​integer

Link ID for the clickers condition, to return only the clickers of that link.

Example: 12

DeliveryMembersCsv

string

Delivery contacts in CSV format.

Example: "email";"sms";"format";"extra";"prop"

GetDeliveryMembersConditionalResponse

Delivery contacts in CSV format.

Example: "email";"sms";"format";"extra";"prop"
integer

For the clickers and taflinkclickers conditions, link ID to return clickers of one link only. Accepts a string or an integer.

Example: 12

GetDeliveryMembersConditionalLess

id
​DeliveryId · required

Delivery ID.

Example: 10
condition
​DeliveryMemberCondition · enum

Contact group to return. Omitted or unsupported values return all delivery contacts.

Enum values:
openers
smsreceived
noopeners
clickers
bounced
unsubscribed
delivered
undelivered
Example: clickers

For the clickers and taflinkclickers conditions, link ID to return clickers of one link only. Accepts a string or an integer.

Example: 12

GetDeliveryMembersConditionalLessResponse

result
​array

Returns an array of arrays. The first contains header fields and the rest contain contact information.

Example: [["member","format","extra"],[20001,1,null],[20002,1,"member forget"]]
string

For the clickers condition, comma-separated link IDs to return clickers of those links only.

Example: 104,106

GetDeliveryMembersOverTime

id
​DeliveryId · required

Delivery ID.

Example: 10
condition
​DeliveryMemberCondition · enum

Contact group to return. Omitted or unsupported values return all delivery contacts.

Enum values:
openers
smsreceived
noopeners
clickers
bounced
unsubscribed
delivered
undelivered
Example: clickers

For the clickers condition, comma-separated link IDs to return clickers of those links only.

Example: 104,106

DeliveryMembersOverTimeCsv

string

Delivery contacts in CSV format.

Example: "email";"sms";"date";"format";"extra1";"extra2"

GetDeliveryMembersOverTimeResponse

Delivery contacts in CSV format.

Example: "email";"sms";"date";"format";"extra1";"extra2"

GetMailOpenTrackingData

id
​MailId · required

Mail ID.

Example: 20
from
​FromDate

Start date and time as YYYY-MM-DD HH:MM:SS. getUnsubscriptions accepts only YYYY-MM-DD.

Example: 2019-12-20 14:00:00

OpenedAt

string

Message open date.

Example: 2020-01-10 14:22:04

UseragentB64

string

Base64-encoded user agent.

Acceptlanguage

string

Language preferences.

Example: en-US,en;q=0.9,fi;q=0.8

Hostname

string

ContinentCode

string

OrgName

string

CountryCode

string

CountryName

string

Region

string

PostalCode

string

DmaCode

string

AreaCode

string

RefererB64

string

Base64-encoded referer.

MailOpenObject

opened_at
​OpenedAt

Message open date.

Example: 2020-01-10 14:22:04
useragent
​UseragentB64

Base64-encoded user agent.

acceptlanguage
​Acceptlanguage

Language preferences.

Example: en-US,en;q=0.9,fi;q=0.8
remote_addr
​RemoteAddr

IP address.

Example: 127.0.0.1
hostname
​Hostname
continent_code
​ContinentCode
org_name
​OrgName
country_code
​CountryCode
country_code3
​CountryCode
country_name
​CountryName
region
​Region
city
​City
postal_code
​PostalCode
latitude
​Latitude
longitude
​Longitude
dma_code
​DmaCode
area_code
​AreaCode
referer
​RefererB64

Base64-encoded referer.

member_id
​RecipientId

Contact ID.

Example: 20000
member_email
​RecipientEmail

Email address of the contact.

Example: recipient@example.com

GetMailOpenTrackingDataResponse

GetMailLinkTrackingData

id
​MailId · required

Mail ID.

Example: 20
from
​FromDate

Start date and time as YYYY-MM-DD HH:MM:SS. getUnsubscriptions accepts only YYYY-MM-DD.

Example: 2019-12-20 14:00:00

GetMailLinkTrackingDataResponse

result
​string

Mail link tracking data in CSV format.

Example: link_id;clicked_at;useragent;acceptlanguage;remote_addr;hostname;continent_code;org_name;country_code;country_code3;country_name;region;city;postal_code;latitude;longitude;dma_code;area_code;member_id;member_email

GetTellafriendData

delivery_id
​DeliveryId · required

Delivery ID.

Example: 10

TellafirendDeliveryData

Delivery data.
delivery_id
​DeliveryId

Delivery ID.

Example: 10
sent
​integer

Count of tell-a-friend messages sent.

Example: 3
sent_by_member
​integer

Count of tell-a-friend messages sent by the delivery contact.

Example: 2
sent_by_member_recipient
​integer

Count of tell-a-friend messages sent by contacts who received a tell-a-friend message.

Example: 1
subscriptions
​integer

Count of subscriptions via the tell-a-friend message subscription link.

Example: 1
clicks
​integer

Count of clicks on the tell a friend link of the message.

Example: 3
clickers
​integer

Count of unique clickers on the tell a friend link of the message.

Example: 2

TrackingClickCount

integer

Tracking link click count.

Example: 3

Useragent

string

Base64-encoded user agent.

Example: Mozilla/5.0 (X11; Linux x86_64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/80.0.3987.122 Safari/537.36

Browser

string

Browser name.

Example: chrome

Os

string

Operating system.

Example: nt

OsVersion

string

Operating system version.

Example: 10

Referer

string

TellafirendClickerData

delivery_id
​DeliveryId

Delivery ID.

Example: 10
member
​RecipientId

Contact ID.

Example: 20000
sender_email
​SenderEmail

Sender email address.

Example: sender@example.com
clicked_at
​TrackingClickedAt

Time of the tracking link click.

Example: 2020-01-13 08:50:29.723545
clicked_time
​TrackingClickCount

Tracking link click count.

Example: 3
useragent
​Useragent

Base64-encoded user agent.

Example: Mozilla/5.0 (X11; Linux x86_64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/80.0.3987.122 Safari/537.36
acceptlanguage
​Acceptlanguage

Language preferences.

Example: en-US,en;q=0.9,fi;q=0.8
browser
​Browser

Browser name.

Example: chrome
os
​Os

Operating system.

Example: nt
os_version
​OsVersion

Operating system version.

Example: 10
remote_addr
​RemoteAddr

IP address.

Example: 127.0.0.1
hostname
​Hostname
continent_code
​ContinentCode
org_name
​OrgName
country_code
​CountryCode
country_code3
​CountryCode
country_name
​CountryName
region
​Region
city
​City
postal_code
​PostalCode
latitude
​Latitude
longitude
​Longitude
dma_code
​DmaCode
area_code
​AreaCode
referer
​Referer

SentAt

string

Message sent date.

Example: 2020-01-13 08:55:40.111231

BrowserVersion

string

Browser version.

Example: 80.0.3987.122

TellafirendRecipientData

id
​integer

Tell-a-friend message ID.

Example: 5004
delivery_id
​DeliveryId

Delivery ID.

Example: 10
member
​integer

ID of the tell-a-friend message sender. If the sender received the message as a tell-a-friend message, the ID of the original sender.

Example: 1002
sent_at
​SentAt

Message sent date.

Example: 2020-01-13 08:55:40.111231
sender_email
​string

Email of the tell-a-friend message sender.

Example: telling-a-friend@example.com
sender_name
​string

Name of the tell-a-friend message sender.

Example: Example Name
sender_remote_addr
​RemoteAddr

IP address.

Example: 127.0.0.1
subject
​Subject

Message subject.

Example: Example subject.
body
​string

Cover letter added by the sender.

Example: Thought this might be of interest to you.
useragent
​Useragent

Base64-encoded user agent.

Example: Mozilla/5.0 (X11; Linux x86_64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/80.0.3987.122 Safari/537.36
acceptlanguage
​Acceptlanguage

Language preferences.

Example: en-US,en;q=0.9,fi;q=0.8
browser
​Browser

Browser name.

Example: chrome
browser_version
​BrowserVersion

Browser version.

Example: 80.0.3987.122
os
​Os

Operating system.

Example: nt
os_version
​OsVersion

Operating system version.

Example: 10
remote_addr
​RemoteAddr

IP address.

Example: 127.0.0.1
hostname
​Hostname
continent_code
​ContinentCode
org_name
​OrgName
country_code
​CountryCode
country_code3
​CountryCode
country_name
​CountryName
region
​Region
city
​City
postal_code
​PostalCode
latitude
​Latitude
longitude
​Longitude
dma_code
​DmaCode
area_code
​AreaCode
referer
​Referer

GetTellafriendDataResponse

​array · minItems: 3 · maxItems: 3

Tell-a-friend data as an array of three items, in this order:

  1. The totals of the delivery, as an object.
  2. The clicks, newest first, as an array of objects.
  3. The messages sent to friends, newest first, as an array of objects.

false if the delivery has no tell-a-friend data or is not yours.

Example: [{"delivery_id":10,"sent":3,"sent_by_member":2,"sent_by_member_recipient":1,"subscriptions":1,"clicks":3,"clickers":2},[{"delivery_id":10,"member":20000,"sender_email":"sender@example.com","clicked_at":"2020-01-13 08:50:29.723545","clicked_time":3,"useragent":"Mozilla/5.0 (X11; Linux x86_64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/80.0.3987.122 Safari/537.36","acceptlanguage":"en-US,en;q=0.9,fi;q=0.8","browser":"chrome","os":"nt","os_version":"10","remote_addr":"127.0.0.1","hostname":"string","continent_code":"string","org_name":"string","country_code":"string","country_code3":"string","country_name":"string","region":"string","city":"string","postal_code":"string","latitude":"string","longitude":"string","dma_code":"string","area_code":"string","referer":"string"}],[{"id":5004,"delivery_id":10,"member":1002,"sent_at":"2020-01-13 08:55:40.111231","sender_email":"telling-a-friend@example.com","sender_name":"Example Name","sender_remote_addr":"127.0.0.1","subject":"Example subject.","body":"Thought this might be of interest to you.","useragent":"Mozilla/5.0 (X11; Linux x86_64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/80.0.3987.122 Safari/537.36","acceptlanguage":"en-US,en;q=0.9,fi;q=0.8","browser":"chrome","browser_version":"80.0.3987.122","os":"nt","os_version":"10","remote_addr":"127.0.0.1","hostname":"string","continent_code":"string","org_name":"string","country_code":"string","country_code3":"string","country_name":"string","region":"string","city":"string","postal_code":"string","latitude":"string","longitude":"string","dma_code":"string","area_code":"string","referer":"string"}]]

EchoMessageText

string

Message to echo back.

Example: echo

EchoMessage

msg
​EchoMessageText · required

Message to echo back.

Example: echo

EchoMessageResponse

Message to echo back.

Example: echo

ServerDetails

level
​integer · enum · required

Detail level. Only 1 is available through the API.

Enum values:
1
Example: 1

ServerName

string

Server name.

Example: Example

ServerApiVersion

string

API version.

Example: 1.0.11

ServerBuildDate

string

Server build date.

Example: 2020-04-09 11:47:30

ServerDetailsResult

Server details.
Server Name
​ServerName

Server name.

Example: Example
API Version
​ServerApiVersion

API version.

Example: 1.0.11
Build Date
​ServerBuildDate

Server build date.

Example: 2020-04-09 11:47:30

ServerDetailsResponse

Server details.

PingpongResponse

​object

Mailinglist

Either `list_id` or `name` is required.
data
​string · required

Base64-encoded file content. The first row must contain column headers, including an email or SMS column.

Example: ImVtYWlsIjsiZmlyc3RuY...
type
​string · required

File format: csv or xls. A CSV file must use:

  • Field separator ;
  • Enclosure character "
  • Encoding UTF-8
  • Unix line endings \n
Example: csv
list_id
​integer

ID of an existing mailing list to import to. Required if name is omitted. An unknown ID returns an error.

Example: 101
name
​string

Mailing list name. Required if list_id is omitted.

  • Without list_id: imports to the list with exactly this name, or creates it if none is found (see folder).
  • With list_id: renames the list if the name differs.
Example: Sample list
folder
​string

Mailing list folder path, with levels separated by /, e.g. Customers/Finland. Missing folders are created.

With list_id:

  • Moves the list to the given folder.
  • / moves the list to the root folder.
  • Empty or omitted leaves the list where it is.

Without list_id:

  • Imports to the list with the same name in the given folder, or creates the list there if none is found.
  • Empty, omitted or / imports to the first list with the same name in any folder, or creates the list in the root folder if none is found.
Example: Example
truncate
​boolean

Remove all current members from the list before importing. Defaults to false.

Example: true
use_list_props
​boolean

Import property values as list-specific values instead of default values. Defaults to false.

Example: false
consent_id
​integer

Consent ID to give to the imported contacts. Requires consent_lang, and the consent must exist in that language.

Example: 4
consent_lang
​string

Consent language as a two-letter ISO 639-1 code, e.g. EN. Requires consent_id.

Example: EN

MailinglistResponse

​object

Attachment

data
​string

Raw attachment content. Either data or data_base64 is required; data is used if both are given.

Example: raw data
data_base64
​string

Base64-encoded attachment content. Alternative to data.

Example: c2FtcGxlIGRhdGE=
name
​string

Attachment file name. Required.

Example: file.csv
type
​string

Attachment MIME type, e.g. text/csv. Required.

Example: text/csv

Attachments

Files to attach to the message. Requires the attachments privilege. File and total sizes are limited per account.

Example: [{"data_base64":"c2FtcGxlIGRhdGE=","name":"file1.csv","type":"text/csv"},{"data":"sample data","name":"file2.csv","type":"text/csv"}]
data
​string

Raw attachment content. Either data or data_base64 is required; data is used if both are given.

Example: raw data
data_base64
​string

Base64-encoded attachment content. Alternative to data.

Example: c2FtcGxlIGRhdGE=
name
​string

Attachment file name. Required.

Example: file.csv
type
​string

Attachment MIME type, e.g. text/csv. Required.

Example: text/csv

LetterSubject

string

Email subject. Replaces the draft subject.

Example: Message subject

PreheaderText

string

Preheader text. Replaces the draft preheader. Ignored if empty.

Example: Message preheader

DeliveryTime

string

Delivery time in YYYY-MM-DD HH:MM:SS format, in the given timezone.

Example: 2020-10-01 06:52:00

Timezone

string

Time zone of delivery as a TZ database name, e.g. Europe/Helsinki. See https://en.wikipedia.org/wiki/Tz_database.

Example: Europe/London

Schedule

Scheduled delivery time. Cannot be used with `ab`. A time in the past sends the message immediately.
delivery
​DeliveryTime · required

Delivery time in YYYY-MM-DD HH:MM:SS format, in the given timezone.

Example: 2020-10-01 06:52:00
timezone
​Timezone · required

Time zone of delivery as a TZ database name, e.g. Europe/Helsinki. See https://en.wikipedia.org/wiki/Tz_database.

Example: Europe/London

LetterHtml

string

Custom HTML placed inside the <body> tag, replacing the draft content. Intended for source code drafts; drag-and-drop drafts return an error. Required if the draft has no content and plain is not given.

Example: <h1>Title</h1> This is custom message text.

LetterPlain

string

Plain text version of the message. Replaces the draft plain text.

Example: This is custom text.

Sender

string

Sender, e.g. sender@example.com or Firstname Lastname <sender@example.com>. The address can also be a property placeholder such as $sender_email$. Replaces the draft sender.

Example: Firstname Lastname <sender@example.com>

LetterSms

string

SMS message text. Replaces the draft SMS text.

Example: Custom SMS content

SmsSender

string

SMS sender. Replaces the draft SMS sender.

Example: Sender

Tracking

array

Tracking to enable: open for opens, link for link clicks. Replaces the draft tracking settings.

Example: ["open","link"]

Consents

array

Grounds for sending (consent IDs). Replaces the draft grounds for sending.

Example: [2,15]

DeliveryTags

​string[]

Delivery tags. Replaces the draft delivery tags.

Example: ["Offers","News"]
boolean

Link images instead of embedding them as inline attachments. Defaults to false.

Example: true

DisableUnsubscribe

boolean

Leave out the automatic unsubscribe link. Defaults to false. Ignored without the privilege to hide the unsubscribe link.

Example: false

BgColor

string

Message background color as a color name or hex code, e.g. red or #ff0000. skip disables the background color.

Example: #ff0000

BatchLetter

type
​string · required

Letter type. Only draft is supported.

Example: draft
id
​integer · required

Draft ID.

Example: 123
revision
​integer

Draft revision. Defaults to the latest revision.

Example: 1
​Attachment[]

Files to attach to the message. Requires the attachments privilege. File and total sizes are limited per account.

Example: [{"data_base64":"c2FtcGxlIGRhdGE=","name":"file1.csv","type":"text/csv"},{"data":"sample data","name":"file2.csv","type":"text/csv"}]
subject
​LetterSubject

Email subject. Replaces the draft subject.

Example: Message subject
​object

A/B subject test settings. Requires A/B testing privileges and open tracking. Cannot be used with schedule.

preheader_text
​PreheaderText

Preheader text. Replaces the draft preheader. Ignored if empty.

Example: Message preheader
​Schedule

Scheduled delivery time. Cannot be used with ab. A time in the past sends the message immediately.

html
​LetterHtml

Custom HTML placed inside the <body> tag, replacing the draft content. Intended for source code drafts; drag-and-drop drafts return an error. Required if the draft has no content and plain is not given.

Example: <h1>Title</h1> This is custom message text.
plain
​LetterPlain

Plain text version of the message. Replaces the draft plain text.

Example: This is custom text.
sender
​Sender

Sender, e.g. sender@example.com or Firstname Lastname <sender@example.com>. The address can also be a property placeholder such as $sender_email$. Replaces the draft sender.

Example: Firstname Lastname <sender@example.com>
sms
​LetterSms

SMS message text. Replaces the draft SMS text.

Example: Custom SMS content
sms_sender
​SmsSender

SMS sender. Replaces the draft SMS sender.

Example: Sender
tracking
​Tracking

Tracking to enable: open for opens, link for link clicks. Replaces the draft tracking settings.

Example: ["open","link"]
consents
​Consents

Grounds for sending (consent IDs). Replaces the draft grounds for sending.

Example: [2,15]
delivery_tags
​string[]

Delivery tags. Replaces the draft delivery tags.

Example: ["Offers","News"]
images_as_link
​ImagesAsLink

Link images instead of embedding them as inline attachments. Defaults to false.

Example: true
disable_unsubscribe
​DisableUnsubscribe

Leave out the automatic unsubscribe link. Defaults to false. Ignored without the privilege to hide the unsubscribe link.

Example: false
bgcolor
​BgColor

Message background color as a color name or hex code, e.g. red or #ff0000. skip disables the background color.

Example: #ff0000

Recipients

​object[]

Contacts to send to. Each object needs email or sms; other keys are used as contact properties. Batch send also finds a contact by id alone, but not a contact that has only an SMS number. Event send ignores id when email is given, and fails with id alone.

Example: [{"email":"recipient1@example.com","sms":"+358101234567"},{"email":"recipient2@example.com","sms":"+358201234567"}]
id
​integer

Contact ID. Contacts that are not found are skipped.

email
​string

Email address of the contact.

sms
​string

Contact phone number for SMS, e.g. +358401234567.

Lists

​integer[]

Mailing list IDs to send to. Required if recipients is omitted. Can be combined with recipients.

Example: [1,5]

batch-send

​BatchLetter · required
​object[]

Contacts to send to. Each object needs email or sms; other keys are used as contact properties. Batch send also finds a contact by id alone, but not a contact that has only an SMS number. Event send ignores id when email is given, and fails with id alone.

Example: [{"email":"recipient1@example.com","sms":"+358101234567"},{"email":"recipient2@example.com","sms":"+358201234567"}]
lists
​integer[]

Mailing list IDs to send to. Required if recipients is omitted. Can be combined with recipients.

Example: [1,5]

batch-sendResponse

​object

RecipientsReset

boolean

Allow contacts that have already received this event mail to receive it again. Without it, the whole request fails if any of the contacts has received it. Defaults to false.

Example: true

EventLetter

type
​string · required

Letter type. Only draft is supported.

Example: draft
id
​integer · required

Draft ID.

Example: 123
revision
​integer

Draft revision. Defaults to the latest revision.

Example: 1
​Attachment[]

Files to attach to the message. Requires the attachments privilege. File and total sizes are limited per account.

Example: [{"data_base64":"c2FtcGxlIGRhdGE=","name":"file1.csv","type":"text/csv"},{"data":"sample data","name":"file2.csv","type":"text/csv"}]
subject
​LetterSubject

Email subject. Replaces the draft subject.

Example: Message subject
preheader_text
​PreheaderText

Preheader text. Replaces the draft preheader. Ignored if empty.

Example: Message preheader
html
​LetterHtml

Custom HTML placed inside the <body> tag, replacing the draft content. Intended for source code drafts; drag-and-drop drafts return an error. Required if the draft has no content and plain is not given.

Example: <h1>Title</h1> This is custom message text.
plain
​LetterPlain

Plain text version of the message. Replaces the draft plain text.

Example: This is custom text.
sender
​Sender

Sender, e.g. sender@example.com or Firstname Lastname <sender@example.com>. The address can also be a property placeholder such as $sender_email$. Replaces the draft sender.

Example: Firstname Lastname <sender@example.com>
sms
​LetterSms

SMS message text. Replaces the draft SMS text.

Example: Custom SMS content
sms_sender
​SmsSender

SMS sender. Replaces the draft SMS sender.

Example: Sender
tracking
​Tracking

Tracking to enable: open for opens, link for link clicks. Replaces the draft tracking settings.

Example: ["open","link"]
consents
​Consents

Grounds for sending (consent IDs). Replaces the draft grounds for sending.

Example: [2,15]
delivery_tags
​string[]

Delivery tags. Replaces the draft delivery tags.

Example: ["Offers","News"]
images_as_link
​ImagesAsLink

Link images instead of embedding them as inline attachments. Defaults to false.

Example: true
recipients_reset
​RecipientsReset

Allow contacts that have already received this event mail to receive it again. Without it, the whole request fails if any of the contacts has received it. Defaults to false.

Example: true
bgcolor
​BgColor

Message background color as a color name or hex code, e.g. red or #ff0000. skip disables the background color.

Example: #ff0000

TrackingId

string

Tracking ID for the event delivery, returned as tracking. Generated when omitted. 10-24 characters, lowercase letters a-z and digits 0-9 only.

Example: customabc123

event-send

​EventLetter · required
​object[] · required

Contacts to send to. Each object needs email or sms; other keys are used as contact properties. Batch send also finds a contact by id alone, but not a contact that has only an SMS number. Event send ignores id when email is given, and fails with id alone.

Example: [{"email":"recipient1@example.com","sms":"+358101234567"},{"email":"recipient2@example.com","sms":"+358201234567"}]
tracking_id
​TrackingId

Tracking ID for the event delivery, returned as tracking. Generated when omitted. 10-24 characters, lowercase letters a-z and digits 0-9 only.

Example: customabc123

event-sendResponse

​object

WebpageLetter

url
​string · required

URL of the web page to send as the message content.

Example: https://www.example.com/newsletter.html
sender
​Sender

Sender, e.g. sender@example.com or Firstname Lastname <sender@example.com>. The address can also be a property placeholder such as $sender_email$. Replaces the draft sender.

Example: Firstname Lastname <sender@example.com>
subject
​string

Email subject. Defaults to the <title> of the web page, or to a placeholder name if the page has no title.

Example: Message subject
​object

A/B subject test settings. Requires A/B testing privileges and open in tracking. Cannot be used with schedule.

preheader_text
​PreheaderText

Preheader text. Replaces the draft preheader. Ignored if empty.

Example: Message preheader
​Schedule

Scheduled delivery time. Cannot be used with ab. A time in the past sends the message immediately.

tracking
​Tracking

Tracking to enable: open for opens, link for link clicks. Replaces the draft tracking settings.

Example: ["open","link"]
consents
​Consents

Grounds for sending (consent IDs). Replaces the draft grounds for sending.

Example: [2,15]
delivery_tags
​string[]

Delivery tags. Replaces the draft delivery tags.

Example: ["Offers","News"]
images_as_link
​ImagesAsLink

Link images instead of embedding them as inline attachments. Defaults to false.

Example: true
disable_unsubscribe
​DisableUnsubscribe

Leave out the automatic unsubscribe link. Defaults to false. Ignored without the privilege to hide the unsubscribe link.

Example: false

webpage-send

​WebpageLetter · required
​object[]

Contacts to send to. Each object needs email or sms; other keys are used as contact properties. Batch send also finds a contact by id alone, but not a contact that has only an SMS number. Event send ignores id when email is given, and fails with id alone.

Example: [{"email":"recipient1@example.com","sms":"+358101234567"},{"email":"recipient2@example.com","sms":"+358201234567"}]
lists
​integer[]

Mailing list IDs to send to. Required if recipients is omitted. Can be combined with recipients.

Example: [1,5]

RecipientItem

id
​integer · int64 · readOnly
href
​string · readOnly

RecipientWithProperties

email
​string
sms
​string | null
​object

Event

at
​string · date-time
user_agent
​string | null
accept_language
​string | null
remote_address
​string | null
referer
​string | null

OpenEvent

​Event

DeliveryItem

id
​integer · int64 · readOnly
href
​string · readOnly

ReportDelivery

​object

DeliveryOpeners

​object[]

SelfHref

href
​string | null

Paging

first
​object | null
prev
​object | null
next
​object | null

Collection

href
​string | null
first
​object | null
prev
​object | null
next
​object | null

Meta

response_at
​string · date-time

Response

​Meta

Error400

code
​string
message
​string

Error401

code
​string
message
​string

Error500

code
​string
message
​string

ClickEvent

​object

LinkItem

id
​integer · int64 · readOnly
url_original
​string · readOnly
href
​string · readOnly

DeliveryClickers

​object[]

RecipientItemWithNoHref

id
​integer · int64 · readOnly

ListItem

id
​integer · int64 · readOnly
name
​string · readOnly
href
​string · readOnly

EventOut

at
​string · date-time
type
​string
​object
​object
reason
​string
​ListItem

EventsOut

​EventOut[]