Skip to Content
HomeLink Hub
Agent Dashboard

Get listing count by status

GET
/api/v1/dashboard/listing-overview

Access: Bearer token required.

Returns pie-chart data: how many of the caller's properties (as landlordId or agentId) are in each status. Only statuses that have at least one property appear, in no guaranteed order, and an empty array is returned when the caller owns nothing.

Statuses are mapped to display labels: listed to Active, pending_verification to Pending, sold to Sold, rented to Rented, unlisted to Inactive. Any other status is returned under its raw value, so drafts appear as draft. Soft-deleted listings are not filtered out of the counts.

Authorization

bearerAuth
headerAuthorizationBearer <JWT>

Access token returned by sign-in. Send it as Authorization: Bearer <token>.

Response Body

One { label, value } entry per status in use.

application/json
  1. response
status*integer
success*boolean
message*string
data*array<>
Example Request
curl -X GET 'http://localhost:4000/api/v1/dashboard/listing-overview'
Example Response
{  "status": 200,  "success": true,  "message": "Listing overview fetched successfully",  "data": [    {      "label": "Active",      "value": 11    }  ]}