Skip to main content
POST
Create flow

Authorizations

Authorization
string
header
required

Bearer authentication header of the form Bearer <token>, where <token> is your auth token.

Path Parameters

senderId
string
required

Body

application/json
name
string
required
Maximum string length: 100
trigger
object
required
steps
object[]
required

The first step runs on the message that started the flow. It cannot be a condition without a defaultGoto: nothing has been collected yet, so its conditions evaluate the same way on every message, and the request is refused with 400 invalid_request.

A flow that ends on that first message without replying hands the message to the agent, which answers it. A transfer step stays silent.

Minimum array length: 1
description
string
enabled
boolean
default:false
priority
integer
default:0

Response

Flow created.

flow
object
required