{"openapi":"3.1.0","info":{"title":"WhichAgent Auto Services Category API","version":"1.0.0","description":"Deterministic API for independent Orange County auto services. Availability and booking are official-provider handoffs only."},"servers":[{"url":"https://whichagent.ai"}],"paths":{"/api/categories/auto-services/{verb}":{"post":{"parameters":[{"name":"verb","in":"path","required":true,"schema":{"enum":["search","details","compare","availability","book"]}}],"requestBody":{"required":false,"content":{"application/json":{"schema":{"type":"object"}}}},"responses":{"200":{"description":"Category response","content":{"application/json":{"schema":{"type":"object","required":["meta"],"properties":{"data":{},"error":{"type":"object"},"meta":{"type":"object","required":["request_id","api_version","category","source"]}}}}}},"400":{"description":"Structured input error","content":{"application/json":{"schema":{"type":"object","required":["meta"],"properties":{"data":{},"error":{"type":"object"},"meta":{"type":"object","required":["request_id","api_version","category","source"]}}}}}},"404":{"description":"Structured business error","content":{"application/json":{"schema":{"type":"object","required":["meta"],"properties":{"data":{},"error":{"type":"object"},"meta":{"type":"object","required":["request_id","api_version","category","source"]}}}}}}}}}},"components":{"schemas":{"CategorySchema":{"name":"whichagent-auto-services","version":"1.0.0","api_version":"1","category_id":"orange-county-independent-auto-services","scope":"Small independent Orange County, California auto-service businesses from publicly accessible business sources. Published services include smog checks and auto detailing; chains and franchises are excluded.","action_policy":"deterministic_handoff_only","commands":{"search":{"title":"Search Orange County Auto Services","input":{"city":"Optional Orange County city name, such as Placentia, Costa Mesa, Santa Ana, Orange, or Huntington Beach.","service":"Optional published service, such as smog check, emissions testing, auto detailing, paint correction, or ceramic coating.","availability_class":"Optional availability class: live, booking-site, or none."},"output":"Returns normalized, source-linked business records for independent Orange County, CA auto services.","useWhen":"the user wants to find or compare local independent Orange County smog-check stations or auto-detailing businesses by city, published service, or availability class.","doNotUseWhen":"the user needs guaranteed real-time appointments, prices, payment, a completed booking, automotive repair, or results outside Orange County."},"details":{"title":"Get Auto-Service Details","input":{"business_id":"Required stable business ID returned by search, for example oc-smog-lab."},"output":"Returns a normalized, source-linked business record for one independent Orange County, CA auto-service business.","useWhen":"the user wants published services, contact information, availability class, or source links for a business selected from search.","doNotUseWhen":"the user needs guaranteed live availability or price, a business outside this dataset, payment, a completed booking, or automotive repair."},"compare":{"title":"Compare Auto Services","input":{"business_ids":"Required array or comma-separated list of at least two stable business IDs returned by search.","criteria":"Optional array or comma-separated list of comparison fields: city, services, availability_class, capabilities."},"output":"Returns a normalized, source-linked comparison of selected Orange County, CA auto-service businesses.","useWhen":"the user wants to compare two or more search results on city, published services, availability class, or handoff capabilities.","doNotUseWhen":"the user needs guaranteed appointments or prices, payment, a completed booking, automotive repair, or results outside Orange County."},"availability":{"title":"Get Auto-Service Availability Handoff","input":{"business_id":"Required stable business ID returned by search.","service":"Optional published service requested, such as STAR smog check or full detail.","appointment_date":"Optional desired service date in YYYY-MM-DD format."},"output":"Returns a normalized availability handoff for a source-linked Orange County auto-service business; it does not guarantee an appointment.","useWhen":"the user has selected a business and wants its provider handoff to check a service and, optionally, a date.","doNotUseWhen":"the user needs a guaranteed appointment or price, payment, a completed booking, automotive repair, or results outside Orange County; availability only returns a provider handoff."},"book":{"title":"Get Auto-Service Booking Handoff","input":{"business_id":"Required stable business ID returned by search.","service":"Optional published service requested, such as STAR smog check or full detail.","appointment_date":"Optional desired service date in YYYY-MM-DD format."},"output":"Returns a normalized booking or contact handoff link for a source-linked Orange County auto-service business; it never creates or confirms an appointment.","useWhen":"the user has selected a business and wants its official booking or contact handoff for a service and, optionally, a date.","doNotUseWhen":"the user needs WhichAgent to create or confirm an appointment, take payment, guarantee an appointment or price, provide automotive repair, or serve locations outside Orange County."}},"envelope":{"success":{"data":"object","meta":{"request_id":"uuid","api_version":"1","category":"orange-county-independent-auto-services","source":"string"}},"failure":{"error":{"code":"string","message":"string","field_errors":"object|null"},"meta":"same as success"}}}}}}