Skip to content
Hexel StudioDocs

Estimate a task's cost before creating it

POST/harness/tasks:estimate

200 also when billing would refuse it (admitted: false, refusal). 503 estimate_unavailable.

Headers

Bearer <token>. A Hexel Studio access token for your organization.

The workspace the request acts in (ws_...). It never grants access by itself.

The environment the request acts in (env_...). It never grants access by itself.

Body parameters

agentstring
budgetoptional Budget

What a task may spend; it narrows the agent's own budgets. max_estimate_usd is accepted on create only.

Returns

200The estimate.Estimate

admittedboolean
decision_idoptional string
floor_usdoptional numberdouble
max_estimate_usdoptional numberdouble
membersintegerint32
meterstring
partsoptional array of EstimatePart
per_member_usdnumberdouble
quantityintegerint64
reasonsoptional array of string
refusaloptional string
sourcestring
usdnumberdouble

Errors

  • default