Create an agent with optional full graph payload and backend param validation.
nodes + connections) in the same request.
If graph is omitted, Mosaic creates a starter graph with one Video Input node unless you set create_video_input_node=false.
| Field | Type | Required | Description |
|---|---|---|---|
name | string | No | Agent name (1-120 chars). |
description | string | No | Agent description (<=5000 chars). |
visibility | string | No | public or private. |
workspace_id | string | No | Target workspace UUID. Defaults to organization primary workspace. |
create_video_input_node | boolean | No | When graph is omitted, auto-create starter Video Input node (true by default). |
graph.nodes[] | array | No | Graph nodes to save. |
graph.connections[] | array | No | Directed graph edges to save. |