{
  "openapi": "3.1.0",
  "info": {
    "title": "Adventure Boat Guide Agent API",
    "version": "1.0.0",
    "description": "Read-only boat/pricing research plus consent-gated buyer inquiry actions."
  },
  "servers": [
    {
      "url": "https://adventureboatguide.com"
    }
  ],
  "paths": {
    "/api/boats.json": {
      "get": {
        "operationId": "listBoatData",
        "summary": "Get the complete ABG boat dataset",
        "responses": {
          "200": {
            "description": "Boat dataset",
            "content": {
              "application/json": {}
            }
          }
        }
      }
    },
    "/api/pricing.json": {
      "get": {
        "operationId": "getPricingObservations",
        "summary": "Get public U.S. pricing observations",
        "responses": {
          "200": {
            "description": "Pricing dataset",
            "content": {
              "application/json": {}
            }
          }
        }
      }
    },
    "/api/recommend": {
      "get": {
        "operationId": "recommendBoats",
        "summary": "Get a deterministic ABG shortlist from public model data",
        "parameters": [
          {
            "name": "use",
            "in": "query",
            "schema": {
              "type": "string",
              "enum": [
                "all-weather",
                "family",
                "overnight",
                "performance",
                "versatility",
                "deck",
                "value"
              ]
            }
          },
          {
            "name": "min_loa",
            "in": "query",
            "schema": {
              "type": "number"
            }
          },
          {
            "name": "max_loa",
            "in": "query",
            "schema": {
              "type": "number"
            }
          },
          {
            "name": "brand",
            "in": "query",
            "schema": {
              "type": "string"
            }
          }
        ],
        "responses": {
          "200": {
            "description": "Ranked shortlist",
            "content": {
              "application/json": {}
            }
          }
        }
      }
    },
    "/api/inquiry": {
      "post": {
        "operationId": "submitBuyerInquiry",
        "summary": "Submit a buyer inquiry only after explicit user consent",
        "requestBody": {
          "required": true,
          "content": {
            "application/json": {
              "schema": {
                "type": "object",
                "required": [
                  "name",
                  "email",
                  "user_consent"
                ],
                "properties": {
                  "name": {
                    "type": "string"
                  },
                  "email": {
                    "type": "string",
                    "format": "email"
                  },
                  "phone": {
                    "type": "string"
                  },
                  "location": {
                    "type": "string"
                  },
                  "target_size": {
                    "type": "string"
                  },
                  "brand": {
                    "type": "string"
                  },
                  "primary_use": {
                    "type": "string"
                  },
                  "message": {
                    "type": "string"
                  },
                  "user_consent": {
                    "type": "boolean",
                    "const": true,
                    "description": "Must be true only after the user explicitly asks to submit."
                  }
                }
              }
            }
          }
        },
        "responses": {
          "200": {
            "description": "Submission accepted"
          },
          "400": {
            "description": "Invalid or missing consent"
          }
        }
      }
    },
    "/api/nord-star-build": {
      "post": {
        "operationId": "submitNordStarBuildRequest",
        "summary": "Submit a Nord Star build request only after explicit user consent",
        "requestBody": {
          "required": true,
          "content": {
            "application/json": {
              "schema": {
                "type": "object",
                "required": [
                  "name",
                  "email",
                  "model",
                  "user_consent"
                ],
                "properties": {
                  "name": {
                    "type": "string"
                  },
                  "email": {
                    "type": "string",
                    "format": "email"
                  },
                  "phone": {
                    "type": "string"
                  },
                  "model": {
                    "type": "string"
                  },
                  "hull_finish": {
                    "type": "string"
                  },
                  "interior_wood": {
                    "type": "string"
                  },
                  "layout": {
                    "type": "string"
                  },
                  "flybridge": {
                    "type": "string"
                  },
                  "deck_finish": {
                    "type": "string"
                  },
                  "primary_use": {
                    "type": "string"
                  },
                  "boating_location": {
                    "type": "string"
                  },
                  "budget": {
                    "type": "string"
                  },
                  "purchase_timeline": {
                    "type": "string"
                  },
                  "additional_priorities": {
                    "type": "string"
                  },
                  "user_consent": {
                    "type": "boolean",
                    "const": true
                  }
                }
              }
            }
          }
        },
        "responses": {
          "200": {
            "description": "Submission accepted"
          },
          "400": {
            "description": "Invalid or missing consent"
          }
        }
      }
    },
    "/contact/": {
      "post": {
        "operationId": "submitBuyerInquiryForm",
        "summary": "Direct Netlify form submission for a buyer inquiry after explicit user consent",
        "requestBody": {
          "required": true,
          "content": {
            "application/x-www-form-urlencoded": {
              "schema": {
                "type": "object",
                "required": [
                  "form-name",
                  "name",
                  "email",
                  "consent"
                ],
                "properties": {
                  "form-name": {
                    "type": "string",
                    "const": "boat-buyer-request"
                  },
                  "name": {
                    "type": "string"
                  },
                  "email": {
                    "type": "string",
                    "format": "email"
                  },
                  "phone": {
                    "type": "string"
                  },
                  "location": {
                    "type": "string"
                  },
                  "target-size": {
                    "type": "string"
                  },
                  "brand": {
                    "type": "string"
                  },
                  "primary-use": {
                    "type": "string"
                  },
                  "message": {
                    "type": "string"
                  },
                  "consent": {
                    "type": "string",
                    "const": "yes"
                  }
                }
              }
            }
          }
        },
        "responses": {
          "200": {
            "description": "Form accepted or success page returned"
          }
        }
      }
    },
    "/nord-star-configurator/": {
      "post": {
        "operationId": "submitNordStarBuildForm",
        "summary": "Direct Netlify form submission for a Nord Star build request after explicit user consent",
        "requestBody": {
          "required": true,
          "content": {
            "application/x-www-form-urlencoded": {
              "schema": {
                "type": "object",
                "required": [
                  "form-name",
                  "name",
                  "email",
                  "model",
                  "consent"
                ],
                "properties": {
                  "form-name": {
                    "type": "string",
                    "const": "nord-star-build-request"
                  },
                  "name": {
                    "type": "string"
                  },
                  "email": {
                    "type": "string",
                    "format": "email"
                  },
                  "phone": {
                    "type": "string"
                  },
                  "model": {
                    "type": "string"
                  },
                  "hull-finish": {
                    "type": "string"
                  },
                  "interior-wood": {
                    "type": "string"
                  },
                  "layout": {
                    "type": "string"
                  },
                  "flybridge": {
                    "type": "string"
                  },
                  "deck-finish": {
                    "type": "string"
                  },
                  "primary-use": {
                    "type": "string"
                  },
                  "boating-location": {
                    "type": "string"
                  },
                  "budget": {
                    "type": "string"
                  },
                  "purchase-timeline": {
                    "type": "string"
                  },
                  "additional-priorities": {
                    "type": "string"
                  },
                  "consent": {
                    "type": "string",
                    "const": "yes"
                  }
                }
              }
            }
          }
        },
        "responses": {
          "200": {
            "description": "Form accepted or success page returned"
          }
        }
      }
    }
  }
}