Schemas
ErrorResponse
succeedResponse status.
messageError description. Unexpected errors have a generic message with an incident ID.
CustomerOptions
siteDefault site domain. The site is created if it does not exist.
languageSite language, such as EN. Applies only when site is set.
unsubscribeWhether unsubscribing is enabled.
subscribeWhether joining mailing lists is enabled.
rssWhether RSS is enabled.
archiveWhether the web archive is enabled.
trackingWhether tracking is enabled.
smsWhether SMS messaging is enabled.
multiple_listsWhether contacts can subscribe to multiple mailing lists.
unsubscribe_is_finaldelete_on_bouncehas_individualshas_companiestellafriendwebpageregistration_needs_confirmationarchive_is_publicshortmessage_providerheader_precedencesales_person_emailSalesperson email address.
cemshortmessage_accountshortmessage_passwordstatisticsmtadynamic_listsWhether users can create dynamic lists.
preview_props_overridesWhether users can set property values when composing a newsletter.
show_cem_deliveriesshow_draft_lang_selectlist_propertiesdefault_sms_countryDefault SMS country code. Empty sets FI.
property_parserProperty parser version, such as 2016. Empty sets Legacy.
gdprWhether GDPR compliance is enabled.
cem_trackingWhether LianaAutomation tracking is enabled.
dp_officer_nameName of the data protection officer.
dp_officer_emailEmail address of the data protection officer.
approvalWhether users can use the delivery approval workflow.
min_list_healthMinimum mailing list health. Empty clears it.
rss_template_engineRSS template engine, such as PerItem. Empty sets Legacy.
GetCustomerIdResponse
resultCustomer ID.
CustomerStatisticsJoinPast30Days
Number of members who joined in the past 30 days.
CustomerStatisticsLastSubscribersUnassocUpdate
Time when unassociated members were updated.
CustomerStatisticsUnassociatedMembers
Count of contacts who do not belong to any list.
CustomerStatisticsAllTimeSmsReal
Count of short messages sent, each 160-character message part counting as one.
CustomerStatisticsAllTimeSmsByMonthReal
Count of short messages sent by month, each 160-character message part counting as one.
CustomerStatisticsMembersReceivedMessage
Count of members who have received a message.
CustomerStatisticsMembersReceivedMessagePercent
Percentage of members who have received a message.
CustomerStatisticsMembersReceivedMessageTrend
Trend of members who have received a message. Can be 1 or -1.
CustomerStatisticsSubscribersActive
Count of contacts who have opened a message (active contacts).
CustomerStatisticsSubescribersActivePercent
Percentage of contacts who have opened a message (active contacts).
CustomerStatisticsSubescribersActiveTrend
Trend of contacts who have opened a message (active contacts). Can be 1 or -1.
CustomerStatisticsSubscribersEmailedByMonth
Number of contacts emailed by month.
CustomerStatisticsSubscribersEmailedByYear
Number of contacts emailed by year.
CustomerStatisticsSmsReceivedByMonth
Number of short messages received by month.
CustomerStatisticsSubscribersUnassociated
Count of contacts who do not belong to any list.
CustomerStatisticsSubscribersDeleted
Number of invalid contacts deleted by the system.
CustomerStatistics
database_sizeNumber of contacts in the database.
active_membersNumber of active members.
deleted_membersNumber of deleted (unsubscribed) members.
unsubscribed_membersNumber of unsubscribed members.
join_past_30_daysNumber of members who joined in the past 30 days.
left_past_30_daysNumber of members who left in the past 30 days.
joined_by_dayNumber of member joins by day.
left_by_dayNumber of members who left, by day.
last_subscribers_unassociated_updateTime when unassociated members were updated.
unassociated_membersCount of contacts who do not belong to any list.
all_time_emailCount of emails sent.
all_time_smsCount of short messages sent.
emails_by_monthCount of emails sent by month.
sms_by_monthCount of short messages sent by month.
all_time_sms_realCount of short messages sent, each 160-character message part counting as one.
sms_by_month_realCount of short messages sent by month, each 160-character message part counting as one.
subscribers_received_messageCount of members who have received a message.
subscribers_received_message_percentPercentage of members who have received a message.
subscribers_received_message_trendTrend of members who have received a message. Can be 1 or -1.
subscribers_activeCount of contacts who have opened a message (active contacts).
subscribers_active_percentPercentage of contacts who have opened a message (active contacts).
subscribers_active_trendTrend of contacts who have opened a message (active contacts). Can be 1 or -1.
subscribers_emailed_by_monthNumber of contacts emailed by month.
subscribers_emailed_by_yearNumber of contacts emailed by year.
sms_received_by_monthNumber of short messages received by month.
enabledCount of members marked enabled.
disabledCount of members marked disabled.
subscribers_unassociatedCount of contacts who do not belong to any list.
subscribers_deletedNumber of invalid contacts deleted by the system.
GetDeliverabilityRating
countNumber of rating entries to return, at most 100. Defaults to 1.
offsetNumber of entries to skip. Defaults to 0.
DeliverabilityRating
dateDate of rating values.
ratingTotal deliverability score.
abuseAbuse score. Number of contacts who marked messages as spam, relative to the number of delivery contacts.
hardbouncesHard bounce score. Hard bounces relative to delivered members.
listsWeighted average of list healths.
opensOpen ratio.
clicksClick-through ratio.
ctorRatio of clickers to openers.
SetMarketingSettings
Settings to save as key-value pairs. Existing keys are updated and new keys are added.
SetMarketingSettingsResponse
result1 if the settings were saved. 0 if settings is empty or the last setting could not be saved.
SetAutomationTracking
stateWhether LianaAutomation tracking is enabled.
SiteShowData
propertiesInclude site properties.
listsInclude mailing lists of the site.
layoutInclude site layout.
marketingInclude marketing settings.
parentsAlso return the parent sites.
childrenNot used.
authorizationInclude authorization settings.
SiteOptions
all_listsShow 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
createMailingListandeditMailingList. - 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.
SiteDefault
Whether this is the customer's default site. Only one site can be the default.
SiteDomainAliases
Alternative fully qualified domain names of the site.
SiteEmbedNotes
Free-text notes on where the site is embedded.
SiteObject
domainSite domain name.
ownerCustomer ID.
languageSite language code, e.g. EN.
accept_checkDeprecated.
welcomeID of the delivery sent as the welcome message of the site.
sslWhether SSL is enabled for the site.
parentDomain name of the parent site.
is_defaultWhether this is the customer's default site. Only one site can be the default.
email_posEmail field position on site.
sms_posSMS field position on site.
deletedDate of deletion.
whitelist_instructionWhether the site uses the whitelist instruction.
whitelist_emailWhitelisted email address.
redirectRedirect target of the site.
postfixDomain postfix.
envelope_senderWhether to use the site domain as the envelope sender.
domain_aliasesAlternative fully qualified domain names of the site.
recaptcha_secretreCAPTCHA secret key.
embed_notesFree-text notes on where the site is embedded.
embed_onlyWhether the site is used for embedded forms only.
replaced_byReplaced by site.
rename_toNew name for the site.
hiddenSite hidden state.
createdDate of creation.
has_csrfWhether CSRF protection is enabled for the site.
deny_framingWhether to prevent loading the site in a frame.
SiteProperty
ownerCustomer ID.
handleProperty handle. See getCustomerProperties.
nameProperty name.
posProperty list order.
SiteList
ownerCustomer ID.
idMailing list ID.
posList position.
nameMailing list name.
SiteElementLabel
Site element ID.
siteSite domain name.
elementSite element label type.
element_handleSite element handle.
labelSite element label.
SiteElementHtml
Site HTML element ID.
siteSite domain name.
elementSite HTML element name.
element_handleSite HTML element content.
labelSite HTML element position.
SiteLayout
indexLayout of the site index page.
cancel-formLayout of the cancel subscription form.
deletedLayout of the page shown after a subscription is cancelled.
footerSite footer layout.
headerSite header layout.
list-beginSite list begin layout.
list-endSite list end layout.
list-elementSite list element layout.
welcomeSite welcome page layout.
confirmLayout of the subscription confirmation page.
confirm-forget-meLayout of the page for confirming that the contact is forgotten.
download-emailLayout of the data download page.
subscription-already-confirmedLayout of the page shown when the subscription is already confirmed.
subscriber-forgottenLayout of the page shown after the contact is forgotten.
SiteMarketing
footerTell-a-friend page footer layout.
headerTell-a-friend page header layout.
tellafriend-formTell-a-friend page form layout.
tellafriend-messageTell-a-friend message layout.
tellafriend-templateTell-a-friend message template layout.
tellafriend-sentTell-a-friend sent page layout.
SiteAuthorization
partindex or archive.
domainSite domain name.
allowedDomain allowed state.
SiteObjectExtended
siteSite domain name.
allowed_originsArray of allowed origins for CORS requests.
full_domainSite full domain.
Array of site-specific property objects.
Array of site-specific mailing list objects.
Array of site element labels.
Array of site element labels.
Site layout data object. All values are Base64-encoded.
Site marketing page layout data object. All values are Base64-encoded.
Array of site authorization settings.
domainSite domain name.
ownerCustomer ID.
languageSite language code, e.g. EN.
accept_checkDeprecated.
welcomeID of the delivery sent as the welcome message of the site.
sslWhether SSL is enabled for the site.
parentDomain name of the parent site.
is_defaultWhether this is the customer's default site. Only one site can be the default.
email_posEmail field position on site.
sms_posSMS field position on site.
deletedDate of deletion.
whitelist_instructionWhether the site uses the whitelist instruction.
whitelist_emailWhitelisted email address.
redirectRedirect target of the site.
postfixDomain postfix.
envelope_senderWhether to use the site domain as the envelope sender.
domain_aliasesAlternative fully qualified domain names of the site.
recaptcha_secretreCAPTCHA secret key.
embed_notesFree-text notes on where the site is embedded.
embed_onlyWhether the site is used for embedded forms only.
replaced_byReplaced by site.
rename_toNew name for the site.
hiddenSite hidden state.
createdDate of creation.
has_csrfWhether CSRF protection is enabled for the site.
deny_framingWhether to prevent loading the site in a frame.
SiteRequestBody
domainSite domain name.
childrenSet to 1 to also look up parent sites of your sites. Defaults to 0.
Site options.
GetCustomerSites
idYour own customer ID, or 0. Other IDs return an error.
CustomerSite
domainSite domain.
ownerCustomer ID.
languageSite language.
accep_checkwelcomeSite welcome message delivery ID.
sslWhether SSL is enabled for the site.
parentis_defaultWhether the site is the default site.
email_posPosition of the email input field on the site.
sms_posPosition of the SMS input field on the site.
deletedSite deletion date.
whitelist_instructionWhether contacts are instructed to whitelist the sender address.
whitelist_emailEmail address that contacts are instructed to whitelist.
redirectDomain that this site redirects to.
postfixPostfix of the site name.
envelope_senderEnvelope sender.
domain_aliasesDomain aliases as a comma-separated string in curly brackets.
recaptcha_secretreCAPTCHA secret.
embed_notesEmbedding notes.
embed_onlyWhether the site is for embedded use only.
replaced_byrename_tohiddencreatedSite creation date.
has_csfrWhether the contact's browser must pass an automated CSRF test to join a mailing list. This reduces mailing list abuse.
deny_framingWhether to prevent loading the site in a frame.
GetCustomerSite
siteSite domain. If empty, the default site is returned.
GetCustomerDefaultSite
idYour own customer ID, or 0. Other IDs return an error.
SiteAttributes
siteSite domain name.
langSite language code, e.g. EN.
welcomeID of the delivery sent as the welcome message of the site.
sslWhether SSL is enabled for the site.
is_defaultWhether this is the customer's default site. Only one site can be the default.
whitelist_instructionWhether the site uses the whitelist instruction.
whitelist_emailWhitelisted email address.
parentDomain name of the parent site.
redirectRedirect target of the site.
postfixDomain postfix.
envelope_senderWhether to use the site domain as the envelope sender.
domain_aliasesAlternative fully qualified domain names of the site.
recaptcha_secretreCAPTCHA secret key.
embed_onlyWhether the site is used for embedded forms only.
embed_notesFree-text notes on where the site is embedded.
has_csrfWhether CSRF protection is enabled for the site.
deny_framingWhether to prevent loading the site in a frame.
SiteCreate
domainSite domain name.
Site settings. has_csrf and deny_framing default to true.
SiteCreateResponse
resultSite domain name.
SiteUpdateAttributes
siteSite domain name.
languageSite language code, e.g. EN.
welcomeID of the delivery sent as the welcome message of the site.
sslWhether SSL is enabled for the site.
is_defaultWhether this is the customer's default site. Only one site can be the default.
whitelist_instructionWhether the site uses the whitelist instruction.
whitelist_emailWhitelisted email address.
parentDomain name of the parent site.
redirectRedirect target of the site.
postfixDomain postfix.
envelope_senderWhether to use the site domain as the envelope sender.
domain_aliasesAlternative fully qualified domain names of the site.
recaptcha_secretreCAPTCHA secret key.
embed_onlyWhether the site is used for embedded forms only.
embed_notesFree-text notes on where the site is embedded.
has_csrfWhether CSRF protection is enabled for the site.
deny_framingWhether to prevent loading the site in a frame.
SiteUpdate
domainSite domain name.
Site settings. They are saved only when site is given, and settings left out are then reset, as described in siteUpdate.
SiteDelete
domainSite domain name.
SetWelcomeDelivery
siteDomain of your site.
deliveryDelivery ID sent as the welcome message when a contact joins through the site. 0 removes the welcome message.
SetCustomerDefaultSite
idSet to 0. Other values, including your own customer ID, return an error.
siteSite domain. The site is created if it does not exist and set as the default site.
languageSite language, such as EN.
welcomeDelivery ID of the site welcome message.
sslWhether the site uses HTTPS: 1 or 0. Defaults to 0.
SetCustomerDefaultSiteResponse
resultDomain name of the new default site.
SetCustomerSite
siteDomain of the site to modify. If empty or not found, a new site is created.
customerIdCustomer ID: your own, or that of your parent or child customer.
newNameNew site domain. For a new site, a suffix such as -2 is added to the first label if the domain is taken.
languageSite language, such as EN.
welcomeDelivery ID of the site welcome message.
sslWhether the site uses HTTPS: 1 or 0. Defaults to 0.
PostfixesResponse
resultArray of available site postfixes.
GetDefaultPostfixResponse
resultDomain postfix.
RecipientDataQueryOptions
include_consentsInclude consents in the response. Defaults to true.
include_list_membershipsInclude list memberships in the response. Defaults to true.
include_propertiesInclude properties in the response. Defaults to true.
GetRecipient
idContact ID.
RecipientEmailOrNull
Email address of the contact, or null if the contact has none.
RecipientSMSOrNull
Contact mobile phone number, or null if the contact has none.
RecipientConfirmed
Decision Table
| Variant | Matching Criteria |
|---|---|
| type = string | |
| type = boolean |
RecipientObject
idContact ID.
emailEmail address of the contact, or null if the contact has none.
Contact mobile phone number, or null if the contact has none.
Contact confirmation time, or false if the contact is not confirmed or is deleted.
forgottenContact forgotten status.
enabledContact enabled status.
RecipientMembership
Contact membership as an array of 4 values: list ID, list name, list join time and list quit time in this order.
MemberConsentObject
Member consent ID.
consent_idConsent ID.
consent_revisionConsent revision number.
consent_languageConsent language code, e.g. EN.
sourceSource where the consent was created or granted.
double_optinMembership must be confirmed by clicking the confirmation link.
grantedTime when the consent was given.
revokedTime when the consent was revoked.
createdDate of creation.
descriptionConsent description text.
titleConsent title.
ExistingRecipientObject
Contact.
membershipContact properties as name-value pairs.
GetRecipientByEmail
emailEmail address of the contact.
include_deletedAlso search deleted contacts. Defaults to false.
RecipientReasonProp
deletedDeletion time.
reasonFree-text reason for the deletion.
GetRecipientObject
Contact.
membershipContact membership as an array of 4 values: list ID, list name, list join time and list quit time in this order.
Contact properties as name-value pairs.
GetRecipientBySMS
smsContact mobile phone number, e.g. +358401234567.
include_deletedAlso search deleted contacts. Defaults to false.
OrderBy
Field to order results by: id, email, sms or a property name. Unordered when omitted.
Filter
Case-insensitive search text matched against email, SMS and property values. Use * as a wildcard.
GetRecipients
fromNumber of results to skip.
numMaximum number of results. 0 or omitted returns all.
orderField to order results by: id, email, sms or a property name. Unordered when omitted.
sortSort direction, asc or desc. Defaults to asc.
filterCase-insensitive search text matched against email, SMS and property values. Use * as a wildcard.
GetRecipientListResponse
resultArrays of contact details. The first array contains headers.
FindRecipientsByProperty
property_idProperty handle. See getCustomerProperties.
queryProperty value to search for. Must match exactly.
limitMaximum number of contacts to return, at most 25. Defaults to 1.
offsetNumber of matching contacts to skip, for pagination. Defaults to 0.
QueryRecipientsBy
nmQuery to run.
listMailing list ID.
fromNumber of results to skip.
numMaximum number of results. 0 or omitted returns all.
orderField to order results by: id, email, sms or a property name. Unordered when omitted.
sortSort direction, asc or desc. Defaults to asc.
qCase-insensitive search text matched against email, SMS and property values. Use * as a wildcard.
csvIf true, the first item is semicolon-separated CSV text with all properties instead of contact IDs. Defaults to false.
gzipIf true, the CSV text is zlib-compressed and Base64-encoded. Applies only with csv. Defaults to false.
QueryRecipientsByResponse
resultReturns an array of contact IDs. The last item in the array is always the count of contacts.
ExistsRecipientResponse
resultContact ID.
IsEnabledRecipient
Contact ID, email address or SMS number.
strictIf true, returns 1 when the contact does not exist and 0 when it does, regardless of its state. Defaults to false.
IsEnabledRecipientResponse
resultWith strict set to false: 1 for enabled, 0 for disabled.
GetRecipientsStatusByEmail
recipientsEmail addresses of the contacts.
GetRecipientsStatusByEmailResponse
resultContact statuses keyed by email address: 0 for an active contact, 1 for a deleted contact and 2 if no contact has the address.
GetShadowRecipient
idContact ID.
CreateAndJoinRecipient
idContact ID.
emailEmail address of the contact.
smsContact mobile phone number, e.g. +358401234567.
Contact properties as name-value pairs.
autoconfirmConfirm the contact automatically. Defaults to false.
reasonFree-text reason for creating the contact.
originOrigin of the action, e.g. a subscription page URL or api.
listsIDs of the mailing lists to join.
adminWhether an admin made the join. false treats it as the contact's own subscription, for example in subscription statistics. Defaults to true.
RecipientReactivateBounced
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.
CreateRecipient
emailEmail address of the contact.
smsContact mobile phone number, e.g. +358401234567.
Contact properties as name-value pairs.
autoconfirmConfirm the contact automatically. Defaults to false.
reasonFree-text reason for creating the contact.
originOrigin of the action, e.g. a subscription page URL or api.
dig_graveyardReactivate 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.
CreateRecipientResponse
resultContact ID.
UpdateRecipientCreate
Create the contact if it does not exist. A created contact is confirmed automatically. Defaults to false.
UpdateRecipient
emailEmail address of the contact.
smsContact mobile phone number, e.g. +358401234567.
Contact properties as name-value pairs.
reasonFree-text reason for the action.
originOrigin of the action, e.g. a subscription page URL or api.
createCreate the contact if it does not exist. A created contact is confirmed automatically. Defaults to false.
UpdateRecipientResponse
resultContact ID.
EditRecipient
idContact ID.
emailEmail address of the contact.
smsContact mobile phone number, e.g. +358401234567.
Contact properties as name-value pairs.
reasonFree-text reason for the action.
originOrigin of the action, e.g. a subscription page URL or api.
RecipientDeleteReasonType
Unsubscribe reason type given by the contact.
RecipientDeleteReasonText
Free-text unsubscribe reason given by the contact.
DeleteRecipient
idContact ID.
reasonFree-text reason for the deletion.
subscriber_reason_typeUnsubscribe reason type given by the contact.
subscriber_reason_textFree-text unsubscribe reason given by the contact.
originOrigin of the action, e.g. a subscription page URL or api.
extra_dataExtra details stored with the deletion event. Supported keys: source_delivery_id (one of your delivery IDs) and tracking-id.
DeleteRecipientResponse
result1 if the contact was deleted, 0 if deleting it failed.
GetDeletedRecipient
idContact ID.
DeletedRecipientObject
Contact.
membershipContact membership as an array of 4 values: list ID, list name, list join time and list quit time in this order.
Contact properties as name-value pairs.
deletedDeletion time.
GetDeletedRecipients
fromNumber of results to skip.
numMaximum number of results. 0 or omitted returns all.
orderField to order results by: id, email, sms or a property name. Unordered when omitted.
sortSort direction, asc or desc. Defaults to asc.
filterCase-insensitive search text matched against email, SMS and property values. Use * as a wildcard.
EnableRecipient
idContact ID.
reasonFree-text reason for the action.
ReactivationIdentity
Name or other identifier of the person or system doing the reactivation.
ReactivateRecipient
emailEmail address of the contact.
identityName or other identifier of the person or system doing the reactivation.
msgFree-text reason for the action.
confirmConfirm the contact automatically. Defaults to false.
riseDeprecated. Set to null.
originOrigin of the action, e.g. a subscription page URL or api.
Contact properties as name-value pairs.
ReactivateRecipientResponse
resultContact ID.
GetRecipientsStats
recipient_idsContact IDs, at most 1000.
valuesStatistics to return.
RecipientStat
deliveriesCount of deliveries.
opensCount of opens.
opens_pctOpens as a percentage of deliveries.
clicksCount of clicks.
clicks_pctClicks as a percentage of deliveries.
GetUniqueRecipientsCount
listsMailing list IDs. Active members of these lists are counted. If empty, only adhocs are counted.
adhocsAdditional email addresses to count.
exclude_listsIDs of mailing lists whose active members are excluded from the count.
GetExcludeMembers
paramsSearch criteria. Contacts matching deliveries or lists are returned; with neither, the result is empty.
RecipientEmailArray
Email addresses to check.
CheckDomainsAllowed
recipientsEmail addresses to check.
DomainAllowed
Returns true if all given email addresses have allowed domains and false if any of them has a non-allowed domain.
CheckDomainsAllowedResponse
resultReturns true if all given email addresses have allowed domains and false if any of them has a non-allowed domain.
PropertyType
Property input type. Defaults to text.
PropertyDataType
Data type of the property values. Defaults to text.
PropertyValues
Values of select, checkbox or radio type properties.
PropertyObject
handleProperty handle. See getCustomerProperties.
nameProperty name.
typeProperty input type. Defaults to text.
requiredWhether the property is required on the subscription page.
subscriptionWhether the property is shown on the subscription page.
positionDisplay position of the property.
datatypeData type of the property values. Defaults to text.
hidden_from_uiWhether the property is hidden in the LianaMailer UI.
valuesValues of select, checkbox or radio type properties.
PropertyLanguage
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.
PropertyChoices
Allowed values for select and checkbox properties.
CreateCustomerProperty
nameProperty name.
languageProperty 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.
typeProperty input type. Defaults to text.
choicesAllowed values for select and checkbox properties.
requiredWhether the property is required on the subscription page.
subscriptionWhether the property is shown on the subscription page.
positionDisplay position of the property.
datatypeData type of the property values. Defaults to text.
hidden_from_uiWhether the property is hidden in the LianaMailer UI. Defaults to false.
CreateCustomerPropertyResponse
resultProperty handle. See getCustomerProperties.
RenameCustomerProperty
oldnameCurrent property name.
newnameNew property name.
languageProperty 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.
DeleteCustomerProperty
nameProperty name.
languageProperty 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.
RecipientHistoryLimit
Maximum number of mails to return. 0 returns no mails. Defaults to 10.
GetRecipientHistory
idContact ID.
limitMaximum number of mails to return. 0 returns no mails. Defaults to 10.
BasicDelivery
idDelivery ID.
subjectMail subject.
scheduledScheduled send time as YYYY-MM-DD HH:MM:SS.
deliveredWhether the contact has received the delivery.
formatFromDate
Start date and time as YYYY-MM-DD HH:MM:SS. getUnsubscriptions accepts only YYYY-MM-DD.
EventType
History event type.
RecipientHistoryParams
fromStart date and time as YYYY-MM-DD HH:MM:SS. getUnsubscriptions accepts only YYYY-MM-DD.
typeHistory event type.
limitMaximum number of results.
offsetNumber of results to skip.
MemberHistoryActions
idContact ID.
Filters for the history actions.
RecipientActionHistoryObject
member_idContact ID.
typeHistory event type.
dateEvent date.
reasonFree-text reason for the action.
extrareference_idlatitudelongitudecityreference_nameremote_addrIP address.
MemberHistoryUpdate
idContact ID.
MemberHistoryUpdateStatus
idContact ID.
MemberHistoryUpdateStatusResponse
resultReturns 0 when ready, otherwise returns 1.
RequestMemberHistoryResponse
resultProcess handle.
ForgetRecipient
recipient_idContact ID.
reasonFree-text reason for the action.
ForgetRecipientByEmail
emailEmail address of the contact.
reasonFree-text reason for the action.
ForgetRecipientBySMS
smsContact mobile phone number, e.g. +358401234567.
reasonFree-text reason for the action.
RecipientDataOptions
siteBase URL of the subscription site, starting with http. Used for the archive placeholders in link URLs.
formatFile format. The json file is zipped.
propertiesProperty handles to include in the file. No properties are included when omitted.
GetRecipientDatafile
recipient_idContact ID.
GetRecipientDatafileResponse
resultBase64-encoded file.
ConsentTranslationObject
idConsent ID.
languageConsent language code, e.g. EN.
revisionConsent revision number.
titleConsent title.
descriptionConsent description text.
createdDate of creation.
ConsentObject
idConsent ID.
nameConsent type name.
is_revokableWhether the consent can be revoked.
createdDate of creation.
GetConsentTypesBySite
siteDomain name of the subscription site.
ConsentSiteObject
consent_idConsent ID.
is_revokableWhether the consent can be revoked.
nameConsent type name.
consent_revisionConsent revision number.
posPosition on site.
titleConsent title.
descriptionConsent description text.
languageConsent language code, e.g. EN.
createdDate of creation.
SourceData
Free-text description of where the consent was given, e.g. a subscription page URL.
AddMemberConsent
member_idContact ID.
consent_idConsent ID.
consent_revisionConsent revision number.
langConsent language code, e.g. EN.
sourceSource of the consent. REST API callers should use api.
source_dataFree-text description of where the consent was given, e.g. a subscription page URL.
AddMemberConsentResponse
resultMember consent ID.
RevokeMemberConsent
member_idContact ID.
consent_idConsent ID.
consent_revisionConsent revision number.
langConsent language code, e.g. EN.
ConsentUpdateDataOptions
include_member_dataInclude contact data in each update. Defaults to false.
GetMemberConsentUpdates
from_dateStart date and time as YYYY-MM-DD HH:MM:SS. getUnsubscriptions accepts only YYYY-MM-DD.
ConsentAction
Action of the consent update, one of the following:
granted: consent given by the contactcreated: consent created by an admin in the UI or by a list importrevoked: consent revoked
ConsentUpdateData
member_idContact ID.
consent_idConsent ID.
consent_languageConsent language code, e.g. EN.
consent_revisionConsent revision number.
sourceSource where the consent was created or granted.
actionAction of the consent update, one of the following:
granted: consent given by the contactcreated: consent created by an admin in the UI or by a list importrevoked: consent revoked
updatedDate of consent update.
ConsentUpdateMeta
response_atTime of response.
update_sinceStart date used in the query.
CreateConsentType
nameConsent type name.
is_revokableWhether the consent can be revoked.
CreateConsentTypeResponse
resultConsent ID.
EditConsentType
consent_idConsent ID.
nameConsent type name.
is_revokableWhether the consent can be revoked.
EditConsentTranslation
consent_idConsent ID.
langConsent language code, e.g. EN.
titleConsent title.
descriptionConsent description text.
EditConsentTranslationResponse
resultConsent revision number.
DeleteConsentType
consent_idConsent ID.
GetRecipientCode
idContact ID.
GetRecipientCodeResponse
resultContact confirmation code.
SetRecipientNeedConfirmation
idContact ID.
SetRecipientNeedConfirmationResponse
resultContact confirmation code.
RecipientConfirmOrigin
Origin of the confirmation, e.g. the subscription page URL.
ConfirmRecipient
codeContact confirmation code.
reasonFree-text reason for the confirmation.
originOrigin of the confirmation, e.g. the subscription page URL.
ConfirmRecipientResponse
resultContact ID.
ConfirmationMsg
dateScheduled send time as YYYY-MM-DD HH:MM:SS.
subjectMessage subject.
templateHTML body of the message.
sender_emailSender email address.
sender_nameSender name.
reply_toReply-To email address of the message.
SendRecipientConfirmationEmail
recipient_idContact ID.
WelcomeSendForce
Set to 0 to skip sending if the contact has already received any mail. Defaults to 1.
SendWelcomeMail
recipient_idContact ID.
site_nameDomain name of the subscription site.
forceSet to 0 to skip sending if the contact has already received any mail. Defaults to 1.
propsProperty values for the message, as name-value pairs.
ConfirmationTaskType
Confirmation task type: consent adds a consent, membership joins a mailing list and properties sets contact properties.
ConfirmationTask
consent_idFor consent tasks. Consent ID.
langFor consent tasks. Consent language code.
consent_revisionFor consent tasks. Consent revision.
sourceFor consent tasks. Consent source. Use api.
siteOptional. Subscription site the confirmation comes from, saved as the source or origin of the change.
list_idFor membership tasks, the mailing list to join. Optional for properties tasks to set list-specific properties, if they are enabled for the customer.
For properties tasks. Property names and values to set. The properties must already exist.
AddConfirmationTask
member_idContact ID.
confirmation_codeContact confirmation code.
task_typeConfirmation task type: consent adds a consent, membership joins a mailing list and properties sets contact properties.
Task data, applied when the contact confirms. Required keys depend on the task type.
ConfirmationTaskTypeObject
typeConfirmation task type: consent adds a consent, membership joins a mailing list and properties sets contact properties.
AddConfirmationTasks
member_idContact ID.
confirmation_codeContact confirmation code.
GetConfirmationTasks
confirmation_codeContact confirmation code.
ConfirmationTaskJson
typeConfirmation task type: consent adds a consent, membership joins a mailing list and properties sets contact properties.
payloadTask as a JSON object.
GetMailingLists
include_deletedSet to 1 to include deleted mailing lists. Defaults to 0.
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.
ListSubs
Whether the list is available for subscription on subscription sites. Cannot be true for dynamic or segment lists.
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.
ListImportStatus
Status of the latest import, or null if no import is waiting or running.
ListImportTotal
Number of members in the latest import, even after it has finished.
ListExtendedObject
idMailing list ID.
ownerCustomer ID.
nameMailing list name.
conditionDynamic 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.
descriptionShort description of the mailing list.
self_serviceWhether the list is available for subscription on subscription sites. Cannot be true for dynamic or segment lists.
deletedDate of deletion.
hiddenDate of hiding.
siteList site domain.
updatedDate of last update.
createdDate of creation.
cem_segmentLianaAutomation segment ID of a segment list, or -1 if the segment is not determined yet.
Must be null for regular and dynamic lists.
healthList health as a percentage.
health_updatedList health update date.
listMailing list ID.
membersList member count.
import_statusStatus of the latest import, or null if no import is waiting or running.
import_totalNumber of members in the latest import, even after it has finished.
import_currentNumber of members imported so far in the latest import.
import_createdCreation time of the latest import.
GetSmsCount
Return the number of members with an SMS number as members, instead of all members. Defaults to false.
GetMailingList
list_idMailing list ID.
smsReturn the number of members with an SMS number as members, instead of all members. Defaults to false.
ListSmsMembers
Count of list members. If sms is true, only members with an SMS number are counted.
ListObject
idMailing list ID.
nameMailing list name.
descriptionShort description of the mailing list.
ownerCustomer ID.
conditionDynamic 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.
self_serviceWhether the list is available for subscription on subscription sites. Cannot be true for dynamic or segment lists.
membersCount of list members. If sms is true, only members with an SMS number are counted.
domainList site domain.
deletedDate of deletion.
updatedDate of last update.
cem_segmentLianaAutomation segment ID of a segment list, or -1 if the segment is not determined yet.
Must be null for regular and dynamic lists.
ListSite
Domain name of the subscription site for the list. To list sites, use sites.
CreateMailingList
nameMailing list name.
descShort description of the mailing list.
subsWhether the list is available for subscription on subscription sites. Cannot be true for dynamic or segment lists.
conditionDynamic 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.
cem_segmentLianaAutomation segment ID of a segment list, or -1 if the segment is not determined yet.
Must be null for regular and dynamic lists.
ext_idExternal ID of the mailing list.
ext_typeType of the external ID.
CreateMailingListResponse
resultMailing list ID.
EditMailingList
idMailing list ID.
new_nameMailing list name.
new_descShort description of the mailing list.
new_subsWhether the list is available for subscription on subscription sites. Cannot be true for dynamic or segment lists.
new_conditionDynamic 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.
cem_segmentLianaAutomation segment ID of a segment list, or -1 if the segment is not determined yet.
Must be null for regular and dynamic lists.
DeleteMailingList
list_idMailing list ID.
HideMailingList
list_idMailing list ID.
TruncateMailingList
list_idMailing list ID.
EditMailingListSelfServiceResponse
resultList IDs with their self-service states.
GetMailingListCondition
list_idMailing list ID.
GetMailingListConditionResponse
resultDynamic 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.
EditMailingListCondition
list_idMailing list ID.
conditionDynamic 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.
EditMailingListConditionResponse
resultDynamic 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.
RequestTargetgroup
listMailing list ID.
FindListExternal
ext_idExternal ID of the mailing list.
typeType of the external ID.
FindListExternalResponse
resultMailing list ID.
GetMailingListExternalId
list_idMailing list ID.
typeType of the external ID.
GetMailingListExternalIdResponse
resultExternal ID of the mailing list.
AddMailingListExternalId
list_idMailing list ID.
ext_idExternal ID of the mailing list.
typeType of the external ID.
DeleteMailingListExternalId
list_idMailing list ID.
typeType of the external ID.
ListJoinNoauto
Do not confirm unconfirmed contacts automatically. Defaults to false.
Admin
Action initiated by an admin (true) or by the contact (false). Defaults to true.
ListImportTruncate
Remove current list members who are not in the new data. Defaults to false.
ListRejoin
Record a new list join even for contacts already on the list, which allows repeated welcome messages. Defaults to false.
ListJoinIgnoreErrors
Skip contacts that cannot be added, such as missing contacts, instead of failing. Defaults to false.
JoinMailingList
list_idMailing list ID.
recipient_listIDs of the contacts to add.
noautoDo not confirm unconfirmed contacts automatically. Defaults to false.
reasonFree-text reason for the action.
adminAction initiated by an admin (true) or by the contact (false). Defaults to true.
truncateRemove current list members who are not in the new data. Defaults to false.
originOrigin of the action, e.g. a subscription page URL or api.
rejoinRecord a new list join even for contacts already on the list, which allows repeated welcome messages. Defaults to false.
ignore_errorsSkip contacts that cannot be added, such as missing contacts, instead of failing. Defaults to false.
RemoveRecipientFromMailingList
memberContact ID.
list_idMailing list ID.
reasonFree-text reason for the action.
NumberOfListMemberEntries
Maximum number of members to return. 0 or omitted returns all.
MailingListMemberFilter
Case-insensitive search text matched against email, SMS (in international format) or property values. Use * as a wildcard.
Special values:
has_emailreturns members who have an email addresshas_smsreturns members who have an SMS number
GetMailingListMembers
list_idMailing list ID.
fromNumber of results to skip.
Maximum number of members to return. 0 or omitted returns all.
orderField to order results by: id, email, sms or a property name. Unordered when omitted.
sortSort direction, asc or desc. Defaults to asc.
filterCase-insensitive search text matched against email, SMS (in international format) or property values. Use * as a wildcard.
Special values:
has_emailreturns members who have an email addresshas_smsreturns members who have an SMS number
ListMemberCondition
Member group to return. Omitted or other values return all members.
bouncedmembers with bouncesunsubscribedmembers who have been on the list but unsubscribedleftmembers who opted out of the listjoinedmembers who opted in to the listnewall list members
ListMemberColumns
Columns to include: property names and optionally joined, quit, unsubscribed or member_id. Empty returns all properties.
GetMailingListMembersConditional
list_idMailing list ID.
fromStart time as a Unix timestamp. Defaults to 0. Ignored when condition is new or omitted.
toEnd time as a Unix timestamp. Defaults to now. Ignored when condition is new or omitted.
conditionMember group to return. Omitted or other values return all members.
bouncedmembers with bouncesunsubscribedmembers who have been on the list but unsubscribedleftmembers who opted out of the listjoinedmembers who opted in to the listnewall list members
colsColumns to include: property names and optionally joined, quit, unsubscribed or member_id. Empty returns all properties.
GetMailingListMembersConditionalResponse
resultList contents in CSV format.
GetMailingListMembersCount
listMailing list ID.
GetMailingListMembersCountResponse
resultList member count.
GetRecipientsMailingListProps
list_idMailing list ID.
recipient_idContact ID.
GetSubscriptionData
fromStart date and time as YYYY-MM-DD HH:MM:SS. getUnsubscriptions accepts only YYYY-MM-DD.
SubscriptionData
joinedContact join date.
list_idMailing list ID.
memberContact ID.
GetUnsubscriptions
fromStart date and time as YYYY-MM-DD HH:MM:SS. getUnsubscriptions accepts only YYYY-MM-DD.
UnsubscribedRecipientObject
listMailing list ID.
member_idContact ID.
member_emailEmail address of the contact, or null if the contact has none.
reasonFree-text reason for the action.
unsubscribedUnsubscription date.
QuitMailingList
list_idMailing list ID.
recipient_idContact ID.
ListImportCSV
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
ListImportDisableAutomationEvents
Do not send LianaAutomation events for the import. Defaults to false.
ListImportUseListProps
Import properties as list-specific values instead of contact default values. Defaults to false.
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.
ListImportUserId
ID of the user to associate with the import. Must be the ID of the authenticated user.
ListImportId
ID of an existing import to use. Applies only with user_id, and the import must belong to that user.
ImportCSVToMailingList
list_idMailing list ID.
properties_clientDeprecated. Set to null.
csvCSV data, raw or Base64-encoded, with property names in the header row. Use:
- Field separator
; - Encapsulation
" - Encoding
UTF-8 - Unix-style line endings
\n
receiptDeprecated. Set to null.
base64encodedcsv is Base64-encoded. Defaults to false.
truncateRemove current list members who are not in the new data. Defaults to false.
disable_cem_eventsDo not send LianaAutomation events for the import. Defaults to false.
use_list_propsImport properties as list-specific values instead of contact default values. Defaults to false.
use_duplicatesWhen the email and SMS of a row match two different contacts, add both to the list instead of rejecting the row. Defaults to false.
forkDeprecated. Set to null.
user_idID of the user to associate with the import. Must be the ID of the authenticated user.
import_idID of an existing import to use. Applies only with user_id, and the import must belong to that user.
consent_idConsent ID.
consent_langConsent language code, e.g. EN.
ImportJSONToMailingList
list_idMailing list ID.
emailsJSON array of email addresses, or of objects with email, sms and property values keyed by property name. Property names are case-insensitive.
IsCSVToMailingListAllowed
list_idMailing list ID.
properties_clientDeprecated. Set to null.
csvCSV data, raw or Base64-encoded, with property names in the header row. Use:
- Field separator
; - Encapsulation
" - Encoding
UTF-8 - Unix-style line endings
\n
receiptDeprecated. Set to null.
base64encodedcsv is Base64-encoded. Defaults to false.
truncateRemove current list members who are not in the new data. Defaults to false.
IsCSVToMailingListAllowedResponse
resultBoolean true if all rows are allowed, false if the data has no email or SMS column, otherwise the blocked addresses in CSV format.
GetImportStatus
list_idMailing list ID.
ImportStatus
Current status: -1 if the list is fully imported, or [0, lines] if still importing.
GetImportStatusResponse
resultCurrent status: -1 if the list is fully imported, or [0, lines] if still importing.
GetImportLog
list_idMailing list ID.
base64encodedReturn the content Base64-encoded. Defaults to false.
ImportLog
Log data of list import.
GetImportLogResponse
resultLog data of list import.
GetMail
idMail ID.
encodeReturn the content Base64-encoded. Defaults to false.
MailImage
idImage ID.
filenameFile name.
mimetypeMIME type of the file.
content_md5MD5 hash of the file content.
MailImagesArr
Mail images.
idImage ID.
filenameFile name.
mimetypeMIME type of the file.
content_md5MD5 hash of the file content.
MailAttachment
idImage ID.
filenameFile name.
content_md5MD5 hash of the file content.
MailAttachmentsArr
Mail attachments.
idImage ID.
filenameFile name.
content_md5MD5 hash of the file content.
MailObject
idMail ID.
templateHTML content of the message.
plaintextPlain text content of the message.
subjectMail subject.
shortmessageSMS message content.
trackingMail tracking state.
archiveMail archive state.
Mail images.
Mail attachments.
GetMailName
mail_idMail ID.
GetMailNameResponse
resultMail name.
GetMailTrackingState
idMail ID.
MailTrackingStateLink
idLink ID.
originalOriginal link URL.
clicksCount of clicks.
clickersNumber of clickers.
GetMailLinkData
idMail ID.
Link
link_idLink ID.
originalOriginal link URL.
clicksCount of clicks.
clickersNumber of clickers.
LinkFriendClicksObject
friend_clicksNumber of clicks by friends.
GetDelivery
idDelivery ID. If omitted, all your mailing list deliveries are returned.
DeliveryDirectUnsubscriptions
Count of contacts who unsubscribed via the delivered message.
DeliveryDirectSubscriptions
Count of contacts subscribed via the delivered message.
Delivery
idDelivery ID.
mail_idMail ID.
ownerCustomer ID.
membersCount of delivery contacts.
deliveredCount of contacts the message was delivered to.
bouncedNumber of bounced contacts in the delivery.
createdDelivery creation time.
scheduledScheduled send time as YYYY-MM-DD HH:MM:SS.
subjectBase64-encoded subject of the delivery.
clicksCount of clicks.
clickersCount of contacts who clicked a link in the delivery.
opensCount of opens in the delivery.
openersCount of contacts who opened the delivery.
noopenersCount of contacts who did not open the message.
list_idMailing list ID.
list_nameName of the mailing list connected to the delivery.
list_deletedTime when the list was deleted, if it was.
list_hiddenTime when the list was hidden, if it was.
archiveArray of archives the delivery appears in.
rssArray of RSS feeds the delivery appears in.
htmlBase64-encoded HTML content of the message.
plainBase64-encoded plain text version of the message.
campaignCampaign ID.
smscountCount of short messages sent including previews.
excludedCount of excluded contacts.
unsubscribedCount of contacts who unsubscribed.
direct_unsubscriptionsCount of contacts who unsubscribed via the delivered message.
direct_subscriptionsCount of contacts subscribed via the delivered message.
doneWhether the delivery has finished. Can be null.
smsreceivedCount of short messages received.
typeDelivery type. Can be bulk, preview, event, sms or sms-preview.
user_idUser ID of the user who created the delivery.
user_display_nameDisplay name of the user who created the delivery.
tagsDelivery tags.
GetDeliveries
idsDelivery IDs. If omitted or empty, all your mailing list deliveries are returned.
DeliveriesRangeFrom
Decision Table
| Variant | Matching Criteria |
|---|---|
| type = string | |
| type = integer |
DeliveriesRangeTo
Decision Table
| Variant | Matching Criteria |
|---|---|
| type = string | |
| type = integer |
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.
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.
sortSort key: created, subject, id, members, bounced, campaign, list_id or scheduled, optionally followed by ASC or DESC. Defaults to created DESC.
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.
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.
sortSort key: created, subject, id, members, bounced, campaign, list_id or scheduled, optionally followed by ASC or DESC. Defaults to created DESC.
DeliveryCsv
Deliveries in CSV format.
GetDeliveriesRangeCSVResponse
resultDeliveries in CSV format.
GetScheduledDeliveries
numMaximum number of deliveries to return. 0 returns all.
reverseSet to 1 to sort by scheduled time in descending order. Defaults to ascending.
GetRelatedDeliveries
idDelivery ID.
GetRelatedDeliveriesResponse
resultArray of related delivery IDs.
DeliveryStatus
idDelivery ID.
membersCount of delivery contacts.
deliveredCount of contacts the message was delivered to.
doneWhether the delivery has finished. Can be null.
GetDeliverySize
delivery_idDelivery ID.
inline_onlyWhich files are added to the size: 1 adds inline images and attachments, 0 adds all images but no attachments. Defaults to 1.
GetDeliverySizeResponse
resultDelivery size in bytes.
HasTemporaryBlockResponse
resultReturns true if sending is temporarily blocked for your account.
RescheduleDeliveryToMailingList
ID of the delivery to send again, or the name of its mail, as returned by getMailName.
list_idMailing list ID.
Delivery settings.
RescheduleDeliveryToMailingListResponse
resultID of the newly created delivery.
CancelDelivery
idDelivery ID.
CancelDeliveryRelated
idDelivery ID.
GetSyndication
deliveryDelivery ID. If set, the result also includes the syndication states of this delivery.
SyndicationPoint
idSyndication point ID.
nameSyndication point name.
listsMailing list IDs as a string in curly brackets.
campaignsCampaign IDs as a string in curly brackets.
DeliverySyndicationState
rss_ingressRSS lead texts (ingress) of the delivery.
archivedNames of the syndication points where the delivery is in the web archive.
syndicatedNames of the syndication points where the delivery is in the RSS feed.
GetSyndicationResponse
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.
ArchiveOrder
Sort order by send time: 2 for ascending, other values for descending. Defaults to descending.
GetArchived
archiveArchive or RSS feed name.
numMaximum number of deliveries to return, from 0 to 100. 0 returns no deliveries, and other values return 10.
limitSort order by send time: 2 for ascending, other values for descending. Defaults to descending.
DeliveryArchiveItem
idMail ID of the delivery. This is not the delivery ID.
templateHTML body of the message.
plaintextPlain text content of the message.
subjectMessage subject.
scheduledScheduled send time as YYYY-MM-DD HH:MM:SS.
createdDate of creation.
membersCount of delivery contacts.
deliveredCount of contacts the message was delivered to.
list_idMailing list ID.
campaignCampaign ID.
feed_titleFeed title.
GetSyndicated
archiveArchive or RSS feed name.
numMaximum number of deliveries to return, from 0 to 100. 0 returns no deliveries, and other values return 10.
limitSort order by send time: 2 for ascending, other values for descending. Defaults to descending.
DeliveryArchiveItemWithIngress
rss_ingressidMail ID of the delivery. This is not the delivery ID.
templateHTML body of the message.
plaintextPlain text content of the message.
subjectMessage subject.
scheduledScheduled send time as YYYY-MM-DD HH:MM:SS.
createdDate of creation.
membersCount of delivery contacts.
deliveredCount of contacts the message was delivered to.
list_idMailing list ID.
campaignCampaign ID.
feed_titleFeed title.
SetArchivedState
deliveryDelivery ID.
archiveNames 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.
SetArchivedStateResponse
resultNames of the feeds where the delivery is now shown.
SetSyndicatedState
deliveryDelivery ID.
archiveNames of the RSS feeds where the delivery is shown. The delivery is removed from all other feeds; an empty array removes it from all.
ingressSummary text of the delivery in the RSS feeds.
SetSyndicatedStateResponse
resultNames of the RSS feeds where the delivery is now shown.
GetDeliveryReport
idDelivery ID.
DeliveryReport
membersCount of delivery contacts.
deliveredCount of contacts the message was delivered to.
bouncedNumber of bounced contacts in the delivery.
customerCustomer ID.
mailMail ID.
doneWhether the delivery has finished: 1 or 0.
scheduledScheduled send time as YYYY-MM-DD HH:MM:SS.
createdDelivery creation time.
campaignCampaign ID.
listMailing list ID.
list_nameMailing list name.
list_deletedList deleted date.
list_hiddenList hidden date.
unsubscribedCount of contacts who unsubscribed.
rssArray of RSS feeds the delivery appears in.
archiveArray of archives the delivery appears in.
smscountCount of short messages sent including previews.
direct_subscriptionsCount of contacts subscribed via the delivered message.
direct_unsubscriptionsCount of contacts who unsubscribed via the delivered message.
smsreceivedCount of short messages received.
GetTrackingOpenInfo
idDelivery ID.
openedReturn openers (1) or non-openers (0). Defaults to 1.
OpenerData
memberContact ID.
emailEmail address of the contact.
dateTime of the tracking link click.
numberCount of opens.
GetLinkData
idDelivery ID.
LinkSummary
Return an hourly click summary (1) instead of individual clicks (0). Defaults to 0.
GetTrackingLinkInfo
idLink ID.
summaryReturn an hourly click summary (1) instead of individual clicks (0). Defaults to 0.
ClickerData
memberContact ID.
emailEmail address of the contact.
dateTime of the tracking link click.
numberCount of clicks.
friendNumber of clicks by friends.
LinkClicksByHour
dateStart of the hour of the first clicks.
clickersNumber of contacts whose first click on the link was during the hour.
clicksTotal number of clicks on the link by those contacts.
GetTrackingLinkInfoResponse
Array of link clickers, or with summary set to 1, the clicks by hour.
GetClickers
fromStart date and time as YYYY-MM-DD HH:MM:SS. getUnsubscriptions accepts only YYYY-MM-DD.
offsetNumber of results to skip.
ClickerObject
emailEmail address of the contact.
smsContact mobile phone number, e.g. +358401234567.
Contact properties as name-value pairs.
clicked_atTime of the tracking link click.
linkOriginal link URL.
subjectMessage subject.
DeliveryMemberCondition
Contact group to return. Omitted or unsupported values return all delivery contacts.
GetDeliveryMembersConditional
idDelivery ID.
conditionContact group to return. Omitted or unsupported values return all delivery contacts.
translationsCustom CSV column headers, mapping default header names to new ones.
extraLink ID for the clickers condition, to return only the clickers of that link.
DeliveryMembersCsv
Delivery contacts in CSV format.
GetDeliveryMembersConditionalResponse
resultDelivery contacts in CSV format.
DeliveryMembersExtraLink
For the clickers and taflinkclickers conditions, link ID to return clickers of one link only. Accepts a string or an integer.
GetDeliveryMembersConditionalLess
idDelivery ID.
conditionContact group to return. Omitted or unsupported values return all delivery contacts.
extraFor the clickers and taflinkclickers conditions, link ID to return clickers of one link only. Accepts a string or an integer.
GetDeliveryMembersConditionalLessResponse
resultReturns an array of arrays. The first contains header fields and the rest contain contact information.
DeliveryMembersExtraLinks
For the clickers condition, comma-separated link IDs to return clickers of those links only.
GetDeliveryMembersOverTime
idDelivery ID.
conditionContact group to return. Omitted or unsupported values return all delivery contacts.
For the clickers condition, comma-separated link IDs to return clickers of those links only.
DeliveryMembersOverTimeCsv
Delivery contacts in CSV format.
GetDeliveryMembersOverTimeResponse
resultDelivery contacts in CSV format.
GetMailOpenTrackingData
idMail ID.
fromStart date and time as YYYY-MM-DD HH:MM:SS. getUnsubscriptions accepts only YYYY-MM-DD.
MailOpenObject
opened_atMessage open date.
useragentBase64-encoded user agent.
acceptlanguageLanguage preferences.
remote_addrIP address.
hostnamecontinent_codeorg_namecountry_codecountry_code3country_nameregioncitypostal_codelatitudelongitudedma_codearea_coderefererBase64-encoded referer.
member_idContact ID.
member_emailEmail address of the contact.
GetMailLinkTrackingData
idMail ID.
fromStart date and time as YYYY-MM-DD HH:MM:SS. getUnsubscriptions accepts only YYYY-MM-DD.
GetMailLinkTrackingDataResponse
resultMail link tracking data in CSV format.
GetTellafriendData
delivery_idDelivery ID.
TellafirendDeliveryData
delivery_idDelivery ID.
sentCount of tell-a-friend messages sent.
sent_by_memberCount of tell-a-friend messages sent by the delivery contact.
sent_by_member_recipientCount of tell-a-friend messages sent by contacts who received a tell-a-friend message.
subscriptionsCount of subscriptions via the tell-a-friend message subscription link.
clicksCount of clicks on the tell a friend link of the message.
clickersCount of unique clickers on the tell a friend link of the message.
Useragent
Base64-encoded user agent.
TellafirendClickerData
delivery_idDelivery ID.
memberContact ID.
sender_emailSender email address.
clicked_atTime of the tracking link click.
clicked_timeTracking link click count.
useragentBase64-encoded user agent.
acceptlanguageLanguage preferences.
browserBrowser name.
osOperating system.
os_versionOperating system version.
remote_addrIP address.
hostnamecontinent_codeorg_namecountry_codecountry_code3country_nameregioncitypostal_codelatitudelongitudedma_codearea_coderefererTellafirendRecipientData
idTell-a-friend message ID.
delivery_idDelivery ID.
memberID 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.
sent_atMessage sent date.
sender_emailEmail of the tell-a-friend message sender.
sender_nameName of the tell-a-friend message sender.
sender_remote_addrIP address.
subjectMessage subject.
bodyCover letter added by the sender.
useragentBase64-encoded user agent.
acceptlanguageLanguage preferences.
browserBrowser name.
browser_versionBrowser version.
osOperating system.
os_versionOperating system version.
remote_addrIP address.
hostnamecontinent_codeorg_namecountry_codecountry_code3country_nameregioncitypostal_codelatitudelongitudedma_codearea_coderefererGetTellafriendDataResponse
Tell-a-friend data as an array of three items, in this order:
- The totals of the delivery, as an object.
- The clicks, newest first, as an array of objects.
- 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.
EchoMessage
msgMessage to echo back.
EchoMessageResponse
resultMessage to echo back.
ServerDetails
levelDetail level. Only 1 is available through the API.
ServerDetailsResult
Server NameServer name.
API VersionAPI version.
Build DateServer build date.
Mailinglist
dataBase64-encoded file content. The first row must contain column headers, including an email or SMS column.
typeFile format: csv or xls. A CSV file must use:
- Field separator
; - Enclosure character
" - Encoding
UTF-8 - Unix line endings
\n
list_idID of an existing mailing list to import to. Required if name is omitted. An unknown ID returns an error.
nameMailing 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 (seefolder). - With
list_id: renames the list if the name differs.
folderMailing 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.
truncateRemove all current members from the list before importing. Defaults to false.
use_list_propsImport property values as list-specific values instead of default values. Defaults to false.
consent_idConsent ID to give to the imported contacts. Requires consent_lang, and the consent must exist in that language.
consent_langConsent language as a two-letter ISO 639-1 code, e.g. EN. Requires consent_id.
Attachment
dataRaw attachment content. Either data or data_base64 is required; data is used if both are given.
data_base64Base64-encoded attachment content. Alternative to data.
nameAttachment file name. Required.
typeAttachment MIME type, e.g. text/csv. Required.
Attachments
Files to attach to the message. Requires the attachments privilege. File and total sizes are limited per account.
dataRaw attachment content. Either data or data_base64 is required; data is used if both are given.
data_base64Base64-encoded attachment content. Alternative to data.
nameAttachment file name. Required.
typeAttachment MIME type, e.g. text/csv. Required.
PreheaderText
Preheader text. Replaces the draft preheader. Ignored if empty.
DeliveryTime
Delivery time in YYYY-MM-DD HH:MM:SS format, in the given timezone.
Timezone
Time zone of delivery as a TZ database name, e.g. Europe/Helsinki. See https://en.wikipedia.org/wiki/Tz_database.
Schedule
deliveryDelivery time in YYYY-MM-DD HH:MM:SS format, in the given timezone.
timezoneTime zone of delivery as a TZ database name, e.g. Europe/Helsinki. See https://en.wikipedia.org/wiki/Tz_database.
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.
LetterPlain
Plain text version of the message. Replaces the draft plain text.
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.
Tracking
Tracking to enable: open for opens, link for link clicks. Replaces the draft tracking settings.
Consents
Grounds for sending (consent IDs). Replaces the draft grounds for sending.
ImagesAsLink
Link images instead of embedding them as inline attachments. Defaults to false.
DisableUnsubscribe
Leave out the automatic unsubscribe link. Defaults to false. Ignored without the privilege to hide the unsubscribe link.
BgColor
Message background color as a color name or hex code, e.g. red or #ff0000. skip disables the background color.
BatchLetter
typeLetter type. Only draft is supported.
idDraft ID.
revisionDraft revision. Defaults to the latest revision.
Files to attach to the message. Requires the attachments privilege. File and total sizes are limited per account.
subjectEmail subject. Replaces the draft subject.
A/B subject test settings. Requires A/B testing privileges and open tracking. Cannot be used with schedule.
preheader_textPreheader text. Replaces the draft preheader. Ignored if empty.
Scheduled delivery time. Cannot be used with ab. A time in the past sends the message immediately.
htmlCustom 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.
plainPlain text version of the message. Replaces the draft plain text.
senderSender, 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.
smsSMS message text. Replaces the draft SMS text.
sms_senderSMS sender. Replaces the draft SMS sender.
trackingTracking to enable: open for opens, link for link clicks. Replaces the draft tracking settings.
consentsGrounds for sending (consent IDs). Replaces the draft grounds for sending.
delivery_tagsDelivery tags. Replaces the draft delivery tags.
images_as_linkLink images instead of embedding them as inline attachments. Defaults to false.
disable_unsubscribeLeave out the automatic unsubscribe link. Defaults to false. Ignored without the privilege to hide the unsubscribe link.
bgcolorMessage background color as a color name or hex code, e.g. red or #ff0000. skip disables the background color.
Recipients
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.
idContact ID. Contacts that are not found are skipped.
emailEmail address of the contact.
smsContact phone number for SMS, e.g. +358401234567.
Lists
Mailing list IDs to send to. Required if recipients is omitted. Can be combined with recipients.
batch-send
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.
listsMailing list IDs to send to. Required if recipients is omitted. Can be combined with recipients.
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.
EventLetter
typeLetter type. Only draft is supported.
idDraft ID.
revisionDraft revision. Defaults to the latest revision.
Files to attach to the message. Requires the attachments privilege. File and total sizes are limited per account.
subjectEmail subject. Replaces the draft subject.
preheader_textPreheader text. Replaces the draft preheader. Ignored if empty.
htmlCustom 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.
plainPlain text version of the message. Replaces the draft plain text.
senderSender, 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.
smsSMS message text. Replaces the draft SMS text.
sms_senderSMS sender. Replaces the draft SMS sender.
trackingTracking to enable: open for opens, link for link clicks. Replaces the draft tracking settings.
consentsGrounds for sending (consent IDs). Replaces the draft grounds for sending.
delivery_tagsDelivery tags. Replaces the draft delivery tags.
images_as_linkLink images instead of embedding them as inline attachments. Defaults to false.
recipients_resetAllow 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.
bgcolorMessage background color as a color name or hex code, e.g. red or #ff0000. skip disables the background color.
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.
event-send
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.
tracking_idTracking ID for the event delivery, returned as tracking. Generated when omitted. 10-24 characters, lowercase letters a-z and digits 0-9 only.
WebpageLetter
urlURL of the web page to send as the message content.
senderSender, 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.
subjectEmail subject. Defaults to the <title> of the web page, or to a placeholder name if the page has no title.
A/B subject test settings. Requires A/B testing privileges and open in tracking. Cannot be used with schedule.
preheader_textPreheader text. Replaces the draft preheader. Ignored if empty.
Scheduled delivery time. Cannot be used with ab. A time in the past sends the message immediately.
trackingTracking to enable: open for opens, link for link clicks. Replaces the draft tracking settings.
consentsGrounds for sending (consent IDs). Replaces the draft grounds for sending.
delivery_tagsDelivery tags. Replaces the draft delivery tags.
images_as_linkLink images instead of embedding them as inline attachments. Defaults to false.
disable_unsubscribeLeave out the automatic unsubscribe link. Defaults to false. Ignored without the privilege to hide the unsubscribe link.
webpage-send
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.
listsMailing list IDs to send to. Required if recipients is omitted. Can be combined with recipients.
Event
atuser_agentaccept_languageremote_addressreferer