Skip to main content
POST
Create a flow
A flow you create is always switched off. Switching it on is its own call, so a script can never start messaging customers by accident. See Building blocks for triggers, steps and checks.

Basic Usage

Authorizations

Authorization
string
header
required

Your FlowIQ organisation API key (Settings → API Keys), sent as a bearer token. Format: Bearer fiq_YOUR_API_KEY

Headers

Idempotency-Key
string

Send one so a retried request is not applied twice.

Body

application/json
name
string
required
Example:

"Abandoned checkout"

definition
Flow definition · object
required

The whole flow. On a change it replaces the definition.

Example:
description
string
repeat
enum<string>

How often one person can go through the flow. reenter_after uses definition.reenter_after_days.

Available options:
off,
once_per_contact,
once_per_order,
once_per_order_per_day,
once_per_subscription,
reenter_after

Response

Created, switched off

id
string<uuid>
name
string
Example:

"Abandoned checkout"

description
string | null
status
enum<string>
Available options:
live,
off
Example:

"off"

repeat
enum<string>

How often one person can go through the flow. reenter_after uses definition.reenter_after_days.

Available options:
off,
once_per_contact,
once_per_order,
once_per_order_per_day,
once_per_subscription,
reenter_after
trigger
Order or checkout · object

What starts the flow. One of the shapes below.

Example:
definition
Flow definition · object

The flow itself. At most 25 steps at the top level and 80 counting every split path.

Example:
etag
string

Send it back as If-Match when you change the flow.

Example:

"3f9a1c0d7e2b4a61"

stats
object | null
Example:
created_at
string<date-time>
updated_at
string<date-time>
warnings
string[]