# Retrieve active site analytics for client account users (or admin) If the user is a ClientAccount user, returns only the clientAccountIds they have access to. An Admin can also use this endpoint, seeing all data if no clientAccountIds is provided. Endpoint: GET /site/billing-analytics-client-account Version: 1.0 Security: bearer ## Query parameters: - `startDate` (string) Filter sites by start date (inclusive). Format: YYYY-MM-DD Example: "2023-01-01" - `endDate` (string) Filter sites by end date (inclusive). Format: YYYY-MM-DD Example: "2023-01-31" - `clientAccountIds` (array) Filter by one or multiple ClientAccount IDs (optional). Example usage for multiple IDs: ?clientAccountIds=10&clientAccountIds=20 ## Response 200 fields (application/json): - `clientAccountId` (number, required) Client Account ID Example: 10 - `sites` (array, required) List of sites Example: ["[object Object]"] - `activeSiteCount` (number, required) Active site count Example: 5 ## Response 401 fields (application/json): - `message` (string, required) Error message indicating unauthorized access. Example: "Unauthorized" - `statusCode` (number, required) HTTP status code for unauthorized access. Example: 401