LianaMailer REST API

Delivery reports

Server

Paged lists of the contacts who opened a delivery or clicked its links. The v3 API allows one request at a time.


Get delivery openers

GET
https://rest.lianamailer.com/api
/v3/deliveries/{delivery_id}/openers

Returns the contacts who opened the delivery, or any of several deliveries. Each contact appears once per delivery, with the details of their first recorded open. For link clicks, use deliveries/{delivery_id}/clickers. A delivery that does not exist or is not yours returns an empty list.

Get delivery openers › path Parameters

delivery_id
​string · required

Delivery ID, or several IDs separated by commas, such as 1100,1101. With several IDs, the delivery field of each item shows which delivery it belongs to.

Get delivery openers › 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.

fields
​string

Comma-separated fields to include in each item: id, href, email, sms, properties, event, delivery. Defaults to all of them. Other fields return an error.

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

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

sort
​string

Sort field: id (contact ID) or event.at. Prefix with - for descending or + for ascending order. Defaults to -id.

event_at_start
​string · date-time

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

Get delivery openers › Responses

OK

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

Get delivery clickers

GET
https://rest.lianamailer.com/api
/v3/deliveries/{delivery_id}/clickers

Returns the contacts who clicked tracked links in the delivery, or in any of several deliveries. Each contact appears once per link, with the link and the details of their first click on it. For opens, use deliveries/{delivery_id}/openers. A delivery that does not exist or is not yours returns an empty list.

Get delivery clickers › path Parameters

delivery_id
​string · required

Delivery ID, or several IDs separated by commas, such as 1100,1101. With several IDs, the delivery field of each item shows which delivery it belongs to.

Get delivery clickers › 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.

fields
​string

Comma-separated fields to include in each item: id, href, email, sms, properties, event, link, delivery. Defaults to all of them. Other fields return an error.

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

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

sort
​string

Sort field: id (contact ID) or event.at. Prefix with - for descending or + for ascending order. Defaults to -id.

event_at_start
​string · date-time

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

Get delivery clickers › Responses

OK

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