LianaMailer REST API

Events

Server

Sent, opened and bounced mails, link clicks, list joins, data changes and other actions of the contacts in your account. Filter the events by type and time, and fetch them page by page. The v3 API allows one request at a time.


Get events

GET
https://rest.lianamailer.com/api
/v3/events

Returns contact events of your account, such as mail opens, link clicks, mailing list joins and data changes, newest first by default. Filter by type and time to fetch only the events you need, and page through the results with limit and offset.

Get events › query Parameters

limit
​integer · min: 1

Maximum number of items to return, a whole number of 1 or more. Defaults to 25. Other values are not rejected with 400: a non-numeric or negative value fails with 500, so check the value before you send it.

Default: 25
offset
​integer · min: 0

Number of items to skip. Defaults to 0.

properties[]
​string[] · style: form · explode: true

Contact property names to include in properties, e.g. properties[]=firstname&properties[]=lastname. When omitted, properties is null.

type
​string · enum

Event type to return. Accepts a single type; all types are returned when omitted. mailsent covers only transactional emails and mails sent by LianaAutomation. Consent changes are not recorded as events; get them with getMemberConsentUpdates.

Enum values:
confirmed
created
data-change
deleted
list-join
list-quit
mailbounce
maillink
sort
​string

Sort field: at or type. Prefix with - for descending or + for ascending order. Defaults to -at. Other fields return an error.

at_start
​string · date-time

Return only events at or after this time, given in Europe/Helsinki time.

at_end
​string · date-time

Return only events at or before this time, given in Europe/Helsinki time.

list_data
​boolean

Include a list object with the list ID and name in events related to a mailing list. Defaults to false.

Get events › Responses

OK

​EventOut[]
href
​string | null
first
​object | null
prev
​object | null
next
​object | null
​Meta