Skip to main content
POST
Save a flow of the Templates folder as a template

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
categories
string[]
required

The categories the dialog files it under (1 to 20, each up to 100 characters); they replace its current ones

Required array length: 1 - 20 elements
Required string length: 1 - 100
flow_id
string
required

The flow to save as a template: one in Agent Studio's Templates folder

Response

Successful Response

categories
string[]
required

The categories the dialog files it under

components
string[]
required

The component type of each of its steps (its trigger among them), in the order saved

description
string | null
required
id
string
required
name
string
required
result
enum<string>
required

created: a new template; updated: the flow's template refreshed (and restored if it was deleted)

Available options:
created,
updated
steps
Step · object[]
required
to_fill
InputToFill · object[]
required

Required inputs the template leaves empty: fill them in the flow made from it before turning it on

trigger
Trigger · object | null
required

What starts a flow made from it; null if it has no trigger

updated_at
string | null
required

When Statisfy last saved it, ISO 8601 UTC