curl --request POST \
--url https://api.indieflow.app/v1/flow/definition \
--header 'Content-Type: application/json' \
--header 'X-Api-Key: <api-key>' \
--data '{
"name": "my_awesome_flow",
"description": "A description of what my awesome flow is about",
"webhook": {
"url": "https://0000-000-00-00-00.ngrok-free.app/hook"
},
"steps": {
"step_a": {
"triggers": {
"success": ["step_b", "step_c"]
}
},
"step_b": {
"depends_on": {
"step_a": "success"
},
"triggers": {
"success": ["step_d"]
}
},
"step_c": {
"depends_on": {
"step_a": "success"
},
"triggers": {
"success": ["step_d"]
}
},
"step_d": {
"depends_on": {
"step_b": "success",
"step_c": "success"
}
}
}
}'