Get occupancy trends

Returns time-series occupancy data showing stall utilization over the selected period.

Authentication

AuthorizationBearer
Organization API key from your settings page

Query parameters

siteIdstringRequiredformat: "uuid"
UUID of the site to query analytics for
periodenumOptionalDefaults to today

Predefined time period (ignored when startDate/endDate provided)

Allowed values:
startDatedatetimeOptional

Custom range start (ISO 8601). Must be paired with endDate.

endDatedatetimeOptional

Custom range end (ISO 8601). Must be paired with startDate.

granularityenumOptionalDefaults to day
Time bucket size. Hour granularity only available for "today" period.
Allowed values:

Response

Successful response
statusenum
Allowed values:
dataobject
Zod schema for full occupancy trends data

Errors

400
Bad Request Error
401
Unauthorized Error
403
Forbidden Error
429
Too Many Requests Error