Skip to Content
HomeLink Hub
Admin

List duplicate-listing flags

GET
/api/v1/admin/duplicate-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.

Authorization

bearerAuth
headerAuthorizationBearer <JWT>

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

Query Parameters

status?string

Filter by flag status: open, dismissed or confirmed. Omit for all.

page?integer

1-based page number. Values below 1 or non-numeric fall back to 1.

Default1
limit?integer

Page size, clamped to 1-100.

Default20

Response Body

One page of flags

application/json
  1. response
status*integer
success*boolean
message*string
data*
Example Request
curl -X GET 'http://localhost:4000/api/v1/admin/duplicate-flags'
Example Response
{  "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    }  }}