{"openapi":"3.1.2","info":{"title":"Drive Out public catalog and customer requests","version":"1.0.0","description":"The catalog describes published listings, not guaranteed real-time availability. Requests are inquiries, not confirmed appointments or purchases."},"servers":[{"url":"/"}],"paths":{"/api/catalog.json":{"get":{"summary":"Get published business, vehicle and service data","responses":{"200":{"description":"Public catalog.","content":{"application/json":{"schema":{"type":"object","required":["business","inventory","soldListings","services"],"properties":{"business":{"type":"object"},"inventory":{"type":"array","items":{"type":"object"}},"soldListings":{"type":"array","items":{"type":"object"}},"services":{"type":"array","items":{"type":"object"}}}}}}}}}},"/api/agent/business":{"get":{"summary":"Get shop details, hours and booking information","responses":{"200":{"description":"Business and booking information.","content":{"application/json":{"schema":{"type":"object","required":["business","booking"],"properties":{"business":{"type":"object"},"booking":{"type":"object"}}}}}}}}},"/api/agent/capabilities":{"get":{"summary":"Get published services and customer request capabilities","responses":{"200":{"description":"Services, customer request interfaces and links.","content":{"application/json":{"schema":{"type":"object","required":["business","inventory","catalog","openapi","services","customerInquiries","customerRequests","confirmation","webmcp"],"properties":{"business":{"type":"string"},"inventory":{"type":"string"},"catalog":{"type":"string"},"openapi":{"type":"string"},"services":{"type":"array","items":{"type":"object"}},"customerInquiries":{"type":"object"},"customerRequests":{"type":"array","items":{"type":"object"}},"confirmation":{"type":"string"},"webmcp":{"type":"string"}}}}}}}}},"/api/agent/inventory":{"get":{"summary":"Search available vehicle listings","parameters":[{"in":"query","name":"q","schema":{"type":"string","maxLength":200},"description":"Case-insensitive keywords; every word must match."},{"in":"query","name":"max_price_usd","schema":{"type":"number","minimum":0},"description":"Decimal amounts may have at most two digits after the point."}],"responses":{"200":{"description":"Search results.","content":{"application/json":{"schema":{"type":"object","required":["count","items"],"properties":{"count":{"type":"integer","minimum":0},"items":{"type":"array","items":{"type":"object"}}}}}}},"400":{"description":"Invalid or repeated search parameters."}}}},"/api/inquiries":{"post":{"summary":"Send a customer inquiry","description":"Show the customer the inquiry details and callback number and obtain their approval before submitting. The Origin header must match the request URL origin. This check is not user authentication. Maximum request body is 4096 bytes. For real submissions, approximately 5 requests per IP per 60 seconds per Cloudflare location; counts are not globally strict. Simulated submissions do not use this limit.","parameters":[{"in":"header","name":"Origin","required":true,"schema":{"type":"string"},"description":"Must equal the request URL origin. This is not authentication."}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"type":"object","properties":{"kind":{"type":"string","enum":["service-quote","request-a-part","car-finder","start-your-vehicle-purchase","make-an-offer","value-my-trade","schedule-a-visit"]},"details":{"type":"string","minLength":10,"maxLength":1500,"description":"At least 10 characters after trimming; do not submit financial account or identity document numbers."},"phone":{"type":"string","description":"Customer-authorized US callback number, with a valid NANP area code and exchange."},"consent":{"type":"boolean","const":true}},"required":["kind","details","phone","consent"]}}}},"responses":{"201":{"description":"Request accepted by the email provider; this is not a confirmed booking or transaction. The X-Drive-Out-Delivery: simulated header means no email was sent.","headers":{"X-Drive-Out-Delivery":{"schema":{"type":"string","enum":["simulated"]},"description":"Present only when the request was simulated."}}},"400":{"description":"Invalid input."},"403":{"description":"Origin does not match."},"413":{"description":"Body exceeds 4096 bytes."},"415":{"description":"Content type must be application/json."},"429":{"description":"Rate limit exceeded."},"503":{"description":"Delivery unavailable."}}}},"/api/service-booking":{"post":{"summary":"Request a service ticket","description":"Obtain the customer’s approval for the submitted details and contact information. The browser WebMCP tool prompts for confirmation. The HTTP endpoint does not authenticate the customer.","parameters":[{"in":"header","name":"Origin","required":true,"schema":{"type":"string"},"description":"Must equal the request URL origin. This is not authentication."}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"type":"object","properties":{"service":{"type":"string","enum":["New Tires","Flat Tire & Tire Repair","Wheel Alignment","Battery Testing & Replacement","Oil Change","Brake Service & Repair","General Auto Repair","Check Engine Light Diagnostics","Engine Tune-Up","Tire Rotation","Tire & Wheel Balancing","Tire Installation","Not sure yet"]},"date":{"type":"string","format":"date","description":"Preferred date in shop local time, not in the past or on Sunday."},"time":{"type":"string","enum":["9:00 AM","10:00 AM","11:00 AM","12:00 PM","1:00 PM","2:00 PM","3:00 PM"],"description":"Preferred shop local time between 9:00 AM and 3:00 PM; availability is not checked."},"phone":{"type":"string","description":"Customer-authorized US callback number, with a valid NANP area code and exchange."}},"required":["service","date","time","phone"]}}}},"responses":{"201":{"description":"Request accepted by the email provider; this is not a confirmed booking or transaction. The X-Drive-Out-Delivery: simulated header means no email was sent.","headers":{"X-Drive-Out-Delivery":{"schema":{"type":"string","enum":["simulated"]},"description":"Present only when the request was simulated."}}},"400":{"description":"Invalid input."},"403":{"description":"Origin does not match."},"415":{"description":"Content type must be application/json."},"429":{"description":"Too many requests."},"503":{"description":"Delivery unavailable."}}}},"/api/test-drive":{"post":{"summary":"Request a test drive","description":"Obtain the customer’s approval for the submitted details and contact information. The browser WebMCP tool prompts for confirmation. The HTTP endpoint does not authenticate the customer.","parameters":[{"in":"header","name":"Origin","required":true,"schema":{"type":"string"},"description":"Must equal the request URL origin. This is not authentication."}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"type":"object","properties":{"vehicle":{"type":"string","description":"Vehicle name; confirm the listing is still available."},"date":{"type":"string","format":"date","description":"Preferred date in shop local time, not in the past or on Sunday."},"time":{"type":"string","enum":["9:00 AM","10:00 AM","11:00 AM","12:00 PM","1:00 PM","2:00 PM","3:00 PM"],"description":"Preferred shop local time between 9:00 AM and 3:00 PM; availability is not checked."},"phone":{"type":"string","description":"Customer-authorized US callback number, with a valid NANP area code and exchange."}},"required":["vehicle","date","time","phone"]}}}},"responses":{"201":{"description":"Request accepted by the email provider; this is not a confirmed booking or transaction. The X-Drive-Out-Delivery: simulated header means no email was sent.","headers":{"X-Drive-Out-Delivery":{"schema":{"type":"string","enum":["simulated"]},"description":"Present only when the request was simulated."}}},"400":{"description":"Invalid input."},"403":{"description":"Origin does not match."},"415":{"description":"Content type must be application/json."},"429":{"description":"Too many requests."},"503":{"description":"Delivery unavailable."}}}},"/api/service-leads":{"post":{"summary":"Request a service callback","description":"Obtain the customer’s approval for the submitted details and contact information. The browser WebMCP tool prompts for confirmation. The HTTP endpoint does not authenticate the customer.","parameters":[{"in":"header","name":"Origin","required":true,"schema":{"type":"string"},"description":"Must equal the request URL origin. This is not authentication."}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"type":"object","properties":{"service":{"type":"string","enum":["New Tires","Flat Tire & Tire Repair","Wheel Alignment","Battery Testing & Replacement","Oil Change","Brake Service & Repair","General Auto Repair","Check Engine Light Diagnostics","Engine Tune-Up","Tire Rotation","Tire & Wheel Balancing","Tire Installation"]},"phone":{"type":"string","description":"Customer-authorized US callback number, with a valid NANP area code and exchange."}},"required":["service","phone"]}}}},"responses":{"201":{"description":"Request accepted by the email provider; this is not a confirmed booking or transaction. The X-Drive-Out-Delivery: simulated header means no email was sent.","headers":{"X-Drive-Out-Delivery":{"schema":{"type":"string","enum":["simulated"]},"description":"Present only when the request was simulated."}}},"400":{"description":"Invalid input."},"403":{"description":"Origin does not match."},"415":{"description":"Content type must be application/json."},"429":{"description":"Too many requests."},"503":{"description":"Delivery unavailable."}}}},"/api/offer-signup":{"post":{"summary":"Request email offers or ticket updates","description":"Obtain the customer’s approval for the submitted details and contact information. The browser WebMCP tool prompts for confirmation. The HTTP endpoint does not authenticate the customer.","parameters":[{"in":"header","name":"Origin","required":true,"schema":{"type":"string"},"description":"Must equal the request URL origin. This is not authentication."}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"type":"object","properties":{"email":{"type":"string","format":"email"},"ticket":{"type":"object","required":["service","date","time","phone"],"properties":{"service":{"type":"string","enum":["New Tires","Flat Tire & Tire Repair","Wheel Alignment","Battery Testing & Replacement","Oil Change","Brake Service & Repair","General Auto Repair","Check Engine Light Diagnostics","Engine Tune-Up","Tire Rotation","Tire & Wheel Balancing","Tire Installation","Not sure yet"]},"date":{"type":"string","format":"date"},"time":{"type":"string","enum":["9:00 AM","10:00 AM","11:00 AM","12:00 PM","1:00 PM","2:00 PM","3:00 PM"],"description":"Time from an existing service ticket, limited to the published 9:00 AM to 3:00 PM booking window. Legacy exception: the endpoint still accepts 4:00 PM at runtime for tickets issued before that window was reduced, so a stored legacy ticket can be updated; new bookings must use the enum values above."},"phone":{"type":"string","description":"Customer-authorized US callback number, with a valid NANP area code and exchange."}}}},"required":["email"]}}}},"responses":{"201":{"description":"Request accepted by the email provider; this is not a confirmed booking or transaction. The X-Drive-Out-Delivery: simulated header means no email was sent.","headers":{"X-Drive-Out-Delivery":{"schema":{"type":"string","enum":["simulated"]},"description":"Present only when the request was simulated."}}},"400":{"description":"Invalid input."},"403":{"description":"Origin does not match."},"415":{"description":"Content type must be application/json."},"429":{"description":"Too many requests."},"503":{"description":"Delivery unavailable."}}}}}}