Create Flow

POST {{base-url}}/{{waba-id}}/flows

Creates a new flow. To clone an existing flow you can add the parameter

"clone_flow_id": "original-flow-id"

Request Body

[{"name"=>"name", "value"=>"<FLOW_NAME>", "datatype"=>"string"}, {"name"=>"categories", "value"=>"[\"OTHER\"]", "datatype"=>"string"}, {"name"=>"clone_flow_id", "value"=>"<EXISTING_FLOW_ID>", "datatype"=>"string"}, {"name"=>"endpoint_uri", "value"=>"https://example.com", "datatype"=>"string"}]

HEADERS

| Key | Datatype | Required | Description |

RESPONSES

status: OK

{"id":"flow-1"}