Skip to main content
POST
Python

Authorizations

Authorization
string
header
required

Enter your JWT token

Body

application/json

The plan, as JSON.

POST compile's body. BaseWorkflowId names a saved workflow the plan edits: it is loaded server-side under the request's scope, never taken from the body.

plan
object | null

The plan an AI agent writes; the compiler turns it into a real workflow.

baseWorkflowId
integer<int32> | null

Response

Success.

What a compile produced, for display and repair. Null steps/jumps when the plan could not be laid out.

diagnostics
object[]
required
keyMap
object
required
workspaceId
string<uuid>
required

The workspace a create/update of this plan would land in: the request's resolved scope.

environmentId
string<uuid>
required

The environment a create/update of this plan would land in.

hasErrors
boolean
required
name
string | null
steps
object[] | null
jumps
object[] | null