Create Agent
createAgentCreate a new agent. Optionally include a build configuration to create the first build in the same request.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| name | Yes | Human-readable agent name | |
| type | No | Flavour of the step to create. Fixed at creation — it selects the config family every build of this step must use, and the two cannot be mixed. | agent |
| build | No | Optional inline build. When present, a first build is created alongside the agent. Only valid for an agent step. | |
| team_id | No | Duvo team UUID to operate on. API keys are pinned to a single team — omit this (it falls back to the key's team) or pass that same team; a different team is rejected. OAuth callers, who can span multiple teams, should pass the target team here. | |
| thread_id | No | Existing thread ID to associate with the agent | |
| automation_id | No | Automation this agent belongs to. If omitted on a team using the automations model, a new automation named after the agent is created automatically. | |
| source_build_id | No | Build ID whose case-queue-consumer setup should be copied to the new agent |