List duplicate-listing flags
Access: Bearer token required. Roles: ADMIN.
The admin review queue of listings that the duplicate detector scored as probably the same property as an existing listing (score 60 or more), newest first. A listing has at most one flag, and while its flag is open it cannot go live even after legal verification. Each flag has the flagged listing in propertyId and the listings it resembles in matches (best first), both populated with the review fields plus landlord and agent contact details; each listing's media.images is cut to its first 6. status is open (awaiting an admin), dismissed (ruled not a duplicate) or confirmed (ruled a duplicate and taken down). resolvedBy is populated with the admin's name and email once resolved. reasons are human-readable strings produced by the scorer.
bearerAuthAuthorizationBearer <JWT>Access token returned by sign-in. Send it as Authorization: Bearer <token>.
status?stringFilter by flag status: open, dismissed or confirmed. Omit for all.
page?integer1-based page number. Values below 1 or non-numeric fall back to 1.
1limit?integerPage size, clamped to 1-100.
20One page of flags
application/json- response
status*integersuccess*booleanmessage*stringdata*curl -X GET 'http://localhost:4000/api/v1/admin/duplicate-flags'{ "status": 200, "success": true, "message": "Duplicate flags fetched successfully", "data": { "flags": [ { "_id": "6660a7d49b1d4a0012ab3520", "propertyId": { "_id": "665f1c2e9b1d4a0012ab34cd", "title": "3-Bedroom Flat, Lekki Phase 1", "type": "APARTMENT", "status": "pending_verification", "legalStatus": "under_legal_review", "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 ] } }, "details": { "bedrooms": 3, "bathrooms": 3, "squareFeet": 1650, "features": [] }, "pricing": { "rentPrice": 4500000, "salePrice": null, "currency": "NGN", "rentDurationYears": 1 }, "media": { "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 ], "tag": "Living room" }, "_id": "6660a7d49b1d4a0012ab3570" } ] }, "landlordId": { "_id": "665f1c2e9b1d4a0012ab34c2", "firstName": "Ngozi", "lastName": "Balogun", "email": "ngozi.balogun@example.com", "phone": "+2348029876543", "role": "LANDLORD" }, "agentId": { "_id": "665f1c2e9b1d4a0012ab34c1", "firstName": "Chinedu", "lastName": "Okafor", "email": "chinedu.okafor@example.com", "phone": "+2348031234567", "role": "AGENT" }, "deletedAt": null, "createdAt": "2026-06-04T09:15:22.481Z" }, "matches": [ { "propertyId": { "_id": "665f1c2e9b1d4a0012ab34ce", "title": "Luxury 3 Bed Apartment, Admiralty Way", "type": "APARTMENT", "status": "listed", "legalStatus": "legally_verified", "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 ] } }, "details": { "bedrooms": 3, "bathrooms": 3, "squareFeet": 1650, "features": [] }, "pricing": { "rentPrice": 4500000, "salePrice": null, "currency": "NGN", "rentDurationYears": 1 }, "media": { "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 ], "tag": "Living room" }, "_id": "6660a7d49b1d4a0012ab3570" } ] }, "landlordId": { "_id": "665f1c2e9b1d4a0012ab34c2", "firstName": "Ngozi", "lastName": "Balogun", "email": "ngozi.balogun@example.com", "phone": "+2348029876543", "role": "LANDLORD" }, "agentId": { "_id": "665f1c2e9b1d4a0012ab34c1", "firstName": "Chinedu", "lastName": "Okafor", "email": "chinedu.okafor@example.com", "phone": "+2348031234567", "role": "AGENT" }, "deletedAt": null, "createdAt": "2026-04-18T08:00:00.000Z" }, "score": 85, "distanceMeters": 12, "addressSimilarity": 0.92, "reasons": [ "Pinned 12 m away", "Street address matches", "Same property type", "Both 3 bedrooms" ] } ], "topScore": 85, "status": "open", "resolvedBy": null, "resolvedAt": null, "resolutionNotes": null, "createdAt": "2026-06-04T09:15:22.481Z", "updatedAt": "2026-06-04T09:15:22.481Z", "__v": 0 } ], "pagination": { "page": 1, "limit": 20, "total": 3, "totalPages": 1 } }}Withdraw platform revenue POST
Sends platform revenue to a bank account through the payment provider.
Get a duplicate-listing flag GET
One flag with the flagged listing and every matched listing populated, in the same shape as an item of the list endpoint (images cut to the first 6 per listing, landlord and age...
HomeLink Hub