List my legal assignments
Access: Bearer token required. Roles: LAWYER.
The calling lawyer's assignments, newest first, with propertyId populated (title, location, pricing) and assignedBy populated (firstName, lastName). The shape of data depends on the query string. With neither page nor limit, data is a bare array of every matching assignment (legacy behaviour). If either page or limit is present, data is an object with assignments (one page), pagination and counts. counts holds the lawyer's total per status plus all, and ignores the status filter so filter tabs keep their numbers; statuses with zero assignments are absent from it. status is matched exactly and not validated: an unknown value returns an empty result. Assignment statuses are assigned, accepted, in_review, changes_requested, verified, rejected, reassigned.
bearerAuthAuthorizationBearer <JWT>Access token returned by sign-in. Send it as Authorization: Bearer <token>.
status?stringOnly return assignments with this exact status (assigned, accepted, in_review, changes_requested, verified, rejected, reassigned).
page?integer1-based page number. Sending it (or limit) switches the response to the paginated shape.
1limit?integerPage size, clamped to 1-50. Sending it (or page) switches the response to the paginated shape.
10- No
pageorlimitin the query:datais a bare array pageorlimitpresent:datais a paginated object with per-status counts
application/json- response
status*integersuccess*booleanmessage*stringdata*array<>curl -X GET 'http://localhost:4000/api/v1/legal/assignments'{ "status": 200, "success": true, "message": "Assignments fetched successfully", "data": [ { "_id": "6660a7d49b1d4a0012ab3501", "propertyId": { "_id": "665f1c2e9b1d4a0012ab34cd", "title": "3-Bedroom Flat, Lekki Phase 1", "location": { "state": "Lagos", "lga": "Eti-Osa", "community": "Lekki Phase 1", "street": "14 Admiralty Way", "nearestLandmark": "Lekki Phase 1 Gate", "coordinates": { "type": "Point", "coordinates": [ 3.4723, 6.4474 ] } }, "pricing": { "rentPrice": 4500000, "salePrice": null, "currency": "NGN", "rentDurationYears": 1 } }, "lawyerId": "665f1c2e9b1d4a0012ab34c3", "assignedBy": { "_id": "665f1c2e9b1d4a0012ab34c1", "firstName": "Chinedu", "lastName": "Okafor" }, "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": "assigned", "dueDate": "2026-06-12T17:00:00.000Z", "notes": "Please confirm the C of O and survey plan.", "decision": { "checklist": [] }, "documentSubmissions": [], "createdAt": "2026-06-04T09:15:22.481Z", "updatedAt": "2026-06-04T09:15:22.481Z", "__v": 0 } ]}
HomeLink Hub