{
  "openapi": "3.1.0",
  "info": {
    "title": "Broteenz™ Public & Agent Edge API",
    "version": "1.0.0",
    "description": "Cloudflare Edge API for Broteenz™ High-Performance Cereal"
  },
  "servers": [
    {
      "url": "https://broteenz.com",
      "description": "Production Cloudflare Edge"
    }
  ],
  "paths": {
    "/api/subscribe": {
      "post": {
        "summary": "Register subscriber for Batch 001 Secret Drop",
        "requestBody": {
          "required": true,
          "content": {
            "application/json": {
              "schema": {
                "type": "object",
                "properties": {
                  "email": {
                    "type": "string",
                    "format": "email"
                  }
                },
                "required": [
                  "email"
                ]
              }
            }
          }
        },
        "responses": {
          "200": {
            "description": "VIP clearance granted",
            "content": {
              "application/json": {
                "schema": {
                  "type": "object",
                  "properties": {
                    "status": {
                      "type": "string"
                    },
                    "vipCode": {
                      "type": "string"
                    },
                    "email": {
                      "type": "string"
                    }
                  }
                }
              }
            }
          }
        }
      }
    },
    "/api/health": {
      "get": {
        "summary": "Health and latency check",
        "responses": {
          "200": {
            "description": "API is healthy",
            "content": {
              "application/json": {
                "schema": {
                  "type": "object",
                  "properties": {
                    "status": {
                      "type": "string"
                    },
                    "timestamp": {
                      "type": "string"
                    },
                    "edge_region": {
                      "type": "string"
                    }
                  }
                }
              }
            }
          }
        }
      }
    }
  }
}