Legal Verification
Get a property's legal assignment history
GET
Access: Bearer token required. Roles: AGENT, ADMIN, LANDLORD.
Every legal assignment ever opened for the property (including reassigned ones), newest first, with lawyerId and assignedBy populated (firstName, lastName, avatar, role) and each document submission's submittedBy populated (firstName, lastName). The route is limited to the AGENT, LANDLORD and ADMIN roles, but the handler does not check that the caller owns or manages the property: any user with one of those roles can read the legal history of any property by id. An unknown property id returns an empty array, not a 404.
bearerAuthheader
AuthorizationBearer <JWT>Access token returned by sign-in. Send it as Authorization: Bearer <token>.
propertyId*stringObjectId of the property.
Assignments for the property, newest first
application/json- response
status*integersuccess*booleanmessage*stringdata*array<>curl -X GET 'http://localhost:4000/api/v1/legal/properties/string/history'Example Response
{ "status": 200, "success": true, "message": "Legal history fetched successfully", "data": [ { "_id": "6660a7d49b1d4a0012ab3501", "propertyId": "665f1c2e9b1d4a0012ab34cd", "lawyerId": { "_id": "665f1c2e9b1d4a0012ab34c3", "firstName": "Folake", "lastName": "Adeyemi", "avatar": "https://res.cloudinary.com/example/image/upload/v1717500000/homelinkhub/media/folake.jpg", "role": "LAWYER" }, "assignedBy": { "_id": "665f1c2e9b1d4a0012ab34c1", "firstName": "Chinedu", "lastName": "Okafor", "avatar": "https://res.cloudinary.com/example/image/upload/v1717500000/homelinkhub/media/chinedu.jpg", "role": "AGENT" }, "mediaSnapshot": { "images": [ { "url": "https://res.cloudinary.com/example/image/upload/v1717500000/homelinkhub/media/living-room.jpg", "metadata": { "address": "14 Admiralty Way, Lekki Phase 1, Lagos", "coordinates": [ 3.4723, 6.4474 ] }, "_id": "6660a7d49b1d4a0012ab3570" } ], "videos": [] }, "status": "verified", "dueDate": "2026-06-12T17:00:00.000Z", "notes": "Please confirm the C of O and survey plan.", "decision": { "outcome": "verified", "notes": "Certificate of Occupancy and survey plan confirmed against the Lagos State Lands Registry.", "checklist": [ { "item": "Certificate of Occupancy", "status": "pass", "comment": "Registered, no encumbrance", "_id": "6660a7d49b1d4a0012ab3580" } ], "decidedAt": "2026-06-06T10:30:00.000Z" }, "documentSubmissions": [ { "_id": "6660a7d49b1d4a0012ab3505", "documents": [ { "url": "https://res.cloudinary.com/example/raw/upload/v1717600000/homelinkhub/media/certificate-of-occupancy.pdf", "name": "certificate-of-occupancy.pdf", "mimeType": "application/pdf", "size": 482113 } ], "note": "C of O attached as requested.", "submittedBy": { "_id": "665f1c2e9b1d4a0012ab34c1", "firstName": "Chinedu", "lastName": "Okafor" }, "submittedAt": "2026-06-05T14:02:10.107Z" } ], "createdAt": "2026-06-04T09:15:22.481Z", "updatedAt": "2026-06-06T10:30:00.000Z", "__v": 2 } ]}
HomeLink Hub