Filter workspace stats by funnel, product and creation date
GET /api/v2/workspaces/{workspace_id}/stats takes four new filter keys. On order, filter[funnel_id] narrows to the orders attributed to a funnel and filter[product_id] to every order containing a product, from the funnel checkout and from manual orders alike; both accept a numeric id or a public id. On every resource, filter[created_at_after] and filter[created_at_before] bound the set to a time window, inclusive at the start and exclusive at the end.
Sales for one funnel this month, or totals for orders containing one product across every channel, used to mean paging the whole order list and adding it up client-side. It is now one call that returns the count, the order total and the breakdown by billing status together, cheap enough to sit behind a dashboard tile that refreshes every few minutes. The sum includes every product on each matching order.
Agent examples: post each funnel's paid-order total to a channel every morning · total the orders containing one product across funnel and manual orders for a month-end report
Resources: Workspace Stats. Building with an AI agent? Point it at the Stats skill.