Queries
The Usage API exposes a fixed set of named queries. Pass the query name in the POST body; each query has a fixed, documented column shape returned in data as a list of rows keyed by column name.
🚧 Beta. The query catalogue is expanding. One query is available today.
user_daily_report
Per-user, per-day activity for your organization — sessions, transcribed and dictated minutes, consult notes, documents, and tasks. Org-scoped: only your organization's data is returned.
Request body
| Field | Type | Notes |
|---|---|---|
name | string (required) | "user_daily_report" |
limit | int | Rows per page. Server max: 2000. |
params.since | string YYYY-MM-DD | Optional lower bound (inclusive). |
params.until | string YYYY-MM-DD | Optional upper bound (inclusive). |
Date semantics
- Neither
sincenoruntil→ the latest report date only (1-day window). sinceonly → fromsincethrough the latest report date.untilonly → from the earliest available date up tountil.- Both → inclusive range.
until < since→422 INVALID_DATE_RANGE.
Example
POST /api/v1/usage
Heidi-Api-Key: <your api key>
Content-Type: application/json
{
"name": "user_daily_report",
"limit": 500,
"params": { "since": "2026-06-01", "until": "2026-06-30" }
}Each row corresponds to one user on one report_date, with activity counts and minutes for that day. Follow next_page_url to page through the full result set (see Overview → Request lifecycle).