{"openapi":"3.1.0","info":{"title":"WhichAgent Fitness Category API","version":"1.0.0","description":"Deterministic API for independent Orange County fitness businesses. Availability and booking are official-provider handoffs only."},"servers":[{"url":"https://whichagent.ai"}],"paths":{"/api/categories/fitness/{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-fitness","version":"1.0.0","api_version":"1","category_id":"orange-county-independent-fitness","scope":"Small independent Orange County, California fitness businesses from publicly accessible business sources. Published services include gyms, Pilates, yoga, CrossFit, and personal training; chains and franchises are excluded.","action_policy":"deterministic_handoff_only","commands":{"search":{"title":"Search Orange County Fitness Businesses","input":{"city":"Optional Orange County city name, such as Santa Ana, Seal Beach, Laguna Hills, Fullerton, or Villa Park.","service":"Optional published service, such as open gym, Pilates, yoga, CrossFit, personal training, or strength training.","availability_class":"Optional availability class: live, booking-site, or none."},"output":"Returns normalized, source-linked business records for independent Orange County, CA fitness businesses.","useWhen":"the user wants to find or compare local independent Orange County gyms, Pilates studios, yoga studios, CrossFit gyms, or personal-training businesses by city, published service, or availability class.","doNotUseWhen":"the user needs guaranteed real-time class capacity, prices, payment, a completed booking, medical advice, or results outside Orange County."},"details":{"title":"Get Fitness Business Details","input":{"business_id":"Required stable business ID returned by search, for example ark-fit."},"output":"Returns a normalized, source-linked business record for one independent Orange County, CA fitness 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 medical advice."},"compare":{"title":"Compare Fitness Businesses","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 fitness 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 class capacity or prices, payment, a completed booking, medical advice, or results outside Orange County."},"availability":{"title":"Get Fitness Availability Handoff","input":{"business_id":"Required stable business ID returned by search.","service":"Optional published service requested, such as Pilates, yoga, CrossFit, or personal training.","appointment_date":"Optional desired class or session date in YYYY-MM-DD format."},"output":"Returns a normalized availability handoff for a source-linked Orange County fitness business; it does not guarantee capacity.","useWhen":"the user has selected a business and wants its provider handoff to check a service and, optionally, a date.","doNotUseWhen":"the user needs guaranteed capacity or price, payment, a completed booking, medical advice, or results outside Orange County; availability only returns a provider handoff."},"book":{"title":"Get Fitness Booking Handoff","input":{"business_id":"Required stable business ID returned by search.","service":"Optional published service requested, such as Pilates, yoga, CrossFit, or personal training.","appointment_date":"Optional desired class or session date in YYYY-MM-DD format."},"output":"Returns a normalized booking or contact handoff link for a source-linked Orange County fitness business; it never creates or confirms a booking.","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 a booking, take payment, guarantee capacity or price, provide medical advice, or serve locations outside Orange County."}},"envelope":{"success":{"data":"object","meta":{"request_id":"uuid","api_version":"1","category":"orange-county-independent-fitness","source":"string"}},"failure":{"error":{"code":"string","message":"string","field_errors":"object|null"},"meta":"same as success"}}}}}}