Skip to main content
GET
Export workflow as Agent Spec JSON

Authorizations

Authorization
string
header
required

JWT token for authentication

Path Parameters

id
string<uuid>
required

Workflow UUID

Query Parameters

format
enum<string>
default:flow

Output format (document wraps flow with agent/tools/LLM config)

Available options:
flow,
document

Response

Agent Spec JSON exported successfully

Agent Spec Flow — a directed, potentially cyclic graph of nodes. Flows function as "subroutines" encapsulating repeatable processes. They separate control-flow (execution order) from data-flow (data routing).

component_type
enum<string>
required
Available options:
flow
name
string
required

Flow name

Example:

"document_processing"

start_node
string
required

Reference to the StartNode name

Example:

"start"

nodes
object[]
required

All nodes in the flow

Union of all Agent Spec node types. Discriminated by component_type.

control_flow_connections
object[]
required

Execution order edges

description
string

Human-readable description

data_flow_connections
object[] | null

Data routing edges. When null, data flows by matching input/output property names across connected nodes.

metadata
object

Extension metadata