Create Flow Template
Create a reusable flow template from a graph.
Authentication
AuthorizationBearer
Enter your API key with the Bearer prefix, e.g. ‘Bearer sk_…’.
Request
This endpoint expects an object.
key
name
graph
Request-side flow graph: nodes, edges, and variables only.
Unlike the response-side FlowGraph it carries no version
block - the server owns version metadata.
description
category
Defaults to "custom" when omitted.
Response
The created flow template.
id
Flow template id. A raw UUID, not a prefixed external id.
key
Stable unique key for the template.
name
category
graph
A flow graph: an ordered set of typed nodes connected by edges, plus flow variables. The node, edge, and variable shapes are governed by the live JSON Schema at GET /v1/agents/flow/schema and are intentionally opaque here so this spec cannot drift from that authoritative definition.
is_seed
True for platform-provided templates.
created_at
updated_at
description
Errors
400
Bad Request Error
401
Unauthorized Error
409
Conflict Error
500
Internal Server Error