Skip to Content
HomeLink Hub
Agent Dashboard

Get recent activity feed

GET
/api/v1/dashboard/recent-activity

Access: Bearer token required.

Returns up to 10 of the most recent events around the caller's properties, newest first, merged from four sources (at most 5 of each): message (chat rooms the caller participates in that have a last message; text is that message and property is the referenced property's title or, failing that, the room name), inspection (open inspections in scheduled or pending_review on the caller's properties; actor is the assigned inspector or Unassigned), booking (bookings on the caller's properties; actor is the tenant) and review (reviews of the caller's properties, with rating).

Every item has type, actor (a display name; Unknown or Anonymous when the user record is gone), property (a title string, Unknown when missing) and time. text is present only on messages and rating only on reviews. A message item can be the caller's own last message. No ids are returned, so items cannot be linked to their records from this response alone.

Authorization

bearerAuth
headerAuthorizationBearer <JWT>

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

Response Body

The merged feed (empty array when there is no activity).

application/json
  1. response
status*integer
success*boolean
message*string
data*array<>
Example Request
curl -X GET 'http://localhost:4000/api/v1/dashboard/recent-activity'
Example Response
{  "status": 200,  "success": true,  "message": "Recent activity fetched successfully",  "data": [    {      "type": "message",      "actor": "Chinedu Okafor",      "text": "Is the duplex still available for viewing this Saturday?",      "property": "4 Bedroom Duplex, Lekki Phase 1",      "time": "2026-11-25T08:47:12.000Z"    }  ]}