Skip to main content
POST
Apply a refined draft to its workflow

Authorizations

Authorization
string
header
required

An API key from Settings → API keys, sent as Authorization: Bearer kb_live_…. A workspace key starts kb_; a personal key starts kbp_ and acts as its owner.

Headers

Idempotency-Key
string
required

A unique key (a UUID works) for this request. Retrying with the same key returns the first answer instead of running twice.

Maximum string length: 255
Kallabot-Version
enum<string>

The API version to answer as, a date (YYYY-MM-DD). Leave it out for the current version (2026-11-07). An unknown version is refused with 400 unsupported_api_version.

Available options:
2026-11-07
Example:

"2026-11-07"

Path Parameters

draft_id
string
required

Body

application/json
flow_id
string
required

The workflow this draft was built into.

Required string length: 1 - 64
replace_edits
boolean
default:false

Replace it even when it was edited in the canvas since the composer last wrote it (otherwise 409 workflow_edited).

Response

Successful Response

id
string
required

The workflow's id.

name
string
required

Its name.

canvas_path
string
required

Open it in the embedded canvas at this path (kb:navigate).