Get inspection availability for a property
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.
propertyId*stringObjectId of the property.
date?stringDay to generate slots for, YYYY-MM-DD (any string new Date() can parse is accepted). Optional.
Availability for the property, with slots for the requested date.
application/json- response
status*integersuccess*booleanmessage*stringdata*curl -X GET 'http://localhost:4000/api/v1/inspection/availability/string'{ "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" ] }}