Skip to main content
POST
Switch a flow on or off
A flow cannot go live while a WhatsApp message in it has no approved template: you get 409 not_ready with the steps to fix in problems.

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

Path Parameters

id
string<uuid>
required

The flow's id

Body

application/json
status
enum<string>
required
Available options:
live,
off

Response

The flow, with changed (false when it already had that status) and was

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>
changed
boolean
was
enum<string>
Available options:
live,
off