Get automation run stats
Changed onReturns aggregate run counts (total + completed) and a per-day breakdown across all of the org automations, over the last windowDays UTC calendar days including today. completed counts every run that reached a terminal status, failed runs included. At most 5,000 run records are counted, so a busy organization can see an undercount.
Request
- Base URLhttps://api.factory.ai
- AuthHTTP bearer
Query parameters
Days of history to aggregate, ending today (1-90, default 7). Larger values are clamped to 90, fractions are rounded down, and a value that is not a positive number uses 7.
Headers
Organization a JWT request acts in; required to act in a sub-organization. Without it, the request acts in the user's root organization, or is rejected with 403 when the user cannot access the root organization. API keys always act in their own organization and ignore this header.
Response
Response for status 200
Runs started in the window, counting at most 5,000 run records.
Runs in totalRuns that reached a terminal status, failed runs included.
One bucket per UTC calendar day of the window, oldest first.
Changes
- info
added the non-success response with the status
- info
- info
endpoint added
- info