| Field | Type | Required | Description |
|---|---|---|---|
from | String | No | Inclusive timestamp; supply to and omit preset. |
to | String | No | Exclusive timestamp with an explicit offset. |
granularity | String | No | hour, day, week or month; defaults to day. |
groupBy | [String!] | No | project, model, api_key or member. |
compare | String | No | previous_period adds the preceding timeframe and summary. |
preset | String | No | 7d, 30d or 90d. Defaults to 30d. |
timezone | String | No | IANA time zone for daily bucket boundaries. Defaults to UTC. |
projectReference | String | No | Project ID or slug that narrows the read to one project of the account |