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.
keystringRequired
namestringRequired
graphobjectRequired

Request-side flow graph: nodes, edges, and variables only. Unlike the response-side FlowGraph it carries no version block - the server owns version metadata.

descriptionstringOptional
categorystringOptional
Defaults to "custom" when omitted.

Response

The created flow template.
idstring
Flow template id. A raw UUID, not a prefixed external id.
keystring
Stable unique key for the template.
namestring
categorystring
graphobject

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_seedboolean

True for platform-provided templates.

created_atdatetime
updated_atdatetime
descriptionstring

Errors

400
Bad Request Error
401
Unauthorized Error
409
Conflict Error
500
Internal Server Error