Skip to main content
POST
Create a flow from a spec, off

Authorizations

Authorization
string
header
required

An API key, sent as Authorization: Bearer stfy_live_…. See Authentication for how to get one and which scopes it needs.

Body

application/json
spec
Spec · object
required

The flow: trigger, steps, next. GET /v1/automations/guide

folder
string | null

The Agent Studio folder to put it in, by name (as GET /v1/automations/flows' folder filter); default: the editor's default folder

Required string length: 1 - 255

Response

201 - application/json

Successful Response

editor_url
string
required

The flow in Agent Studio

enabled
boolean
required
flow_id
string
required
name
string
required
trigger
string
required

The audience in words

version
integer
required
nodes
Nodes · object

step id -> node id in the editor