{"openapi": "3.1.0", "info": {"title": "WheyWatch API", "version": "1.0"}, "servers": [{"url": "https://wheywatch.vibefrontier.com"}], "paths": {"/api/offers": {"get": {"operationId": "listOffers", "summary": "List current offers, lowest cost per 25 g first", "parameters": [{"in": "query", "name": "kind", "schema": {"type": "string", "enum": ["all", "isolate", "blend", "concentrate"]}}], "responses": {"200": {"description": "Verified in-stock offers (prices exclude shipping and tax)", "content": {"application/json": {"schema": {"type": "object", "required": ["offers"], "properties": {"offers": {"type": "array", "items": {"type": "object", "required": ["id", "brand", "name", "kind", "flavor", "size", "url", "label_url", "servings", "protein_g", "checked_at", "currency", "price_cents", "usd_cents_per_25g", "availability"], "properties": {"id": {"type": "string", "pattern": "^[a-z0-9]+(-[a-z0-9]+)*$"}, "brand": {"type": "string"}, "name": {"type": "string"}, "kind": {"type": "string", "enum": ["isolate", "blend", "concentrate"]}, "flavor": {"type": "string"}, "size": {"type": "string"}, "url": {"type": "string", "format": "uri"}, "label_url": {"type": "string", "format": "uri"}, "servings": {"type": "number"}, "protein_g": {"type": "number"}, "checked_at": {"type": "string", "format": "date-time"}, "currency": {"const": "USD"}, "price_cents": {"type": "integer"}, "usd_cents_per_25g": {"type": "integer"}, "availability": {"const": "in_stock"}}}}}}}}}, "400": {"description": "Unknown whey type"}}}}, "/api/alerts": {"post": {"operationId": "requestAlert", "summary": "Request an opt-in email for a one-time price alert", "requestBody": {"required": true, "content": {"application/json": {"schema": {"type": "object", "required": ["email", "offer", "target_usd"], "additionalProperties": false, "properties": {"email": {"type": "string", "format": "email"}, "offer": {"type": "string", "pattern": "^[a-z0-9]+(-[a-z0-9]+)*$"}, "target_usd": {"type": "string", "pattern": "^[0-9]{1,4}(\\.[0-9]{1,2})?$"}}}}}}, "responses": {"202": {"description": "Request accepted; recipient must confirm by email"}, "400": {"description": "Invalid offer, target price, or email"}, "503": {"description": "Email temporarily unavailable"}}}}}}