LianaAutomation REST API documentation

channel/list

POST
https://rest.automation.lianacloud.com/api/v1
/channel/list

List of channels. Depending on channel type different fields will be returned.

channel/list › Request Body

channel/list › Responses

OK

​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

channel/create

POST
https://rest.automation.lianacloud.com/api/v1
/channel/create

Create channel. Only channels without type can be created.

channel/create › Request Body

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

channel/create › Responses

OK

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

channel/edit

POST
https://rest.automation.lianacloud.com/api/v1
/channel/edit

Edit channel. Only channels without type can be edited.

channel/edit › Request Body

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

channel/edit › Responses

OK

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

channel/delete

POST
https://rest.automation.lianacloud.com/api/v1
/channel/delete

Delete channel. Channel can be deleted only if it doesn't have type, events and is not used in any automation or segment.

channel/delete › Request Body

id
​integer · required

channel/delete › Responses

OK

succeed
​boolean