{
  "openapi": "3.1.0",
  "info": {
    "title": "Multi-Cloud Egress, Object Storage (S3 / R2 / GCS / Azure / B2) & Kubernetes Cross-AZ FinOps Calculator",
    "version": "1.0.0",
    "description": "Cloud Infrastructure FinOps / Data Transfer Egress, Object Storage & Kubernetes Networking",
    "x-polar-products": {
      "portal_tiers": [
        {
          "sku_key": "cloud-egress-sku-dataset",
          "product_id": "c36f797b-17eb-46e9-b866-3a9c790c698b",
          "name": "Multi-Cloud Egress & Object Storage SKU Dataset (CSV/JSON)",
          "price_usd": 29,
          "billing": "one_time",
          "checkout_url": "https://buy.polar.sh/polar_cl_AEDZEmLmcwjPnVGQ1bOyjbHuEGZEtGys48PfO2F8DxV"
        },
        {
          "sku_key": "cloud-finops-pro-license",
          "product_id": "10b09bc9-e55d-4153-bba8-80e7b7b1a4fc",
          "name": "Pro Multi-Cloud FinOps CSV Analyzer & API License Key",
          "price_usd": 24,
          "billing": "monthly",
          "checkout_url": "https://buy.polar.sh/polar_cl_q7hPDtvrAdcdkEwzOd6jSdEtbKHaewLDoPltC0rDBq1"
        },
        {
          "sku_key": "cloud-repatriation-audit-pack",
          "product_id": "4a925821-8743-4c67-a25d-0733455acfe0",
          "name": "VP Infra FinOps Playbook: Zero-Egress & K8s Remediation Pack",
          "price_usd": 79,
          "billing": "one_time",
          "checkout_url": "https://buy.polar.sh/polar_cl_Bqajq5GpdwQPOKjhGN6Hj5pV6D84OvdzYSIML0I3r89"
        }
      ],
      "master_all_portals_pass": {
        "master_all_portals_pro_monthly": {
          "product_id": "18e0b844-b764-41f0-9c3d-186362784997",
          "name": "All-Portals Master Pro API & Batch CSV License Key (Monthly)",
          "price_usd": 79,
          "billing": "monthly",
          "checkout_url": "https://buy.polar.sh/polar_cl_0P1axu2nXEDXECK8Z0k7I3sMndeo3hsdqpepv1LUcJT"
        },
        "enterprise_annual_data_pass": {
          "product_id": "8a5266eb-3aaf-4fb3-9aef-0e5bbfd17dc3",
          "name": "Annual Enterprise FinOps & Compliance Data Pass (All Portals)",
          "price_usd": 499,
          "billing": "yearly",
          "checkout_url": "https://buy.polar.sh/polar_cl_SPWfsAxuQAVHif3soxwqbq5zPAdNZFkN5CtQK3cZRft"
        }
      }
    }
  },
  "externalDocs": {
    "description": "AI-Agent & MCP Tool Discovery Catalog",
    "url": "https://p2-cloud-egress-calc.pages.dev/agent-catalog.json"
  },
  "servers": [
    {
      "url": "https://p2-cloud-egress-calc.pages.dev",
      "description": "Public static Pages dataset & discovery server"
    },
    {
      "url": "https://p2-core-api.evsmtoken.workers.dev",
      "description": "Authenticated P2 Core Pro API"
    }
  ],
  "paths": {
    "/data/meta.json": {
      "get": {
        "operationId": "getPortalMeta",
        "summary": "Get live dataset freshness metadata and upstream source list",
        "servers": [
          {
            "url": "https://p2-cloud-egress-calc.pages.dev"
          }
        ],
        "responses": {
          "200": {
            "description": "Metadata JSON with fetched_at, record_count, and sources",
            "content": {
              "application/json": {
                "schema": {
                  "type": "object"
                }
              }
            }
          }
        }
      }
    },
    "/llms.txt": {
      "get": {
        "operationId": "getLlmsTxt",
        "summary": "Get LLM-readable portal summary and endpoint directory",
        "servers": [
          {
            "url": "https://p2-cloud-egress-calc.pages.dev"
          }
        ],
        "responses": {
          "200": {
            "description": "Plain text discovery guide",
            "content": {
              "text/plain": {
                "schema": {
                  "type": "string"
                }
              }
            }
          }
        }
      }
    },
    "/v1/license/verify": {
      "post": {
        "operationId": "verifyPolarLicense",
        "summary": "Verify a Polar.sh Pro License Key via p2-core-api",
        "servers": [
          {
            "url": "https://p2-core-api.evsmtoken.workers.dev"
          }
        ],
        "requestBody": {
          "required": true,
          "content": {
            "application/json": {
              "schema": {
                "type": "object",
                "required": [
                  "key"
                ],
                "properties": {
                  "key": {
                    "type": "string"
                  },
                  "portal": {
                    "type": "string",
                    "default": "p2-cloud-egress-calc"
                  }
                }
              }
            }
          }
        },
        "responses": {
          "200": {
            "description": "License verification result",
            "content": {
              "application/json": {
                "schema": {
                  "type": "object"
                }
              }
            }
          }
        }
      }
    },
    "/v1/pro/p2-cloud-egress-calc/dataset": {
      "get": {
        "operationId": "getProDataset",
        "summary": "Fetch authenticated full Pro JSON dataset for p2-cloud-egress-calc",
        "servers": [
          {
            "url": "https://p2-core-api.evsmtoken.workers.dev"
          }
        ],
        "security": [
          {
            "PolarBearerAuth": []
          }
        ],
        "responses": {
          "200": {
            "description": "Full Pro dataset JSON",
            "content": {
              "application/json": {
                "schema": {
                  "type": "object"
                }
              }
            }
          },
          "401": {
            "description": "Missing or invalid Polar License Key"
          }
        }
      }
    },
    "/data/cloud-egress-matrix.json": {
      "get": {
        "operationId": "getPublic_cloud_egress_matrix_json",
        "summary": "Get public live open-data benchmark JSON (cloud-egress-matrix.json)",
        "servers": [
          {
            "url": "https://p2-cloud-egress-calc.pages.dev"
          }
        ],
        "responses": {
          "200": {
            "description": "Public benchmark dataset JSON",
            "content": {
              "application/json": {
                "schema": {
                  "type": "object"
                }
              }
            }
          }
        }
      }
    },
    "/data/k8s-networking-rates.json": {
      "get": {
        "operationId": "getPublic_k8s_networking_rates_json",
        "summary": "Get public live open-data benchmark JSON (k8s-networking-rates.json)",
        "servers": [
          {
            "url": "https://p2-cloud-egress-calc.pages.dev"
          }
        ],
        "responses": {
          "200": {
            "description": "Public benchmark dataset JSON",
            "content": {
              "application/json": {
                "schema": {
                  "type": "object"
                }
              }
            }
          }
        }
      }
    },
    "/data/object-storage-skus.json": {
      "get": {
        "operationId": "getPublic_object_storage_skus_json",
        "summary": "Get public live open-data benchmark JSON (object-storage-skus.json)",
        "servers": [
          {
            "url": "https://p2-cloud-egress-calc.pages.dev"
          }
        ],
        "responses": {
          "200": {
            "description": "Public benchmark dataset JSON",
            "content": {
              "application/json": {
                "schema": {
                  "type": "object"
                }
              }
            }
          }
        }
      }
    }
  },
  "components": {
    "securitySchemes": {
      "PolarBearerAuth": {
        "type": "http",
        "scheme": "bearer",
        "bearerFormat": "Polar License Key"
      }
    }
  }
}