Get Flow by ID
GET/v1/clients/:clientID/flows/:flowId
Endpoint to retrieve a Flow for the specified id.
withChildren
query parameter could be used to include flow's children in the response.
Request
Path Parameters
Query Parameters
Responses
- 200
Successful operation
- application/json
- Schema
- Example (from schema)
Schema
duration to wait until the next iteration of this flow can be processed.
Array of children flows for this flow. In other words, the flows that form the tree under this flow.
lastEdited object
how many times this flow can be completed for the same user.
metadata object
metadata can receive any JSON object.
reference to the flow's parent.
how many events for this Flow should be completed in order to complete the flow (i.e. user has to login 5 times)
duration after the latest user progress event is received in order to loss the user progress. for this flow.
the flow will be valid starting from this date
the flow will be valid until this date
{
"id": "42fac465-9998-485c-bcbf-e42854afdf54",
"clientId": "INCROWD",
"cooldownTimeout": 10,
"description": "some flow description",
"driver": "some_driver",
"enabled": true,
"sourceSystem": "some_source_system",
"sourceSystemId": "some_source_system_id",
"flows": [
null
],
"lastEdited": {
"date": "2023-09-22T21:10:10.696Z",
"editorAuthId": 1
},
"maxCompletions": 1,
"metadata": {
"someField": "some_value"
},
"name": "some_flow_name",
"parentId": "52ef169f-70bb-4941-a903-6e3d75b78147",
"replicas": 5,
"resetThreshhold": 5,
"rewards": [
"reward_1",
"reward_2"
],
"validFrom": "2023-09-09T10:00:00Z",
"validTo": "2023-09-10T10:00:00Z"
}