Skip to main content

Get scenarios list

Description

Retrieves all created scenarios list.

Request URL

Method: POST

https://example.com/api/v1.1/workflows/list

Request parameters

ParameterTypeExampleRequiredDescription
tokenstring"abcdefghijklmnqrstuvwxyz"YesAPI token
formatstring"json"NoResponse data format
By default – json
from_idint1NoThe first ID in the response
By default – 1
limitint1NoResources list limit
By default – 1000
groups[]string[ "group1", "group2" ]NoList of access groups
By default – []
groups_id[]int[ 0, 1 ]NoList of access groups IDs
By default – []
ui_tags[]string["tag1", "tag2"]NoList of tags
By default – []

Request example

{
"token": "2fefb577533d4cae919350c450755239",
"from_id": 10,
"limit": 1,
"ui_tags": [
"B2C"
]
}

Response example

{
"data": [
{
"id": 10,
"name": "Government tip",
"list_id": 1,
"is_active": true,
"ui_tags": [
"B2C"
],
"mode": "skip",
"groups": [
{
"ID": 2,
"title": "Sales and promotion"
}
],
"nodes": [
{
"name": "DEFAULT_START_NODE_TITLE",
"type": "start"
},
{
"name": "ANY_IMPORT_START_NODE_TITLE",
"type": "start"
},
{
"name": "Node 1",
"type": "campaign"
},
{
"name": "1 d.0 h.0 m.",
"type": "delay".
},
{
"name": "Approved the offer?",
"type": "condition"
},
{
"name": "Did you receive an SMS message?",
"type": "condition"
},
{
"name": "SMS acquaintance",
"type": "campaign".
},
{
"name": "1 d.0 h.0 m.",
"type": "delay".
},
{
"name": "Application to a call center or other product ",
"type": "feedback"
},
{
"title": "Guidelines",
"type": "feedback"
},
{
"name": "Specify code",
"type": "promo_attach"
},
{
"title": "Offer",
"type": "campaign"
}
]
}
],
"error": 0,
"error text": "Operation completed successfully",
"next_from_id": 11,
"total": 3
}

Response parameters

ParameterTypedescription
errorintError code
error_textstringError text
idintResource ID
namestringResource name
list_idintDatabase ID
is_activeboolActive or inactive scenario
modestringMode if the profile is recaptured by the scenario
ui_tagsarrayList of tags
groupsarray of objectsList of groups
nodesarray of objectsList of nodes
total_countintTotal resources count