{
  "openapi": "3.1.0",
  "info": {
    "title": "LiquidSMARTS Public Agent API",
    "version": "1.0.0",
    "description": "Public, no-auth endpoints for LiquidSMARTS agentic discovery and consent-gated contact submission."
  },
  "servers": [
    {
      "url": "https://liquidsmarts.com"
    }
  ],
  "paths": {
    "/api/mcp": {
      "get": {
        "operationId": "getSiteCatalog",
        "summary": "Get public LiquidSMARTS agent catalog",
        "responses": {
          "200": {
            "description": "Agent catalog JSON"
          }
        }
      }
    },
    "/api/contact": {
      "get": {
        "operationId": "getContactHealth",
        "summary": "Check contact endpoint availability",
        "responses": {
          "200": {
            "description": "Endpoint status"
          }
        }
      },
      "post": {
        "operationId": "submitContactRequest",
        "summary": "Submit a contact request after explicit user consent",
        "description": "Side-effecting endpoint. Only call after the human user asks LiquidSMARTS to contact them. Captures privacy-safe attribution breadcrumbs; do not submit PHI, patient data, confidential commercial data, guessed contact details, cookies, or raw IP addresses.",
        "requestBody": {
          "required": true,
          "content": {
            "application/json": {
              "schema": {
                "type": "object",
                "required": [
                  "name",
                  "email",
                  "company"
                ],
                "properties": {
                  "name": {
                    "type": "string"
                  },
                  "email": {
                    "type": "string",
                    "format": "email"
                  },
                  "company": {
                    "type": "string"
                  },
                  "role": {
                    "type": "string"
                  },
                  "challenge": {
                    "type": "string"
                  },
                  "source": {
                    "type": "string",
                    "default": "Agentic Website Interaction"
                  },
                  "attribution": {
                    "type": "object",
                    "description": "Optional, privacy-safe breadcrumb metadata captured by the LiquidSMARTS contact form. Agents may provide equivalent public-source context after explicit human consent.",
                    "properties": {
                      "capturedAt": {
                        "type": "string",
                        "format": "date-time"
                      },
                      "pageUrl": {
                        "type": "string",
                        "format": "uri"
                      },
                      "path": {
                        "type": "string"
                      },
                      "referrer": {
                        "type": "string"
                      },
                      "landingPage": {
                        "type": "string"
                      },
                      "title": {
                        "type": "string"
                      },
                      "timezone": {
                        "type": "string"
                      },
                      "locale": {
                        "type": "string"
                      },
                      "viewport": {
                        "type": "string"
                      },
                      "screen": {
                        "type": "string"
                      },
                      "devicePixelRatio": {
                        "type": "number"
                      },
                      "sessionId": {
                        "type": "string",
                        "description": "Anonymous per-session identifier; not a cookie or persistent user identifier."
                      },
                      "utm": {
                        "type": "object",
                        "additionalProperties": {
                          "type": "string"
                        }
                      },
                      "clickIds": {
                        "type": "object",
                        "additionalProperties": {
                          "type": "string"
                        }
                      }
                    }
                  },
                  "agent": {
                    "type": "object",
                    "description": "Optional metadata for agent-assisted submissions. If name or provider is supplied, userConsent must be true.",
                    "properties": {
                      "name": {
                        "type": "string"
                      },
                      "provider": {
                        "type": "string"
                      },
                      "userConsent": {
                        "type": "boolean"
                      },
                      "sourceUrl": {
                        "type": "string"
                      },
                      "task": {
                        "type": "string"
                      }
                    }
                  }
                }
              }
            }
          }
        },
        "responses": {
          "200": {
            "description": "Contact request accepted"
          },
          "400": {
            "description": "Missing or invalid required fields"
          },
          "500": {
            "description": "Contact request failed"
          }
        }
      }
    }
  }
}
