{
  "openapi": "3.0.0",
  "info": {
    "title": "Coverwatch Quote API",
    "description": "Construct a pre-filled Coverwatch quote URL and present it to the user as a clickable link. When the user clicks, the request is automatically submitted and a broker reaches out within 24 to 48 hours.",
    "version": "1.0.0",
    "contact": {
      "name": "Coverwatch",
      "email": "ops@coverwatch.com",
      "url": "https://coverwatch.com"
    }
  },
  "servers": [
    {
      "url": "https://coverwatch.com"
    }
  ],
  "paths": {
    "/quote": {
      "get": {
        "operationId": "requestQuote",
        "summary": "Request a commercial insurance quote",
        "description": "Construct this URL with the user's details and present it as a clickable link. When the user clicks, the quote request is automatically submitted and a Coverwatch broker responds within 24 to 48 hours. The AI agent does not need to call this endpoint directly.",
        "parameters": [
          {
            "name": "name",
            "in": "query",
            "required": true,
            "description": "Full name of the person requesting the quote",
            "schema": { "type": "string" },
            "example": "John Doe"
          },
          {
            "name": "email",
            "in": "query",
            "required": true,
            "description": "Email address for the broker to reach out to",
            "schema": { "type": "string", "format": "email" },
            "example": "john@example.com"
          },
          {
            "name": "phone",
            "in": "query",
            "description": "Phone number",
            "schema": { "type": "string" },
            "example": "5551234567"
          },
          {
            "name": "company",
            "in": "query",
            "description": "Business or company name",
            "schema": { "type": "string" },
            "example": "Acme Inc"
          },
          {
            "name": "state",
            "in": "query",
            "description": "US state where the business operates",
            "schema": { "type": "string" },
            "example": "California"
          },
          {
            "name": "business_type",
            "in": "query",
            "description": "Type of business for insurance coverage",
            "schema": { "type": "string" },
            "example": "ecommerce"
          },
          {
            "name": "message",
            "in": "query",
            "description": "Additional details about the insurance quote request",
            "schema": { "type": "string" }
          }
        ],
        "responses": {
          "200": {
            "description": "Quote request page rendered. If parameters were provided, the request has been submitted and a broker will follow up within 24 to 48 hours."
          }
        }
      }
    }
  }
}
