LianaMailer REST API

Archives and RSS

Server

Publish sent deliveries in public web archives and RSS feeds, and list the deliveries published there.


Get feeds

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

Returns the syndication points of your account, and optionally the archive and RSS state of one of your deliveries. A syndication point is a folder in the web archive where content is published as HTML and RSS.

Get feeds › Request Body

delivery
​integer

Delivery ID. If set, the result also includes the syndication states of this delivery.

Example: 1100

Get feeds › Responses

OK

succeed
​boolean

Response status.

Example: true
​array

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.

Example: [{"id":3,"name":"news","lists":"{6,14}","campaigns":null}]

Get archived deliveries

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

Returns the deliveries shown in a web archive feed. Only deliveries that have finished sending and have at least one delivered message are included. To set the feeds of a delivery, use setArchivedState. For RSS feeds, use getSyndicated.

Get archived deliveries › Request Body

archive
​ArchiveName · required

Archive or RSS feed name.

Example: Archive
num
​integer · required

Maximum number of deliveries to return, from 0 to 100. 0 returns no deliveries, and other values return 10.

Example: 100
limit
​ArchiveOrder

Sort order by send time: 2 for ascending, other values for descending. Defaults to descending.

Example: 0

Get archived deliveries › Responses

OK

succeed
​boolean

Response status.

Example: true

Array of archived deliveries.


Get RSS feed deliveries

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

Returns the deliveries shown in an RSS feed, with the summary text (rss_ingress) of each. Only deliveries that have finished sending and have at least one delivered message are included. To set the RSS feeds of a delivery, use setSyndicatedState. For the web archive, use getArchived.

Get RSS feed deliveries › Request Body

archive
​ArchiveName · required

Archive or RSS feed name.

Example: Archive
num
​integer · required

Maximum number of deliveries to return, from 0 to 100. 0 returns no deliveries, and other values return 10.

Example: 100
limit
​ArchiveOrder

Sort order by send time: 2 for ascending, other values for descending. Defaults to descending.

Example: 0

Get RSS feed deliveries › Responses

OK

succeed
​boolean

Response status.

Example: true

Array of archived deliveries.


Set delivery archive feeds

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

Sets the web archive feeds where a delivery is shown. The delivery is removed from the feeds that are not listed, and names that do not match a feed of your account are ignored. Returns the names of the feeds where the delivery is now shown. To list your feeds, use getSyndication. For RSS feeds, use setSyndicatedState.

Set delivery archive feeds › Request Body

delivery
​DeliveryId · required

Delivery ID.

Example: 10
archive
​string[] · required

Names 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.

Example: ["feed-name","another-feed"]

Set delivery archive feeds › Responses

OK

succeed
​boolean

Response status.

Example: true
result
​array

Names of the feeds where the delivery is now shown.

Example: ["feed-name","another-feed"]

Set delivery RSS feeds

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

Sets the RSS feeds where a delivery is shown, and its summary text in those feeds. The delivery is removed from the feeds that are not listed, and names that do not match a feed of your account are ignored. Returns the names of the feeds where the delivery is now shown. To list your feeds, use getSyndication. For the web archive, use setArchivedState.

Set delivery RSS feeds › Request Body

delivery
​DeliveryId · required

Delivery ID.

Example: 10
archive
​string[] · required

Names of the RSS feeds where the delivery is shown. The delivery is removed from all other feeds; an empty array removes it from all.

Example: ["feed-name","another-feed"]
ingress
​string · required

Summary text of the delivery in the RSS feeds.

Set delivery RSS feeds › Responses

OK

succeed
​boolean

Response status.

Example: true
result
​array

Names of the RSS feeds where the delivery is now shown.

Example: ["feed-name","another-feed"]