Skip to main content
POST
Create a workflow

Authorizations

Authorization
string
header
required

Secret key (sk_live_...)

Headers

Idempotency-Key
string

Optional key that makes the request idempotent. Retrying with the same key returns the original response instead of repeating the operation; keys expire after 24 hours. Any string up to 256 characters. See Idempotency.

Maximum string length: 256
Example:

"550e8400-e29b-41d4-a716-446655440000"

Body

Request body for creating a workflow.

name
string
required

Display name for the workflow.

Maximum string length: 255
Example:

"Price drop rebooking"

steps
object[]
required

Ordered array of step definitions. Every task_id must exist in your organization, step names must be unique, and references may only point at earlier steps.

Minimum array length: 1

One step of a workflow definition, discriminated by type.

Response

Created

Workflow definition object.

id
string
required

Unique identifier for the workflow, prefixed with wflo_.

Pattern: ^wflo_
Example:

"wflo_AbC123xYz456"

object
string
required

Always workflow.

name
string
required

Display name.

steps
object[]
required

Ordered array of step definitions.

One step of a workflow definition, discriminated by type.

created_at
string<date-time>
required
Example:

"2026-06-18T00:00:00Z"

updated_at
string<date-time>
required
Example:

"2026-06-18T00:00:00Z"

request_id
string

Unique identifier for the API request. Include this when contacting support.