Skip to Content
HomeLink Hub
Inspections

Approve or reject an inspection request

PATCH
/api/v1/inspection/{id}/review

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

Lets the property's agentId or landlordId answer an inspection request.

  • approve: approval.status becomes approved (with approvedBy, approvedAt and optional notes) and the inspection status becomes in_progress. The requester is expected to pay the inspection fee next, which moves it to scheduled.
  • reject: approval.status becomes rejected with rejectionReason; status becomes cancelled and cancellationReason / cancellationDate are set. If the inspection had been synced to the requester's Google Calendar, that event is deleted in the background.

Either way the requester receives an inspection_reviewed notification (Inspection Request Approved / Inspection Request Rejected, with the reason). The current status is not checked, so an inspection can be reviewed more than once, including after payment. In the response propertyId is populated with only landlordId and agentId.

Authorization

bearerAuth
headerAuthorizationBearer <JWT>

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

Path Parameters

id*string

ObjectId of the inspection to review.

Request Body

application/json
  1. body
action*string

approve or reject.

Value in"approve""reject"
notes?string

Optional note stored on approval.notes (max 1000 characters).

Lengthlength <= 1000
rejectionReason?|

Required when action is reject (max 1000 characters). Sent to the requester and copied to cancellationReason.

Response Body

  • Inspection approved.
  • Inspection rejected.
application/json
  1. response
status*integer
success*boolean
message*string
data*
Example Request
curl -X PATCH 'http://localhost:4000/api/v1/inspection/string/review' \  -H 'Content-Type: application/json' \  -d '{  "action": "approve",  "notes": "Friday 11am works. Ask for Tunde at the gate."}'
Example Response
{  "status": 200,  "success": true,  "message": "Inspection approved successfully",  "data": {    "_id": "6660a2d47c3e5b0012de8f31",    "propertyId": {      "_id": "664a0b7e3f2c1d0012ef5a01",      "landlordId": "6629e4f08a7b3c0012aa9e42",      "agentId": "662b7c3d1f0e9a0012bb4c55"    },    "inspectorId": "663d9a1c5e4b2a0012cd7f10",    "scheduledDate": "2026-12-04T10:00:00.000Z",    "status": "in_progress",    "findings": {      "issues": [],      "photos": []    },    "approval": {      "status": "approved",      "approvedBy": "662b7c3d1f0e9a0012bb4c55",      "approvedAt": "2026-11-25T12:30:11.904Z",      "notes": "Friday 11am works. Ask for Tunde at the gate."    },    "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-25T12:30:11.904Z",    "__v": 0  }}