LianaMailer REST API

Contacts

Server

Create, find, update, disable and delete the people you send email or SMS to, identified by a contact ID, an email address or an SMS number. Contacts belong to your account rather than to a mailing list, so one contact can be on many lists. To add contacts to mailing lists, see List members.

Read the mails sent to a contact and the actions recorded for them. The action history is built on request: start an update, check its status until it is done, and then read the actions. You can also export the history of all contacts.

Answer GDPR requests: permanently erase all data of a contact, or export the data stored about them. For the states a contact can be in and the endpoints that change them, see Contact lifecycle.


Get contact

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

Returns an active contact by ID, with its properties, list memberships and consents. Use options to leave out the parts you do not need.

Returns an error if the contact does not exist or is deleted. Use getDeletedRecipient for deleted contacts, or getShadowRecipient if you do not know the contact's state.

Get contact › Request Body

id
​RecipientId · required

Contact ID.

Example: 20000

Get contact › Responses

OK

succeed
​boolean

Response status.

Example: true

Get contact by email

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

Finds a contact by email address and returns it in the same format as getRecipient. The address is not case-sensitive.

Returns an error if no active contact has the address. With include_deleted, a deleted contact is also returned, in the format of getDeletedRecipient.

Get contact by email › Request Body

email
​RecipientEmail · required

Email address of the contact.

Example: recipient@example.com
include_deleted
​GetRecipientIncludeDeleted

Also search deleted contacts. Defaults to false.

Example: true

Get contact by email › Responses

OK

succeed
​boolean

Response status.

Example: true
​GetRecipientObject

Get contact by SMS

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

Finds a contact by SMS number and returns it in the same format as getRecipient. A number in local format is also matched, using your account's default SMS country.

Returns an error if no active contact has the number. With include_deleted, a deleted contact is also returned, in the format of getDeletedRecipient.

Get contact by SMS › Request Body

sms
​RecipientSMS · required

Contact mobile phone number, e.g. +358401234567.

Example: +358401234567
include_deleted
​GetRecipientIncludeDeleted

Also search deleted contacts. Defaults to false.

Example: true

Get contact by SMS › Responses

OK

succeed
​boolean

Response status.

Example: true
​GetRecipientObject

Get contacts

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

Returns active, confirmed contacts in the same format as getRecipient. Unconfirmed and deleted contacts are not included.

Use from and num to page through the contacts. To fetch large batches faster, use options to leave out the data you do not need.

Get contacts › Request Body

from
​Offset

Number of results to skip.

Example: 100
num
​Amount

Maximum number of results. 0 or omitted returns all.

Example: 100
order
​OrderBy

Field to order results by: id, email, sms or a property name. Unordered when omitted.

Example: email
sort
​Sort

Sort direction, asc or desc. Defaults to asc.

Example: desc
filter
​Filter

Case-insensitive search text matched against email, SMS and property values. Use * as a wildcard.

Example: text

Get contacts › Responses

OK

succeed
​boolean

Response status.

Example: true

Get contacts as a table

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

Returns the given contacts as a table. The first row has the column names (member, email, sms and your property names), and each following row has the values of one contact.

Deleted contacts are included. IDs that are not found are left out.

Get contacts as a table › Request Body

ids
​integer[] · required

Contact IDs.

Get contacts as a table › Responses

OK

succeed
​boolean

Response status.

Example: true
result
​array

Arrays of contact details. The first array contains headers.

Example: [["member","email","sms","property"],["20001","example1@example.com","+358123456789","prop-value"],["20100","example2@example.com","+358234567890","other-prop-value"]]

Find contacts by property

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

Returns active, confirmed contacts whose value for the given property exactly matches query, in the same format as getRecipient. Property IDs (handles) are listed by getCustomerProperties.

Returns at most 25 contacts per call. Use offset to get more.

Find contacts by property › Request Body

property_id
​PropertyHandle · required

Property handle. See getCustomerProperties.

Example: 123
query
​PropertyValue · required

Property value to search for. Must match exactly.

Example: test
limit
​integer

Maximum number of contacts to return, at most 25. Defaults to 1.

offset
​integer

Number of matching contacts to skip, for pagination. Defaults to 0.

Find contacts by property › Responses

OK

succeed
​boolean

Response status.

Example: true

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

Runs one of the predefined contact searches, selected with nm, and returns an array of contact IDs. The last item of the array is the total number of matching contacts, without the from and num limits.

With csv, the first item is CSV text with the contacts' data instead of IDs. list is used only with getMailingListMembers.

Run predefined contact search › Request Body

nm
​string · enum · required

Query to run.

Enum values:
filterRecipients
getMailingListMembers
getRecipients
getRecipientsReceivedMessage
getRecipientsActive
getUnassociatedRecipients
getDeletedRecipients
getBounceDeletedRecipients
Example: getRecipients
list
​ListId

Mailing list ID.

Example: 60
from
​Offset

Number of results to skip.

Example: 100
num
​Amount

Maximum number of results. 0 or omitted returns all.

Example: 100
order
​OrderBy

Field to order results by: id, email, sms or a property name. Unordered when omitted.

Example: email
sort
​Sort

Sort direction, asc or desc. Defaults to asc.

Example: desc
q
​Filter

Case-insensitive search text matched against email, SMS and property values. Use * as a wildcard.

Example: text
csv
​boolean

If true, the first item is semicolon-separated CSV text with all properties instead of contact IDs. Defaults to false.

Example: true
gzip
​boolean

If true, the CSV text is zlib-compressed and Base64-encoded. Applies only with csv. Defaults to false.

Example: true

Run predefined contact search › Responses

OK

succeed
​boolean

Response status.

Example: true
result
​array

Returns an array of contact IDs. The last item in the array is always the count of contacts.

Example: [502,7001,123,3]

Find contact ID

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

Finds a contact by email address or SMS number and returns its ID, or false if no contact is found. Deleted contacts are also found.

The email address is not case-sensitive, but the SMS number must match the stored number exactly.

Find contact ID › Request Body

email_or_sms
​string · required

Email address or SMS number of the contact.

Find contact ID › Responses

OK

succeed
​boolean

Response status.

Example: true
result
​RecipientId

Contact ID.

Example: 20000

Check if contact is active

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

Checks whether a contact, found by ID, email address or SMS number, is active (not deleted).

Without strict, 0 is also returned when the contact does not exist. With strict, the result tells instead whether the contact is missing.

Check if contact is active › Request Body

​required

Contact ID, email address or SMS number.

strict
​boolean

If true, returns 1 when the contact does not exist and 0 when it does, regardless of its state. Defaults to false.

Check if contact is active › Responses

OK

succeed
​boolean

Response status.

Example: true
result
​integer

With strict set to false: 1 for enabled, 0 for disabled.

Example: 1

Get contact statuses

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

Checks several email addresses in one call and returns, for each one, whether it belongs to an active contact, a deleted contact or no contact.

Get contact statuses › Request Body

recipients
​string[] · required

Email addresses of the contacts.

Example: ["recipient1@example.com","recipient2@example.com"]

Get contact statuses › Responses

OK

succeed
​boolean

Response status.

Example: true
result
​object

Contact statuses keyed by email address: 0 for an active contact, 1 for a deleted contact and 2 if no contact has the address.

Example: {"recipient1@example.com":0,"recipient2@example.com":1}

Get active or deleted contact

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

Returns a contact by ID whether it is active or deleted, with its properties and list memberships. The enabled field tells which. Consents are not included.

Use this when you do not know the contact's state. Otherwise use getRecipient or getDeletedRecipient.

Get active or deleted contact › Request Body

id
​RecipientId · required

Contact ID.

Example: 20000

Get active or deleted contact › Responses

OK

succeed
​boolean

Response status.

Example: true
​object

Contact data.


Create or update contact

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

Creates a contact, or updates an existing one, and adds it to the given mailing lists. Returns the contact ID.

An existing contact is searched by id, then email, then sms; one of these must be given. An existing contact is updated as with editRecipient, so an omitted email or sms is cleared. If the contact is deleted, nothing is done and false is returned.

Adding the contact to a list it has left subscribes it to the list again.

Every property given is created or reset as a text property: an existing property also loses its data type, required and subscription page settings. To keep the property settings, update the contact with updateRecipient and add it to lists with joinMailingList. Property name restrictions apply here.

Create or update contact › Request Body

id
​RecipientId · required

Contact ID.

Example: 20000
email
​RecipientEmail · required

Email address of the contact.

Example: recipient@example.com
sms
​RecipientSMS

Contact mobile phone number, e.g. +358401234567.

Example: +358401234567
​RecipientProperties

Contact properties as name-value pairs.

Example: {"property_name":"property_value"}
autoconfirm
​RecipientAutoConfirm

Confirm the contact automatically. Defaults to false.

Example: true
reason
​RecipientCreateReason

Free-text reason for creating the contact.

Example: Example reason.
origin
​Origin

Origin of the action, e.g. a subscription page URL or api.

Example: api
lists
​ListId[]

IDs of the mailing lists to join.

admin
​boolean

Whether an admin made the join. false treats it as the contact's own subscription, for example in subscription statistics. Defaults to true.

Example: false

Create or update contact › Responses

OK

succeed
​boolean

Response status.

Example: true
​

The contact ID, or false if the contact is deleted.


Create contact

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

Creates a new contact and returns its ID. The contact is not added to any mailing list: use joinMailingList afterwards, or createAndJoinRecipient to do both in one call.

Returns an error if a contact with the same email address or SMS number already exists, even if that contact is deleted. Use reactivateRecipient for deleted contacts.

Without autoconfirm, the contact stays unconfirmed. No confirmation email is sent.

Create contact › Request Body

email
​RecipientEmail · required

Email address of the contact.

Example: recipient@example.com
sms
​RecipientSMS

Contact mobile phone number, e.g. +358401234567.

Example: +358401234567
​RecipientProperties

Contact properties as name-value pairs.

Example: {"property_name":"property_value"}
autoconfirm
​RecipientAutoConfirm

Confirm the contact automatically. Defaults to false.

Example: true
reason
​RecipientCreateReason

Free-text reason for creating the contact.

Example: Example reason.
origin
​Origin

Origin of the action, e.g. a subscription page URL or api.

Example: api
dig_graveyard
​RecipientReactivateBounced

Reactivate an email address that is marked unreachable due to bounces. Defaults to false.

Note: Use this only for addresses confirmed to work. Abuse of this flag leads to suspension of REST API privileges.

Example: false

Create contact › Responses

OK

succeed
​boolean

Response status.

Example: true
result
​RecipientId

Contact ID.

Example: 20000

Update contact by email

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

Updates a contact found by email. Give only the property values that change; values cannot be unset. sms is used only when a new contact is created.

With create, the contact is created if it does not exist. Properties that do not exist yet are created as text properties. Property name restrictions apply here.

Update contact by email › Request Body

email
​RecipientEmail · required

Email address of the contact.

Example: recipient@example.com
sms
​RecipientSMS · required

Contact mobile phone number, e.g. +358401234567.

Example: +358401234567
​RecipientProperties

Contact properties as name-value pairs.

Example: {"property_name":"property_value"}
reason
​Reason

Free-text reason for the action.

Example: Example reason.
origin
​Origin

Origin of the action, e.g. a subscription page URL or api.

Example: api
create
​UpdateRecipientCreate

Create the contact if it does not exist. A created contact is confirmed automatically. Defaults to false.

Example: true

Update contact by email › Responses

OK

succeed
​boolean

Response status.

Example: true
result
​RecipientId

Contact ID.

Example: 20000

Edit contact by ID

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

Changes a contact's email address, SMS number and properties. Give email and sms even if they do not change, because omitted values are cleared. Only the given properties are updated.

To update a contact found by email address without giving the SMS number, use updateRecipient.

Edit contact by ID › Request Body

id
​RecipientId · required

Contact ID.

Example: 20000
email
​RecipientEmail · required

Email address of the contact.

Example: recipient@example.com
sms
​RecipientSMS

Contact mobile phone number, e.g. +358401234567.

Example: +358401234567
​RecipientProperties

Contact properties as name-value pairs.

Example: {"property_name":"property_value"}
reason
​Reason

Free-text reason for the action.

Example: Example reason.
origin
​Origin

Origin of the action, e.g. a subscription page URL or api.

Example: api

Edit contact by ID › Responses

OK

succeed
​boolean

Response status.

Example: true
result
​string | null

Returns null.

Example: null

Delete contact

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

Deletes a contact by ID and removes it from all its mailing lists. Returns 1 on success, 0 if deleting the contact failed, and an error if no active contact has the ID.

The contact's properties are kept, so it can be restored with enableRecipient or reactivateRecipient. Its consents are revoked and its confirmation is removed; restoring the contact does not bring the consents back. To erase the personal data permanently, use forgetRecipient. See Contact lifecycle.

Delete contact › Request Body

id
​RecipientId · required

Contact ID.

Example: 20000
reason
​RecipientDeleteReason

Free-text reason for the deletion.

Example: Example reason.
subscriber_reason_type
​RecipientDeleteReasonType

Unsubscribe reason type given by the contact.

Example: Example reason.
subscriber_reason_text
​RecipientDeleteReasonText

Free-text unsubscribe reason given by the contact.

Example: Example reason.
origin
​Origin

Origin of the action, e.g. a subscription page URL or api.

Example: api
extra_data
​object

Extra details stored with the deletion event. Supported keys: source_delivery_id (one of your delivery IDs) and tracking-id.

Example: {"source_delivery_id":10}

Delete contact › Responses

OK

succeed
​boolean

Response status.

Example: true
result
​integer

1 if the contact was deleted, 0 if deleting it failed.

Example: 1

Get deleted contact

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

Returns a deleted contact by ID, with its properties, former list memberships, consents and the reason for the deletion.

Returns an error if the contact is active or does not exist. Use getRecipient for active contacts.

Get deleted contact › Request Body

id
​RecipientId · required

Contact ID.

Example: 20000

Get deleted contact › Responses

OK

succeed
​boolean

Response status.

Example: true

Get deleted contacts

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

Returns deleted contacts in the same format as getDeletedRecipient, including forgotten ones. Use from and num to page through the contacts.

Get deleted contacts › Request Body

from
​Offset

Number of results to skip.

Example: 100
num
​Amount

Maximum number of results. 0 or omitted returns all.

Example: 100
order
​OrderBy

Field to order results by: id, email, sms or a property name. Unordered when omitted.

Example: email
sort
​Sort

Sort direction, asc or desc. Defaults to asc.

Example: desc
filter
​Filter

Case-insensitive search text matched against email, SMS and property values. Use * as a wildcard.

Example: text

Get deleted contacts › Responses

OK

succeed
​boolean

Response status.

Example: true

Deleted contact info.


Restore contact by ID

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

Restores a deleted contact by ID. The email address is also removed from the list of addresses that are unreachable due to bounces, and the contact is marked as confirmed. List memberships are not restored.

Returns 0 if the contact is forgotten, pseudonymized by the daily cleanup, or cannot be restored. Returns an error if no deleted contact has the ID, also when the contact is active. To restore a contact by email address or SMS number, use reactivateRecipient.

Restore contact by ID › Request Body

id
​RecipientId · required

Contact ID.

Example: 20000
reason
​Reason

Free-text reason for the action.

Example: Example reason.

Restore contact by ID › Responses

OK

succeed
​boolean

Response status.

Example: true
result
​integer

Number of contacts enabled.

Example: 1

Restore contact by email/SMS

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

Restores a deleted contact by email address or SMS number, both given in email, and returns its ID. If the contact is already active, it is only confirmed or given a confirmation code. List memberships are not restored.

Without confirm, a confirmation code is set for the contact (see getRecipientCode). identity and msg are saved as the reason for the reactivation. Returns an error if no contact is found.

The address must match the saved one exactly, and email addresses are saved in lowercase. An address that is blocked because mail to it bounced returns an error; restore such a contact by ID with enableRecipient, which also removes the block. A contact pseudonymized by the daily cleanup is restored with its old ID, but without its old properties and unconfirmed. See Contact lifecycle.

Restore contact by email/SMS › Request Body

email
​RecipientEmail · required

Email address of the contact.

Example: recipient@example.com
identity
​ReactivationIdentity · required

Name or other identifier of the person or system doing the reactivation.

Example: Admin user.
msg
​Reason · required

Free-text reason for the action.

Example: Example reason.
confirm
​RecipientAutoConfirm

Confirm the contact automatically. Defaults to false.

Example: true
rise
​Deprecated

Deprecated. Set to null.

Example: null
origin
​Origin

Origin of the action, e.g. a subscription page URL or api.

Example: api
​RecipientProperties

Contact properties as name-value pairs.

Example: {"property_name":"property_value"}

Restore contact by email/SMS › Responses

OK

succeed
​boolean

Response status.

Example: true
result
​RecipientId

Contact ID.

Example: 20000

Get contact stats

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

Returns the number of deliveries to each given contact and, if requested, the number of opens and clicks with their share of the deliveries.

Accepts at most 1000 contact IDs per call.

Get contact stats › Request Body

recipient_ids
​integer[] · required

Contact IDs, at most 1000.

Example: [1000,1001,1002]
values
​string[] · required

Statistics to return.

Enum values:
opens
clicks
Example: ["opens","clicks"]

Get contact stats › Responses

OK

succeed
​boolean

Response status.

Example: true
​RecipientStats

Arrays of the requested delivery statistics keyed by contact ID.


Count unique emails

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

Counts the unique email addresses among the active members of the given mailing lists and the given ad hoc addresses. An address that is on several lists is counted once.

Count unique emails › Request Body

lists
​integer[] · required

Mailing list IDs. Active members of these lists are counted. If empty, only adhocs are counted.

Example: [100,101,102]
adhocs
​string[]

Additional email addresses to count.

Example: ["recipient@example.com"]
exclude_lists
​integer[]

IDs of mailing lists whose active members are excluded from the count.

Example: [103]

Count unique emails › Responses

OK

succeed
​boolean

Response status.

Example: true
result
​integer

Number of unique email addresses found.

Example: 421

Count unlisted contacts

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

Returns the number of active contacts who are not active members of any mailing list.

The number is read from a cache that is updated when these contacts are listed with queryRecipientsBy (getUnassociatedRecipients), at most once in 10 minutes. It can therefore be out of date.

Count unlisted contacts › Responses

OK

succeed
​boolean

Response status.

Example: true
result
​integer

Number of unassociated contacts.

Example: 120

Get excluded contacts

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

Returns contacts of your account who received a completed delivery scheduled after the given time, or who are active members of the given mailing lists. A contact who matches both criteria is returned once.

Get excluded contacts › Request Body

params
​required

Search criteria. Contacts matching deliveries or lists are returned; with neither, the result is empty.

Get excluded contacts › Responses

OK

succeed
​boolean

Response status.

Example: true
​Recipient1[]

Check email domains

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

Checks whether the domains of all given email addresses are allowed for contacts in your account. Returns false if any domain is not allowed.

The same check is done when a contact is created.

Check email domains › Request Body

recipients
​string[] · required

Email addresses to check.

Example: ["recipient1@example.com","recipient2@example.com"]

Check email domains › Responses

OK

succeed
​boolean

Response status.

Example: true
result
​DomainAllowed

Returns true if all given email addresses have allowed domains and false if any of them has a non-allowed domain.


Get contact mail history

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

Returns the mails sent to a contact, and future deliveries scheduled for it, newest first. For other actions, such as opens and clicks, use memberHistoryActions.

Get contact mail history › Request Body

id
​RecipientId · required

Contact ID.

Example: 20000

Maximum number of mails to return. 0 returns no mails. Defaults to 10.

Example: 10

Get contact mail history › Responses

OK

succeed
​boolean

Response status.

Example: true
​BasicDelivery[]

Get contact action history

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

Returns a contact's actions, such as received mails, list joins, opens and clicks.

The actions are collected in advance. To get new data, first call memberHistoryUpdate and wait until memberHistoryUpdateStatus returns 0.

Get contact action history › Request Body

id
​RecipientId · required

Contact ID.

Example: 20000

Filters for the history actions.

Get contact action history › Responses

OK

succeed
​boolean

Response status.

Example: true

Refresh contact action history

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

Starts collecting a contact's latest actions in the background for memberHistoryActions. Returns 1 if the update was started. Use memberHistoryUpdateStatus to check when it is ready.

Refresh contact action history › Request Body

id
​RecipientId · required

Contact ID.

Example: 20000

Refresh contact action history › Responses

OK

succeed
​boolean

Response status.

Example: true
result
​integer

Returns 1 on success.

Example: 1

Get history update status

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

Tells whether an update started with memberHistoryUpdate is still running for the contact. When it returns 0, memberHistoryActions returns up-to-date data.

Get history update status › Request Body

id
​RecipientId · required

Contact ID.

Example: 20000

Get history update status › Responses

OK

succeed
​boolean

Response status.

Example: true
result
​integer

Returns 0 when ready, otherwise returns 1.

Example: 0

Export all contact history

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

Starts a background job that collects the action history of all your contacts in the given date range, and returns a handle for the job.

This job is not tracked by memberHistoryUpdateStatus, which only reports the state of a single contact's update started with memberHistoryUpdate.

To get the result, call /v1/jobStatus and then /v1/jobResult with the handle as handle. These endpoints are not documented separately. jobResult returns the result as a Base64-encoded file, and it can be fetched only once.

Export all contact history › Request Body

​object · required

Date range.

Export all contact history › Responses

OK

succeed
​boolean

Response status.

Example: true
result
​ProcessHandle

Process handle.

Example: H:mailer:50$20a471d4e47d950609d3d38c92b487c3

Forget contact

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

Permanently erases a contact's personal data, as required by the GDPR right to be forgotten. This cannot be undone.

The contact is deleted and removed from all lists. Its properties, SMS number, consents and logged events are removed, and its email address is replaced with a hash. Deleted contacts can also be forgotten.

Returns 0 if the contact is not found, and 1 without changing anything if the contact is already forgotten.

Forget contact › Request Body

recipient_id
​RecipientId · required

Contact ID.

Example: 20000
reason
​Reason

Free-text reason for the action.

Example: Example reason.

Forget contact › Responses

OK

succeed
​boolean

Response status.

Example: true
result
​integer

Returns 1 on success.

Example: 1

Forget contact by email

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

Same as forgetRecipient, but finds the contact by email address, including deleted contacts. Returns an error if the address is not found.

Forget contact by email › Request Body

email
​RecipientEmail · required

Email address of the contact.

Example: recipient@example.com
reason
​Reason

Free-text reason for the action.

Example: Example reason.

Forget contact by email › Responses

OK

succeed
​boolean

Response status.

Example: true
result
​integer

Returns 1 on success.

Example: 1

Forget contact by SMS

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

Same as forgetRecipient, but finds the contact by SMS number, including deleted contacts. Returns an error if the number is not found.

Forget contact by SMS › Request Body

sms
​RecipientSMS · required

Contact mobile phone number, e.g. +358401234567.

Example: +358401234567
reason
​Reason

Free-text reason for the action.

Example: Example reason.

Forget contact by SMS › Responses

OK

succeed
​boolean

Response status.

Example: true
result
​integer

Returns 1 on success.

Example: 1

Export contact data

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

Returns a file with the data stored about a contact, for answering GDPR data access requests. The file contains, for example, the email address, SMS number, chosen properties, consents, received mails, opens and clicks.

Deleted contacts are also supported.

Export contact data › Request Body

recipient_id
​RecipientId · required

Contact ID.

Example: 20000
​RecipientDataOptions · required

Export contact data › Responses

OK

succeed
​boolean

Response status.

Example: true
result
​RecipientGDPRDataFile

Base64-encoded file.