Create a new agent
Creates a new agent in the caller’s organization. The owner is set from the principal; access config defaults to org-shared use + manage when not specified. Returns the newly-created agent in draft state — call POST /api/v1/agents//deploy to publish it.
Authorizations
Bearer authentication header of the form Bearer <token>, where <token> is your auth token.
Body
Display name for the agent. Will be slugified into a URL-safe path.
1 - 200"Daily Sales Report"
Agent type. task = single-step skill orchestration; workflow = multi-step graph.
task, workflow "task"
Optional one-paragraph description shown in the builder and agent catalog.
"Generates a daily sales report from CRM data."
Trigger configuration (schedule / webhook / api / slack / manual). Schedule shape is fully validated; other trigger types are opaque.
Agent selection (for task automations): ordered skills plus per-skill instructions.
Workflow graph (nodes + edges) for type=workflow agents. Free-form JSONB.
{ "nodes": [], "edges": [] }Access configuration. Omit to use the default (full-org shared with use + manage).
Response
Numeric agent id (stable per-org; not reused after delete).
42
URL-safe slug used in human-readable links. Unique per org.
"customer-churn-agent-a3f"
Display name of the agent. Shown in the builder and in run logs.
"Customer Churn Analyzer"
Lifecycle status. draft = never deployed. active = deployed. deleted = soft-deleted.
draft, active, deleted "active"
Type of automation. task = single-step skill orchestration; workflow = multi-step graph.
task, workflow "task"
Org UUID this agent belongs to. Matches the caller’s principal.
"00000000-0000-0000-0000-000000000001"
True when the draft variation differs from the active variation (deploy would publish changes).
false
Whether the agent’s schedule is currently active. Toggle via POST /api/v1/agents/{id}/toggle.
true
Access configuration — who in the org can use / manage this agent.
Creation timestamp.
"2026-05-01T10:00:00.000Z"
Most recent update timestamp.
"2026-05-11T10:00:00.000Z"
Whether the requesting principal can manage (edit/delete/deploy/toggle) this agent. Derived server-side from the principal + accessConfig. Always present on every Agent response.
true
Whether the requesting principal can use (run, view history of) this agent. Derived server-side from the principal + accessConfig. Always present on every Agent response.
true
Optional one-paragraph description of what this agent does.
"Predicts churn risk for a customer given a 90-day usage window."
Active (deployed) variation id. Null until the agent is first deployed.
"00000000-0000-4000-a000-000000000100"
Most recent draft variation id. Null when there is no draft pending.
"00000000-0000-4000-a000-000000000101"
Pending ownership transfer awaiting recipient acceptance. Absent when no request is in flight.
Variation-detail payload (trigger, workflowStructure, agentSelection) for the requested view. Populated by GET /api/v1/agents/:id; absent on list rows.
Soft-delete timestamp. Null for active agents.
null