Get dashboard statistics
Access: Bearer token required. Roles: ADMIN.
Platform-wide counters for the admin dashboard, computed live on each call. totalUsers counts every user document; newUsersThisMonth counts sign-ups since the first of the current month (UTC). totalProperties excludes soft-deleted properties; activeListings is properties with status listed; pendingVerification is status pending_verification; duplicateFlagsOpen is duplicate flags still open. Money figures come from escrow transactions with status completed only: totalRevenue is the sum of their platformFee, transactionVolume the sum of their amount, completedDeals their count. escrowsInFlight counts escrows that are pending or funded. userGrowth always has 12 entries (JAN to DEC) for the current UTC year; usersByRole always has all six roles.
bearerAuthAuthorizationBearer <JWT>Access token returned by sign-in. Send it as Authorization: Bearer <token>.
Counters (userGrowth trimmed to one of its 12 months)
application/json- response
status*integersuccess*booleanmessage*stringdata*curl -X GET 'http://localhost:4000/api/v1/admin/dashboard/stats'{ "status": 200, "success": true, "message": "Dashboard stats fetched successfully", "data": { "totalUsers": 1284, "newUsersThisMonth": 97, "totalProperties": 412, "activeListings": 288, "pendingVerification": 41, "duplicateFlagsOpen": 3, "totalRevenue": 6450000, "transactionVolume": 645000000, "completedDeals": 152, "escrowsInFlight": 17, "userGrowth": [ { "month": "JAN", "users": 84 } ], "usersByRole": { "TENANT": 941, "LANDLORD": 112, "AGENT": 187, "LAWYER": 31, "DEVELOPER": 9, "ADMIN": 4 } }}List a lawyer's assignments and counterparties GET
Every PropertyVerificationAssignment whose lawyerId is this user, newest first, with the property (and its landlord and agent), the assigner and document submitters populated.
Get recent platform activity GET
A merged feed of the 5 most recent sign-ups and the 5 most recently created properties, sorted by time descending and cut to 8 items.
HomeLink Hub