v3
OpenAPI 3.1.02026-07-31350397683.8 KBScenario Builder
Create Workflow V2
Create a workflows_v2 row with a React Flow graph definition.
post/v1/scenario
Headers
X-API-Keystring required
API key required to authenticate requests.
Request body
Example request
{
"agent_ids": [],
"definition": {
"edges": [
{
"id": "e-wf-start-n-greet",
"source": "wf-start",
"target": "n-greet"
}
],
"nodes": [
{
"data": {
"id": "wf-start"
},
"deletable": false,
"draggable": true,
"id": "wf-start",
"position": {
"x": 100,
"y": 50
},
"type": "start"
},
{
"data": {
"criteria": "Greet the caller and offer help",
"id": "n-greet",
"speaker": "agent",
"turn": 0,
"type": "message"
},
"id": "n-greet",
"position": {
"x": 200,
"y": 180
},
"type": "single"
}
]
},
"description": "Password reset IVR",
"name": "Support reset flow"
}Response
Successful Response