Skip to Content
HomeLink Hub
Inspections

Request an inspection

POST
/api/v1/inspection/request

Access: Bearer token required.

Creates an inspection (property tour) request for the authenticated user, who is stored as inspectorId. No booking is needed. The record starts with status: "pending_review", approval.status: "pending" and paymentStatus: "unpaid".

The listing agent (or the landlord when there is no agentId) receives an inspection_request notification with the New Tour Request on HomeLink Hub email, unless the requester is that same user.

Things to know: the optional notes value is stored in the inspection's cancellationReason field (there is no dedicated notes field); the property's existence is not verified, so an unknown propertyId still returns 201 and simply notifies nobody; and the chosen time is not checked against the availability endpoint or existing inspections. The usual lifecycle is pending_review -> in_progress (approved via the review endpoint) -> scheduled (once the inspection fee is paid), or cancelled on rejection.

Authorization

bearerAuth
headerAuthorizationBearer <JWT>

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

Request Body

application/json
  1. body
propertyId*string

ObjectId of the property to inspect.

Match^[0-9a-fA-F]{24}$
scheduledDate*string

Requested date and time of the visit. Must be in the future.

Formatdate-time
notes?string

Optional message for the agent (max 500 characters). Persisted as cancellationReason on the inspection.

Lengthlength <= 500

Response Body

Inspection request created. data is the new inspection document.

application/json
  1. response
status*integer
success*boolean
message*string
data*
Example Request
curl -X POST 'http://localhost:4000/api/v1/inspection/request' \  -H 'Content-Type: application/json' \  -d '{  "propertyId": "664a0b7e3f2c1d0012ef5a01",  "scheduledDate": "2026-12-04T10:00:00.000Z",  "notes": "Please confirm the gate code before I arrive."}'
Example Response
{  "status": 201,  "success": true,  "message": "Inspection tour requested successfully",  "data": {    "_id": "6660a2d47c3e5b0012de8f31",    "propertyId": "664a0b7e3f2c1d0012ef5a01",    "inspectorId": "663d9a1c5e4b2a0012cd7f10",    "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  }}