A Flow is a structured sequence of questions and end actions. End actions are executed at the conclusion of the flow, such as sending an SMS or email, or making an API call. Within a flow, you can create scenarios and assign points to possible answers. These points help determine the appropriate course of action when the flow reaches a specific point. Assigning points is optional, but it allows for more granular decision-making based on user responses.
Returns all Flows for the Partner based on their API KEY
| apiKey required | string |
{- "apiKey": "your_api_key"
}{- "errorMsg": "string",
- "success": true,
- "flows": [
- {
- "flowId": "string",
- "name": "string",
- "description": "string",
- "status": "Active",
- "language": "string"
}
]
}Sets a callback URL to call with POST method after the event has run and send data back in JSON. More on callbacks part.
| apiKey required | string |
| flowId required | string |
| endActionURL required | string |
{- "apiKey": "your_api_key",
- "flowId": "flow_id",
}{- "flowId": "string",
- "success": true,
- "errorMsg": "string"
}{- "eventId": "string",
- "originalEventId": "string",
- "client": {
- "firstName": "string",
- "lastName": "string",
- "email": "string",
- "phoneNumber": "string"
}, - "status": "Active",
- "flowId": "string"
}An Event triggers the execution of a flow by specifying a client and a scheduled time. Events can be configured to run the flow either once or on a recurring basis—daily, weekly, yearly, or at any other interval. This allows you to automate the flow's execution according to your desired schedule.
Set Event
| apiKey required | string |
| flowId required | string |
required | object |
| date required | string <date-time> ISO 8601 standard |
| repeatCount required | integer Default: 0 How many times should repeat based on repeatType |
| isInfinite required | boolean Default: false If true, it will repeat this event based on the repeatType until it is turned off. |
| repeatType required | string Enum: "Daily" "Weekly" "Monthly" "Yearly" |
{- "apiKey": "your_api_key",
- "flowId": "flow_id",
- "client": {
- "firstName": "string",
- "lastName": "string",
- "email": "string",
- "phoneNumber": "+36301111111"
}, - "date": "2024-05-22T13:12:01.470Z",
- "repeatCount": 0,
- "isInfinite": false,
- "repeatType": "Daily"
}{- "eventId": "string",
- "success": true,
- "errorMsg": "string"
}Returns the status of an event and, if the status is "Completed", returns the questions and answers too
| apiKey required | string |
| eventId required | string |
{- "apiKey": "your_api_key",
- "eventId": "event_id"
}{- "success": true,
- "errorMsg": "string",
- "status": "Active",
- "eventId": "string",
- "answers": [
- {
- "questionId": "string",
- "question": "string",
- "answer": 0
}
]
}