Skip to Content
HomeLink Hub
Admin

Get a duplicate-listing flag

GET
/api/v1/admin/duplicate-flags/{id}

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.

Authorization

bearerAuth
headerAuthorizationBearer <JWT>

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

Path Parameters

id*string

ObjectId of the duplicate flag.

Response Body

The flag

application/json
  1. response
status*integer
success*boolean
message*string
data*
Example Request
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  }}