Skip to main content
POST
Create or update a workflow

Authorizations

Authorization
string
header
required

An API key (annie-sk-v2-...) or an OAuth access token, sent as Authorization: Bearer <token>.

Path Parameters

botId
string<uuid>
required

The ID of the bot to create/update the workflow for

Body

Request body for creating or updating a workflow

title
string
required

Title of the workflow

description
string | null
required

Optional description of the workflow

steps
object[]
required

Steps in the workflow

id
string<uuid>

The workflow ID. If provided, the workflow will be updated; otherwise, a new workflow will be created.

enabled
boolean

Whether the workflow is enabled

usageContext
string | null

Context describing when this workflow should be used

order
number

Order of the workflow

Response

Response containing the created or updated workflow

success
enum<boolean>
required
Available options:
true
data
object
required

A workflow exported in portable JSON format