Admin
Get a duplicate-listing flag
GET
Access: Bearer token required. Roles: ADMIN.
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 agent contact details included). A malformed id is treated as not found (404), not as a validation error.
bearerAuthheader
AuthorizationBearer <JWT>Access token returned by sign-in. Send it as Authorization: Bearer <token>.
id*stringObjectId of the duplicate flag.
The flag
application/json- response
status*integersuccess*booleanmessage*stringdata*curl -X GET 'http://localhost:4000/api/v1/admin/duplicate-flags/string'Example Response
{ "status": 200, "success": true, "message": "Duplicate flag fetched successfully", "data": { "_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 }}List duplicate-listing flags GET
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.
Resolve a duplicate-listing flag POST
Records the admin's decision on an open flag; a flag can only be resolved once.
HomeLink Hub