{
  "openapi": "3.0.3",
  "info": {
    "title": "Brehnor Communications public API",
    "description": "Public HTTP endpoints for this site. This specification describes only the public contact form endpoint; it is not an OAuth 2.0 or OpenID Connect API—there are no access tokens, and this host does not publish /.well-known/openid-configuration or /.well-known/oauth-authorization-server. The contact endpoint is protected by bot verification (Vercel Bot Protection) in production. For OAuth 2.0 protected resource metadata (RFC 9728), see /.well-known/oauth-protected-resource.",
    "version": "1.0.0"
  },
  "servers": [
    {
      "url": "https://brehnorcomms.com"
    }
  ],
  "paths": {
    "/api/contact": {
      "post": {
        "summary": "Submit the contact form",
        "description": "Accepts form data from the public contact form. Requests must pass automated bot verification when the site is deployed with Bot Protection.",
        "operationId": "postContact",
        "requestBody": {
          "required": true,
          "content": {
            "application/x-www-form-urlencoded": {
              "schema": {
                "type": "object",
                "required": ["firstName", "lastName", "email", "message"],
                "properties": {
                  "firstName": { "type": "string" },
                  "lastName": { "type": "string" },
                  "email": {
                    "type": "string",
                    "format": "email"
                  },
                  "phone": { "type": "string" },
                  "message": { "type": "string" }
                }
              }
            },
            "multipart/form-data": {
              "schema": {
                "type": "object",
                "required": ["firstName", "lastName", "email", "message"],
                "properties": {
                  "firstName": { "type": "string" },
                  "lastName": { "type": "string" },
                  "email": {
                    "type": "string",
                    "format": "email"
                  },
                  "phone": { "type": "string" },
                  "message": { "type": "string" }
                }
              }
            }
          }
        },
        "responses": {
          "200": {
            "description": "Submission accepted",
            "content": {
              "application/json": {
                "schema": {
                  "type": "object",
                  "properties": {
                    "success": { "type": "boolean" },
                    "message": { "type": "string" }
                  }
                }
              }
            }
          },
          "400": {
            "description": "Validation error (missing fields or invalid email)"
          },
          "403": {
            "description": "Request failed bot verification"
          },
          "500": {
            "description": "Server error"
          }
        }
      }
    }
  }
}
