Get the account details, sent mail counts, statistics, deliverability ratings and received SMS messages, and manage the marketing settings and LianaAutomation tracking.
Get customer ID
Returns the ID of the customer account that your API credentials belong to.
Get customer ID › Responses
OK
succeedResponse status.
resultCustomer ID.
Get account statistics
Returns account-level statistics: database size, active, unsubscribed and deleted member counts, recent joins and unsubscriptions, and sent email and SMS counts. Most values are precomputed by scheduled tasks, so they may not include the latest changes. The *_by_day and *_by_month values are strings that you need to parse.
Get account statistics › Responses
OK
succeedResponse status.
Customer statistics.
Get sent mail count
Returns the number of mails in your deliveries scheduled within the date range. Cancelled deliveries are not counted. Finished deliveries count the mails actually delivered, and unfinished ones count the planned contacts. This is the same count that the monthly message limit uses. A to date without a time means the start of that day.
Get sent mail count › Responses
OK
succeedResponse status.
resultNumber of mails sent during the given time range.
Get deliverability ratings
Returns the history of the account's deliverability rating, newest entry first. Each entry has the total rating and the scores it is calculated from, where higher is better. Use count and offset to page through older entries. Returns an empty array if no rating has been calculated yet.
Get deliverability ratings › Request Body
countNumber of rating entries to return, at most 100. Defaults to 1.
offsetNumber of entries to skip. Defaults to 0.
Get deliverability ratings › Responses
OK
succeedResponse status.
Array of deliverability rating entries.
Get received SMS
Returns all SMS messages sent by your contacts or to your SMS keywords, as semicolon-separated CSV text, oldest first. The columns are source, msg, time, dest and keyword. There are no date or other filters.
Get received SMS › Responses
OK
succeedResponse status.
resultResults in CSV format.
Get marketing settings
Returns the marketing settings of your account as key-value rows. They apply to all your sites and are included in the marketing data of site and sites. Change them with setMarketingSettings.
Get marketing settings › Responses
OK
succeedResponse status.
Set marketing settings
Saves marketing settings for your account, see getMarketingSettings. Settings not in the request are kept. This method cannot remove settings.
Set marketing settings › Request Body
Settings to save as key-value pairs. Existing keys are updated and new keys are added.
Set marketing settings › Responses
OK
succeedResponse status.
result1 if the settings were saved. 0 if settings is empty or the last setting could not be saved.
Set LianaAutomation tracking
Turns LianaAutomation tracking on or off for your account. When it is on, clicks on tracked links go through the LianaAutomation tracker before the target page, so that the visit can be linked to the contact. It has an effect only when your account has a LianaAutomation integration.
Set LianaAutomation tracking › Request Body
stateWhether LianaAutomation tracking is enabled.
Set LianaAutomation tracking › Responses
OK
succeedResponse status.
resultReturns 1 on success.