Skip to Content
HomeLink Hub
Inspections

Get an inspection by ID

GET
/api/v1/inspection/{id}

Access: Bearer token required. Also requires: Caller must be the property's agentId or landlordId.

Returns one inspection with propertyId populated (title, type, media, location, pricing, details, landlordId, agentId) and inspectorId populated (firstName, lastName, email, avatar), plus agentInspectionFee in NGN. Access is limited to the property's agentId or landlordId: the user who requested the inspection cannot fetch it here and gets the 403 (requesters should use GET /inspection/my). agentInspectionFee is the inspectionFee of the property's landlord (falling back to its agent only when there is no landlord), then Setting.defaultInspectionFee, then 5000; the payment endpoint resolves the payee the other way round (agent first), so the two can disagree on agent-managed listings.

Authorization

bearerAuth
headerAuthorizationBearer <JWT>

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

Path Parameters

id*string

ObjectId of the inspection.

Response Body

Inspection found and the caller manages its property.

application/json
  1. response
status*integer
success*boolean
message*string
data*
Example Request
curl -X GET 'http://localhost:4000/api/v1/inspection/string'
Example Response
{  "status": 200,  "success": true,  "message": "Inspection fetched successfully",  "data": {    "_id": "6660a2d47c3e5b0012de8f31",    "propertyId": {      "_id": "664a0b7e3f2c1d0012ef5a01",      "landlordId": "6629e4f08a7b3c0012aa9e42",      "agentId": "662b7c3d1f0e9a0012bb4c55",      "title": "3 Bedroom Apartment in Lekki Phase 1",      "type": "APARTMENT",      "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": [          "Fitted kitchen"        ]      },      "pricing": {        "rentPrice": 4500000,        "salePrice": null,        "currency": "NGN",        "rentDurationYears": 1      },      "media": {        "images": [          {            "_id": "664a0b7e3f2c1d0012ef5a02",            "url": "https://res.cloudinary.com/homelinkhub/image/upload/v1716100000/properties/lekki-3bed-living.jpg",            "metadata": {              "tag": "Living room"            }          }        ],        "videos": []      }    },    "inspectorId": {      "_id": "663d9a1c5e4b2a0012cd7f10",      "firstName": "Chinedu",      "lastName": "Okafor",      "avatar": "https://res.cloudinary.com/homelinkhub/image/upload/v1716100000/avatars/chinedu.jpg",      "email": "chinedu.okafor@example.com"    },    "scheduledDate": "2026-12-04T10:00:00.000Z",    "status": "pending_review",    "findings": {      "issues": [],      "photos": []    },    "approval": {      "status": "pending"    },    "cancellationReason": "Please confirm the gate code before I arrive.",    "paymentStatus": "unpaid",    "escrowId": null,    "agentId": null,    "agentFee": null,    "createdAt": "2026-11-25T09:20:05.112Z",    "updatedAt": "2026-11-25T09:20:05.112Z",    "__v": 0,    "agentInspectionFee": 5000  }}