Skip to main content

Receiving Cascade Information

Last updated: 12 January 2025

The api/cascade/get-all method is used to get information about cascades.

Calling the api/cascade/get-all method

To call the api/cascade/get-all method, send a POST request to the URL https://app.edna.io/api/cascade/get-all

If the request is successful, the method returns a response with the code 200 and an array of JSON objects. [{...}, {...}, {...}] with the response parameters.

If you have blocked signatures, the response format will contain information about the block.

Request Format

The request body contains an empty JSON object in curly brackets {}

Response Parameters

ParameterData typeDescription
idlongCascade ID. It is specified in the cascadeId attribute when sending messages.
namestringThe name of the cascade specified when creating the cascade.
statusstringCascade status. For example, ACTIVE or DISABLED.
stagesCountstringThe number of steps in the cascade.
stagesobjectInformation about cascades. The array contains a description of the cascade composition.
orderlongSequence number of the cascade step.
uuidstringThe step ID assigned by the system.
decisionobjectDescription of the step. It can be null or contain type: "TTL", "ttl": "00:00:40", where ttl is the time after which to proceed to the described step if the message was not delivered in the previous step.
subjectobjectInformation about the channel.
subject.id longSignature ID.
subject.namestringThe channel name specified when creating the channel.
subject.subjectstringSignature name.
subject.descriptionstringAdditional information about the channel.
subject.typestringChannel type. For example, VIBER, WHATSAPP.
subject.tenantIdlongYour account ID.

Response Example

Response example if the request is successful and all cascades are active

[
{
"id": 2563,
"name": "wa-viber",
"status": "ACTIVE",
"stagesCount": 3,
"stages": [
{
"order": 1,
"uuid": "55cf6d4b-2e99-4b25-8930-c81cd66bd114",
"decision": {
"type": "TTL",
"ttl": "00:01:00"
},
"subject": {
"id": 18532,
"name": "RETAIL2_WA_EM_temp",
"subject": "RETAIL2_WA_EM_temp",
"type": "WHATSAPP",
"tenantId": 334,
"testing": false,
"locked": false,
"approveStatus": "APPROVED"
},
"stages": [
{
"order": 2,
"uuid": "db80e215-2088-4782-9f73-c8f8b1e7d644",
"decision": {
"type": "TTL",
"ttl": "00:01:00"
},
"subject": {
"id": 16724,
"name": "RETAIL2_VIBER_EM",
"subject": "RETAIL2_VIBER_EM",
"type": "VIBER",
"tenantId": 334,
"testing": false,
"locked": false,
"approveStatus": "APPROVED"
},
"stages": []
}
]
}
]
}
]

Response example if the request is successful and the disabled cascade is returned

[
{
"id": 2533,
"name": "whatsapp-conversation",
"status": "DISABLED",
"stagesCount": 1,
"stages": [
{
"order": 0,
"uuid": "85e891e5-c6e4-430c-a687-c5beefd270b4",
"subject": {
"id": 18532,
"name": "RETAIL2_WA_EM_temp",
"subject": "RETAIL2_WA_EM_temp",
"type": "WHATSAPP",
"tenantId": 334,
"testing": false,
"locked": false,
"approveStatus": "APPROVED"
},
"stages": []
}
]
}
]