LianaMailer REST API

Mails

Server

The content of a message: its subject, body and links. One mail can be sent in many deliveries. Get mail details, links and tracking statistics.


Get mail content

POST
https://rest.lianamailer.com/api
/v1/getMail

Returns the content of a mail: the subject, HTML and plain text bodies, SMS text, tracking and archive settings, and lists of its inline images and attachments. The image and attachment lists have file details only, not the file data. To find the mail of a delivery, see mail_id in getDelivery.

Get mail content › Request Body

id
​MailId · required

Mail ID.

Example: 20
encode
​Base64Result

Return the content Base64-encoded. Defaults to false.

Example: false

Get mail content › Responses

OK

succeed
​boolean

Response status.

Example: true
​MailObject

Mail template.


Get mail name

POST
https://rest.lianamailer.com/api
/v1/getMailName

Returns the name of a mail. Names identify mails that are used as automation templates. Returns false if the mail has no name.

Get mail name › Request Body

mail_id
​MailId · required

Mail ID.

Example: 20

Get mail name › Responses

OK

succeed
​boolean

Response status.

Example: true
result
​MailName

Mail name.

Example: Mail name.

Get mail tracking statistics

POST
https://rest.lianamailer.com/api
/v1/getMailTrackingState

Returns the open and click statistics of a mail: open, opener and non-opener counts, the tracked links with their click counts, the number of clickers, and opens and clicks by hour of the day.

Get mail tracking statistics › Request Body

id
​MailId · required

Mail ID.

Example: 20

Get mail tracking statistics › Responses

OK

succeed
​boolean

Response status.

Example: true
​object

POST
https://rest.lianamailer.com/api
/v1/getMailLinkData

Returns the tracked links of one mail with their click and clicker counts. clicks does not include tell-a-friend clicks, which are counted in friend_clicks. getLinkData returns the same data by delivery ID.

Get mail links › Request Body

id
​MailId · required

Mail ID.

Example: 20

Get mail links › Responses

OK

succeed
​boolean

Response status.

Example: true
​object[]

POST
https://rest.lianamailer.com/api
/v1/getLinks

Returns every tracked link in all the mails of your account, with click counts and the ID of the mail each link belongs to. The list can be long. For the links of one mail, use getMailLinkData, and for one delivery, getLinkData.

Get all tracked links › Responses

OK

succeed
​boolean

Response status.

Example: true
​object[]