Skip to Content
HomeLink Hub
Inspections

Get inspection availability for a property

GET
/api/v1/inspection/availability/{propertyId}

Access: Public, no token needed.

Public endpoint used on the property detail page. Returns the working days, hours and slot length of the property's landlord (property.landlordId; the listing agent's own availability is not consulted). When that user has not configured agentAvailability, the defaults are Monday to Friday, 09:00 to 17:00, 60-minute slots.

Pass date to also get concrete slots for that day: ISO 8601 UTC timestamps of each slot start. Slots are generated in the server's local timezone, and a slot is removed when an inspection for the same property with status scheduled or pending_review has exactly that scheduledDate. Inspections in in_progress (approved, awaiting payment) do not block a slot, and past slots are not filtered out. Without date, or when the day is not one of availableDays, slots is an empty array.

Path Parameters

propertyId*string

ObjectId of the property.

Query Parameters

date?string

Day to generate slots for, YYYY-MM-DD (any string new Date() can parse is accepted). Optional.

Response Body

Availability for the property, with slots for the requested date.

application/json
  1. response
status*integer
success*boolean
message*string
data*
Example Request
curl -X GET 'http://localhost:4000/api/v1/inspection/availability/string'
Example Response
{  "status": 200,  "success": true,  "message": "Availability fetched successfully",  "data": {    "agentName": "Folake Adeyemi",    "availableDays": [      "MON",      "TUE",      "WED",      "THU",      "FRI"    ],    "dayStartTime": "09:00",    "dayEndTime": "17:00",    "slotDurationMinutes": 60,    "slots": [      "2026-12-04T08:00:00.000Z"    ]  }}