Skip to main content
POST
Generate an agent draft from a task, streaming its work

Authorizations

Authorization
string
header
required

Bearer authentication header of the form Bearer <token>, where <token> is your auth token.

Body

application/json

A natural-language task to expand into a full agent draft.

task_description
string
required
Required string length: 1 - 4000
reference_material
string | null

Text from files the user attached to the builder, concatenated. Folded into prompt generation so the draft reflects their own rubric or guide.

Maximum string length: 24000

Response

A stream of Server-Sent Events; the final result frame's data is the generated draft.

The AI-built agent draft the editor seeds itself from.