{"openapi":"3.1.0","info":{"title":"LessPane ordering API","version":"0.8.3","description":"Window cleaning on Maryland's Eastern Shore, for AI agents acting for a customer. Read https://lesspane.com/agents first. The same operations are MCP tools at https://lesspane.com/mcp. LessPane is currently a demo: bookings are not real."},"servers":[{"url":"https://lesspane.com"}],"paths":{"/api/v1/business":{"get":{"operationId":"get_business_info","summary":"About LessPane","description":"What LessPane does, where (Maryland's Eastern Shore), services, extras, packages, policies, payment terms and how ordering works. Read it first.","responses":{"200":{"description":"Done.","content":{"application/json":{"schema":{"type":"object"}}}},"400":{"description":"Refused: `error.code` says why and `error.message` what to do.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"404":{"description":"Refused: `error.code` says why and `error.message` what to do.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"409":{"description":"Refused: `error.code` says why and `error.message` what to do.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"429":{"description":"Refused: `error.code` says why and `error.message` what to do.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}}}}},"/api/v1/service-area":{"get":{"operationId":"check_service_area","summary":"Check a ZIP code","description":"Says whether LessPane serves a 5-digit US ZIP code.","parameters":[{"name":"zip","in":"query","required":true,"schema":{"type":"string","pattern":"^\\d{5}$","description":"5-digit ZIP code."}}],"responses":{"200":{"description":"Done.","content":{"application/json":{"schema":{"type":"object"}}}},"400":{"description":"Refused: `error.code` says why and `error.message` what to do.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"404":{"description":"Refused: `error.code` says why and `error.message` what to do.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"409":{"description":"Refused: `error.code` says why and `error.message` what to do.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"429":{"description":"Refused: `error.code` says why and `error.message` what to do.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}}}}},"/api/v1/quotes":{"post":{"operationId":"get_quote","summary":"Price a job","description":"Prices a window cleaning with LessPane’s own rates. Give a package, or windows and stories. Returns the price and a quote_id for request_booking. Never state a price you did not get from this tool.","requestBody":{"required":false,"content":{"application/json":{"schema":{"type":"object","properties":{"package":{"type":"string","enum":["cottage","family","large"],"description":"cottage: Cottage, One floor, all four sides; family: Family home, Two floors, all four sides; large: Large home, Three floors, lots of glass"},"windows":{"type":"integer","minimum":1,"maximum":300,"description":"Number of windows (if no package)."},"stories":{"type":"integer","enum":[1,2,3],"description":"Floors of the home (if no package)."},"service":{"type":"string","enum":["exterior","interior_exterior"],"default":"exterior","description":"exterior = outside only; interior_exterior = inside and outside."},"addons":{"type":"array","items":{"type":"string","enum":["screens","tracks","hard_water"]},"description":"screens: Screen cleaning; tracks: Track and sill cleaning; hard_water: Hard-water stain removal"}},"additionalProperties":false,"required":[]}}}},"responses":{"200":{"description":"Done.","content":{"application/json":{"schema":{"type":"object"}}}},"400":{"description":"Refused: `error.code` says why and `error.message` what to do.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"404":{"description":"Refused: `error.code` says why and `error.message` what to do.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"409":{"description":"Refused: `error.code` says why and `error.message` what to do.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"429":{"description":"Refused: `error.code` says why and `error.message` what to do.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}}}}},"/api/v1/bookings":{"post":{"operationId":"request_booking","summary":"Request a visit","description":"Asks LessPane for a visit for your person. Call only after they saw the price, day and time and clearly said yes. LessPane then emails them; nothing is booked until they confirm there. Returns a booking_token for get_booking, reschedule_booking and cancel_booking.","parameters":[{"name":"Idempotency-Key","in":"header","required":false,"schema":{"type":"string"},"description":"Same as request_id."}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"type":"object","properties":{"quote_id":{"type":"string","description":"From get_quote."},"preferred_date":{"type":"string","format":"date","description":"Visit day, YYYY-MM-DD, 1 to 60 days ahead."},"preferred_weekday":{"type":"string","enum":["Monday","Tuesday","Wednesday","Thursday","Friday","Saturday","Sunday"],"description":"The weekday your person asked for. Send it: a preferred_date that falls on another day is refused, which catches date mistakes before anything is booked."},"preferred_window":{"type":"string","enum":["morning","afternoon"],"description":"morning = 8am–12pm, afternoon = 12pm–5pm."},"email":{"type":"string","format":"email","description":"The customer’s email (required): they confirm from it."},"name":{"type":"string","maxLength":80,"description":"The customer’s name, if they gave it."},"phone":{"type":"string","description":"A phone number for texts, if they gave it."},"address":{"type":"string","maxLength":200,"description":"Street address, if they gave it."},"zip":{"type":"string","pattern":"^\\d{5}$","description":"5-digit ZIP, if they gave it. Must be one LessPane serves."},"notes":{"type":"string","maxLength":500,"description":"Anything the cleaner should know (gate code, pets). Stored as text, shown to the owner as written by you."},"agent":{"type":"string","maxLength":80,"description":"Which assistant you are and who runs it, e.g. \"Claude, Anthropic\"."},"approved_by_customer":{"type":"boolean","const":true,"description":"true: your person saw this price, day and time and said yes."},"request_id":{"type":"string","pattern":"^[A-Za-z0-9_.:-]{8,200}$","description":"A unique id you make up, so a retry (same request_id and same quote_id, within a day) returns the same booking instead of a second one. (HTTP: the Idempotency-Key header.)"}},"required":["quote_id","preferred_date","preferred_window","email","agent","approved_by_customer"],"additionalProperties":false}}}},"responses":{"201":{"description":"Done.","content":{"application/json":{"schema":{"type":"object"}}}},"400":{"description":"Refused: `error.code` says why and `error.message` what to do.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"404":{"description":"Refused: `error.code` says why and `error.message` what to do.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"409":{"description":"Refused: `error.code` says why and `error.message` what to do.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"429":{"description":"Refused: `error.code` says why and `error.message` what to do.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}}}}},"/api/v1/bookings/{booking_token}":{"get":{"operationId":"get_booking","summary":"Check a booking","description":"The booking’s status (awaiting_customer, new, confirmed, done or cancelled), day, time and price.","parameters":[{"name":"booking_token","in":"path","required":true,"schema":{"type":"string","pattern":"^[A-Za-z0-9_-]{32}$","description":"The booking_token request_booking returned."}}],"responses":{"200":{"description":"Done.","content":{"application/json":{"schema":{"type":"object"}}}},"400":{"description":"Refused: `error.code` says why and `error.message` what to do.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"404":{"description":"Refused: `error.code` says why and `error.message` what to do.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"409":{"description":"Refused: `error.code` says why and `error.message` what to do.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"429":{"description":"Refused: `error.code` says why and `error.message` what to do.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}}}}},"/api/v1/bookings/{booking_token}/reschedule":{"post":{"operationId":"reschedule_booking","summary":"Change the day","description":"Moves an open booking to another day or time window, until the day before the visit. LessPane re-confirms the new time.","parameters":[{"name":"booking_token","in":"path","required":true,"schema":{"type":"string","pattern":"^[A-Za-z0-9_-]{32}$","description":"The booking_token request_booking returned."}}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"type":"object","properties":{"preferred_date":{"type":"string","format":"date","description":"Visit day, YYYY-MM-DD, 1 to 60 days ahead."},"preferred_weekday":{"type":"string","enum":["Monday","Tuesday","Wednesday","Thursday","Friday","Saturday","Sunday"],"description":"The weekday your person asked for. Send it: a preferred_date that falls on another day is refused, which catches date mistakes before anything is booked."},"preferred_window":{"type":"string","enum":["morning","afternoon"],"description":"morning = 8am–12pm, afternoon = 12pm–5pm."}},"required":["preferred_date","preferred_window"],"additionalProperties":false}}}},"responses":{"200":{"description":"Done.","content":{"application/json":{"schema":{"type":"object"}}}},"400":{"description":"Refused: `error.code` says why and `error.message` what to do.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"404":{"description":"Refused: `error.code` says why and `error.message` what to do.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"409":{"description":"Refused: `error.code` says why and `error.message` what to do.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"429":{"description":"Refused: `error.code` says why and `error.message` what to do.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}}}}},"/api/v1/bookings/{booking_token}/cancel":{"post":{"operationId":"cancel_booking","summary":"Cancel a booking","description":"Cancels an open booking, free, until the day before the visit. Ask your person first.","parameters":[{"name":"booking_token","in":"path","required":true,"schema":{"type":"string","pattern":"^[A-Za-z0-9_-]{32}$","description":"The booking_token request_booking returned."}}],"responses":{"200":{"description":"Done.","content":{"application/json":{"schema":{"type":"object"}}}},"400":{"description":"Refused: `error.code` says why and `error.message` what to do.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"404":{"description":"Refused: `error.code` says why and `error.message` what to do.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"409":{"description":"Refused: `error.code` says why and `error.message` what to do.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"429":{"description":"Refused: `error.code` says why and `error.message` what to do.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}}}}}},"components":{"schemas":{"Error":{"type":"object","properties":{"error":{"type":"object","properties":{"code":{"type":"string"},"message":{"type":"string"}},"required":["code","message"]}},"required":["error"]}}}}