Agents

Report what a piece of work cost (agent token: its own; admins: give agentId). Counts toward the agent's budget and the P&L. Report each cost once (here, MCP log_time usage, or session usage)

post/api/v1/agent-costs

Request

  • Base URL: https://hourtick.com
  • URL: https://hourtick.com/api/v1/agent-costs
  • Auth: HTTP bearer

Request body

costUsdnumber

What the work cost in US dollars (model and tool spend)

modelstring
inputTokensinteger
outputTokensinteger
agentIdstring uuid

Admins only: the agent the cost is for. Agents always report their own

workItemIdstring uuid

The task the cost belongs to; its project is used

projectIdstring uuid
taskIdstring uuid

Task type

timeEntryIdstring uuid

One of the agent's time entries; its project, task type, task and day are used

spentDatestring

Defaults to today

notestring

Response

OK

object required

Changes

No recorded changes to this operation across all 1 revision of this API.