Skip to main content
POST
Generate Revision

Authorizations

Authorization
string
header
required

API key authentication. Get your API key from the Duvo dashboard.

Path Parameters

build_id
string<uuid>
required

Source revision to generate or refine.

Body

application/json
prompt
required

Instructions for generating or refining this agent or code step.

conversation
object[]

Optional voice conversation transcript

selected_automation_revision_id
string<uuid> | null

The automation revision this edit is being made at. Pass a draft and the edit is folded into that draft itself; pass the active revision and the edit lands on a draft branched from it. A historic revision is rejected — it cannot be activated from without an explicit rebase. A revision belonging to a different automation is ignored, and the edit targets the automation the addressed agent belongs to. Omit to target the automation's active revision.

run_id
string<uuid>

Optional run ID for context

process_id
string<uuid>

Optional process ID for context

insight_index
number

Optional insight index for context

Required range: x >= 0
previous_build_id
string<uuid>

Previous build ID for sandbox reuse

Response

Default Response

generation
object
required