Seller Dashboard API
Base URL: http://localhost:8000/api/v1
Prefix: /sellers/dashboard
Auth: Bearer token
Headers: Content-Type: application/json
1. Get Seller Dashboard Summary
Returns seller KPIs, message-derived leads, revenue analytics, recent properties, priorities, property assignments, appointments, performance metrics, and a recommended action.
/sellers/dashboard/summary/Auth: Required
Headers
Authorization: Bearer {{access_token}}Success Example
{
"success": true,
"message": "Seller dashboard summary retrieved successfully.",
"data": {
"summary": {
"revenue_period": {
"from": "2026-09-10",
"to": "2026-09-16"
},
"kpis": {
"active_listings": {
"value": 18,
"change_percentage": 12,
"trend": "up"
},
"new_leads": {
"value": 126,
"change_percentage": 12,
"trend": "down"
},
"upcoming_visits": {
"value": 14,
"change_percentage": 12,
"trend": "up"
},
"active_offers": {
"value": 8,
"change_percentage": 9,
"trend": "down"
},
"total_earnings": {
"amount": "32650.00",
"currency": "USD",
"change_percentage": null,
"trend": null
}
},
"leads": {
"new_leads": 126,
"total_leads": 284,
"unread_leads": 3,
"awaiting_response": 2,
"change_percentage": 12,
"trend": "down"
},
"recent_properties": [
{
"id": "7af4b4f8-7235-4bb4-b7ea-20a1691b01b3",
"title": "Sunset Park Villas",
"purpose": "buy",
"status": "available",
"price": "2250000.00",
"currency": "USD",
"city": "Austin",
"area_name": "Downtown",
"primary_media_url": "https://example.com/properties/sunset-park-villa.jpg",
"views": null,
"leads_count": 24,
"agent": {
"id": "3af2c923-97bc-41cc-a4f4-2fe6b4b79ae7",
"full_name": "Jep William"
}
},
{
"id": "469b8795-fe87-4c4a-a9a8-cb9d59f55d35",
"title": "Silver Oak Heights",
"purpose": "rent",
"status": "available",
"price": "4250.00",
"currency": "USD",
"city": "Austin",
"area_name": "Hyde Park",
"primary_media_url": "https://example.com/properties/silver-oak.jpg",
"views": null,
"leads_count": 12,
"agent": null
},
{
"id": "cf92ba7f-445f-4996-82ac-f445e58bd165",
"title": "Pinecrest Villas",
"purpose": "invest",
"status": "pending",
"price": "1750000.00",
"currency": "USD",
"city": "Austin",
"area_name": "Zilker",
"primary_media_url": null,
"views": null,
"leads_count": 5,
"agent": {
"id": "e402e162-280a-440e-b5aa-047862a98198",
"full_name": "Sarah Wilson"
}
}
],
"priorities": {
"offers_needing_review": 2,
"unread_leads": 3
},
"revenue_chart": {
"from": "2026-09-10",
"to": "2026-09-16",
"currency": "USD",
"points": [
{
"date": "2026-09-10",
"sales": "3500.00",
"rent": "5500.00",
"investment": "1500.00"
},
{
"date": "2026-09-11",
"sales": "8500.00",
"rent": "8000.00",
"investment": "4500.00"
},
{
"date": "2026-09-12",
"sales": "2500.00",
"rent": "1000.00",
"investment": "5000.00"
}
]
},
"property_assignments": {
"assigned_properties": 7,
"pending_requests": null,
"without_agent": 5
},
"upcoming_appointments": [
{
"id": "58a61dd2-4a45-4f65-90f4-1eef741ad729",
"scheduled_at": "2026-09-16T16:30:00+06:00",
"type": "property_tour",
"meeting_type": "in_person",
"status": "confirmed",
"property": {
"id": "469b8795-fe87-4c4a-a9a8-cb9d59f55d35",
"title": "Silver Oak Heights"
}
}
],
"performance": {
"views": null,
"inquiries": 284,
"visits": 42
},
"performance_snapshot": {
"total_views": null,
"saved_listings": 1126,
"inquiry_rate": null
},
"recommended_action": {
"type": "assign_agent",
"message": "Silver Oak Heights has leads but no assigned agent.",
"property_id": "469b8795-fe87-4c4a-a9a8-cb9d59f55d35"
}
}
}
}Notes
-
Optional query parameter:
from=YYYY-MM-DD. -
Optional query parameter:
to=YYYY-MM-DD. -
Example:
/sellers/dashboard/summary/?from=2026-09-10&to=2026-09-16. -
The
fromandtoparameters affect onlyrevenue_periodandrevenue_chart. -
When dates are omitted, the revenue chart covers the current day and the preceding six days.
-
The maximum revenue-chart date range is 366 days.
-
frommust be on or beforeto. -
The date range does not filter KPIs, leads, recent properties, assignments, appointments, performance totals, saved listings, or recommendations.
-
KPI trend calculations always compare the latest seven-day period against the immediately preceding seven-day period.
-
active_listingscounts all seller properties currently havingavailablestatus. -
new_leadscounts distinct buyer-property leads created during the latest seven-day period. -
upcoming_visitscounts all future appointments withrequested,confirmed,scheduled, orrescheduledstatus. -
active_offerscounts all seller purchase records withrequested,offer_pending, oracceptedstatus. -
The dashboard can count offers, but dedicated seller offer-management endpoints are not currently available.
-
total_earningsincludes calculated seller purchase and lease earnings in the configured platform currency. The example platform usesUSD. -
Earnings trend fields are
nullbecause current records do not provide a reliable earnings-recognition timestamp. -
Leads are derived from buyer-authored messages and deduplicated by buyer and property.
-
unread_leadscounts all leads containing unread buyer messages. -
awaiting_responsecounts leads where no seller or assigned-agent reply exists after the latest buyer message. -
recent_propertiescontains a maximum of three properties and is not affected by the revenue date range. -
views,total_views, andinquiry_ratearenullbecause property-view events are not stored. -
pending_requestsisnullbecause agent-assignment requests are not stored. -
saved_listingscounts all favorite records associated with the seller’s properties. -
recommended_actionisnullwhen no applicable recommendation exists. -
A valid non-seller account receives
403 Forbidden. -
Missing, invalid, or expired authentication receives
401 Unauthorized. -
Invalid dates or date ranges receive
400 Bad Request.
Common Success Format
{
"success": true,
"message": "Seller dashboard summary retrieved successfully.",
"data": {
"summary": {}
}
}Common Error Format
{
"success": false,
"message": "Validation failed.",
"errors": {
"from_date": [
"from_date must be on or before to_date."
]
}
}