Skip to main content
POST
Run an agent

Authorizations

Authorization
string
header
required

A workspace API key.

Body

application/json
goal
string
required

The outcome you want, in prose. The planner composes catalogue capabilities toward it.

Required string length: 8 - 2000
projectId
string
required

Existing project that will own every step. Create it with POST /v1/projects first.

Required string length: 1 - 200
capabilities
enum<string>[]
required

The ONLY capabilities the planner may use, given with their request schemas. Required: an unbounded toolbox means an unbounded prompt and an unbounded bill.

Required array length: 1 - 6 elements
Available options:
video.analyze,
text.script,
text.adapt,
text.localize,
text.packaging,
text.article,
video.moments,
video.remix,
text.copywrite,
text.research,
text.paraphrase,
text.questions,
text.solve,
text.film,
image.thumbnail,
audio.music,
video.render,
video.shorts,
3d.from_text,
3d.from_image
maxCredits
integer
required

Hard bound on total credits this run may take. Checked before every step against the step's price for the arguments it was planned with (what the same direct call charges, e.g. a remix is priced per url source) plus actual spend so far; exceeding it stops the run with status: "capped" rather than overspending. A capability priced from inputs resolved during the call (such as a transcript fetched by assetId) is checked at its catalogue floor, so that one started step may exceed it.

Required range: 1 <= x <= 5000
maxSteps
integer
default:3

Maximum number of capabilities the planner may execute in this run. Defaults to 3 and may not exceed 5, keeping latency and credit spend bounded.

Required range: 1 <= x <= 5

Response

Success.

success
boolean
required
goal
string
required
status
enum<string>
required
Available options:
done,
capped,
empty_plan,
failed
steps
object[]
required
creditsSpent
number
required
maxCredits
number
required
projectId
string
required
plan
any
{key}
any