Get per-agent ROI daily trend
Returns the daily cost / attributed-revenue / margin trend behind the agent-roi summary, org-wide or filtered to one agent via agentId. Use it to chart ROI over time rather than a single window total. All money is integer cents. Read-only, tenant-scoped, defaults to a trailing 30-day window.
Authorizations
Dashboard JWT token from Clerk
Query Parameters
Window start, ISO-8601 with offset. Defaults to 30 days before to. Range is capped at 365 days.
Window end, ISO-8601 with offset. Defaults to now.
Restrict the trend to one agent id. Omitted returns the org-wide trend.
Response
Daily cost/attributed-revenue/margin buckets for the window, org-wide or for the requested agent.
The response is of type object.