Get views and inquiries chart data
Access: Bearer token required.
Returns the area-chart series for the caller's properties (those where they are landlordId or agentId). With view=weekly (the default, also used for any unrecognised value) the array has seven points, MON to SUN, covering the current Monday-to-Sunday week in UTC; with view=monthly it has twelve points, JAN to DEC, covering the current calendar year to date. The success message differs between the two.
views counts recorded property views in the period (a view is stored at most once per user per property per day) and inquiries counts inspection requests created in the period. Days or months with no data are returned as zeros.
Known quirk in the weekly series: the inquiry day label is computed by indexing a Sunday-first label list with MongoDB's 1-based $dayOfWeek, so inquiries are reported one day late (Monday's under TUE, Sunday's under MON) and inquiries created on a Saturday are not counted. views and the monthly series are unaffected.
bearerAuthAuthorizationBearer <JWT>Access token returned by sign-in. Send it as Authorization: Bearer <token>.
view?stringweekly or monthly. Anything other than monthly is treated as weekly.
"weekly"- Weekly series (default): seven points,
MONtoSUN. - Monthly series (
view=monthly): twelve points,JANtoDEC.
application/json- response
status*integersuccess*booleanmessage*stringdata*array<>curl -X GET 'http://localhost:4000/api/v1/dashboard/performance'{ "status": 200, "success": true, "message": "Weekly performance fetched successfully", "data": [ { "name": "MON", "views": 42, "inquiries": 3 } ]}Get dashboard stat cards GET
Returns the headline counters for the agent/landlord dashboard, computed over the properties the caller owns, meaning the caller is the property's landlordId (creator) or its as...
Get listing count by status GET
Returns pie-chart data: how many of the caller's properties (as landlordId or agentId) are in each status.
HomeLink Hub