API Reference

Attribution Data API

Dimensional cost analysis grouped by model, provider, feature, agent, or workflow.

  • GET List unique agent IDsReturns every distinct agent_id value from usage event metadata for the given date range, sorted alphabetically.
  • GET Get cost breakdown by agentReturns cost aggregation grouped by agent_id from usage event metadata.
  • GET Get cost breakdown by dimensionReturns cost aggregation grouped by any metadata dimension key.
  • GET Get cost per declared outcomeReturns the true cost per unit of value: for every outcome your spans declare (see the tracing guide), completed, failed, and unresolved units side by side.
  • GET Get cost breakdown by workflowReturns cost aggregation grouped by workflow_id from usage event metadata.
  • GET List distinct dimension keysReturns every distinct metadata dimension key from usage events within a date range, sorted alphabetically.
  • GET List unique dimension valuesReturns every distinct value of a metadata dimension key in the date range, sorted alphabetically.
  • GET Compare session typesReturns a per-session-type cost comparison with a cost efficiency ratio.
  • GET Get session cost breakdownReturns per-session cost totals, ordered by total cost descending.
  • GET Get session detailReturns a per-feature cost breakdown for one session.
  • GET Get session call treeReconstructs one session's span call tree: one node per span with its own cost, its subtree cost (the span plus every descendant), and its nested children, so you can see which branch of a multi-agent run spent the money.
  • GET Get attribution time-seriesReturns time-bucketed multi-series cost data grouped by any metadata dimension key.
  • GET List unique workflow IDsReturns every distinct workflow_id value from usage event metadata for the given date range, sorted alphabetically.

← All API groups