{
  "openapi": "3.1.0",
  "info": {
    "title": "PanelPass API",
    "version": "1.0.0",
    "description": "PanelPass computes US residential electrical service load calculations (NEC Article 220, Article 120 in NEC 2026) for permits: standard method, optional 220.82, existing dwelling 220.83, metered demand 220.87 and EMS/PCS. Use find_code_edition to learn which NEC edition a city enforces, then calculate_load with the home's square footage, service rating and appliance nameplates. Every result includes an openInPanelPass link: give it to the user so they can review the calculation and download a free permit-ready PDF.\n\nFree, no key required. Please keep to a few requests per second. Terms: https://getpanelpass.com/terms"
  },
  "servers": [
    {
      "url": "https://getpanelpass.com"
    }
  ],
  "paths": {
    "/api/v1/calculate": {
      "post": {
        "operationId": "calculateLoad",
        "summary": "Calculate a dwelling service load (all NEC methods)",
        "requestBody": {
          "required": true,
          "content": {
            "application/json": {
              "schema": {
                "$schema": "https://json-schema.org/draft/2020-12/schema",
                "type": "object",
                "properties": {
                  "title": {
                    "type": "string",
                    "maxLength": 200
                  },
                  "address": {
                    "type": "string",
                    "maxLength": 300
                  },
                  "city": {
                    "description": "City or county, used to pick the code edition",
                    "type": "string",
                    "maxLength": 120
                  },
                  "state": {
                    "description": "US state: two-letter code (TX) or full name (Texas)",
                    "type": "string",
                    "maxLength": 40
                  },
                  "edition": {
                    "description": "Force an NEC edition (2014, 2017, 2020, 2023, 2026) instead of detecting it from state/city",
                    "anyOf": [
                      {
                        "type": "number",
                        "const": 2014
                      },
                      {
                        "type": "number",
                        "const": 2017
                      },
                      {
                        "type": "number",
                        "const": 2020
                      },
                      {
                        "type": "number",
                        "const": 2023
                      },
                      {
                        "type": "number",
                        "const": 2026
                      }
                    ]
                  },
                  "project": {
                    "default": "existing",
                    "description": "existing = adding loads to an existing home; new = sizing a new service",
                    "type": "string",
                    "enum": [
                      "existing",
                      "new"
                    ]
                  },
                  "serviceAmps": {
                    "default": 100,
                    "description": "Existing (or proposed) service / main breaker rating in amps",
                    "type": "number",
                    "exclusiveMinimum": 0,
                    "maximum": 4000
                  },
                  "voltage": {
                    "default": 240,
                    "anyOf": [
                      {
                        "type": "number",
                        "const": 240
                      },
                      {
                        "type": "number",
                        "const": 208
                      }
                    ]
                  },
                  "squareFeet": {
                    "type": "number",
                    "exclusiveMinimum": 0,
                    "maximum": 200000,
                    "description": "Living area in ft², outside dimensions; excludes open porches and unfinished space"
                  },
                  "attachedGarageSqFt": {
                    "type": "number",
                    "minimum": 0,
                    "maximum": 50000
                  },
                  "smallApplianceCircuits": {
                    "description": "Kitchen 20 A small-appliance circuits (min 2)",
                    "type": "integer",
                    "minimum": 2,
                    "maximum": 50
                  },
                  "laundryCircuits": {
                    "type": "integer",
                    "minimum": 0,
                    "maximum": 10
                  },
                  "appliances": {
                    "default": [],
                    "description": "Main dwelling's fixed appliances",
                    "maxItems": 100,
                    "type": "array",
                    "items": {
                      "type": "object",
                      "properties": {
                        "kind": {
                          "type": "string",
                          "enum": [
                            "range",
                            "cooktop",
                            "wall-oven",
                            "dryer",
                            "water-heater",
                            "dishwasher",
                            "disposal",
                            "microwave",
                            "trash-compactor",
                            "evse",
                            "hot-tub",
                            "pool-pump",
                            "pool-heater",
                            "well-pump",
                            "sump-pump",
                            "attic-fan",
                            "sauna",
                            "other-fixed",
                            "other-motor"
                          ],
                          "description": "Appliance type. Use evse for an EV charger, other-fixed for anything fastened in place not listed."
                        },
                        "label": {
                          "description": "Name shown in the report, e.g. 'Tesla Wall Connector'",
                          "type": "string",
                          "maxLength": 80
                        },
                        "watts": {
                          "description": "Nameplate rating of one unit in watts (VA). Give watts, or amps (+ volts).",
                          "type": "number",
                          "exclusiveMinimum": 0,
                          "maximum": 500000
                        },
                        "amps": {
                          "description": "Nameplate amps of one unit, used with volts when watts is not known",
                          "type": "number",
                          "exclusiveMinimum": 0,
                          "maximum": 2000
                        },
                        "volts": {
                          "description": "Voltage for amps (default: the service voltage, 240 or 208)",
                          "type": "number",
                          "exclusiveMinimum": 0,
                          "maximum": 600
                        },
                        "quantity": {
                          "default": 1,
                          "type": "integer",
                          "minimum": 1,
                          "maximum": 100
                        },
                        "status": {
                          "default": "existing",
                          "description": "existing = already on the service, new = added by this job, removed = taken out by this job",
                          "type": "string",
                          "enum": [
                            "existing",
                            "new",
                            "removed"
                          ]
                        },
                        "evseSettingAmps": {
                          "description": "EV charger only: restricted-access adjustable setting in amps (NEC 625.42(B))",
                          "type": "number",
                          "exclusiveMinimum": 0,
                          "maximum": 400
                        },
                        "evseManaged": {
                          "description": "EV charger only: controlled by a listed EV energy management system (EVEMS)",
                          "type": "boolean"
                        },
                        "pcsControlled": {
                          "description": "NEC 2026 120.7: controlled by the whole-home power control system (see emsMode)",
                          "type": "boolean"
                        },
                        "pcsMinAmps": {
                          "description": "Minimum operating current the power control system allows for this load (0 if it can switch it off)",
                          "type": "number",
                          "minimum": 0,
                          "maximum": 1000
                        },
                        "isMotor": {
                          "description": "Counts toward the largest-motor 25% adder (defaults by kind)",
                          "type": "boolean"
                        },
                        "shareGroup": {
                          "description": "Appliances with the same shareGroup are on a listed circuit-sharing device (e.g. EV charger + dryer) and never run together; only the larger counts",
                          "type": "string",
                          "maxLength": 40
                        }
                      },
                      "required": [
                        "kind"
                      ],
                      "additionalProperties": false
                    }
                  },
                  "hvac": {
                    "default": [],
                    "description": "Main dwelling's heating and cooling",
                    "maxItems": 50,
                    "type": "array",
                    "items": {
                      "type": "object",
                      "properties": {
                        "kind": {
                          "type": "string",
                          "enum": [
                            "central-ac",
                            "heat-pump",
                            "mini-split",
                            "electric-furnace",
                            "baseboard",
                            "wall-heater",
                            "radiant",
                            "thermal-storage",
                            "gas-furnace-blower"
                          ],
                          "description": "central-ac, heat-pump, mini-split, electric-furnace, baseboard, wall-heater, radiant, thermal-storage, or gas-furnace-blower"
                        },
                        "label": {
                          "type": "string",
                          "maxLength": 80
                        },
                        "status": {
                          "default": "existing",
                          "description": "existing = already on the service, new = added by this job, removed = taken out by this job",
                          "type": "string",
                          "enum": [
                            "existing",
                            "new",
                            "removed"
                          ]
                        },
                        "quantity": {
                          "default": 1,
                          "type": "integer",
                          "minimum": 1,
                          "maximum": 100
                        },
                        "coolingWatts": {
                          "description": "AC or heat pump compressor + condenser fan, watts (RLA + fan FLA × volts)",
                          "type": "number",
                          "minimum": 0,
                          "maximum": 500000
                        },
                        "heatWatts": {
                          "description": "Resistance heat in watts: heat pump backup strips, furnace element, or baseboard total",
                          "type": "number",
                          "minimum": 0,
                          "maximum": 500000
                        },
                        "blowerWatts": {
                          "description": "Indoor blower / air handler motor, watts",
                          "type": "number",
                          "minimum": 0,
                          "maximum": 100000
                        },
                        "separatelyControlledUnits": {
                          "description": "Baseboard/wall heaters: number of separately controlled units (thermostats)",
                          "type": "integer",
                          "minimum": 1,
                          "maximum": 500
                        },
                        "compressorRunsWithStrips": {
                          "description": "Heat pumps: false if controls lock out the compressor while strips run",
                          "type": "boolean"
                        },
                        "pcsControlled": {
                          "description": "NEC 2026 120.7: controlled by the whole-home power control system (see emsMode)",
                          "type": "boolean"
                        },
                        "pcsMinAmps": {
                          "description": "Minimum operating current the power control system allows for this unit",
                          "type": "number",
                          "minimum": 0,
                          "maximum": 1000
                        }
                      },
                      "required": [
                        "kind"
                      ],
                      "additionalProperties": false
                    }
                  },
                  "units": {
                    "default": [],
                    "description": "Other dwelling units on the same service: ADU, duplex or triplex units. 3+ dwellings also get the 220.84 multifamily method; each unit's feeder is sized.",
                    "maxItems": 9,
                    "type": "array",
                    "items": {
                      "type": "object",
                      "properties": {
                        "label": {
                          "description": "e.g. ADU, Unit B (default: ADU for one extra unit, otherwise Unit B, Unit C...)",
                          "type": "string",
                          "maxLength": 80
                        },
                        "status": {
                          "default": "new",
                          "description": "new = being added by this job (e.g. a new ADU)",
                          "type": "string",
                          "enum": [
                            "existing",
                            "new"
                          ]
                        },
                        "squareFeet": {
                          "type": "number",
                          "exclusiveMinimum": 0,
                          "maximum": 50000
                        },
                        "smallApplianceCircuits": {
                          "type": "integer",
                          "minimum": 2,
                          "maximum": 20
                        },
                        "laundryCircuits": {
                          "description": "0 if the unit uses shared laundry",
                          "type": "integer",
                          "minimum": 0,
                          "maximum": 5
                        },
                        "appliances": {
                          "default": [],
                          "maxItems": 50,
                          "type": "array",
                          "items": {
                            "type": "object",
                            "properties": {
                              "kind": {
                                "type": "string",
                                "enum": [
                                  "range",
                                  "cooktop",
                                  "wall-oven",
                                  "dryer",
                                  "water-heater",
                                  "dishwasher",
                                  "disposal",
                                  "microwave",
                                  "trash-compactor",
                                  "evse",
                                  "hot-tub",
                                  "pool-pump",
                                  "pool-heater",
                                  "well-pump",
                                  "sump-pump",
                                  "attic-fan",
                                  "sauna",
                                  "other-fixed",
                                  "other-motor"
                                ],
                                "description": "Appliance type. Use evse for an EV charger, other-fixed for anything fastened in place not listed."
                              },
                              "label": {
                                "description": "Name shown in the report, e.g. 'Tesla Wall Connector'",
                                "type": "string",
                                "maxLength": 80
                              },
                              "watts": {
                                "description": "Nameplate rating of one unit in watts (VA). Give watts, or amps (+ volts).",
                                "type": "number",
                                "exclusiveMinimum": 0,
                                "maximum": 500000
                              },
                              "amps": {
                                "description": "Nameplate amps of one unit, used with volts when watts is not known",
                                "type": "number",
                                "exclusiveMinimum": 0,
                                "maximum": 2000
                              },
                              "volts": {
                                "description": "Voltage for amps (default: the service voltage, 240 or 208)",
                                "type": "number",
                                "exclusiveMinimum": 0,
                                "maximum": 600
                              },
                              "quantity": {
                                "default": 1,
                                "type": "integer",
                                "minimum": 1,
                                "maximum": 100
                              },
                              "status": {
                                "default": "existing",
                                "description": "existing = already on the service, new = added by this job, removed = taken out by this job",
                                "type": "string",
                                "enum": [
                                  "existing",
                                  "new",
                                  "removed"
                                ]
                              },
                              "evseSettingAmps": {
                                "description": "EV charger only: restricted-access adjustable setting in amps (NEC 625.42(B))",
                                "type": "number",
                                "exclusiveMinimum": 0,
                                "maximum": 400
                              },
                              "evseManaged": {
                                "description": "EV charger only: controlled by a listed EV energy management system (EVEMS)",
                                "type": "boolean"
                              },
                              "pcsControlled": {
                                "description": "NEC 2026 120.7: controlled by the whole-home power control system (see emsMode)",
                                "type": "boolean"
                              },
                              "pcsMinAmps": {
                                "description": "Minimum operating current the power control system allows for this load (0 if it can switch it off)",
                                "type": "number",
                                "minimum": 0,
                                "maximum": 1000
                              },
                              "isMotor": {
                                "description": "Counts toward the largest-motor 25% adder (defaults by kind)",
                                "type": "boolean"
                              },
                              "shareGroup": {
                                "description": "Appliances with the same shareGroup are on a listed circuit-sharing device (e.g. EV charger + dryer) and never run together; only the larger counts",
                                "type": "string",
                                "maxLength": 40
                              }
                            },
                            "required": [
                              "kind"
                            ],
                            "additionalProperties": false
                          }
                        },
                        "hvac": {
                          "default": [],
                          "maxItems": 20,
                          "type": "array",
                          "items": {
                            "type": "object",
                            "properties": {
                              "kind": {
                                "type": "string",
                                "enum": [
                                  "central-ac",
                                  "heat-pump",
                                  "mini-split",
                                  "electric-furnace",
                                  "baseboard",
                                  "wall-heater",
                                  "radiant",
                                  "thermal-storage",
                                  "gas-furnace-blower"
                                ],
                                "description": "central-ac, heat-pump, mini-split, electric-furnace, baseboard, wall-heater, radiant, thermal-storage, or gas-furnace-blower"
                              },
                              "label": {
                                "type": "string",
                                "maxLength": 80
                              },
                              "status": {
                                "default": "existing",
                                "description": "existing = already on the service, new = added by this job, removed = taken out by this job",
                                "type": "string",
                                "enum": [
                                  "existing",
                                  "new",
                                  "removed"
                                ]
                              },
                              "quantity": {
                                "default": 1,
                                "type": "integer",
                                "minimum": 1,
                                "maximum": 100
                              },
                              "coolingWatts": {
                                "description": "AC or heat pump compressor + condenser fan, watts (RLA + fan FLA × volts)",
                                "type": "number",
                                "minimum": 0,
                                "maximum": 500000
                              },
                              "heatWatts": {
                                "description": "Resistance heat in watts: heat pump backup strips, furnace element, or baseboard total",
                                "type": "number",
                                "minimum": 0,
                                "maximum": 500000
                              },
                              "blowerWatts": {
                                "description": "Indoor blower / air handler motor, watts",
                                "type": "number",
                                "minimum": 0,
                                "maximum": 100000
                              },
                              "separatelyControlledUnits": {
                                "description": "Baseboard/wall heaters: number of separately controlled units (thermostats)",
                                "type": "integer",
                                "minimum": 1,
                                "maximum": 500
                              },
                              "compressorRunsWithStrips": {
                                "description": "Heat pumps: false if controls lock out the compressor while strips run",
                                "type": "boolean"
                              },
                              "pcsControlled": {
                                "description": "NEC 2026 120.7: controlled by the whole-home power control system (see emsMode)",
                                "type": "boolean"
                              },
                              "pcsMinAmps": {
                                "description": "Minimum operating current the power control system allows for this unit",
                                "type": "number",
                                "minimum": 0,
                                "maximum": 1000
                              }
                            },
                            "required": [
                              "kind"
                            ],
                            "additionalProperties": false
                          }
                        }
                      },
                      "required": [
                        "squareFeet"
                      ],
                      "additionalProperties": false
                    }
                  },
                  "meteredPeakKw": {
                    "description": "Highest 15-minute demand (kW) from 12 months of utility data, for NEC 220.87",
                    "type": "number",
                    "exclusiveMinimum": 0,
                    "maximum": 10000
                  },
                  "meteredSource": {
                    "type": "string",
                    "enum": [
                      "utility-12mo",
                      "recording-30day"
                    ]
                  },
                  "hasSolarOrBattery": {
                    "type": "boolean"
                  },
                  "emsSetpointAmps": {
                    "description": "Whole-home energy management / power control system setpoint (2023 220.70, 2026 120.7); at most 80% of the service rating",
                    "type": "number",
                    "exclusiveMinimum": 0,
                    "maximum": 4000
                  },
                  "emsMode": {
                    "description": "NEC 2026 120.7(C) only. all-loads: the system controls every load, so the setting is the load. service (default): it monitors the service and controls the loads marked pcsControlled, which count at pcsMinAmps; the rest is calculated normally. controlled-only: it monitors only the pcsControlled loads, which count at the setting.",
                    "type": "string",
                    "enum": [
                      "all-loads",
                      "service",
                      "controlled-only"
                    ]
                  },
                  "emsMonitoredBreakerAmps": {
                    "description": "Rating of the breaker the power control system monitors (defaults to the service rating)",
                    "type": "number",
                    "exclusiveMinimum": 0,
                    "maximum": 4000
                  },
                  "options": {
                    "description": "AHJ-specific calculation options",
                    "type": "object",
                    "properties": {
                      "largestMotorAdder": {
                        "description": "Add 25% of the largest motor in the standard method (default true)",
                        "type": "boolean"
                      },
                      "evseContinuous125": {
                        "description": "Count EV chargers at 125% as continuous loads (some AHJs require this)",
                        "type": "boolean"
                      },
                      "evseOptionalAt100": {
                        "description": "2014-2023 optional method: EV chargers at 100% outside the 40% (some AHJs)",
                        "type": "boolean"
                      },
                      "existingNewHvacAt100": {
                        "description": "2026 120.83: new A/C or heat pump at 100% instead of 50% (some AHJs)",
                        "type": "boolean"
                      },
                      "roundAmps": {
                        "description": "Round to the nearest ampere per 220.5(B) before pass/fail (default true)",
                        "type": "boolean"
                      }
                    },
                    "additionalProperties": false
                  },
                  "includeLines": {
                    "default": false,
                    "description": "Include every calculation line with its NEC reference",
                    "type": "boolean"
                  }
                },
                "required": [
                  "squareFeet"
                ],
                "additionalProperties": false
              }
            }
          }
        },
        "responses": {
          "200": {
            "description": "Result with verdict, methods, recommendations and an openInPanelPass link",
            "content": {
              "application/json": {
                "schema": {
                  "type": "object",
                  "properties": {
                    "verdict": {
                      "type": "string",
                      "description": "Plain-language result"
                    },
                    "passes": {
                      "type": [
                        "boolean",
                        "null"
                      ],
                      "description": "null for new construction (sizing)"
                    },
                    "edition": {
                      "type": "integer",
                      "enum": [
                        2014,
                        2017,
                        2020,
                        2023,
                        2026
                      ]
                    },
                    "code": {
                      "type": "string",
                      "description": "Code and jurisdiction applied"
                    },
                    "codeSource": {
                      "type": "string",
                      "enum": [
                        "requested",
                        "city",
                        "state",
                        "default"
                      ]
                    },
                    "serviceAmps": {
                      "type": "number"
                    },
                    "requiredServiceAmps": {
                      "type": "number"
                    },
                    "best": {
                      "type": "object",
                      "properties": {
                        "method": {
                          "type": "string"
                        },
                        "title": {
                          "type": "string"
                        },
                        "reference": {
                          "type": "string"
                        },
                        "amps": {
                          "type": "number"
                        },
                        "roundedAmps": {
                          "type": "number"
                        },
                        "totalVA": {
                          "type": "number"
                        }
                      }
                    },
                    "methods": {
                      "type": "array",
                      "items": {
                        "type": "object"
                      }
                    },
                    "recommendations": {
                      "type": "array",
                      "items": {
                        "type": "object",
                        "properties": {
                          "title": {
                            "type": "string"
                          },
                          "detail": {
                            "type": "string"
                          }
                        }
                      }
                    },
                    "unitFeeders": {
                      "type": "array",
                      "items": {
                        "type": "object"
                      }
                    },
                    "whatFits": {
                      "type": "array",
                      "description": "Existing service that passes: the largest common new load of each type that still fits on top of the job (EV charger setting in A with its circuit breaker, heat pump in tons, others in kW). fits=false means even the smallest size fails.",
                      "items": {
                        "type": "object",
                        "properties": {
                          "id": {
                            "type": "string",
                            "enum": [
                              "evse",
                              "heat-pump",
                              "range",
                              "tankless",
                              "hpwh",
                              "hot-tub",
                              "dryer"
                            ]
                          },
                          "fits": {
                            "type": "boolean"
                          },
                          "size": {
                            "type": "number"
                          },
                          "unit": {
                            "type": "string",
                            "enum": [
                              "A",
                              "ton",
                              "kW"
                            ]
                          },
                          "circuitAmps": {
                            "type": "number"
                          },
                          "amps": {
                            "type": "number",
                            "description": "Calculated load with it added, best passing method"
                          },
                          "method": {
                            "type": "string"
                          }
                        }
                      }
                    },
                    "meteredPeakBudgetKw": {
                      "type": "number"
                    },
                    "serviceConductors": {
                      "type": "object"
                    },
                    "jurisdictionNotes": {
                      "type": "array",
                      "items": {
                        "type": "string"
                      }
                    },
                    "cityLoadCalcForm": {
                      "type": "string"
                    },
                    "openInPanelPass": {
                      "type": "string",
                      "description": "Link that opens this calculation in PanelPass (review + free permit PDF)"
                    },
                    "note": {
                      "type": "string"
                    }
                  },
                  "required": [
                    "verdict",
                    "edition",
                    "code",
                    "best",
                    "methods",
                    "recommendations",
                    "openInPanelPass"
                  ]
                }
              }
            }
          },
          "400": {
            "description": "Invalid input",
            "content": {
              "application/json": {
                "schema": {
                  "type": "object",
                  "properties": {
                    "error": {
                      "type": "string"
                    }
                  }
                }
              }
            }
          }
        }
      }
    },
    "/api/v1/jurisdiction": {
      "get": {
        "operationId": "findCodeEdition",
        "summary": "NEC edition for a US state or city",
        "parameters": [
          {
            "name": "state",
            "in": "query",
            "required": true,
            "schema": {
              "type": "string",
              "minLength": 2,
              "maxLength": 2
            }
          },
          {
            "name": "city",
            "in": "query",
            "required": false,
            "schema": {
              "type": "string"
            }
          }
        ],
        "responses": {
          "200": {
            "description": "Edition, local code, notes and links"
          }
        }
      }
    },
    "/api/v1/rules": {
      "get": {
        "operationId": "necEditionRules",
        "summary": "What an NEC edition changes for dwelling load calculations",
        "parameters": [
          {
            "name": "edition",
            "in": "query",
            "required": true,
            "schema": {
              "type": "integer",
              "enum": [
                2014,
                2017,
                2020,
                2023,
                2026
              ]
            }
          }
        ],
        "responses": {
          "200": {
            "description": "Highlights"
          }
        }
      }
    }
  }
}