Skip to main content

Get scenarios list

Description

Retrieves the list of all created scenarios.

Request URL

Method: POST

https://example.com/api/v1.1/resources/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

{
"from_id": 1,
"limit": 1,
"token": "abcdefghijklmnqrstuvwxyz"
}

Response example

{
"data": [
{
"id": 15,
"name": "Test scenario",
"list_id": 1,
"is_active": true,
"ui_tags": [
"tag1",
"tag2"
],
"mode": "skip_in_any_case",
"groups": [
{
"id": 1,
"name": "Test group"
},
],
"nodes": [
{
"name": "Node 1",
"type": "campaign"
},
{
"name": "Node 2",
"type": "condition"
},
{
"name": "Node 3",
"type": "update"
}
]
}
],
"error": 0,
"error_text": "Successful operation",
"total_count": 1
}

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