Get usage
period_start— Start of the window, inclusive (YYYY-MM-DD).period_end— End of the window, inclusive (YYYY-MM-DD). Must not be beforeperiod_start.
group_by(defaultday) — Aggregation key:day,kind, orworkspace.workspace_id— Restrict aggregation to one workspace. Omit to include all jobs for the API key.
period_start/period_end— The requested window dates.group_by— The aggregation key used.buckets— One bucket per group key within the period:key— Calendar date (whengroup_by=day), job kind (whengroup_by=kind), or workspace ID (whengroup_by=workspace).units— Processing units for this bucket.jobs— Number of completed jobs.pages— Pages processed (document formats) or non-empty cells (spreadsheets).bytes_ingested— Source bytes ingested (workspace ingestion jobs only).
units_total— Sum of all bucket units for the period.
Get usage overview
window(optional, default"7d") — Rolling window:"7d","30d", or"90d".
documents_processed/documents_processed_prior— Succeeded document-operation jobs in the selected and preceding windows.active_jobs/queued_jobs— Current point-in-time counts across all job kinds.avg_processing_seconds/avg_processing_seconds_prior— Average completed document-processing time;nullwhen a window has no completed document jobs.series— One entry for every UTC calendar day in the window, including zero-document days.
Grouping examples
By day (default — see daily consumption):"2026-08-01", "2026-08-02", …).
By kind (see which operations cost most):
"parse", "ingestion", …).
By workspace (see per-project consumption):
Errors
invalid_request(422) —period_endis beforeperiod_start.