Consumption

Get daily consumption

Returns usage broken down by day over a date range.

<sub>Scope: analytics:read</sub>

get/v3/organizations/{orgId}/consumption/daily

Request

  • Base URL: https://api.reasonmachines.com
  • URL: https://api.reasonmachines.com/v3/organizations/{orgId}/consumption/daily
  • Auth: HTTP bearer

Query parameters

start_datestring date

Inclusive start date (YYYY-MM-DD).

end_datestring date

End of the window. A date-only value (YYYY-MM-DD) is read as 00:00 UTC of that day, so that day itself is not included; a timestamp is used as given.

group_by'session' | 'user'

Optional dimension to group by. Unknown values fall back to the ungrouped daily series.

Response

Daily consumption.

itemsobject[]

Per-key totals. Present instead of daily when group_by is set.

start_datestring date
end_datestring date

Changes

No recorded changes to this operation across all 1 revision of this API.