LianaAutomation REST API documentation

PingPongIn

ping
​string

PingPongOut

pong
​string

Error

message
​string
status
​integer
status_message
​string

ImportIn

channel
​string · required

The channel system name or ID. Channel ID is used to track the source of the data. Can be found from LianaAutomation under Settings from the Admin Channels -page

​object[] · required

An array of multiple identities and events related to that identity.

no_duplicates
​boolean

If true, do not create a new duplicate event when an identical event already exists. Automations will not be triggered. Default: false

Example: false
skip_automations
​boolean

If true, this import will not trigger automations. Default: false

Example: false
allow_identity_update
​boolean

If true, the import can update email and sms values of the identity. Default: false

Example: false

ImportOut

succeed
​boolean

Returns true when the request was successful. Not to confuse with a successful import.

handle
​string

The request handle

RequestIn

channels
​string[]

Channels to search from

verbs
​string[]

Event types to search for

from
​string · date-time

Event is newer than

to
​string · date-time

Event is older than

include_data
​boolean

Include event data in response

limit
​integer

Limit event count in result. Maximum is 10000

Default: 10000
offset
​integer

Offset for traversing large event counts

​object[]

Persons to search for

Handle

handle
​string

The handle returned as response from the initial request

Example: 1234

Ready

ready
​boolean
error
​string

Why the job failed. Only database searches, deletes and exports return it. A failed automation report is ready, and its result has the error.

ResultOut

​object[]
at
​string · date-time
verb
​string
channel
​integer
​object
​object

schemas-RequestIn

channels
​string[]

Channels to delete from

​object[]

Persons to delete

schemas-ResultOut

deleted
​integer[]

components-schemas-RequestIn

integer

Segment ID

Example: 1

components-schemas-ResultOut

​object[]
email
​string
sms
​string
system-event-date
​string · date-time
formsend-sentfrom
​string
id
​integer

ListOut

​object[]
id
​integer
name
​string
description
​string
hidden
​boolean
system_name
​string | null

ChannelOut

id
​integer
name
​string
color
​string
front_url
​string
icon
​string
tracking_enabled
​boolean
notes
​string
system_name
​string
tracking_js
​string
import_js
​string
gtm_url
​string
​object

Channel event types

Example: {"contact":true,"formsend":false}
type
​string · enum
Enum values:
empty
liana_cms
liana_commerce
site
store
eventilla
push_notification
whatsapp
Example: empty
default_url
​string
events
​integer

schemas-ListOut

​object[]
id
​integer
name
​string
color
​string
front_url
​string
icon
​string
tracking_enabled
​boolean
notes
​string
system_name
​string
tracking_js
​string
import_js
​string
gtm_url
​string
​object

Channel event types

Example: {"contact":true,"formsend":false}
type
​string · enum
Enum values:
empty
liana_cms
liana_commerce
site
store
eventilla
push_notification
whatsapp
Example: empty
default_url
​string
events
​integer

ChannelIn

name
​string
color
​string
tracking_enabled
​boolean
Example: true
Default: false
notes
​string

ChannelCreateIn

name
​string · required
color
​string
tracking_enabled
​boolean
Example: true
Default: false
notes
​string

SingleOut

id
​integer
name
​string
color
​string
front_url
​string
icon
​string
tracking_enabled
​boolean
notes
​string
system_name
​string
tracking_js
​string
import_js
​string
gtm_url
​string
​object

Channel event types

Example: {"contact":true,"formsend":false}
type
​string · enum
Enum values:
empty
liana_cms
liana_commerce
site
store
eventilla
push_notification
whatsapp
Example: empty
default_url
​string
events
​integer

ChannelEditIn

id
​integer · required
name
​string
color
​string
tracking_enabled
​boolean
Example: true
Default: false
notes
​string

ChannelDeleteIn

id
​integer · required

ChannelDeleteOut

succeed
​boolean

ReportAutomationsIn

start_date
​string · required
end_date
​string · required

ReportAutomationsSummary

bounces
​integer

Bounces

Example: 5
clickers
​integer

Clickers

Example: 2
clicks
​integer

Clicks

Example: 4
ctr
​number

Click ratio

Example: 25.5
engagement
​integer

Engagement

Example: 4
non-openers
​integer

Non-openers

Example: 6
openers
​integer

Openers

Example: 2
opens
​integer

Opens

Example: 3
or
​number

Open ratio

Example: 25.5
person-engagement
​integer

Person engagement

Example: 0
persons
​integer

Persons

Example: 50
sent
​integer

Messages sent

Example: 75

ReportAutomationsMessageMailOpen

avg
​number

Average mail open ratio

Example: 60
total
​number

Total mail open ratio

Example: 55.5
trend
​integer

Mail open trend

Example: 25

ReportAutomationsMessageRatesMailClick

avg
​number

Average mail click ratio

Example: 41.5
total
​number

Total mail click ratio

Example: 45
trend
​integer

Mail click trend

Example: 50

ReportAutomationsMessageGraphMailSent

counts
​integer[]
total_count
​integer
highest_count
​integer

ReportAutomationsMessageGraphMailOpenAndClick

counts
​integer[]
ratios
​number[]
total_count
​integer
highest_count
​integer
highest_ratio
​number

ReportAutomationsOut

​object[]
id
​integer

Automation id

Example: 1
name
​string

Automation name

Example: Customer automation
enabled
​boolean

Automation state

Example: true
​object[]

components-schemas-ListOut

​object[]
id
​integer
name
​string
embed_code_with_styles
​string
embed_code_without_styles
​string

InfoOut

installation_name
​string
base_url
​string