{"openapi":"3.1.0","info":{"title":"GetBrent public API","version":"1.0.0","description":"Find UK hire, sales and service businesses, read their items and prices, check availability, and send enquiries or booking requests for a user. Read endpoints are open and cookie-free. Write endpoints must only be called with the user's agreement and real contact details. Nothing is charged online."},"servers":[{"url":"https://www.getbrent.co.uk"}],"paths":{"/api/v1/search":{"get":{"operationId":"askBrentSearch","summary":"Paid key: find up to 20 UK businesses that can do a job near a place, from plain words. Keys free at /developers.","security":[{"bearerKey":[]}],"parameters":[{"name":"q","in":"query","required":true,"schema":{"type":"string"},"description":"What the person wants, e.g. \"skip hire\" or \"coffee and cake\""},{"name":"location","in":"query","required":true,"schema":{"type":"string"},"description":"A UK town, postcode or county"},{"name":"radius_miles","in":"query","schema":{"type":"number","minimum":1,"maximum":50,"default":10}},{"name":"limit","in":"query","schema":{"type":"integer","minimum":1,"maximum":20,"default":20}}],"responses":{"200":{"description":"Businesses with distance, phone, hours and page link"},"401":{"description":"Missing or invalid key"},"429":{"description":"Monthly allowance used"}}}},"/api/public/v1/categories":{"get":{"operationId":"listCategories","summary":"List categories","responses":{"200":{"description":"Categories"}}}},"/api/public/v1/search":{"get":{"operationId":"searchBusinesses","summary":"Search businesses by category, place and text. At least one of category or place is required.","parameters":[{"name":"category","in":"query","schema":{"type":"string","enum":["trailer-hire","tool-hire","plant-hire","specialist-vehicle-hire","storage","removals-logistics","clearance-disposal","vehicle-plant-repair","trade-services"]}},{"name":"place","in":"query","schema":{"type":"string"},"description":"Town, district or county, e.g. Maidstone or Kent"},{"name":"q","in":"query","schema":{"type":"string"},"description":"Words that must all appear, e.g. \"horsebox\" or \"ifor williams\""},{"name":"offers","in":"query","schema":{"type":"string","enum":["hire","sale"]}},{"name":"limit","in":"query","schema":{"type":"integer","minimum":1,"maximum":50,"default":20}}],"responses":{"200":{"description":"Matching businesses"},"400":{"description":"Bad parameters"},"429":{"description":"Rate limited"}}}},"/api/public/v1/vendors/{slug}":{"get":{"operationId":"getBusiness","summary":"One business, its items with prices, and how to enquire or request a booking","parameters":[{"name":"slug","in":"path","required":true,"schema":{"type":"string"}}],"responses":{"200":{"description":"Business"},"404":{"description":"Not found"}}}},"/api/public/v1/for-sale":{"get":{"operationId":"searchPrivateSales","summary":"Items for sale by private sellers (trailers, plant, tools, vans)","parameters":[{"name":"category","in":"query","schema":{"type":"string","enum":["trailer-hire","plant-hire","tool-hire","specialist-vehicle-hire"]}},{"name":"q","in":"query","schema":{"type":"string"}}],"responses":{"200":{"description":"Listings"}}}},"/api/bookings/availability":{"get":{"operationId":"checkAvailability","summary":"Day-by-day availability for a bookable item, plus a quote when start and end are given","parameters":[{"name":"product_id","in":"query","required":true,"schema":{"type":"string","format":"uuid"}},{"name":"from","in":"query","required":true,"schema":{"type":"string","format":"date","example":"2026-10-03"}},{"name":"to","in":"query","required":true,"schema":{"type":"string","format":"date","example":"2026-10-03"},"description":"At most 92 days after from"},{"name":"start","in":"query","schema":{"type":"string","format":"date","example":"2026-10-03"}},{"name":"end","in":"query","schema":{"type":"string","format":"date","example":"2026-10-03"}}],"responses":{"200":{"description":"Availability and optional quote"}}}},"/api/bookings/request":{"post":{"operationId":"requestBooking","summary":"Send a booking request for a bookable item. The business confirms or declines.","requestBody":{"required":true,"content":{"application/json":{"schema":{"type":"object","required":["product_id","vendor_id","start_at","end_at","email"],"properties":{"product_id":{"type":"string","format":"uuid"},"vendor_id":{"type":"string","format":"uuid"},"start_at":{"type":"string","format":"date","example":"2026-10-03"},"end_at":{"type":"string","format":"date","example":"2026-10-03"},"qty":{"type":"integer","minimum":1,"maximum":50},"full_name":{"type":"string","maxLength":120},"email":{"type":"string","format":"email"},"phone":{"type":"string","maxLength":40},"message":{"type":"string","maxLength":2000}}}}}},"responses":{"200":{"description":"Request received"},"409":{"description":"Dates not available"},"429":{"description":"Rate limited"}}}},"/api/enquiries":{"post":{"operationId":"sendEnquiry","summary":"Send an enquiry to a business, which replies to the customer directly","requestBody":{"required":true,"content":{"application/json":{"schema":{"type":"object","required":["vendor_id","customer_name","customer_email","message"],"properties":{"vendor_id":{"type":"string","format":"uuid"},"product_id":{"type":"string","format":"uuid"},"customer_name":{"type":"string","minLength":2,"maxLength":100},"customer_email":{"type":"string","format":"email"},"customer_phone":{"type":"string"},"message":{"type":"string","minLength":10,"maxLength":2000},"hire_start_date":{"type":"string","format":"date","example":"2026-10-03"},"hire_end_date":{"type":"string","format":"date","example":"2026-10-03"}}}}}},"responses":{"201":{"description":"Enquiry sent"},"400":{"description":"Invalid"},"429":{"description":"Rate limited"}}}}},"components":{"securitySchemes":{"bearerKey":{"type":"http","scheme":"bearer","description":"A gb_live_ key from /developers"}}}}