Administrator Dashboard API
Base URL: http://localhost:8000/api/v1
Prefix: /admins/dashboard
Auth: Bearer token required
Headers: Content-Type: application/json
1. View Admin Dashboard Summary
Retrieve platform statistics, revenue analytics, marketplace distribution, approval queues, and recent admin activity.
/admins/dashboard/summary/Auth: Required
Headers
Authorization: Bearer {{access_token}}Success Example
{
"success": true,
"message": "Admin dashboard summary retrieved successfully.",
"data": {
"summary": {
"cards": {
"total_properties": {
"value": 12480,
"change_percentage": 12.5,
"trend": "up"
},
"active_listings": {
"value": 9736,
"change_percentage": 4.25,
"trend": "up"
},
"active_sellers": {
"value": 8235,
"change_percentage": 2.1,
"trend": "down"
},
"pending_verifications": {
"value": 147,
"change_percentage": 12,
"trend": "up"
},
"revenue_this_month": {
"amount": "16622.10",
"currency": "USD",
"change_percentage": 2,
"trend": "down"
}
},
"revenue_chart": {
"from": "2026-08-07",
"to": "2026-08-14",
"currency": "USD",
"points": [
{
"date": "2026-08-07",
"sales": "350.00",
"rent": "550.00",
"investment": "175.00"
},
{
"date": "2026-08-08",
"sales": "425.00",
"rent": "525.00",
"investment": "210.00"
}
]
},
"property_marketplace": {
"total": 12480,
"items": [
{
"key": "for_sale",
"label": "For Sale",
"count": 5242,
"percentage": 42
},
{
"key": "for_rent",
"label": "For Rent",
"count": 4742,
"percentage": 38
},
{
"key": "reserved",
"label": "Reserved",
"count": 998,
"percentage": 8
},
{
"key": "transfer_pending",
"label": "Transfer",
"count": 624,
"percentage": 5
},
{
"key": "sold_or_rented",
"label": "Sold/Rented",
"count": 874,
"percentage": 7
}
]
},
"approval_queues": {
"listing_reviews": {
"total": 42,
"sale_or_rent": 23,
"investments": 9,
"auctions": 10
},
"verification_requests": {
"total": 18,
"kyc": 11,
"kyb": 7
},
"payout_approvals": {
"total": 14
}
},
"recent_admin_actions": [
{
"id": "d6cf52c2-cea9-46a4-bb25-f36415fb2497",
"action": "property_approved",
"entity_type": "property",
"entity_id": "9277a62a-64cd-43b2-a457-249522e6bc6e",
"actor": {
"id": "6212dc91-3950-4924-84aa-04a1bf2cfce2",
"full_name": "Adam Wilson",
"email": "adam@example.com"
},
"created_at": "2026-08-14T10:30:00+00:00"
}
]
}
}
}Notes
-
Optional query parameter
fromdefines the first date included in the revenue chart. Format:YYYY-MM-DD. -
Optional query parameter
todefines the final date included in the revenue chart. Format:YYYY-MM-DD. -
Optional query parameter
currencyfilters financial figures by currency code. When omitted,currencyuses the configured platform currency, initiallyUSD. -
Example request:
/admins/dashboard/summary/?from=2026-08-07&to=2026-08-14¤cy=USD. -
When dates are omitted, the revenue chart returns the latest seven-day period, including the current date.
-
The date range cannot exceed 366 days.
-
frommust be on or beforeto. -
Possible trend values are
up,down, andunchanged. -
Card trends compare records created during the selected period against the immediately preceding period of equal length.
-
Current-month revenue compares the current calendar month against the previous calendar month.
-
Revenue includes payments with
verifiedorpaidstatus only. -
Revenue totals do not combine different currencies.
-
Sales revenue includes purchase reservations and property purchases.
-
Rental revenue includes rental reservations, rent, and security deposits.
-
Investment revenue includes investment payments.
-
Active listings are properties with
availablestatus. -
Active sellers are active users with the
seller_ownerrole. -
Pending verifications include KYC and KYB records with
pendingstatus. -
Payout approvals include payouts with
pendingoron_holdstatus. -
Recent admin actions depend on records being available in the audit log.
-
Only authenticated users with the
adminrole can access this endpoint. -
Missing or invalid authentication returns HTTP
401 Unauthorized. -
An authenticated non-admin user receives HTTP
403 Forbidden. -
Invalid query parameters return HTTP
400 Bad Request.
Common Success Format
{
"success": true,
"message": "Operation completed successfully.",
"data": {}
}Common Error Format
{
"success": false,
"message": "Validation failed.",
"errors": {
"field_name": [
"Error message."
]
}
}