{
  "openapi": "3.1.0",
  "info": {
    "title": "Air-Cargo & Aviation Jet-A1 Fuel, ReFuelEU SAF Blending Mandate, EU ETS & ICAO CORSIA Cost Calculator",
    "version": "1.0.0",
    "description": "Aviation & Air-Freight FinOps / Jet-A1 Fuel Burn, ReFuelEU SAF/e-SAF Mandate, EU ETS Aviation & CORSIA Carbon TCO",
    "x-polar-products": {
      "portal_tiers": [
        {
          "sku_key": "aviation_saf_corsia_dataset",
          "product_id": "3f385269-2bc2-4340-8611-aba0cc34835d",
          "name": "ReFuelEU SAF Schedule, Freighter Burn & FL340 Wind Dataset",
          "price_usd": 39,
          "billing": "one_time",
          "checkout_url": "https://buy.polar.sh/polar_cl_5PCi48dtOOVocBUHqK9jogLN9caambzoyNqxN1kpkKi"
        },
        {
          "sku_key": "aviation_fuel_desk_pro_license",
          "product_id": "e270fb25-4460-4ea8-ab7f-44cc9084ddc7",
          "name": "Pro Air-Cargo SAF, EU ETS & CORSIA Batch API License Key",
          "price_usd": 29,
          "billing": "month",
          "checkout_url": "https://buy.polar.sh/polar_cl_JABqoNPjkXqQPeBEECmDg4Hi1XwB8lbDicA7u2w1rkw"
        },
        {
          "sku_key": "airline_forwarder_saf_rfp_pack",
          "product_id": "26328032-6bac-4b9f-a37b-bcdb9d7b11ec",
          "name": "Air-Cargo & Aviation SAF Book-and-Claim Procurement Pack",
          "price_usd": 99,
          "billing": "one_time",
          "checkout_url": "https://buy.polar.sh/polar_cl_SsaeHTg8Q0lDGZdX1UgQTrGxiYKi5SYOJenQ616vs8h"
        }
      ],
      "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-saf-corsia-aviation-calc.pages.dev/agent-catalog.json"
  },
  "servers": [
    {
      "url": "https://p2-saf-corsia-aviation-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-saf-corsia-aviation-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-saf-corsia-aviation-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-saf-corsia-aviation-calc"
                  }
                }
              }
            }
          }
        },
        "responses": {
          "200": {
            "description": "License verification result",
            "content": {
              "application/json": {
                "schema": {
                  "type": "object"
                }
              }
            }
          }
        }
      }
    },
    "/v1/pro/p2-saf-corsia-aviation-calc/dataset": {
      "get": {
        "operationId": "getProDataset",
        "summary": "Fetch authenticated full Pro JSON dataset for p2-saf-corsia-aviation-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/aviation-saf-corsia-matrix.json": {
      "get": {
        "operationId": "getPublic_aviation_saf_corsia_matrix_json",
        "summary": "Get public live open-data benchmark JSON (aviation-saf-corsia-matrix.json)",
        "servers": [
          {
            "url": "https://p2-saf-corsia-aviation-calc.pages.dev"
          }
        ],
        "responses": {
          "200": {
            "description": "Public benchmark dataset JSON",
            "content": {
              "application/json": {
                "schema": {
                  "type": "object"
                }
              }
            }
          }
        }
      }
    },
    "/data/fl340-hub-winds-and-cargo.json": {
      "get": {
        "operationId": "getPublic_fl340_hub_winds_and_cargo_json",
        "summary": "Get public live open-data benchmark JSON (fl340-hub-winds-and-cargo.json)",
        "servers": [
          {
            "url": "https://p2-saf-corsia-aviation-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"
      }
    }
  }
}