Skip to main content

Calendar

Availability​

GET /v1/availability?from&to returns the weekly hours and what is booked or blocked in that range. PUT /v1/availability replaces the weekly hours:

{ "days": [1, 2, 3, 4, 5], "windows": [{ "start": "08:00", "end": "17:00" }] }

Days run from 1 (Monday) to 7 (Sunday).

Appointments​

POST /v1/appointments books a time. It must fall in the working hours and miss every other booking and block. Otherwise the answer is 409 slot_unavailable.

{ "scheduled_at": "2027-02-03T09:00:00-06:00", "duration_minutes": 90, "details": "Fence repair" }

DELETE /v1/appointments/{apt_id} cancels it as the pro.

Block-offs​

POST /v1/block-offs with start, end and an optional reason makes a time no one can book. DELETE /v1/block-offs/{blk_id} frees it.