{
  "openapi": "3.0.2",
  "info": {
    "title": "Precipitation & Weather Data API",
    "description": "An API for accessing extremely accurate precipitation, soil moisture, and weather data. Provides historical observations and forecasts with flexible geographic and temporal querying capabilities.",
    "version": "1.0.0",
    "contact": {
      "name": "API Support",
      "url": "https://precip.ai",
      "email": "team@getprecip.com"
    },
    "termsOfService": "https://precip.ai/terms"
  },
  "servers": [
    {
      "url": "https://api.precip.ai"
    }
  ],
  "security": [
    {
      "ApiKeyQuery": []
    },
    {
      "BearerAuth": []
    }
  ],
  "tags": [
    {
      "name": "Forecast",
      "description": "Single-call weather forecast with hourly and daily values",
      "x-order": 0
    },
    {
      "name": "Precipitation Data",
      "description": "Endpoints for retrieving precipitation measurements and forecasts",
      "x-order": 1
    },
    {
      "name": "Soil Data",
      "description": "Endpoints for soil moisture and temperature data",
      "x-order": 2
    },
    {
      "name": "Atmospheric Data",
      "description": "Endpoints for hourly atmospheric variables: temperature, humidity, pressure, wind, clouds",
      "x-order": 3
    },
    {
      "name": "Bulk Export",
      "description": "Bulk data export for multiple locations",
      "x-order": 4
    },
    {
      "name": "Map Services",
      "description": "Map tile and visualization services",
      "x-order": 5
    },
    {
      "name": "Embed Widgets",
      "description": "Embeddable UI components for web integration",
      "x-order": 6
    },
    {
      "name": "MCP Servers",
      "description": "Model Context Protocol server endpoints for AI tool integration",
      "x-order": 7
    },
    {
      "name": "Account & Organizations",
      "description": "Inspect your API plan capabilities and manage organizations",
      "x-order": 8
    },
    {
      "name": "Saved Locations",
      "description": "Read, add, and delete the locations saved in your Precip account or organization",
      "x-order": 9
    },
    {
      "name": "Alert Rules",
      "description": "Create and manage threshold alert rules for your organization. Rules created via the API are webhook-only by default (`delivery_medium: \"webhook\"`) and deliver signed `threshold_rule.triggered` events to every enabled webhook endpoint on the organization (`POST /api/v1/webhooks`) whose `ruleIds` is `null` or includes the rule's `id`. They also appear in the Precip app with a Webhook badge, where organization admins can optionally add mobile push or email notifications for team members.",
      "x-order": 10
    },
    {
      "name": "Webhooks",
      "description": "Get a signed HTTPS request when a threshold rule of your organization fires",
      "x-order": 11
    },
    {
      "name": "Pay-per-use (x402)",
      "description": "Pay-per-use endpoints using the x402 protocol (no API key required)",
      "x-order": 12
    }
  ],
  "paths": {
    "/api/v1/daily": {
      "get": {
        "summary": "Daily Precipitation Data",
        "description": "Returns comprehensive daily precipitation data for the given time range and location(s). Each day includes precipitation amount, type (rain/snow/mixed), probability (for forecasts), and data source. Seamlessly combines historical observations with forecast data depending on the requested time range.",
        "operationId": "daily_v1_api_v1_daily_get",
        "tags": [
          "Precipitation Data"
        ],
        "x-order": 1,
        "parameters": [
          {
            "name": "start",
            "in": "query",
            "required": true,
            "schema": {
              "type": "string",
              "description": "ISO 8601 date `%Y-%m-%d` or datetime `%Y-%m-%dT%H:%M:%S`",
              "title": "Start",
              "example": "2024-01-04",
              "default": "2024-01-04"
            }
          },
          {
            "name": "end",
            "in": "query",
            "required": true,
            "schema": {
              "title": "End",
              "type": "string",
              "description": "ISO 8601 date `%Y-%m-%d` or datetime `%Y-%m-%dT%H:%M:%S`",
              "example": "2024-02-04",
              "default": "2024-02-04"
            }
          },
          {
            "name": "longitude",
            "in": "query",
            "required": true,
            "schema": {
              "type": "string",
              "example": "-122.42616",
              "description": "Longitude (WGS84). Personal API: one value. Commercial keys may pass a comma-separated list.",
              "title": "Longitude",
              "default": "-122.42616"
            },
            "example": "-122.42616"
          },
          {
            "name": "latitude",
            "in": "query",
            "required": true,
            "schema": {
              "type": "string",
              "example": "37.75750",
              "description": "Latitude (WGS84). Personal API: one value. Commercial keys may pass a comma-separated list.",
              "title": "Latitude",
              "default": "37.75750"
            },
            "example": "37.75750"
          },
          {
            "name": "timeZoneId",
            "in": "query",
            "required": false,
            "schema": {
              "type": "string",
              "description": "IANA timezone identifier e.g. `America/Chicago`",
              "title": "Timezoneid",
              "default": "America/Chicago"
            }
          },
          {
            "name": "format",
            "in": "query",
            "required": false,
            "schema": {
              "type": "string",
              "enum": [
                "geojson",
                "json",
                "csv"
              ],
              "description": "Output format: `geojson`, `json` or `csv`",
              "default": "geojson",
              "title": "Format"
            }
          }
        ],
        "responses": {
          "200": {
            "description": "Daily precipitation data successfully retrieved",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/FeatureCollection_DailyProperties_"
                }
              }
            }
          },
          "400": {
            "description": "Bad Request - Invalid parameters",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                }
              }
            }
          },
          "422": {
            "description": "Validation Error - Parameter validation failed",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/HTTPValidationError"
                }
              }
            }
          },
          "500": {
            "description": "Internal Server Error",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                }
              }
            }
          }
        }
      }
    },
    "/api/v1/hourly": {
      "get": {
        "summary": "Hourly Precipitation Data",
        "description": "Returns comprehensive hourly precipitation data for the given time range and location(s). Each hour includes precipitation amount, type (rain/snow/mixed), probability (for forecasts), and data source. Seamlessly combines historical observations with forecast data depending on the requested time range.",
        "operationId": "hourly_api_v1_hourly_get",
        "tags": [
          "Precipitation Data"
        ],
        "x-order": 2,
        "parameters": [
          {
            "name": "start",
            "in": "query",
            "required": true,
            "schema": {
              "type": "string",
              "description": "ISO 8601 date `%Y-%m-%d` or datetime `%Y-%m-%dT%H:%M:%S`",
              "title": "Start",
              "example": "2024-01-04",
              "default": "2024-01-04"
            }
          },
          {
            "name": "end",
            "in": "query",
            "required": true,
            "schema": {
              "type": "string",
              "description": "ISO 8601 date `%Y-%m-%d` or datetime `%Y-%m-%dT%H:%M:%S`",
              "title": "End",
              "example": "2024-02-04",
              "default": "2024-02-04"
            }
          },
          {
            "name": "longitude",
            "in": "query",
            "required": true,
            "schema": {
              "type": "string",
              "example": "-122.42616",
              "description": "Longitude (WGS84). Personal API: one value. Commercial keys may pass a comma-separated list.",
              "title": "Longitude",
              "default": "-122.42616"
            },
            "example": "-122.42616"
          },
          {
            "name": "latitude",
            "in": "query",
            "required": true,
            "schema": {
              "type": "string",
              "example": "37.75750",
              "description": "Latitude (WGS84). Personal API: one value. Commercial keys may pass a comma-separated list.",
              "title": "Latitude",
              "default": "37.75750"
            },
            "example": "37.75750"
          },
          {
            "name": "timeZoneId",
            "in": "query",
            "required": false,
            "schema": {
              "type": "string",
              "description": "IANA timezone identifier e.g. `America/Chicago`",
              "title": "Timezoneid",
              "default": "America/Chicago"
            }
          },
          {
            "name": "format",
            "in": "query",
            "required": false,
            "schema": {
              "type": "string",
              "enum": [
                "geojson",
                "json",
                "csv"
              ],
              "description": "Output format: `geojson`, `json` or `csv`",
              "default": "geojson",
              "title": "Format"
            }
          }
        ],
        "responses": {
          "200": {
            "description": "Successful Response",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/FeatureCollection_HourlyProperties_"
                }
              }
            }
          },
          "422": {
            "description": "Validation Error",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/HTTPValidationError"
                }
              }
            }
          }
        }
      }
    },
    "/api/v1/minutely": {
      "get": {
        "summary": "Minutely Precipitation Rate",
        "description": "Returns 1-minute precipitation rate for the given time range and location(s). Historical minutes come from radar analysis available from 2026-01-01). Recent gaps and the next 60 minutes are filled from the Precip AI nowcast interpolated to minute timesteps. Each minute includes instantaneous rate (mm/h), precipitation type joined from hourly analysis/forecast, and a source of `observation`, `nowcast`, or `forecast`. Default window is `now-1h` to `now+1h`. Maximum span is 7 days.",
        "operationId": "minutely_api_v1_minutely_get",
        "tags": [
          "Precipitation Data"
        ],
        "x-order": 3,
        "parameters": [
          {
            "name": "start",
            "in": "query",
            "required": false,
            "schema": {
              "type": "string",
              "description": "ISO 8601 date `%Y-%m-%d` or datetime `%Y-%m-%dT%H:%M:%S`, or relative `now-1h`. Snapped to the UTC minute. Defaults to `now-1h` when both `start` and `end` are omitted.",
              "title": "Start",
              "example": "now-1h"
            }
          },
          {
            "name": "end",
            "in": "query",
            "required": false,
            "schema": {
              "type": "string",
              "description": "ISO 8601 date `%Y-%m-%d` or datetime `%Y-%m-%dT%H:%M:%S`, or relative `now+1h`. Snapped to the UTC minute. Defaults to `now+1h` when both `start` and `end` are omitted. Maximum `end - start` is 7 days.",
              "title": "End",
              "example": "now+1h"
            }
          },
          {
            "name": "longitude",
            "in": "query",
            "required": true,
            "schema": {
              "type": "string",
              "example": "-122.42616",
              "description": "Longitude (WGS84). Personal API: one value. Commercial keys may pass a comma-separated list.",
              "title": "Longitude",
              "default": "-122.42616"
            },
            "example": "-122.42616"
          },
          {
            "name": "latitude",
            "in": "query",
            "required": true,
            "schema": {
              "type": "string",
              "example": "37.75750",
              "description": "Latitude (WGS84). Personal API: one value. Commercial keys may pass a comma-separated list.",
              "title": "Latitude",
              "default": "37.75750"
            },
            "example": "37.75750"
          },
          {
            "name": "timeZoneId",
            "in": "query",
            "required": false,
            "schema": {
              "type": "string",
              "description": "IANA timezone identifier e.g. `America/Chicago`",
              "title": "Timezoneid",
              "default": "America/Chicago"
            }
          },
          {
            "name": "format",
            "in": "query",
            "required": false,
            "schema": {
              "type": "string",
              "enum": [
                "geojson",
                "json",
                "csv"
              ],
              "description": "Output format: `geojson`, `json` or `csv`",
              "default": "geojson",
              "title": "Format"
            }
          },
          {
            "name": "units",
            "in": "query",
            "required": false,
            "schema": {
              "type": "string",
              "enum": [
                "metric",
                "imperial"
              ],
              "description": "Display system: `metric` (mm/h, default) or `imperial` (in/h)",
              "default": "metric",
              "title": "Units"
            }
          }
        ],
        "responses": {
          "200": {
            "description": "Minutely precipitation rate successfully retrieved",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/FeatureCollection_MinutelyProperties_"
                }
              }
            }
          },
          "400": {
            "description": "Bad Request - Invalid parameters",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                }
              }
            }
          },
          "422": {
            "description": "Validation Error",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/HTTPValidationError"
                }
              }
            }
          }
        }
      }
    },
    "/api/v1/last-{hours}": {
      "get": {
        "summary": "Last N Hours Precipitation Data",
        "description": "Total precipitation in the last N hours for the given location(s). Use `12`, `24`, `48`, or `168` (7 days) in the path.",
        "operationId": "last_n_hours_api_v1_last_hours_get",
        "tags": [
          "Precipitation Data"
        ],
        "x-order": 4,
        "parameters": [
          {
            "name": "hours",
            "in": "path",
            "required": true,
            "description": "Number of hours: 12, 24, 48, or 168 (7 days).",
            "schema": {
              "type": "string",
              "enum": [
                "12",
                "24",
                "48",
                "168"
              ],
              "example": "48"
            }
          },
          {
            "name": "longitude",
            "in": "query",
            "required": true,
            "schema": {
              "type": "string",
              "example": "-122.42616",
              "description": "Longitude (WGS84). Personal API: one value. Commercial keys may pass a comma-separated list.",
              "title": "Longitude",
              "default": "-122.42616"
            },
            "example": "-122.42616"
          },
          {
            "name": "latitude",
            "in": "query",
            "required": true,
            "schema": {
              "type": "string",
              "example": "37.75750",
              "description": "Latitude (WGS84). Personal API: one value. Commercial keys may pass a comma-separated list.",
              "title": "Latitude",
              "default": "37.75750"
            },
            "example": "37.75750"
          },
          {
            "name": "timeZoneId",
            "in": "query",
            "required": false,
            "schema": {
              "type": "string",
              "description": "IANA timezone identifier e.g. `America/Chicago`",
              "title": "Timezoneid",
              "default": "America/Chicago"
            }
          },
          {
            "name": "format",
            "in": "query",
            "required": false,
            "schema": {
              "type": "string",
              "enum": [
                "geojson",
                "json",
                "csv"
              ],
              "description": "Output format: `geojson`, `json` or `csv`",
              "default": "geojson",
              "title": "Format"
            }
          }
        ],
        "responses": {
          "200": {
            "description": "Successful Response",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/FeatureCollection_Last48Properties_"
                }
              }
            }
          },
          "422": {
            "description": "Validation Error",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/HTTPValidationError"
                }
              }
            }
          }
        }
      }
    },
    "/api/v1/recent-rain": {
      "get": {
        "summary": "Recent Rain Event",
        "description": "Returns detailed information about the most recent precipitation event for the given location(s), including total amounts, precipitation type (rain/snow), timing, and how long ago it occurred.",
        "operationId": "recent_rain_v1_api_v1_recent_rain_get",
        "tags": [
          "Precipitation Data"
        ],
        "x-order": 5,
        "parameters": [
          {
            "name": "longitude",
            "in": "query",
            "required": true,
            "schema": {
              "type": "string",
              "example": "-122.42616",
              "description": "Longitude (WGS84). Personal API: one value. Commercial keys may pass a comma-separated list.",
              "title": "Longitude",
              "default": "-122.42616"
            },
            "example": "-122.42616"
          },
          {
            "name": "latitude",
            "in": "query",
            "required": true,
            "schema": {
              "type": "string",
              "example": "37.75750",
              "description": "Latitude (WGS84). Personal API: one value. Commercial keys may pass a comma-separated list.",
              "title": "Latitude",
              "default": "37.75750"
            },
            "example": "37.75750"
          },
          {
            "name": "timeZoneId",
            "in": "query",
            "required": false,
            "schema": {
              "type": "string",
              "description": "IANA timezone identifier e.g. `America/Chicago`",
              "title": "Timezoneid",
              "default": "America/Chicago"
            }
          },
          {
            "name": "format",
            "in": "query",
            "required": false,
            "schema": {
              "type": "string",
              "enum": [
                "geojson",
                "json",
                "csv"
              ],
              "description": "Output format: `geojson`, `json` or `csv`",
              "default": "geojson",
              "title": "Format"
            }
          }
        ],
        "responses": {
          "200": {
            "description": "Recent rain event data successfully retrieved",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/FeatureCollection_RecentRainProperties_"
                }
              }
            }
          },
          "400": {
            "description": "Bad Request - Invalid parameters",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                }
              }
            }
          },
          "404": {
            "description": "No recent rain events found for the specified location(s)",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                }
              }
            }
          },
          "422": {
            "description": "Validation Error - Parameter validation failed",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/HTTPValidationError"
                }
              }
            }
          },
          "500": {
            "description": "Internal Server Error",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                }
              }
            }
          }
        }
      }
    },
    "/api/v1/map/{serviceName}/ImageServer/tile/{z}/{y}/{x}": {
      "get": {
        "summary": "Map Layer Tiles",
        "tags": [
          "Map Services"
        ],
        "description": "256×256 Web Mercator (EPSG:3857) raster map tiles compatible with Mapbox GL JS, MapLibre, Leaflet, OpenLayers, Google Maps, ArcGIS, and QGIS.\n\n**Important:** Coordinate order is **`{z}/{y}/{x}`** (`y` row before `x` column), not `{z}/{x}/{y}`. Tiles default to `image/webp`; pass `format=png` if your client requires PNG (sub-hourly nowcast layers `precip-rate%2F2min` and `precip-rate-v2%2F5min` support `webp` only). Each tile request counts as 1 API request. See [Map Tiles & Layers](/map-tiles) for client examples and native zoom levels.",
        "parameters": [
          {
            "name": "Authorization",
            "in": "header",
            "required": false,
            "description": "API key as Bearer token. Use this or the `apiKey` query parameter.",
            "schema": {
              "type": "string",
              "example": "Bearer YOUR_API_KEY"
            }
          },
          {
            "name": "apiKey",
            "in": "query",
            "required": false,
            "description": "API key as a query parameter for browser maps, ArcGIS, and GIS clients that cannot send custom headers.",
            "schema": {
              "type": "string",
              "example": "YOUR_API_KEY"
            }
          },
          {
            "name": "serviceName",
            "in": "path",
            "required": true,
            "schema": {
              "$ref": "#/components/schemas/ServiceName"
            }
          },
          {
            "name": "z",
            "in": "path",
            "required": true,
            "description": "Zoom level (native max zoom is 7 for rolling/nowcast layers and 8 for hourly/daily/2-min radar layers).",
            "schema": {
              "type": "integer",
              "example": 4
            }
          },
          {
            "name": "y",
            "in": "path",
            "required": true,
            "description": "Tile row (`y`). Note that `y` comes before `x` in the path.",
            "schema": {
              "type": "integer",
              "example": 6
            }
          },
          {
            "name": "x",
            "in": "path",
            "required": true,
            "description": "Tile column (`x`).",
            "schema": {
              "type": "integer",
              "example": 3
            }
          },
          {
            "name": "format",
            "in": "query",
            "required": false,
            "description": "Image encoding: `webp` (default) or `png` (`png`, `png24`, `png32`). Sub-hourly nowcast layers (`precip-rate%2F2min`, `precip-rate-v2%2F5min`) return `501` for PNG.",
            "schema": {
              "type": "string",
              "enum": [
                "webp",
                "png"
              ],
              "default": "webp"
            }
          },
          {
            "name": "time",
            "in": "query",
            "required": false,
            "description": "Unix timestamp in **milliseconds** for time-enabled layers: single timestamp (`1760529600000`) or comma-separated range (`1760400000000,1760572800000`, up to 192 steps). Ignored on rolling layers (`last-*`, `next-*`, `mtd`, `ytd`).",
            "schema": {
              "type": "string",
              "example": "1760400000000,1760572800000"
            }
          },
          {
            "name": "mosaicRule",
            "in": "query",
            "required": false,
            "description": "Optional JSON aggregation over a `time` range, e.g. `{\"mosaicOperation\":\"MT_SUM\"}` (`MT_SUM`, `MT_MEAN`, `MT_MIN`, `MT_MAX`, `MT_FIRST`, `MT_LAST`). Defaults to sum for precipitation layers and mean for other variables.",
            "schema": {
              "type": "string"
            }
          },
          {
            "$ref": "#/components/parameters/UnitsParam"
          },
          {
            "$ref": "#/components/parameters/UnitParam"
          },
          {
            "name": "mask",
            "in": "query",
            "required": false,
            "description": "Optional region mask (`na` for North America or `none`).",
            "schema": {
              "type": "string",
              "enum": [
                "na",
                "none"
              ]
            }
          },
          {
            "name": "renderingRule",
            "in": "query",
            "required": false,
            "description": "Optional JSON Esri Colormap rule (`{\"rasterFunction\":\"Colormap\",\"rasterFunctionArguments\":{\"colorMap\":[[value,r,g,b,a],...]}}`, with `r,g,b,a` in `0..1`) to override the default layer color ramp.",
            "schema": {
              "type": "string"
            }
          }
        ],
        "responses": {
          "200": {
            "description": "Rendered 256×256 raster tile (transparent when outside data extent)",
            "content": {
              "image/webp": {
                "schema": {
                  "type": "string",
                  "format": "binary"
                }
              },
              "image/png": {
                "schema": {
                  "type": "string",
                  "format": "binary"
                }
              }
            }
          }
        },
        "operationId": "a346ccc4-a550-4c70-9768-69079b20bace",
        "x-internal": false
      }
    },
    "/api/v1/map/{serviceName}/ImageServer/getSamples": {
      "get": {
        "summary": "Sample Map Layer at Points",
        "tags": [
          "Map Services"
        ],
        "description": "Sample raster layer values at one or more WGS84 points using Esri `esriGeometryMultipoint` JSON.\n\nSupported on **time-series layers** (`hourly`, `precip-hourly`, `daily`, `precip-daily`, `temperature-hourly`, `wind-speed-hourly`, `precip-rate%2F2min`, etc.) and static `polaris` soil layers. Rolling rollup layers (`last-12`, `last-24`, `last-48`, `last-168`, `next-*`, `mtd`, `ytd`) return `404` here — use the standard point-query endpoints (`/api/v1/last-48`, `/api/v1/daily`, `/api/v1/hourly`) instead.",
        "parameters": [
          {
            "name": "Authorization",
            "in": "header",
            "required": false,
            "description": "API key as Bearer token. Use this or the `apiKey` query parameter.",
            "schema": {
              "type": "string",
              "example": "Bearer YOUR_API_KEY"
            }
          },
          {
            "name": "apiKey",
            "in": "query",
            "required": false,
            "description": "API key as a query parameter.",
            "schema": {
              "type": "string",
              "example": "YOUR_API_KEY"
            }
          },
          {
            "name": "serviceName",
            "in": "path",
            "required": true,
            "schema": {
              "$ref": "#/components/schemas/ServiceName"
            }
          },
          {
            "name": "geometry",
            "in": "query",
            "required": true,
            "description": "URL-encoded Esri MultiPoint JSON (`wkid: 4326`).",
            "schema": {
              "type": "object",
              "example": {
                "points": [
                  [
                    -97.06138,
                    32.837
                  ],
                  [
                    -97.06133,
                    32.836
                  ]
                ],
                "spatialReference": {
                  "wkid": 4326
                }
              }
            }
          },
          {
            "name": "geometryType",
            "in": "query",
            "required": true,
            "description": "Must be `esriGeometryMultipoint`.",
            "schema": {
              "type": "string",
              "enum": [
                "esriGeometryMultipoint"
              ],
              "default": "esriGeometryMultipoint"
            }
          },
          {
            "name": "time",
            "in": "query",
            "required": false,
            "description": "Unix timestamp in milliseconds (`<startMs>` or `<startMs>,<endMs>`). Alternatively use `start` and `end` in ISO 8601 format.",
            "schema": {
              "type": "string",
              "example": "1760400000000,1760486400000"
            }
          },
          {
            "name": "start",
            "in": "query",
            "required": false,
            "description": "Optional ISO 8601 start timestamp (alternative to `time`).",
            "schema": {
              "type": "string",
              "example": "2026-10-14T00:00:00Z"
            }
          },
          {
            "name": "end",
            "in": "query",
            "required": false,
            "description": "Optional ISO 8601 end timestamp (alternative to `time`).",
            "schema": {
              "type": "string",
              "example": "2026-10-15T00:00:00Z"
            }
          },
          {
            "$ref": "#/components/parameters/UnitsParam"
          },
          {
            "$ref": "#/components/parameters/UnitParam"
          }
        ],
        "responses": {
          "200": {
            "description": "Successful Response",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/GetSamples_Response"
                }
              }
            }
          }
        },
        "operationId": "2475fbd8-e8d7-44a0-beab-c4a7dc4b9117",
        "x-internal": false
      }
    },
    "/api/v1/map/{serviceName}/ImageServer/legend": {
      "get": {
        "summary": "Layer Legend Swatches",
        "description": "Returns color swatches (base64 PNGs) and formatted labels for the layer colormap. Each entry in `layers` includes `unit` (e.g. `inches`, `mm`, `fahrenheit`, `celsius`) alongside `legend`. Defaults to **imperial** units; pass `units=metric` or `unit=…` to change.",
        "parameters": [
          {
            "name": "Authorization",
            "in": "header",
            "required": false,
            "description": "API key as Bearer token. Use this or the apiKey query parameter (required for ArcGIS).",
            "schema": {
              "type": "string",
              "example": "Bearer YOUR_API_KEY"
            }
          },
          {
            "name": "apiKey",
            "in": "query",
            "required": false,
            "description": "API key as query parameter for ArcGIS and other clients that cannot send headers.",
            "schema": {
              "type": "string",
              "example": "YOUR_API_KEY"
            }
          },
          {
            "name": "serviceName",
            "in": "path",
            "required": true,
            "schema": {
              "$ref": "#/components/schemas/ServiceName"
            }
          },
          {
            "$ref": "#/components/parameters/UnitsParam"
          },
          {
            "$ref": "#/components/parameters/UnitParam"
          },
          {
            "name": "renderingRule",
            "in": "query",
            "required": false,
            "description": "Optional JSON Esri Colormap rule; returns swatches for your custom color ramp.",
            "schema": {
              "type": "string"
            }
          }
        ],
        "responses": {
          "200": {
            "description": "Legend JSON with `layers[].unit` and `layers[].legend`",
            "content": {
              "application/json": {
                "schema": {
                  "type": "object",
                  "properties": {
                    "layers": {
                      "type": "array",
                      "items": {
                        "type": "object",
                        "properties": {
                          "unit": {
                            "type": "string",
                            "enum": [
                              "fahrenheit",
                              "celsius",
                              "inches",
                              "mm",
                              "m/s",
                              "percent"
                            ]
                          },
                          "legend": {
                            "type": "array",
                            "items": {
                              "type": "object",
                              "properties": {
                                "label": {
                                  "type": "string"
                                }
                              }
                            }
                          }
                        }
                      }
                    }
                  }
                }
              }
            }
          }
        },
        "operationId": "aeb24a93-be7b-4554-bf79-375396936b31",
        "x-internal": false,
        "tags": [
          "Map Services"
        ]
      }
    },
    "/api/v1/map/{serviceName}/ImageServer/colors.json": {
      "get": {
        "summary": "Layer Colormap Stops",
        "description": "Returns raw RGBA colormap stops (`value`, `r`, `g`, `b`, `a`) for building custom legends or client-side shaders. Defaults to storage/metric values unless `units=imperial|metric` or `unit=…` is provided.",
        "parameters": [
          {
            "name": "Authorization",
            "in": "header",
            "required": false,
            "description": "API key as Bearer token. Use this or the `apiKey` query parameter.",
            "schema": {
              "type": "string",
              "example": "Bearer YOUR_API_KEY"
            }
          },
          {
            "name": "apiKey",
            "in": "query",
            "required": false,
            "description": "API key as a query parameter.",
            "schema": {
              "type": "string",
              "example": "YOUR_API_KEY"
            }
          },
          {
            "name": "serviceName",
            "in": "path",
            "required": true,
            "schema": {
              "$ref": "#/components/schemas/ServiceName"
            }
          },
          {
            "$ref": "#/components/parameters/UnitsParam"
          },
          {
            "$ref": "#/components/parameters/UnitParam"
          },
          {
            "name": "renderingRule",
            "in": "query",
            "required": false,
            "description": "Optional JSON Esri Colormap rule to inspect custom stops.",
            "schema": {
              "type": "string"
            }
          }
        ],
        "responses": {
          "200": {
            "description": "Colormap stops JSON",
            "content": {
              "application/json": {
                "schema": {
                  "type": "object",
                  "properties": {
                    "unit": {
                      "type": "string",
                      "description": "Present when `units` or `unit` is specified."
                    },
                    "stops": {
                      "type": "array",
                      "items": {
                        "type": "object",
                        "properties": {
                          "value": {
                            "type": "number"
                          },
                          "r": {
                            "type": "integer"
                          },
                          "g": {
                            "type": "integer"
                          },
                          "b": {
                            "type": "integer"
                          },
                          "a": {
                            "type": "integer"
                          }
                        }
                      }
                    }
                  }
                }
              }
            }
          }
        },
        "operationId": "3095e73e-33a9-4f40-b850-930f25ad6893",
        "x-internal": false,
        "tags": [
          "Map Services"
        ]
      }
    },
    "/api/v1/soil-moisture-daily": {
      "get": {
        "summary": "Daily Soil Moisture",
        "description": "Daily soil moisture percentage relative to holding capacity at 0-10cm depth",
        "tags": [
          "Soil Data"
        ],
        "x-order": 1,
        "parameters": [
          {
            "name": "start",
            "in": "query",
            "required": true,
            "schema": {
              "type": "string",
              "description": "ISO 8601 date `%Y-%m-%d` or datetime `%Y-%m-%dT%H:%M:%S`",
              "title": "Start",
              "example": "2025-06-01",
              "default": "2025-06-01"
            }
          },
          {
            "name": "end",
            "in": "query",
            "required": true,
            "schema": {
              "title": "End",
              "type": "string",
              "description": "ISO 8601 date `%Y-%m-%d` or datetime `%Y-%m-%dT%H:%M:%S`",
              "example": "2025-06-30",
              "default": "2025-06-30"
            }
          },
          {
            "name": "longitude",
            "in": "query",
            "required": true,
            "schema": {
              "type": "string",
              "example": "-122.42616",
              "description": "Longitude (WGS84). Personal API: one value. Commercial keys may pass a comma-separated list.",
              "title": "Longitude",
              "default": "-122.42616"
            },
            "example": "-122.42616"
          },
          {
            "name": "latitude",
            "in": "query",
            "required": true,
            "schema": {
              "type": "string",
              "example": "37.75750",
              "description": "Latitude (WGS84). Personal API: one value. Commercial keys may pass a comma-separated list.",
              "title": "Latitude",
              "default": "37.75750"
            },
            "example": "37.75750"
          },
          {
            "name": "timeZoneId",
            "in": "query",
            "required": false,
            "schema": {
              "type": "string",
              "description": "IANA timezone identifier e.g. `America/Chicago`",
              "title": "Timezoneid",
              "default": "America/Chicago"
            }
          },
          {
            "name": "format",
            "in": "query",
            "required": false,
            "schema": {
              "type": "string",
              "enum": [
                "geojson",
                "json",
                "csv"
              ],
              "description": "Output format: `geojson`, `json` or `csv`",
              "default": "geojson",
              "title": "Format"
            }
          }
        ],
        "responses": {
          "200": {
            "description": "Successful Response",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/FeatureCollection_DailySoilProperties_"
                }
              }
            }
          },
          "422": {
            "description": "Validation Error",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/HTTPValidationError"
                }
              }
            }
          }
        },
        "operationId": "soil_moisture_daily_get"
      }
    },
    "/api/v1/soil-moisture-hourly": {
      "get": {
        "summary": "Hourly Soil Moisture",
        "description": "Hourly soil moisture percentage relative to holding capacity at 0-10cm depth",
        "tags": [
          "Soil Data"
        ],
        "x-order": 2,
        "parameters": [
          {
            "name": "start",
            "in": "query",
            "required": true,
            "schema": {
              "type": "string",
              "description": "ISO 8601 date `%Y-%m-%d` or datetime `%Y-%m-%dT%H:%M:%S`",
              "title": "Start",
              "example": "2025-06-01",
              "default": "2025-06-01"
            }
          },
          {
            "name": "end",
            "in": "query",
            "required": true,
            "schema": {
              "title": "End",
              "type": "string",
              "description": "ISO 8601 date `%Y-%m-%d` or datetime `%Y-%m-%dT%H:%M:%S`",
              "example": "2025-06-30",
              "default": "2025-06-30"
            }
          },
          {
            "name": "longitude",
            "in": "query",
            "required": true,
            "schema": {
              "type": "string",
              "example": "-122.42616",
              "description": "Longitude (WGS84). Personal API: one value. Commercial keys may pass a comma-separated list.",
              "title": "Longitude",
              "default": "-122.42616"
            },
            "example": "-122.42616"
          },
          {
            "name": "latitude",
            "in": "query",
            "required": true,
            "schema": {
              "type": "string",
              "example": "37.75750",
              "description": "Latitude (WGS84). Personal API: one value. Commercial keys may pass a comma-separated list.",
              "title": "Latitude",
              "default": "37.75750"
            },
            "example": "37.75750"
          },
          {
            "name": "timeZoneId",
            "in": "query",
            "required": false,
            "schema": {
              "type": "string",
              "description": "IANA timezone identifier e.g. `America/Chicago`",
              "title": "Timezoneid",
              "default": "America/Chicago"
            }
          },
          {
            "name": "format",
            "in": "query",
            "required": false,
            "schema": {
              "type": "string",
              "enum": [
                "geojson",
                "json",
                "csv"
              ],
              "description": "Output format: `geojson`, `json` or `csv`",
              "default": "geojson",
              "title": "Format"
            }
          }
        ],
        "responses": {
          "200": {
            "description": "Successful Response",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/FeatureCollection_HourlySoilProperties_"
                }
              }
            }
          },
          "422": {
            "description": "Validation Error",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/HTTPValidationError"
                }
              }
            }
          }
        },
        "operationId": "soil_moisture_hourly_get"
      }
    },
    "/api/v1/temp-0-10cm-hourly": {
      "get": {
        "summary": "Soil Temperature",
        "description": "Hourly soil temperature data at 0-10cm depth in Celsius (°C)",
        "tags": [
          "Soil Data"
        ],
        "x-order": 2,
        "parameters": [
          {
            "name": "start",
            "in": "query",
            "required": true,
            "schema": {
              "type": "string",
              "description": "ISO 8601 date `%Y-%m-%d` or datetime `%Y-%m-%dT%H:%M:%S`",
              "title": "Start",
              "example": "2025-06-01",
              "default": "2025-06-01"
            }
          },
          {
            "name": "end",
            "in": "query",
            "required": true,
            "schema": {
              "title": "End",
              "type": "string",
              "description": "ISO 8601 date `%Y-%m-%d` or datetime `%Y-%m-%dT%H:%M:%S`",
              "example": "2025-06-30",
              "default": "2025-06-30"
            }
          },
          {
            "name": "longitude",
            "in": "query",
            "required": true,
            "schema": {
              "type": "string",
              "pattern": "^-?\\d+(\\.\\d+)?(,-?\\d+(\\.\\d+)?)*$",
              "default": "-122.42616"
            },
            "description": "Longitude (WGS84). Personal API: one value. Commercial keys may pass a comma-separated list.",
            "example": "-122.42616"
          },
          {
            "name": "latitude",
            "in": "query",
            "required": true,
            "schema": {
              "type": "string",
              "pattern": "^-?\\d+(\\.\\d+)?(,-?\\d+(\\.\\d+)?)*$",
              "default": "37.75750"
            },
            "description": "Latitude (WGS84). Personal API: one value. Commercial keys may pass a comma-separated list.",
            "example": "37.75750"
          },
          {
            "name": "timeZoneId",
            "in": "query",
            "required": false,
            "schema": {
              "type": "string",
              "pattern": "^[A-Za-z_]+/[A-Za-z_]+$",
              "default": "America/Chicago"
            },
            "description": "IANA timezone identifier for localizing timestamps",
            "example": "America/Chicago"
          },
          {
            "name": "format",
            "in": "query",
            "required": false,
            "schema": {
              "type": "string",
              "enum": [
                "geojson",
                "json",
                "csv"
              ],
              "description": "Output format: `geojson`, `json` or `csv`",
              "default": "geojson",
              "title": "Format"
            },
            "description": "Output format: `geojson`, `json` or `csv`"
          }
        ],
        "responses": {
          "200": {
            "description": "Successful Response",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/FeatureCollection_HourlySoilTemperatureProperties_"
                }
              }
            }
          },
          "422": {
            "description": "Validation Error",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/HTTPValidationError"
                }
              }
            }
          }
        },
        "operationId": "soil_temperature_hourly_get"
      }
    },
    "/api/v1/snow-depth-daily": {
      "get": {
        "summary": "Snow Depth",
        "description": "Daily snow depth data from SNODAS in millimeters (mm)",
        "tags": [
          "Soil Data"
        ],
        "x-order": 3,
        "parameters": [
          {
            "name": "start",
            "in": "query",
            "required": true,
            "schema": {
              "type": "string",
              "description": "ISO 8601 date `%Y-%m-%d` or datetime `%Y-%m-%dT%H:%M:%S`",
              "title": "Start",
              "example": "2025-06-01",
              "default": "2025-06-01"
            }
          },
          {
            "name": "end",
            "in": "query",
            "required": true,
            "schema": {
              "title": "End",
              "type": "string",
              "description": "ISO 8601 date `%Y-%m-%d` or datetime `%Y-%m-%dT%H:%M:%S`",
              "example": "2025-06-30",
              "default": "2025-06-30"
            }
          },
          {
            "name": "longitude",
            "in": "query",
            "required": true,
            "schema": {
              "type": "string",
              "pattern": "^-?\\d+(\\.\\d+)?(,-?\\d+(\\.\\d+)?)*$",
              "default": "-122.42616"
            },
            "description": "Longitude (WGS84). Personal API: one value. Commercial keys may pass a comma-separated list.",
            "example": "-122.42616"
          },
          {
            "name": "latitude",
            "in": "query",
            "required": true,
            "schema": {
              "type": "string",
              "pattern": "^-?\\d+(\\.\\d+)?(,-?\\d+(\\.\\d+)?)*$",
              "default": "37.75750"
            },
            "description": "Latitude (WGS84). Personal API: one value. Commercial keys may pass a comma-separated list.",
            "example": "37.75750"
          },
          {
            "name": "timeZoneId",
            "in": "query",
            "required": false,
            "schema": {
              "type": "string",
              "pattern": "^[A-Za-z_]+/[A-Za-z_]+$",
              "default": "America/Chicago"
            },
            "description": "IANA timezone identifier for localizing timestamps",
            "example": "America/Chicago"
          },
          {
            "name": "format",
            "in": "query",
            "required": false,
            "schema": {
              "type": "string",
              "enum": [
                "geojson",
                "json",
                "csv"
              ],
              "description": "Output format: `geojson`, `json` or `csv`",
              "default": "geojson",
              "title": "Format"
            },
            "description": "Output format: `geojson`, `json` or `csv`"
          }
        ],
        "responses": {
          "200": {
            "description": "Successful Response",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/FeatureCollection_DailySnowDepthProperties_"
                }
              }
            }
          },
          "422": {
            "description": "Validation Error",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/HTTPValidationError"
                }
              }
            }
          }
        },
        "operationId": "snow_depth_daily_get"
      }
    },
    "/api/v1/temperature-hourly": {
      "get": {
        "summary": "Air Temperature",
        "description": "Hourly near-surface air temperature in Celsius (°C)",
        "tags": [
          "Atmospheric Data"
        ],
        "x-order": 1,
        "parameters": [
          {
            "name": "start",
            "in": "query",
            "required": true,
            "schema": {
              "type": "string",
              "description": "ISO 8601 date `%Y-%m-%d` or datetime `%Y-%m-%dT%H:%M:%S`",
              "title": "Start",
              "example": "2025-06-01",
              "default": "2025-06-01"
            }
          },
          {
            "name": "end",
            "in": "query",
            "required": true,
            "schema": {
              "title": "End",
              "type": "string",
              "description": "ISO 8601 date `%Y-%m-%d` or datetime `%Y-%m-%dT%H:%M:%S`",
              "example": "2025-06-30",
              "default": "2025-06-30"
            }
          },
          {
            "name": "longitude",
            "in": "query",
            "required": true,
            "schema": {
              "type": "string",
              "pattern": "^-?\\d+(\\.\\d+)?(,-?\\d+(\\.\\d+)?)*$",
              "default": "-122.42616"
            },
            "description": "Longitude (WGS84). Personal API: one value. Commercial keys may pass a comma-separated list.",
            "example": "-122.42616"
          },
          {
            "name": "latitude",
            "in": "query",
            "required": true,
            "schema": {
              "type": "string",
              "pattern": "^-?\\d+(\\.\\d+)?(,-?\\d+(\\.\\d+)?)*$",
              "default": "37.75750"
            },
            "description": "Latitude (WGS84). Personal API: one value. Commercial keys may pass a comma-separated list.",
            "example": "37.75750"
          },
          {
            "name": "timeZoneId",
            "in": "query",
            "required": false,
            "schema": {
              "type": "string",
              "pattern": "^[A-Za-z_]+/[A-Za-z_]+$",
              "default": "America/Chicago"
            },
            "description": "IANA timezone identifier for localizing timestamps",
            "example": "America/Chicago"
          },
          {
            "name": "format",
            "in": "query",
            "required": false,
            "schema": {
              "type": "string",
              "enum": [
                "geojson",
                "json",
                "csv"
              ],
              "description": "Output format: `geojson`, `json` or `csv`",
              "default": "geojson",
              "title": "Format"
            },
            "description": "Output format: `geojson`, `json` or `csv`"
          }
        ],
        "responses": {
          "200": {
            "description": "Successful Response",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/FeatureCollection_HourlyTemperatureProperties_"
                }
              }
            }
          },
          "422": {
            "description": "Validation Error",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/HTTPValidationError"
                }
              }
            }
          }
        },
        "operationId": "temperature_hourly_get"
      }
    },
    "/api/v1/specific-humidity-hourly": {
      "get": {
        "summary": "Specific Humidity",
        "description": "Hourly specific humidity (kg/kg)",
        "tags": [
          "Atmospheric Data"
        ],
        "x-order": 2,
        "parameters": [
          {
            "name": "start",
            "in": "query",
            "required": true,
            "schema": {
              "type": "string",
              "description": "ISO 8601 date `%Y-%m-%d` or datetime `%Y-%m-%dT%H:%M:%S`",
              "title": "Start",
              "example": "2025-06-01",
              "default": "2025-06-01"
            }
          },
          {
            "name": "end",
            "in": "query",
            "required": true,
            "schema": {
              "title": "End",
              "type": "string",
              "description": "ISO 8601 date `%Y-%m-%d` or datetime `%Y-%m-%dT%H:%M:%S`",
              "example": "2025-06-30",
              "default": "2025-06-30"
            }
          },
          {
            "name": "longitude",
            "in": "query",
            "required": true,
            "schema": {
              "type": "string",
              "pattern": "^-?\\d+(\\.\\d+)?(,-?\\d+(\\.\\d+)?)*$",
              "default": "-122.42616"
            },
            "description": "Longitude (WGS84). Personal API: one value. Commercial keys may pass a comma-separated list.",
            "example": "-122.42616"
          },
          {
            "name": "latitude",
            "in": "query",
            "required": true,
            "schema": {
              "type": "string",
              "pattern": "^-?\\d+(\\.\\d+)?(,-?\\d+(\\.\\d+)?)*$",
              "default": "37.75750"
            },
            "description": "Latitude (WGS84). Personal API: one value. Commercial keys may pass a comma-separated list.",
            "example": "37.75750"
          },
          {
            "name": "timeZoneId",
            "in": "query",
            "required": false,
            "schema": {
              "type": "string",
              "pattern": "^[A-Za-z_]+/[A-Za-z_]+$",
              "default": "America/Chicago"
            },
            "description": "IANA timezone identifier for localizing timestamps",
            "example": "America/Chicago"
          },
          {
            "name": "format",
            "in": "query",
            "required": false,
            "schema": {
              "type": "string",
              "enum": [
                "geojson",
                "json",
                "csv"
              ],
              "description": "Output format: `geojson`, `json` or `csv`",
              "default": "geojson",
              "title": "Format"
            }
          }
        ],
        "responses": {
          "200": {
            "description": "Successful Response",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/FeatureCollection_HourlySpecificHumidityProperties_"
                }
              }
            }
          },
          "422": {
            "description": "Validation Error",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/HTTPValidationError"
                }
              }
            }
          }
        },
        "operationId": "specific_humidity_hourly_get"
      }
    },
    "/api/v1/relative-humidity-hourly": {
      "get": {
        "summary": "Relative Humidity",
        "description": "Hourly relative humidity as a percentage (0-100%)",
        "tags": [
          "Atmospheric Data"
        ],
        "x-order": 3,
        "parameters": [
          {
            "name": "start",
            "in": "query",
            "required": true,
            "schema": {
              "type": "string",
              "description": "ISO 8601 date `%Y-%m-%d` or datetime `%Y-%m-%dT%H:%M:%S`",
              "title": "Start",
              "example": "2025-10-01",
              "default": "2025-10-01"
            }
          },
          {
            "name": "end",
            "in": "query",
            "required": true,
            "schema": {
              "title": "End",
              "type": "string",
              "description": "ISO 8601 date `%Y-%m-%d` or datetime `%Y-%m-%dT%H:%M:%S`",
              "example": "2025-10-31",
              "default": "2025-10-31"
            }
          },
          {
            "name": "longitude",
            "in": "query",
            "required": true,
            "schema": {
              "type": "string",
              "pattern": "^-?\\d+(\\.\\d+)?(,-?\\d+(\\.\\d+)?)*$",
              "default": "-122.42616"
            },
            "description": "Longitude (WGS84). Personal API: one value. Commercial keys may pass a comma-separated list.",
            "example": "-122.42616"
          },
          {
            "name": "latitude",
            "in": "query",
            "required": true,
            "schema": {
              "type": "string",
              "pattern": "^-?\\d+(\\.\\d+)?(,-?\\d+(\\.\\d+)?)*$",
              "default": "37.75750"
            },
            "description": "Latitude (WGS84). Personal API: one value. Commercial keys may pass a comma-separated list.",
            "example": "37.75750"
          },
          {
            "name": "timeZoneId",
            "in": "query",
            "required": false,
            "schema": {
              "type": "string",
              "pattern": "^[A-Za-z_]+/[A-Za-z_]+$",
              "default": "America/Chicago"
            },
            "description": "IANA timezone identifier for localizing timestamps",
            "example": "America/Chicago"
          },
          {
            "name": "format",
            "in": "query",
            "required": false,
            "schema": {
              "type": "string",
              "enum": [
                "geojson",
                "json",
                "csv"
              ],
              "description": "Output format: `geojson`, `json` or `csv`",
              "default": "geojson",
              "title": "Format"
            },
            "description": "Output format: `geojson`, `json` or `csv`"
          }
        ],
        "responses": {
          "200": {
            "description": "Successful Response",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/FeatureCollection_HourlyRelativeHumidityProperties_"
                }
              }
            }
          },
          "422": {
            "description": "Validation Error",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/HTTPValidationError"
                }
              }
            }
          }
        },
        "operationId": "relative_humidity_hourly_get"
      }
    },
    "/api/v1/pressure-hourly": {
      "get": {
        "summary": "Surface Pressure",
        "description": "Hourly station-level surface pressure in pascals (Pa)",
        "tags": [
          "Atmospheric Data"
        ],
        "x-order": 4,
        "parameters": [
          {
            "name": "start",
            "in": "query",
            "required": true,
            "schema": {
              "type": "string",
              "description": "ISO 8601 date `%Y-%m-%d` or datetime `%Y-%m-%dT%H:%M:%S`",
              "title": "Start",
              "example": "2025-10-01",
              "default": "2025-10-01"
            }
          },
          {
            "name": "end",
            "in": "query",
            "required": true,
            "schema": {
              "title": "End",
              "type": "string",
              "description": "ISO 8601 date `%Y-%m-%d` or datetime `%Y-%m-%dT%H:%M:%S`",
              "example": "2025-10-31",
              "default": "2025-10-31"
            }
          },
          {
            "name": "longitude",
            "in": "query",
            "required": true,
            "schema": {
              "type": "string",
              "pattern": "^-?\\d+(\\.\\d+)?(,-?\\d+(\\.\\d+)?)*$",
              "default": "-122.42616"
            },
            "description": "Longitude (WGS84). Personal API: one value. Commercial keys may pass a comma-separated list.",
            "example": "-122.42616"
          },
          {
            "name": "latitude",
            "in": "query",
            "required": true,
            "schema": {
              "type": "string",
              "pattern": "^-?\\d+(\\.\\d+)?(,-?\\d+(\\.\\d+)?)*$",
              "default": "37.75750"
            },
            "description": "Latitude (WGS84). Personal API: one value. Commercial keys may pass a comma-separated list.",
            "example": "37.75750"
          },
          {
            "name": "timeZoneId",
            "in": "query",
            "required": false,
            "schema": {
              "type": "string",
              "pattern": "^[A-Za-z_]+/[A-Za-z_]+$",
              "default": "America/Chicago"
            },
            "description": "IANA timezone identifier for localizing timestamps",
            "example": "America/Chicago"
          },
          {
            "name": "format",
            "in": "query",
            "required": false,
            "schema": {
              "type": "string",
              "enum": [
                "geojson",
                "json",
                "csv"
              ],
              "description": "Output format: `geojson`, `json` or `csv`",
              "default": "geojson",
              "title": "Format"
            },
            "description": "Output format: `geojson`, `json` or `csv`"
          }
        ],
        "responses": {
          "200": {
            "description": "Successful Response",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/FeatureCollection_HourlyPressureProperties_"
                }
              }
            }
          },
          "422": {
            "description": "Validation Error",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/HTTPValidationError"
                }
              }
            }
          }
        },
        "operationId": "pressure_hourly_get"
      }
    },
    "/api/v1/wind-speed-hourly": {
      "get": {
        "summary": "Wind Speed",
        "description": "Hourly near-surface wind speed in meters per second (m/s)",
        "tags": [
          "Atmospheric Data"
        ],
        "x-order": 5,
        "parameters": [
          {
            "name": "start",
            "in": "query",
            "required": true,
            "schema": {
              "type": "string",
              "description": "ISO 8601 date `%Y-%m-%d` or datetime `%Y-%m-%dT%H:%M:%S`",
              "title": "Start",
              "example": "2025-06-01",
              "default": "2025-06-01"
            }
          },
          {
            "name": "end",
            "in": "query",
            "required": true,
            "schema": {
              "title": "End",
              "type": "string",
              "description": "ISO 8601 date `%Y-%m-%d` or datetime `%Y-%m-%dT%H:%M:%S`",
              "example": "2025-06-30",
              "default": "2025-06-30"
            }
          },
          {
            "name": "longitude",
            "in": "query",
            "required": true,
            "schema": {
              "type": "string",
              "pattern": "^-?\\d+(\\.\\d+)?(,-?\\d+(\\.\\d+)?)*$",
              "default": "-122.42616"
            },
            "description": "Longitude (WGS84). Personal API: one value. Commercial keys may pass a comma-separated list.",
            "example": "-122.42616"
          },
          {
            "name": "latitude",
            "in": "query",
            "required": true,
            "schema": {
              "type": "string",
              "pattern": "^-?\\d+(\\.\\d+)?(,-?\\d+(\\.\\d+)?)*$",
              "default": "37.75750"
            },
            "description": "Latitude (WGS84). Personal API: one value. Commercial keys may pass a comma-separated list.",
            "example": "37.75750"
          },
          {
            "name": "timeZoneId",
            "in": "query",
            "required": false,
            "schema": {
              "type": "string",
              "pattern": "^[A-Za-z_]+/[A-Za-z_]+$",
              "default": "America/Chicago"
            },
            "description": "IANA timezone identifier for localizing timestamps",
            "example": "America/Chicago"
          },
          {
            "name": "format",
            "in": "query",
            "required": false,
            "schema": {
              "type": "string",
              "enum": [
                "geojson",
                "json",
                "csv"
              ],
              "description": "Output format: `geojson`, `json` or `csv`",
              "default": "geojson",
              "title": "Format"
            },
            "description": "Output format: `geojson`, `json` or `csv`"
          }
        ],
        "responses": {
          "200": {
            "description": "Successful Response",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/FeatureCollection_HourlyWindSpeedProperties_"
                }
              }
            }
          },
          "422": {
            "description": "Validation Error",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/HTTPValidationError"
                }
              }
            }
          }
        },
        "operationId": "wind_speed_hourly_get"
      }
    },
    "/api/v1/wind-speed-gust-hourly": {
      "get": {
        "summary": "Wind Gusts",
        "description": "Hourly wind gust speed in meters per second (m/s)",
        "tags": [
          "Atmospheric Data"
        ],
        "x-order": 6,
        "parameters": [
          {
            "name": "start",
            "in": "query",
            "required": true,
            "schema": {
              "type": "string",
              "description": "ISO 8601 date `%Y-%m-%d` or datetime `%Y-%m-%dT%H:%M:%S`",
              "title": "Start",
              "example": "2025-06-01",
              "default": "2025-06-01"
            }
          },
          {
            "name": "end",
            "in": "query",
            "required": true,
            "schema": {
              "title": "End",
              "type": "string",
              "description": "ISO 8601 date `%Y-%m-%d` or datetime `%Y-%m-%dT%H:%M:%S`",
              "example": "2025-06-30",
              "default": "2025-06-30"
            }
          },
          {
            "name": "longitude",
            "in": "query",
            "required": true,
            "schema": {
              "type": "string",
              "pattern": "^-?\\d+(\\.\\d+)?(,-?\\d+(\\.\\d+)?)*$",
              "default": "-122.42616"
            },
            "description": "Longitude (WGS84). Personal API: one value. Commercial keys may pass a comma-separated list.",
            "example": "-122.42616"
          },
          {
            "name": "latitude",
            "in": "query",
            "required": true,
            "schema": {
              "type": "string",
              "pattern": "^-?\\d+(\\.\\d+)?(,-?\\d+(\\.\\d+)?)*$",
              "default": "37.75750"
            },
            "description": "Latitude (WGS84). Personal API: one value. Commercial keys may pass a comma-separated list.",
            "example": "37.75750"
          },
          {
            "name": "timeZoneId",
            "in": "query",
            "required": false,
            "schema": {
              "type": "string",
              "pattern": "^[A-Za-z_]+/[A-Za-z_]+$",
              "default": "America/Chicago"
            },
            "description": "IANA timezone identifier for localizing timestamps",
            "example": "America/Chicago"
          },
          {
            "name": "format",
            "in": "query",
            "required": false,
            "schema": {
              "type": "string",
              "enum": [
                "geojson",
                "json",
                "csv"
              ],
              "description": "Output format: `geojson`, `json` or `csv`",
              "default": "geojson",
              "title": "Format"
            },
            "description": "Output format: `geojson`, `json` or `csv`"
          }
        ],
        "responses": {
          "200": {
            "description": "Successful Response",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/FeatureCollection_HourlyWindGustProperties_"
                }
              }
            }
          },
          "422": {
            "description": "Validation Error",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/HTTPValidationError"
                }
              }
            }
          }
        },
        "operationId": "wind_speed_gust_hourly_get"
      }
    },
    "/api/v1/wind-direction-hourly": {
      "get": {
        "summary": "Wind Direction",
        "description": "Hourly wind direction in compass degrees (0-360)",
        "tags": [
          "Atmospheric Data"
        ],
        "x-order": 6,
        "parameters": [
          {
            "name": "start",
            "in": "query",
            "required": true,
            "schema": {
              "type": "string",
              "description": "ISO 8601 date `%Y-%m-%d` or datetime `%Y-%m-%dT%H:%M:%S`",
              "title": "Start",
              "example": "2025-06-01",
              "default": "2025-06-01"
            }
          },
          {
            "name": "end",
            "in": "query",
            "required": true,
            "schema": {
              "title": "End",
              "type": "string",
              "description": "ISO 8601 date `%Y-%m-%d` or datetime `%Y-%m-%dT%H:%M:%S`",
              "example": "2025-06-30",
              "default": "2025-06-30"
            }
          },
          {
            "name": "longitude",
            "in": "query",
            "required": true,
            "schema": {
              "type": "string",
              "pattern": "^-?\\d+(\\.\\d+)?(,-?\\d+(\\.\\d+)?)*$",
              "default": "-122.42616"
            },
            "description": "Longitude (WGS84). Personal API: one value. Commercial keys may pass a comma-separated list.",
            "example": "-122.42616"
          },
          {
            "name": "latitude",
            "in": "query",
            "required": true,
            "schema": {
              "type": "string",
              "pattern": "^-?\\d+(\\.\\d+)?(,-?\\d+(\\.\\d+)?)*$",
              "default": "37.75750"
            },
            "description": "Latitude (WGS84). Personal API: one value. Commercial keys may pass a comma-separated list.",
            "example": "37.75750"
          },
          {
            "name": "timeZoneId",
            "in": "query",
            "required": false,
            "schema": {
              "type": "string",
              "pattern": "^[A-Za-z_]+/[A-Za-z_]+$",
              "default": "America/Chicago"
            },
            "description": "IANA timezone identifier for localizing timestamps",
            "example": "America/Chicago"
          },
          {
            "name": "format",
            "in": "query",
            "required": false,
            "schema": {
              "type": "string",
              "enum": [
                "geojson",
                "json",
                "csv"
              ],
              "description": "Output format: `geojson`, `json` or `csv`",
              "default": "geojson",
              "title": "Format"
            },
            "description": "Output format: `geojson`, `json` or `csv`"
          }
        ],
        "responses": {
          "200": {
            "description": "Successful Response",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/FeatureCollection_HourlyWindDirectionProperties_"
                }
              }
            }
          },
          "422": {
            "description": "Validation Error",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/HTTPValidationError"
                }
              }
            }
          }
        },
        "operationId": "wind_direction_hourly_get"
      }
    },
    "/api/v1/cloud-cover-hourly": {
      "get": {
        "summary": "Cloud Cover",
        "description": "Hourly cloud cover fraction (0-1, where 0 is clear and 1 is overcast)",
        "tags": [
          "Atmospheric Data"
        ],
        "x-order": 7,
        "parameters": [
          {
            "name": "start",
            "in": "query",
            "required": true,
            "schema": {
              "type": "string",
              "description": "ISO 8601 date `%Y-%m-%d` or datetime `%Y-%m-%dT%H:%M:%S`",
              "title": "Start",
              "example": "2025-10-01",
              "default": "2025-10-01"
            }
          },
          {
            "name": "end",
            "in": "query",
            "required": true,
            "schema": {
              "title": "End",
              "type": "string",
              "description": "ISO 8601 date `%Y-%m-%d` or datetime `%Y-%m-%dT%H:%M:%S`",
              "example": "2025-10-31",
              "default": "2025-10-31"
            }
          },
          {
            "name": "longitude",
            "in": "query",
            "required": true,
            "schema": {
              "type": "string",
              "pattern": "^-?\\d+(\\.\\d+)?(,-?\\d+(\\.\\d+)?)*$",
              "default": "-122.42616"
            },
            "description": "Longitude (WGS84). Personal API: one value. Commercial keys may pass a comma-separated list.",
            "example": "-122.42616"
          },
          {
            "name": "latitude",
            "in": "query",
            "required": true,
            "schema": {
              "type": "string",
              "pattern": "^-?\\d+(\\.\\d+)?(,-?\\d+(\\.\\d+)?)*$",
              "default": "37.75750"
            },
            "description": "Latitude (WGS84). Personal API: one value. Commercial keys may pass a comma-separated list.",
            "example": "37.75750"
          },
          {
            "name": "timeZoneId",
            "in": "query",
            "required": false,
            "schema": {
              "type": "string",
              "pattern": "^[A-Za-z_]+/[A-Za-z_]+$",
              "default": "America/Chicago"
            },
            "description": "IANA timezone identifier for localizing timestamps",
            "example": "America/Chicago"
          },
          {
            "name": "format",
            "in": "query",
            "required": false,
            "schema": {
              "type": "string",
              "enum": [
                "geojson",
                "json",
                "csv"
              ],
              "description": "Output format: `geojson`, `json` or `csv`",
              "default": "geojson",
              "title": "Format"
            },
            "description": "Output format: `geojson`, `json` or `csv`"
          }
        ],
        "responses": {
          "200": {
            "description": "Successful Response",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/FeatureCollection_HourlyCloudCoverProperties_"
                }
              }
            }
          },
          "422": {
            "description": "Validation Error",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/HTTPValidationError"
                }
              }
            }
          }
        },
        "operationId": "cloud_cover_hourly_get"
      }
    },
    "/api/v1/solar-radiation-hourly": {
      "get": {
        "summary": "Solar Radiation",
        "description": "Hourly downward short-wave radiation flux in watts per square meter (W/m²)",
        "tags": [
          "Atmospheric Data"
        ],
        "x-order": 8,
        "parameters": [
          {
            "name": "start",
            "in": "query",
            "required": true,
            "schema": {
              "type": "string",
              "description": "ISO 8601 date `%Y-%m-%d` or datetime `%Y-%m-%dT%H:%M:%S`",
              "title": "Start",
              "example": "2025-10-15",
              "default": "2025-10-15"
            }
          },
          {
            "name": "end",
            "in": "query",
            "required": true,
            "schema": {
              "title": "End",
              "type": "string",
              "description": "ISO 8601 date `%Y-%m-%d` or datetime `%Y-%m-%dT%H:%M:%S`",
              "example": "2025-10-31",
              "default": "2025-10-31"
            }
          },
          {
            "name": "longitude",
            "in": "query",
            "required": true,
            "schema": {
              "type": "string",
              "pattern": "^-?\\d+(\\.\\d+)?(,-?\\d+(\\.\\d+)?)*$",
              "default": "-122.42616"
            },
            "description": "Longitude (WGS84). Personal API: one value. Commercial keys may pass a comma-separated list.",
            "example": "-122.42616"
          },
          {
            "name": "latitude",
            "in": "query",
            "required": true,
            "schema": {
              "type": "string",
              "pattern": "^-?\\d+(\\.\\d+)?(,-?\\d+(\\.\\d+)?)*$",
              "default": "37.75750"
            },
            "description": "Latitude (WGS84). Personal API: one value. Commercial keys may pass a comma-separated list.",
            "example": "37.75750"
          },
          {
            "name": "timeZoneId",
            "in": "query",
            "required": false,
            "schema": {
              "type": "string",
              "pattern": "^[A-Za-z_]+/[A-Za-z_]+$",
              "default": "America/Chicago"
            },
            "description": "IANA timezone identifier for localizing timestamps",
            "example": "America/Chicago"
          },
          {
            "name": "format",
            "in": "query",
            "required": false,
            "schema": {
              "type": "string",
              "enum": [
                "geojson",
                "json",
                "csv"
              ],
              "description": "Output format: `geojson`, `json` or `csv`",
              "default": "geojson",
              "title": "Format"
            },
            "description": "Output format: `geojson`, `json` or `csv`"
          }
        ],
        "responses": {
          "200": {
            "description": "Successful Response",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/FeatureCollection_HourlySolarRadiationProperties_"
                }
              }
            }
          },
          "422": {
            "description": "Validation Error",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/HTTPValidationError"
                }
              }
            }
          }
        },
        "operationId": "solar_radiation_hourly_get"
      }
    },
    "/api/v1/forecast": {
      "get": {
        "summary": "Weather Forecast",
        "description": "A single call forecast for one location: hourly temperature, feels-like temperature, precipitation amount, type and probability, wind, cloud cover, humidity, UV index, air quality and frost probability, plus daily highs, lows and totals.\n\n Hours before now carry the observed analysis for temperature, precipitation and precipitation type. Later hours are the forecast, out to 10 days.\n\nDefaults are Celsius and millimeters.",
        "tags": [
          "Forecast"
        ],
        "x-order": 1,
        "parameters": [
          {
            "name": "latitude",
            "in": "query",
            "required": true,
            "schema": {
              "type": "number",
              "minimum": -90,
              "maximum": 90,
              "default": 37.7575
            },
            "description": "Latitude (WGS84). One location per request.",
            "example": 37.7575
          },
          {
            "name": "longitude",
            "in": "query",
            "required": true,
            "schema": {
              "type": "number",
              "minimum": -180,
              "maximum": 180,
              "default": -122.42616
            },
            "description": "Longitude (WGS84). One location per request.",
            "example": -122.42616
          },
          {
            "name": "forecast_hours",
            "in": "query",
            "required": false,
            "schema": {
              "type": "integer",
              "minimum": 1,
              "maximum": 252,
              "default": 168
            },
            "description": "Hours of forecast from the current hour. Default 168 (7 days), maximum 252."
          },
          {
            "name": "past_hours",
            "in": "query",
            "required": false,
            "schema": {
              "type": "integer",
              "minimum": 0,
              "maximum": 744,
              "default": 24
            },
            "description": "Hours of observed history before the current hour. Default 24, so today's daily values cover the whole day. For longer history, use the hourly and daily endpoints."
          },
          {
            "name": "temperature_unit",
            "in": "query",
            "required": false,
            "schema": {
              "type": "string",
              "enum": [
                "celsius",
                "fahrenheit"
              ],
              "default": "celsius"
            },
            "description": "Unit for `temperature`, `apparent_temperature` and `dailyTemps`."
          },
          {
            "name": "precipitation_unit",
            "in": "query",
            "required": false,
            "schema": {
              "type": "string",
              "enum": [
                "mm",
                "inch"
              ],
              "default": "mm"
            },
            "description": "Unit for precipitation amounts. With `mm`, `snowfall` is in cm. With `inch`, all amounts and `snowfall` are in inches."
          },
          {
            "name": "timeZoneId",
            "in": "query",
            "required": false,
            "schema": {
              "type": "string"
            },
            "description": "IANA timezone for the hour labels and the daily boundaries, e.g. `America/Chicago`. Defaults to the timezone of the location.",
            "example": "America/Chicago"
          }
        ],
        "responses": {
          "200": {
            "description": "Successful Response",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ForecastResponse"
                }
              }
            }
          },
          "400": {
            "description": "Bad Request - Invalid parameters",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                }
              }
            }
          },
          "404": {
            "description": "No forecast data for this location",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                }
              }
            }
          }
        },
        "operationId": "forecast_get"
      }
    },
    "/api/v1/reports": {
      "post": {
        "summary": "Create Bulk Export",
        "description": "Create an async export job for weather data across multiple locations. For small requests (< 30s processing), returns download URL immediately. For larger requests, sends email notification when export is ready.\n\nRequires API key with orgId/userId metadata to use allLocations option.",
        "tags": [
          "Bulk Export"
        ],
        "x-order": 1,
        "security": [
          {
            "BearerAuth": []
          },
          {
            "ApiKeyQuery": []
          }
        ],
        "parameters": [
          {
            "name": "Authorization",
            "in": "header",
            "required": true,
            "description": "The Authorization header is used to authenticate with the API using your API key.",
            "schema": {
              "type": "string",
              "example": "Bearer YOUR_API_KEY"
            }
          }
        ],
        "requestBody": {
          "required": true,
          "content": {
            "application/json": {
              "schema": {
                "type": "object",
                "required": [
                  "models",
                  "start",
                  "end",
                  "aggregations"
                ],
                "properties": {
                  "models": {
                    "type": "array",
                    "items": {
                      "type": "string",
                      "enum": [
                        "precip",
                        "soil-moisture",
                        "temp-0-10cm",
                        "temperature",
                        "specific-humidity",
                        "relative-humidity",
                        "wind-speed",
                        "wind-speed-gust",
                        "wind-direction",
                        "cloud-cover",
                        "solar-radiation"
                      ]
                    },
                    "description": "Weather models to include in export",
                    "example": [
                      "precip",
                      "temperature"
                    ],
                    "default": [
                      "precip"
                    ]
                  },
                  "start": {
                    "type": "string",
                    "format": "date",
                    "description": "Start date in ISO 8601 format",
                    "example": "2024-01-01",
                    "default": "2024-01-01"
                  },
                  "end": {
                    "type": "string",
                    "format": "date",
                    "description": "End date in ISO 8601 format",
                    "example": "2024-03-01",
                    "default": "2024-03-01"
                  },
                  "aggregations": {
                    "type": "array",
                    "items": {
                      "type": "string",
                      "enum": [
                        "hourly",
                        "daily",
                        "weekly",
                        "monthly"
                      ]
                    },
                    "description": "Time aggregations to include",
                    "example": [
                      "daily",
                      "monthly"
                    ],
                    "default": [
                      "monthly"
                    ]
                  },
                  "units": {
                    "type": "string",
                    "enum": [
                      "imperial",
                      "metric"
                    ],
                    "default": "imperial",
                    "description": "Unit system for measurements"
                  },
                  "format": {
                    "type": "string",
                    "enum": [
                      "xlsx",
                      "json"
                    ],
                    "default": "xlsx",
                    "description": "Export file format"
                  },
                  "allLocations": {
                    "type": "boolean",
                    "description": "Export all locations associated with your API key (requires orgId/userId metadata)"
                  },
                  "locationIds": {
                    "type": "array",
                    "items": {
                      "type": "string"
                    },
                    "description": "Specific location IDs to export (alternative to allLocations)"
                  },
                  "webhookUrl": {
                    "type": "string",
                    "format": "uri",
                    "description": "Optional webhook URL to call when export completes"
                  }
                }
              }
            }
          }
        },
        "responses": {
          "200": {
            "description": "Export created successfully",
            "content": {
              "application/json": {
                "schema": {
                  "type": "object",
                  "properties": {
                    "status": {
                      "type": "string",
                      "enum": [
                        "completed",
                        "processing"
                      ],
                      "description": "completed = download URL ready, processing = will email when done"
                    },
                    "downloadUrl": {
                      "type": "string",
                      "description": "Signed URL to download export (only when status=completed)"
                    },
                    "message": {
                      "type": "string",
                      "description": "Status message (when processing)"
                    },
                    "format": {
                      "type": "string",
                      "description": "Export format"
                    }
                  }
                },
                "examples": {
                  "completed": {
                    "summary": "Fast export - immediate download",
                    "value": {
                      "status": "completed",
                      "downloadUrl": "https://storage.googleapis.com/precip-exports/...",
                      "format": "xlsx"
                    }
                  },
                  "processing": {
                    "summary": "Large export - email notification",
                    "value": {
                      "status": "processing",
                      "message": "We'll email you when your export is ready",
                      "format": "xlsx"
                    }
                  }
                }
              }
            }
          },
          "400": {
            "description": "Bad Request - Invalid parameters",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                }
              }
            }
          },
          "401": {
            "description": "Unauthorized - Invalid or missing API key",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                }
              }
            }
          },
          "422": {
            "description": "Validation Error",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/HTTPValidationError"
                }
              }
            }
          }
        },
        "operationId": "create_bulk_export"
      }
    },
    "/api/v1/locations": {
      "get": {
        "summary": "List Saved Locations",
        "description": "Your saved Precip locations, personal and from your organizations. The coordinates are the same point the app and Bulk Export use, and you can pass them to the weather endpoints. Needs a personal API key or a sign-in with your Precip account.",
        "tags": [
          "Saved Locations"
        ],
        "x-order": 1,
        "security": [
          {
            "BearerAuth": []
          },
          {
            "ApiKeyQuery": []
          }
        ],
        "parameters": [
          {
            "name": "name",
            "in": "query",
            "required": false,
            "description": "Only return locations whose name contains this text (not case-sensitive)",
            "schema": {
              "type": "string",
              "example": "north field"
            }
          },
          {
            "name": "orgId",
            "in": "query",
            "required": false,
            "description": "Only return locations belonging to this organization ID",
            "schema": {
              "type": "string"
            }
          }
        ],
        "responses": {
          "200": {
            "description": "Your saved locations, sorted by name within each account",
            "content": {
              "application/json": {
                "schema": {
                  "type": "object",
                  "properties": {
                    "locations": {
                      "type": "array",
                      "items": {
                        "type": "object",
                        "properties": {
                          "id": {
                            "type": "string",
                            "description": "Location ID"
                          },
                          "name": {
                            "type": "string",
                            "description": "Name shown in the Precip app"
                          },
                          "latitude": {
                            "type": "number",
                            "description": "Latitude of the point the app and Bulk Export use. For a field outline, this point is inside the polygon."
                          },
                          "longitude": {
                            "type": "number",
                            "description": "Longitude of the point the app and Bulk Export use. For a field outline, this point is inside the polygon."
                          },
                          "org": {
                            "type": "object",
                            "nullable": true,
                            "description": "The organization the location belongs to, or null for a personal location",
                            "properties": {
                              "id": {
                                "type": "string"
                              },
                              "name": {
                                "type": "string"
                              }
                            }
                          },
                          "canEdit": {
                            "type": "boolean",
                            "description": "Whether you can change this location"
                          }
                        }
                      }
                    },
                    "truncated": {
                      "type": "boolean",
                      "description": "True when there are more than 500 matches; narrow the list with name"
                    }
                  }
                }
              }
            }
          },
          "403": {
            "description": "The key or sign-in isn't tied to a Precip account, or the key was revoked",
            "content": {
              "application/json": {
                "schema": {
                  "type": "object",
                  "properties": {
                    "error": {
                      "type": "string",
                      "description": "What went wrong and what to do next"
                    },
                    "code": {
                      "type": "string"
                    },
                    "upgradeUrl": {
                      "type": "string",
                      "description": "Where to get a plan with more locations (location_limit_reached only)"
                    }
                  }
                }
              }
            }
          },
          "429": {
            "$ref": "#/components/responses/RateLimitWithRetryAfter"
          }
        },
        "operationId": "list_saved_locations"
      },
      "post": {
        "summary": "Save a Location",
        "description": "Save a new point location to your Precip account, or to one of your organizations. Each plan has a limit on saved locations; at the limit the request is refused with a link to upgrade.",
        "tags": [
          "Saved Locations"
        ],
        "x-order": 2,
        "security": [
          {
            "BearerAuth": []
          },
          {
            "ApiKeyQuery": []
          }
        ],
        "requestBody": {
          "required": true,
          "content": {
            "application/json": {
              "schema": {
                "type": "object",
                "required": [
                  "name",
                  "latitude",
                  "longitude"
                ],
                "properties": {
                  "name": {
                    "type": "string",
                    "maxLength": 200,
                    "description": "Name for the location",
                    "example": "North field"
                  },
                  "latitude": {
                    "type": "number",
                    "minimum": -90,
                    "maximum": 90,
                    "example": 41.59
                  },
                  "longitude": {
                    "type": "number",
                    "minimum": -180,
                    "maximum": 180,
                    "example": -93.62
                  },
                  "orgId": {
                    "type": "string",
                    "description": "Save to this organization instead of your personal account (an org.id from List Saved Locations)"
                  }
                }
              }
            }
          }
        },
        "responses": {
          "201": {
            "description": "The saved location",
            "content": {
              "application/json": {
                "schema": {
                  "type": "object",
                  "properties": {
                    "location": {
                      "type": "object",
                      "properties": {
                        "id": {
                          "type": "string",
                          "description": "Location ID"
                        },
                        "name": {
                          "type": "string",
                          "description": "Name shown in the Precip app"
                        },
                        "latitude": {
                          "type": "number",
                          "description": "Latitude of the point the app and Bulk Export use. For a field outline, this point is inside the polygon."
                        },
                        "longitude": {
                          "type": "number",
                          "description": "Longitude of the point the app and Bulk Export use. For a field outline, this point is inside the polygon."
                        },
                        "org": {
                          "type": "object",
                          "nullable": true,
                          "description": "The organization the location belongs to, or null for a personal location",
                          "properties": {
                            "id": {
                              "type": "string"
                            },
                            "name": {
                              "type": "string"
                            }
                          }
                        },
                        "canEdit": {
                          "type": "boolean",
                          "description": "Whether you can change this location"
                        }
                      }
                    }
                  }
                }
              }
            }
          },
          "400": {
            "description": "The name or coordinates are not valid",
            "content": {
              "application/json": {
                "schema": {
                  "type": "object",
                  "properties": {
                    "error": {
                      "type": "string",
                      "description": "What went wrong and what to do next"
                    },
                    "code": {
                      "type": "string"
                    },
                    "upgradeUrl": {
                      "type": "string",
                      "description": "Where to get a plan with more locations (location_limit_reached only)"
                    }
                  }
                }
              }
            }
          },
          "403": {
            "description": "At the plan's location limit (location_limit_reached), no permission to add to that organization (location_write_forbidden), or the key isn't tied to a Precip account",
            "content": {
              "application/json": {
                "schema": {
                  "type": "object",
                  "properties": {
                    "error": {
                      "type": "string",
                      "description": "What went wrong and what to do next"
                    },
                    "code": {
                      "type": "string"
                    },
                    "upgradeUrl": {
                      "type": "string",
                      "description": "Where to get a plan with more locations (location_limit_reached only)"
                    }
                  }
                }
              }
            }
          },
          "429": {
            "$ref": "#/components/responses/RateLimitWithRetryAfter"
          },
          "503": {
            "description": "The location limit couldn't be checked; try again",
            "content": {
              "application/json": {
                "schema": {
                  "type": "object",
                  "properties": {
                    "error": {
                      "type": "string",
                      "description": "What went wrong and what to do next"
                    },
                    "code": {
                      "type": "string"
                    },
                    "upgradeUrl": {
                      "type": "string",
                      "description": "Where to get a plan with more locations (location_limit_reached only)"
                    }
                  }
                }
              }
            }
          }
        },
        "operationId": "create_saved_location"
      }
    },
    "/api/v1/locations/{id}": {
      "delete": {
        "summary": "Delete a Saved Location",
        "description": "Delete a saved location from your Precip account or organization.",
        "tags": [
          "Saved Locations"
        ],
        "x-order": 3,
        "security": [
          {
            "BearerAuth": []
          },
          {
            "ApiKeyQuery": []
          }
        ],
        "parameters": [
          {
            "name": "id",
            "in": "path",
            "required": true,
            "description": "Location ID to delete",
            "schema": {
              "type": "string"
            }
          }
        ],
        "responses": {
          "204": {
            "description": "Location deleted"
          },
          "403": {
            "description": "Caller does not have permission to delete this location",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/WebhookErrorResponse"
                }
              }
            }
          },
          "404": {
            "description": "Location not found",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/WebhookErrorResponse"
                }
              }
            }
          },
          "429": {
            "$ref": "#/components/responses/RateLimitWithRetryAfter"
          }
        },
        "operationId": "delete_saved_location"
      }
    },
    "/api/v1/account": {
      "get": {
        "summary": "Get Account & Plan Capabilities",
        "description": "Returns the authenticated Precip account, active API tier, plan capabilities, live usage counts, accepted organizations, and defaultOrgId. On Starter, Growth, and Enterprise API plans, if you do not yet belong to an organization, one is provisioned automatically.",
        "tags": [
          "Account & Organizations"
        ],
        "x-order": 1,
        "security": [
          {
            "BearerAuth": []
          },
          {
            "ApiKeyQuery": []
          }
        ],
        "responses": {
          "200": {
            "description": "Account details, API plan capabilities, and organizations",
            "content": {
              "application/json": {
                "schema": {
                  "type": "object",
                  "properties": {
                    "user": {
                      "type": "object",
                      "nullable": true,
                      "properties": {
                        "id": {
                          "type": "string"
                        },
                        "email": {
                          "type": "string",
                          "nullable": true
                        },
                        "displayName": {
                          "type": "string",
                          "nullable": true
                        }
                      }
                    },
                    "tier": {
                      "type": "string",
                      "enum": [
                        "hobby",
                        "starter",
                        "growth",
                        "commercial",
                        "unpaid"
                      ]
                    },
                    "capabilities": {
                      "type": "object",
                      "properties": {
                        "tier": {
                          "type": "string"
                        },
                        "plan": {
                          "type": "string",
                          "nullable": true
                        },
                        "requestsPerMinute": {
                          "type": "integer",
                          "nullable": true
                        },
                        "requestsPerDay": {
                          "type": "integer",
                          "nullable": true
                        },
                        "maxLocationsPerRequest": {
                          "type": "integer"
                        },
                        "maxDateSpanDays": {
                          "type": "integer",
                          "nullable": true
                        },
                        "maxSavedLocations": {
                          "type": "integer",
                          "nullable": true
                        },
                        "maxUniqueLocationsPerMonth": {
                          "type": "integer",
                          "nullable": true
                        },
                        "uniqueLocationOverageCents": {
                          "type": "integer",
                          "nullable": true,
                          "description": "Pay-as-you-go price in USD cents per additional unique location per billing month beyond maxUniqueLocationsPerMonth (null on custom Enterprise or non-commercial plans)"
                        },
                        "maxAlertRules": {
                          "type": "integer"
                        },
                        "bulkExport": {
                          "type": "boolean"
                        },
                        "webhooks": {
                          "type": "boolean"
                        }
                      }
                    },
                    "usage": {
                      "type": "object",
                      "properties": {
                        "orgId": {
                          "type": "string",
                          "nullable": true
                        },
                        "savedLocations": {
                          "type": "integer",
                          "nullable": true
                        },
                        "alertRules": {
                          "type": "integer",
                          "nullable": true
                        },
                        "uniqueLocations": {
                          "type": "integer",
                          "nullable": true
                        },
                        "uniqueLocationsOverage": {
                          "type": "integer",
                          "nullable": true,
                          "description": "Unique locations queried above the plan's included monthly allowance in the current billing period (billed pay-as-you-go in arrears)"
                        },
                        "periodStart": {
                          "type": "string",
                          "format": "date-time",
                          "nullable": true
                        },
                        "periodEnd": {
                          "type": "string",
                          "format": "date-time",
                          "nullable": true
                        }
                      }
                    },
                    "organizations": {
                      "type": "array",
                      "items": {
                        "type": "object",
                        "properties": {
                          "id": {
                            "type": "string"
                          },
                          "name": {
                            "type": "string"
                          },
                          "role": {
                            "type": "string"
                          },
                          "planTier": {
                            "type": "string",
                            "nullable": true
                          }
                        }
                      }
                    },
                    "defaultOrgId": {
                      "type": "string",
                      "nullable": true
                    },
                    "keyOrgBound": {
                      "type": "boolean"
                    }
                  }
                }
              }
            }
          },
          "429": {
            "$ref": "#/components/responses/RateLimitWithRetryAfter"
          }
        },
        "operationId": "get_account"
      }
    },
    "/api/v1/orgs": {
      "get": {
        "summary": "List Organizations",
        "description": "Lists the organizations your account belongs to, along with defaultOrgId when you belong to a single organization.",
        "tags": [
          "Account & Organizations"
        ],
        "x-order": 2,
        "security": [
          {
            "BearerAuth": []
          },
          {
            "ApiKeyQuery": []
          }
        ],
        "responses": {
          "200": {
            "description": "Accepted organizations",
            "content": {
              "application/json": {
                "schema": {
                  "type": "object",
                  "properties": {
                    "organizations": {
                      "type": "array",
                      "items": {
                        "type": "object",
                        "properties": {
                          "id": {
                            "type": "string"
                          },
                          "name": {
                            "type": "string"
                          },
                          "role": {
                            "type": "string"
                          },
                          "planTier": {
                            "type": "string",
                            "nullable": true
                          }
                        }
                      }
                    },
                    "defaultOrgId": {
                      "type": "string",
                      "nullable": true
                    }
                  }
                }
              }
            }
          },
          "429": {
            "$ref": "#/components/responses/RateLimitWithRetryAfter"
          }
        },
        "operationId": "list_organizations"
      },
      "post": {
        "summary": "Create an Organization",
        "description": "Creates an additional organization (for multi-project or multi-client setups). Most Starter and Growth users do not need to call this because a default organization is provisioned automatically on first use.",
        "tags": [
          "Account & Organizations"
        ],
        "x-order": 3,
        "security": [
          {
            "BearerAuth": []
          },
          {
            "ApiKeyQuery": []
          }
        ],
        "requestBody": {
          "required": true,
          "content": {
            "application/json": {
              "schema": {
                "type": "object",
                "required": [
                  "name"
                ],
                "properties": {
                  "name": {
                    "type": "string",
                    "description": "Organization display name (1–120 characters)"
                  },
                  "migratePersonalLocations": {
                    "type": "boolean",
                    "default": false,
                    "description": "Move existing personal saved locations into the new organization"
                  }
                }
              }
            }
          }
        },
        "responses": {
          "201": {
            "description": "Created organization",
            "content": {
              "application/json": {
                "schema": {
                  "type": "object",
                  "properties": {
                    "organization": {
                      "type": "object",
                      "properties": {
                        "id": {
                          "type": "string"
                        },
                        "name": {
                          "type": "string"
                        },
                        "role": {
                          "type": "string"
                        },
                        "planTier": {
                          "type": "string"
                        }
                      }
                    }
                  }
                }
              }
            }
          },
          "403": {
            "description": "Requires a paid API plan (Starter, Growth, or Enterprise)",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/WebhookErrorResponse"
                }
              }
            }
          },
          "429": {
            "$ref": "#/components/responses/RateLimitWithRetryAfter"
          }
        },
        "operationId": "create_organization"
      }
    },
    "/api/v1/alert-rules": {
      "get": {
        "summary": "List Alert Rules",
        "description": "Lists webhook threshold alert rules for your organization. Requires Growth, Enterprise, or Starter with the Webhooks add-on.",
        "tags": [
          "Alert Rules"
        ],
        "x-order": 1,
        "security": [
          {
            "BearerAuth": []
          },
          {
            "ApiKeyQuery": []
          }
        ],
        "parameters": [
          {
            "name": "orgId",
            "in": "query",
            "required": false,
            "description": "Organization ID (optional when you are an admin of only one organization)",
            "schema": {
              "type": "string"
            }
          }
        ],
        "responses": {
          "200": {
            "description": "Webhook alert rules for the organization",
            "content": {
              "application/json": {
                "schema": {
                  "type": "object",
                  "required": [
                    "alert_rules"
                  ],
                  "properties": {
                    "alert_rules": {
                      "type": "array",
                      "items": {
                        "$ref": "#/components/schemas/AlertRule"
                      }
                    }
                  }
                }
              }
            }
          },
          "403": {
            "description": "Requires Growth, Enterprise, or Starter with the Webhooks add-on",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/WebhookErrorResponse"
                }
              }
            }
          },
          "429": {
            "$ref": "#/components/responses/RateLimitWithRetryAfter"
          }
        },
        "operationId": "list_alert_rules"
      },
      "post": {
        "summary": "Create Alert Rule",
        "description": "Creates a threshold alert rule for your organization when precipitation, wind, or temperature crosses a threshold over a 12-, 24-, or 168-hour window.\n\n**Channel & recipients:** Rules created via this endpoint are **webhook-only** by default (`delivery_medium: \"webhook\"`) and do not send mobile push notifications or emails. When a rule fires, Precip sends a `threshold_rule.triggered` event to every enabled webhook endpoint registered on the same organization (`POST /api/v1/webhooks`) that subscribes to `threshold_rule.triggered` and either has `ruleIds: null` (all org rules, the default) or includes this rule's `id` in `ruleIds`. Organization admins can also view the rule in the Precip app (marked with a **Webhook** badge) and optionally add push or email delivery for team members.\n\nRequires Growth, Enterprise, or Starter with the Webhooks add-on.",
        "tags": [
          "Alert Rules"
        ],
        "x-order": 2,
        "security": [
          {
            "BearerAuth": []
          },
          {
            "ApiKeyQuery": []
          }
        ],
        "requestBody": {
          "required": true,
          "content": {
            "application/json": {
              "schema": {
                "type": "object",
                "required": [
                  "window_hours",
                  "direction"
                ],
                "properties": {
                  "name": {
                    "type": "string",
                    "description": "Human-readable name for the alert rule"
                  },
                  "alert_type": {
                    "type": "string",
                    "enum": [
                      "precipitation",
                      "wind",
                      "temperature"
                    ],
                    "default": "precipitation"
                  },
                  "observation_type": {
                    "type": "string",
                    "enum": [
                      "observation",
                      "forecast"
                    ],
                    "default": "observation"
                  },
                  "forecast_probability_pct": {
                    "type": "number",
                    "description": "Minimum probability (0–100) for forecast precipitation rules"
                  },
                  "direction": {
                    "type": "string",
                    "enum": [
                      "above",
                      "below"
                    ]
                  },
                  "threshold_mm": {
                    "type": "number",
                    "description": "Precipitation threshold in millimeters (required when alert_type is precipitation; e.g. 25.4 for 1 inch)"
                  },
                  "threshold_wind_speed_ms": {
                    "type": "number",
                    "description": "Wind speed threshold in m/s (required when alert_type is wind)"
                  },
                  "threshold_temperature_c": {
                    "type": "number",
                    "description": "Temperature threshold in °C (required when alert_type is temperature)"
                  },
                  "window_hours": {
                    "type": "integer",
                    "enum": [
                      12,
                      24,
                      168
                    ],
                    "description": "Lookback or forecast window in hours (12, 24, or 168)"
                  },
                  "frequency": {
                    "type": "string",
                    "enum": [
                      "hourly",
                      "daily",
                      "weekly"
                    ],
                    "default": "hourly",
                    "description": "Evaluation & cooldown cadence"
                  },
                  "timezone": {
                    "type": "string",
                    "default": "UTC",
                    "description": "IANA timezone name (e.g. America/Chicago) or UTC"
                  },
                  "between_hours_start": {
                    "type": "integer",
                    "description": "Optional local start hour (0–23); must be paired with between_hours_end"
                  },
                  "between_hours_end": {
                    "type": "integer",
                    "description": "Optional local end hour (0–23); must be paired with between_hours_start"
                  },
                  "scope": {
                    "type": "string",
                    "enum": [
                      "all_locations",
                      "selected_locations"
                    ],
                    "description": "Monitor all saved organization locations or specific location_ids"
                  },
                  "location_ids": {
                    "type": "array",
                    "items": {
                      "type": "string"
                    },
                    "description": "Saved organization location IDs when scope is selected_locations"
                  },
                  "enabled": {
                    "type": "boolean",
                    "default": true
                  },
                  "orgId": {
                    "type": "string",
                    "description": "Organization ID (optional when you belong to a single organization)"
                  }
                }
              }
            }
          }
        },
        "responses": {
          "201": {
            "description": "Created alert rule",
            "content": {
              "application/json": {
                "schema": {
                  "type": "object",
                  "required": [
                    "alert_rule"
                  ],
                  "properties": {
                    "alert_rule": {
                      "$ref": "#/components/schemas/AlertRule"
                    }
                  }
                }
              }
            }
          },
          "400": {
            "description": "Invalid alert rule configuration",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/WebhookErrorResponse"
                }
              }
            }
          },
          "403": {
            "description": "Requires Growth, Enterprise, or Starter with the Webhooks add-on",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/WebhookErrorResponse"
                }
              }
            }
          },
          "409": {
            "description": "Plan alert rule limit reached",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/WebhookErrorResponse"
                }
              }
            }
          },
          "429": {
            "$ref": "#/components/responses/RateLimitWithRetryAfter"
          }
        },
        "operationId": "create_alert_rule"
      }
    },
    "/api/v1/alert-rules/{id}": {
      "get": {
        "summary": "Get Alert Rule",
        "description": "Gets a single webhook threshold alert rule by ID.",
        "tags": [
          "Alert Rules"
        ],
        "x-order": 3,
        "security": [
          {
            "BearerAuth": []
          },
          {
            "ApiKeyQuery": []
          }
        ],
        "parameters": [
          {
            "name": "id",
            "in": "path",
            "required": true,
            "schema": {
              "type": "string"
            }
          },
          {
            "name": "orgId",
            "in": "query",
            "required": false,
            "schema": {
              "type": "string"
            }
          }
        ],
        "responses": {
          "200": {
            "description": "Alert rule",
            "content": {
              "application/json": {
                "schema": {
                  "type": "object",
                  "required": [
                    "alert_rule"
                  ],
                  "properties": {
                    "alert_rule": {
                      "$ref": "#/components/schemas/AlertRule"
                    }
                  }
                }
              }
            }
          },
          "404": {
            "description": "Alert rule not found",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/WebhookErrorResponse"
                }
              }
            }
          },
          "429": {
            "$ref": "#/components/responses/RateLimitWithRetryAfter"
          }
        },
        "operationId": "get_alert_rule"
      },
      "patch": {
        "summary": "Update Alert Rule",
        "description": "Updates thresholds, window, schedule/frequency, location scope, or enabled status of an API-managed alert rule. Any push or email channels added for team members in the Precip app are preserved.",
        "tags": [
          "Alert Rules"
        ],
        "x-order": 4,
        "security": [
          {
            "BearerAuth": []
          },
          {
            "ApiKeyQuery": []
          }
        ],
        "parameters": [
          {
            "name": "id",
            "in": "path",
            "required": true,
            "schema": {
              "type": "string"
            }
          },
          {
            "name": "orgId",
            "in": "query",
            "required": false,
            "schema": {
              "type": "string"
            }
          }
        ],
        "requestBody": {
          "required": true,
          "content": {
            "application/json": {
              "schema": {
                "type": "object",
                "properties": {
                  "name": {
                    "type": "string"
                  },
                  "direction": {
                    "type": "string",
                    "enum": [
                      "above",
                      "below"
                    ]
                  },
                  "threshold_mm": {
                    "type": "number"
                  },
                  "threshold_wind_speed_ms": {
                    "type": "number"
                  },
                  "threshold_temperature_c": {
                    "type": "number"
                  },
                  "forecast_probability_pct": {
                    "type": "number"
                  },
                  "window_hours": {
                    "type": "integer",
                    "enum": [
                      12,
                      24,
                      168
                    ]
                  },
                  "frequency": {
                    "type": "string",
                    "enum": [
                      "hourly",
                      "daily",
                      "weekly"
                    ]
                  },
                  "timezone": {
                    "type": "string"
                  },
                  "between_hours_start": {
                    "type": "integer",
                    "nullable": true
                  },
                  "between_hours_end": {
                    "type": "integer",
                    "nullable": true
                  },
                  "scope": {
                    "type": "string",
                    "enum": [
                      "all_locations",
                      "selected_locations"
                    ]
                  },
                  "location_ids": {
                    "type": "array",
                    "items": {
                      "type": "string"
                    }
                  },
                  "enabled": {
                    "type": "boolean"
                  }
                }
              }
            }
          }
        },
        "responses": {
          "200": {
            "description": "Updated alert rule",
            "content": {
              "application/json": {
                "schema": {
                  "type": "object",
                  "required": [
                    "alert_rule"
                  ],
                  "properties": {
                    "alert_rule": {
                      "$ref": "#/components/schemas/AlertRule"
                    }
                  }
                }
              }
            }
          },
          "400": {
            "description": "Invalid alert rule patch",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/WebhookErrorResponse"
                }
              }
            }
          },
          "404": {
            "description": "Alert rule not found",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/WebhookErrorResponse"
                }
              }
            }
          },
          "429": {
            "$ref": "#/components/responses/RateLimitWithRetryAfter"
          }
        },
        "operationId": "update_alert_rule"
      },
      "delete": {
        "summary": "Delete Alert Rule",
        "description": "Deletes a webhook threshold alert rule.",
        "tags": [
          "Alert Rules"
        ],
        "x-order": 5,
        "security": [
          {
            "BearerAuth": []
          },
          {
            "ApiKeyQuery": []
          }
        ],
        "parameters": [
          {
            "name": "id",
            "in": "path",
            "required": true,
            "schema": {
              "type": "string"
            }
          },
          {
            "name": "orgId",
            "in": "query",
            "required": false,
            "schema": {
              "type": "string"
            }
          }
        ],
        "responses": {
          "204": {
            "description": "Deleted"
          },
          "404": {
            "description": "Alert rule not found",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/WebhookErrorResponse"
                }
              }
            }
          },
          "429": {
            "$ref": "#/components/responses/RateLimitWithRetryAfter"
          }
        },
        "operationId": "delete_alert_rule"
      }
    },
    "/api/v1/webhooks": {
      "get": {
        "summary": "List Webhook Endpoints",
        "description": "The webhook endpoints of one of your organizations. Only organization admins can use this. The response never includes a signing secret. Requires Growth, Enterprise, or Starter with the Webhooks add-on.",
        "tags": [
          "Webhooks"
        ],
        "x-order": 1,
        "security": [
          {
            "BearerAuth": []
          },
          {
            "ApiKeyQuery": []
          }
        ],
        "parameters": [
          {
            "name": "orgId",
            "in": "query",
            "required": false,
            "description": "The organization. You can leave it out when you are an admin of only one organization.",
            "schema": {
              "type": "string",
              "example": "R7cP2mQ9sL4vN8xK3tW6yB"
            }
          }
        ],
        "responses": {
          "200": {
            "description": "The organization's webhook endpoints",
            "content": {
              "application/json": {
                "schema": {
                  "type": "object",
                  "required": [
                    "endpoints"
                  ],
                  "properties": {
                    "endpoints": {
                      "type": "array",
                      "items": {
                        "$ref": "#/components/schemas/WebhookEndpoint"
                      }
                    }
                  }
                },
                "example": {
                  "endpoints": [
                    {
                      "id": "Xk3T9pQ2LmN8vR4sW7yZa1",
                      "orgId": "R7cP2mQ9sL4vN8xK3tW6yB",
                      "url": "https://example.com/precip/webhooks",
                      "description": "Irrigation scheduler",
                      "events": [
                        "threshold_rule.triggered"
                      ],
                      "ruleIds": null,
                      "enabled": true,
                      "disabledReason": null,
                      "disabledAt": null,
                      "lastSuccessAt": "2026-11-18T14:15:02.000Z",
                      "lastFailureAt": null,
                      "createdAt": "2026-11-01T09:30:00.000Z",
                      "updatedAt": "2026-11-01T09:30:00.000Z"
                    }
                  ]
                }
              }
            }
          },
          "400": {
            "description": "orgId is missing and you are an admin of more than one organization, or of none (org_required)",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/WebhookErrorResponse"
                },
                "examples": {
                  "org_required": {
                    "summary": "You are an admin of more than one organization",
                    "value": {
                      "error": "You are an admin of more than one organization. Pass orgId.",
                      "code": "org_required"
                    }
                  },
                  "org_required_no_admin": {
                    "summary": "You are not an admin of any organization",
                    "value": {
                      "error": "You are not an admin of an organization. Pass orgId.",
                      "code": "org_required"
                    }
                  }
                }
              }
            }
          },
          "401": {
            "description": "No API key, or the key is not valid. Send it as Authorization: Bearer or as ?apiKey=.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/WebhookProblemResponse"
                },
                "example": {
                  "type": "https://httpproblems.com/http-status/401",
                  "title": "Unauthorized",
                  "status": 401,
                  "detail": "Send a valid Precip API key as Authorization: Bearer or ?apiKey=. Docs: https://api.precip.ai/docs/getting-started",
                  "instance": "/api/v1/webhooks"
                }
              }
            }
          },
          "403": {
            "description": "You can't manage webhooks of this organization (webhook_forbidden), you are in no organization (org_required), the API key is scoped to another organization (org_key_mismatch), the key or sign-in isn't tied to an active Precip user or organization (account_required, hobby_api_revoked, mcp_plan_required), or the API key has no commercial access (commercial_tier_required; webhooks are commercial only, and upgradeUrl says how to get it)",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/WebhookErrorResponse"
                },
                "examples": {
                  "webhook_forbidden": {
                    "summary": "You are not an admin of the organization",
                    "value": {
                      "error": "Only an admin of the organization can manage its webhooks.",
                      "code": "webhook_forbidden"
                    }
                  },
                  "org_required": {
                    "summary": "You are not in an organization",
                    "value": {
                      "error": "Webhooks belong to an organization. Join or create one first.",
                      "code": "org_required"
                    }
                  },
                  "org_key_mismatch": {
                    "summary": "The API key is scoped to a different organization",
                    "value": {
                      "error": "This API key is scoped to a different organization.",
                      "code": "org_key_mismatch"
                    }
                  },
                  "account_required": {
                    "summary": "The key is not tied to a Precip user or organization",
                    "value": {
                      "error": "This needs a Precip account. Sign in with Precip, or use an API key.",
                      "code": "account_required"
                    }
                  },
                  "hobby_api_revoked": {
                    "summary": "The personal API key is no longer active",
                    "value": {
                      "error": "This personal API key is no longer active. Subscribe to Precip to restore access at https://app.precip.ai/upgrade?upgrade_type=api_access. Pay-per-use without a key: https://api.precip.ai/mcp-x402.",
                      "code": "hobby_api_revoked",
                      "upgradeUrl": "https://app.precip.ai/upgrade?upgrade_type=api_access",
                      "x402Url": "https://api.precip.ai/mcp-x402"
                    }
                  },
                  "mcp_plan_required": {
                    "summary": "The sign-in is not a Precip user",
                    "value": {
                      "error": "This login is not a Precip user. Create an account at https://app.precip.ai/upgrade?upgrade_type=mcp_access. Pay-per-use without a key: https://api.precip.ai/mcp-x402.",
                      "code": "mcp_plan_required",
                      "upgradeUrl": "https://app.precip.ai/upgrade?upgrade_type=mcp_access",
                      "x402Url": "https://api.precip.ai/mcp-x402"
                    }
                  },
                  "commercial_tier_required": {
                    "summary": "The key has no commercial access",
                    "value": {
                      "error": "Webhooks are part of commercial API access. Contact us to upgrade your API key.",
                      "code": "commercial_tier_required",
                      "upgradeUrl": "https://savvycal.com/precip/demo"
                    }
                  }
                }
              }
            }
          },
          "429": {
            "description": "More than 30 requests a minute from your account. Wait for the number of seconds in the Retry-After header.",
            "headers": {
              "Retry-After": {
                "description": "Seconds to wait before the next request",
                "schema": {
                  "type": "integer"
                }
              }
            },
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/WebhookProblemResponse"
                }
              }
            }
          },
          "503": {
            "description": "Webhooks are not available right now; try again later",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/WebhookErrorResponse"
                },
                "examples": {
                  "webhooks_unavailable": {
                    "summary": "Webhooks are not available",
                    "value": {
                      "error": "Webhooks are not available right now. Try again later.",
                      "code": "webhooks_unavailable"
                    }
                  }
                }
              }
            }
          }
        },
        "operationId": "list_webhook_endpoints"
      },
      "post": {
        "summary": "Create a Webhook Endpoint",
        "description": "Register an HTTPS URL that gets a signed POST when a threshold rule of your organization fires. The response has the signing secret. This is the only time you see it, so store it now. An organization can have 10 endpoints. Only organization admins can use this. Requires Growth, Enterprise, or Starter with the Webhooks add-on.",
        "tags": [
          "Webhooks"
        ],
        "x-order": 2,
        "security": [
          {
            "BearerAuth": []
          },
          {
            "ApiKeyQuery": []
          }
        ],
        "requestBody": {
          "required": true,
          "content": {
            "application/json": {
              "schema": {
                "type": "object",
                "required": [
                  "url"
                ],
                "properties": {
                  "url": {
                    "type": "string",
                    "format": "uri",
                    "maxLength": 2048,
                    "description": "Where Precip sends events. It must use https:// and a public host. Precip does not follow redirects.",
                    "example": "https://example.com/precip/webhooks"
                  },
                  "description": {
                    "type": "string",
                    "maxLength": 200,
                    "description": "A note for you, for example what the endpoint is for",
                    "example": "Irrigation scheduler"
                  },
                  "events": {
                    "type": "array",
                    "minItems": 1,
                    "items": {
                      "$ref": "#/components/schemas/WebhookEventType"
                    },
                    "default": [
                      "threshold_rule.triggered"
                    ],
                    "description": "The events to send. Leave it out to get threshold_rule.triggered."
                  },
                  "ruleIds": {
                    "type": "array",
                    "nullable": true,
                    "minItems": 1,
                    "maxItems": 200,
                    "items": {
                      "type": "string",
                      "minLength": 1,
                      "maxLength": 64
                    },
                    "description": "Only send events for these threshold rules (1 to 200 IDs). Leave it out, or send null, to get every rule of the organization. An empty list is not valid.",
                    "example": [
                      "H2kL9mP4qR7sT1vW5xZ8aC"
                    ]
                  },
                  "orgId": {
                    "type": "string",
                    "description": "The organization. You can leave it out when you are an admin of only one organization.",
                    "example": "R7cP2mQ9sL4vN8xK3tW6yB"
                  }
                }
              },
              "example": {
                "url": "https://example.com/precip/webhooks",
                "description": "Irrigation scheduler",
                "ruleIds": [
                  "H2kL9mP4qR7sT1vW5xZ8aC"
                ]
              }
            }
          }
        },
        "responses": {
          "201": {
            "description": "The new endpoint and its signing secret",
            "content": {
              "application/json": {
                "schema": {
                  "type": "object",
                  "required": [
                    "endpoint",
                    "secret"
                  ],
                  "properties": {
                    "endpoint": {
                      "$ref": "#/components/schemas/WebhookEndpoint"
                    },
                    "secret": {
                      "$ref": "#/components/schemas/WebhookSecret"
                    }
                  }
                },
                "example": {
                  "endpoint": {
                    "id": "Xk3T9pQ2LmN8vR4sW7yZa1",
                    "orgId": "R7cP2mQ9sL4vN8xK3tW6yB",
                    "url": "https://example.com/precip/webhooks",
                    "description": "Irrigation scheduler",
                    "events": [
                      "threshold_rule.triggered"
                    ],
                    "ruleIds": [
                      "H2kL9mP4qR7sT1vW5xZ8aC"
                    ],
                    "enabled": true,
                    "disabledReason": null,
                    "disabledAt": null,
                    "lastSuccessAt": null,
                    "lastFailureAt": null,
                    "createdAt": "2026-11-01T09:30:00.000Z",
                    "updatedAt": "2026-11-01T09:30:00.000Z"
                  },
                  "secret": "whsec_MfKQ9r8GKYqrTwjUPD8ILPZIo2LaLaSw"
                }
              }
            }
          },
          "400": {
            "description": "The body is not valid (invalid_webhook), orgId is missing and you are an admin of more than one organization, or of none (org_required), or a rule ID is not a rule of the organization (invalid_rule_ids)",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/WebhookErrorResponse"
                },
                "examples": {
                  "invalid_webhook": {
                    "summary": "The body is not valid",
                    "value": {
                      "error": "url: Use an https URL.",
                      "code": "invalid_webhook"
                    }
                  },
                  "org_required": {
                    "summary": "You are an admin of more than one organization",
                    "value": {
                      "error": "You are an admin of more than one organization. Pass orgId.",
                      "code": "org_required"
                    }
                  },
                  "org_required_no_admin": {
                    "summary": "You are not an admin of any organization",
                    "value": {
                      "error": "You are not an admin of an organization. Pass orgId.",
                      "code": "org_required"
                    }
                  },
                  "invalid_rule_ids": {
                    "summary": "A rule ID is not a rule of this organization",
                    "value": {
                      "error": "These rules are not rules of the organization: H2kL9mP4qR7sT1vW5xZ8aD",
                      "code": "invalid_rule_ids"
                    }
                  }
                }
              }
            }
          },
          "401": {
            "description": "No API key, or the key is not valid. Send it as Authorization: Bearer or as ?apiKey=.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/WebhookProblemResponse"
                },
                "example": {
                  "type": "https://httpproblems.com/http-status/401",
                  "title": "Unauthorized",
                  "status": 401,
                  "detail": "Send a valid Precip API key as Authorization: Bearer or ?apiKey=. Docs: https://api.precip.ai/docs/getting-started",
                  "instance": "/api/v1/webhooks"
                }
              }
            }
          },
          "403": {
            "description": "You can't manage webhooks of this organization (webhook_forbidden), you are in no organization (org_required), the API key is scoped to another organization (org_key_mismatch), the key or sign-in isn't tied to an active Precip user or organization (account_required, hobby_api_revoked, mcp_plan_required), or the API key has no commercial access (commercial_tier_required; webhooks are commercial only, and upgradeUrl says how to get it)",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/WebhookErrorResponse"
                },
                "examples": {
                  "webhook_forbidden": {
                    "summary": "You are not an admin of the organization",
                    "value": {
                      "error": "Only an admin of the organization can manage its webhooks.",
                      "code": "webhook_forbidden"
                    }
                  },
                  "org_required": {
                    "summary": "You are not in an organization",
                    "value": {
                      "error": "Webhooks belong to an organization. Join or create one first.",
                      "code": "org_required"
                    }
                  },
                  "org_key_mismatch": {
                    "summary": "The API key is scoped to a different organization",
                    "value": {
                      "error": "This API key is scoped to a different organization.",
                      "code": "org_key_mismatch"
                    }
                  },
                  "account_required": {
                    "summary": "The key is not tied to a Precip user or organization",
                    "value": {
                      "error": "This needs a Precip account. Sign in with Precip, or use an API key.",
                      "code": "account_required"
                    }
                  },
                  "hobby_api_revoked": {
                    "summary": "The personal API key is no longer active",
                    "value": {
                      "error": "This personal API key is no longer active. Subscribe to Precip to restore access at https://app.precip.ai/upgrade?upgrade_type=api_access. Pay-per-use without a key: https://api.precip.ai/mcp-x402.",
                      "code": "hobby_api_revoked",
                      "upgradeUrl": "https://app.precip.ai/upgrade?upgrade_type=api_access",
                      "x402Url": "https://api.precip.ai/mcp-x402"
                    }
                  },
                  "mcp_plan_required": {
                    "summary": "The sign-in is not a Precip user",
                    "value": {
                      "error": "This login is not a Precip user. Create an account at https://app.precip.ai/upgrade?upgrade_type=mcp_access. Pay-per-use without a key: https://api.precip.ai/mcp-x402.",
                      "code": "mcp_plan_required",
                      "upgradeUrl": "https://app.precip.ai/upgrade?upgrade_type=mcp_access",
                      "x402Url": "https://api.precip.ai/mcp-x402"
                    }
                  },
                  "commercial_tier_required": {
                    "summary": "The key has no commercial access",
                    "value": {
                      "error": "Webhooks are part of commercial API access. Contact us to upgrade your API key.",
                      "code": "commercial_tier_required",
                      "upgradeUrl": "https://savvycal.com/precip/demo"
                    }
                  }
                }
              }
            }
          },
          "409": {
            "description": "The organization already has 10 webhook endpoints",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/WebhookErrorResponse"
                },
                "examples": {
                  "webhook_limit_reached": {
                    "summary": "The organization has 10 endpoints",
                    "value": {
                      "error": "An organization can have at most 10 webhook endpoints.",
                      "code": "webhook_limit_reached"
                    }
                  }
                }
              }
            }
          },
          "429": {
            "description": "More than 30 requests a minute from your account. Wait for the number of seconds in the Retry-After header.",
            "headers": {
              "Retry-After": {
                "description": "Seconds to wait before the next request",
                "schema": {
                  "type": "integer"
                }
              }
            },
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/WebhookProblemResponse"
                }
              }
            }
          },
          "503": {
            "description": "Webhooks are not available right now; try again later",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/WebhookErrorResponse"
                },
                "examples": {
                  "webhooks_unavailable": {
                    "summary": "Webhooks are not available",
                    "value": {
                      "error": "Webhooks are not available right now. Try again later.",
                      "code": "webhooks_unavailable"
                    }
                  }
                }
              }
            }
          }
        },
        "operationId": "create_webhook_endpoint"
      }
    },
    "/api/v1/webhooks/{id}": {
      "get": {
        "summary": "Get a Webhook Endpoint",
        "description": "One webhook endpoint, with its state and the time of the last success and failure. The response never includes the signing secret. Requires Growth, Enterprise, or Starter with the Webhooks add-on.",
        "tags": [
          "Webhooks"
        ],
        "x-order": 3,
        "security": [
          {
            "BearerAuth": []
          },
          {
            "ApiKeyQuery": []
          }
        ],
        "parameters": [
          {
            "name": "id",
            "in": "path",
            "required": true,
            "description": "Webhook endpoint ID",
            "schema": {
              "type": "string",
              "example": "Xk3T9pQ2LmN8vR4sW7yZa1"
            }
          }
        ],
        "responses": {
          "200": {
            "description": "The endpoint",
            "content": {
              "application/json": {
                "schema": {
                  "type": "object",
                  "required": [
                    "endpoint"
                  ],
                  "properties": {
                    "endpoint": {
                      "$ref": "#/components/schemas/WebhookEndpoint"
                    }
                  }
                },
                "example": {
                  "endpoint": {
                    "id": "Xk3T9pQ2LmN8vR4sW7yZa1",
                    "orgId": "R7cP2mQ9sL4vN8xK3tW6yB",
                    "url": "https://example.com/precip/webhooks",
                    "description": "Irrigation scheduler",
                    "events": [
                      "threshold_rule.triggered"
                    ],
                    "ruleIds": null,
                    "enabled": true,
                    "disabledReason": null,
                    "disabledAt": null,
                    "lastSuccessAt": "2026-11-18T14:15:02.000Z",
                    "lastFailureAt": null,
                    "createdAt": "2026-11-01T09:30:00.000Z",
                    "updatedAt": "2026-11-01T09:30:00.000Z"
                  }
                }
              }
            }
          },
          "401": {
            "description": "No API key, or the key is not valid. Send it as Authorization: Bearer or as ?apiKey=.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/WebhookProblemResponse"
                },
                "example": {
                  "type": "https://httpproblems.com/http-status/401",
                  "title": "Unauthorized",
                  "status": 401,
                  "detail": "Send a valid Precip API key as Authorization: Bearer or ?apiKey=. Docs: https://api.precip.ai/docs/getting-started",
                  "instance": "/api/v1/webhooks"
                }
              }
            }
          },
          "403": {
            "description": "You are not an admin of the endpoint's organization (webhook_forbidden), you are in no organization (org_required), or the key or sign-in isn't tied to an active Precip user (account_required, hobby_api_revoked, mcp_plan_required), or the API key has no commercial access (commercial_tier_required; webhooks are commercial only, and upgradeUrl says how to get it)",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/WebhookErrorResponse"
                },
                "examples": {
                  "webhook_forbidden": {
                    "summary": "You are not an admin of the organization",
                    "value": {
                      "error": "Only an admin of the organization can manage its webhooks.",
                      "code": "webhook_forbidden"
                    }
                  },
                  "org_required": {
                    "summary": "You are not in an organization",
                    "value": {
                      "error": "Webhooks belong to an organization. Join or create one first.",
                      "code": "org_required"
                    }
                  },
                  "account_required": {
                    "summary": "The key is not tied to a Precip user or organization",
                    "value": {
                      "error": "This needs a Precip account. Sign in with Precip, or use an API key.",
                      "code": "account_required"
                    }
                  },
                  "hobby_api_revoked": {
                    "summary": "The personal API key is no longer active",
                    "value": {
                      "error": "This personal API key is no longer active. Subscribe to Precip to restore access at https://app.precip.ai/upgrade?upgrade_type=api_access. Pay-per-use without a key: https://api.precip.ai/mcp-x402.",
                      "code": "hobby_api_revoked",
                      "upgradeUrl": "https://app.precip.ai/upgrade?upgrade_type=api_access",
                      "x402Url": "https://api.precip.ai/mcp-x402"
                    }
                  },
                  "mcp_plan_required": {
                    "summary": "The sign-in is not a Precip user",
                    "value": {
                      "error": "This login is not a Precip user. Create an account at https://app.precip.ai/upgrade?upgrade_type=mcp_access. Pay-per-use without a key: https://api.precip.ai/mcp-x402.",
                      "code": "mcp_plan_required",
                      "upgradeUrl": "https://app.precip.ai/upgrade?upgrade_type=mcp_access",
                      "x402Url": "https://api.precip.ai/mcp-x402"
                    }
                  },
                  "commercial_tier_required": {
                    "summary": "The key has no commercial access",
                    "value": {
                      "error": "Webhooks are part of commercial API access. Contact us to upgrade your API key.",
                      "code": "commercial_tier_required",
                      "upgradeUrl": "https://savvycal.com/precip/demo"
                    }
                  }
                }
              }
            }
          },
          "404": {
            "description": "No webhook endpoint with this ID in an organization you belong to (webhook_not_found)",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/WebhookErrorResponse"
                },
                "examples": {
                  "not_found": {
                    "summary": "No endpoint with this ID in your organizations",
                    "value": {
                      "error": "Webhook endpoint not found.",
                      "code": "webhook_not_found"
                    }
                  }
                }
              }
            }
          },
          "429": {
            "description": "More than 30 requests a minute from your account. Wait for the number of seconds in the Retry-After header.",
            "headers": {
              "Retry-After": {
                "description": "Seconds to wait before the next request",
                "schema": {
                  "type": "integer"
                }
              }
            },
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/WebhookProblemResponse"
                }
              }
            }
          },
          "503": {
            "description": "Webhooks are not available right now; try again later",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/WebhookErrorResponse"
                },
                "examples": {
                  "webhooks_unavailable": {
                    "summary": "Webhooks are not available",
                    "value": {
                      "error": "Webhooks are not available right now. Try again later.",
                      "code": "webhooks_unavailable"
                    }
                  }
                }
              }
            }
          }
        },
        "operationId": "get_webhook_endpoint"
      },
      "patch": {
        "summary": "Update a Webhook Endpoint",
        "description": "Change the URL, description, events or rules of an endpoint, or turn it off and on. Send only the fields to change. Precip turns an endpoint off after 3 failed deliveries in a row. Send enabled: true to turn it on again; this also resets the failure count. Requires Growth, Enterprise, or Starter with the Webhooks add-on.",
        "tags": [
          "Webhooks"
        ],
        "x-order": 4,
        "security": [
          {
            "BearerAuth": []
          },
          {
            "ApiKeyQuery": []
          }
        ],
        "parameters": [
          {
            "name": "id",
            "in": "path",
            "required": true,
            "description": "Webhook endpoint ID",
            "schema": {
              "type": "string",
              "example": "Xk3T9pQ2LmN8vR4sW7yZa1"
            }
          }
        ],
        "requestBody": {
          "required": true,
          "content": {
            "application/json": {
              "schema": {
                "type": "object",
                "properties": {
                  "url": {
                    "type": "string",
                    "format": "uri",
                    "maxLength": 2048,
                    "description": "Where Precip sends events. It must use https:// and a public host."
                  },
                  "description": {
                    "type": "string",
                    "nullable": true,
                    "maxLength": 200,
                    "description": "A note for you. Send null to remove it."
                  },
                  "events": {
                    "type": "array",
                    "minItems": 1,
                    "items": {
                      "$ref": "#/components/schemas/WebhookEventType"
                    },
                    "description": "The events to send"
                  },
                  "ruleIds": {
                    "type": "array",
                    "nullable": true,
                    "minItems": 1,
                    "maxItems": 200,
                    "items": {
                      "type": "string",
                      "minLength": 1,
                      "maxLength": 64
                    },
                    "description": "Only send events for these threshold rules (1 to 200 IDs). Send null to get every rule of the organization. An empty list is not valid."
                  },
                  "enabled": {
                    "type": "boolean",
                    "description": "false stops deliveries. true starts them again and clears disabledReason and the failure count."
                  }
                }
              },
              "example": {
                "enabled": true
              }
            }
          }
        },
        "responses": {
          "200": {
            "description": "The updated endpoint",
            "content": {
              "application/json": {
                "schema": {
                  "type": "object",
                  "required": [
                    "endpoint"
                  ],
                  "properties": {
                    "endpoint": {
                      "$ref": "#/components/schemas/WebhookEndpoint"
                    }
                  }
                },
                "example": {
                  "endpoint": {
                    "id": "Xk3T9pQ2LmN8vR4sW7yZa1",
                    "orgId": "R7cP2mQ9sL4vN8xK3tW6yB",
                    "url": "https://example.com/precip/webhooks",
                    "description": "Irrigation scheduler",
                    "events": [
                      "threshold_rule.triggered"
                    ],
                    "ruleIds": null,
                    "enabled": true,
                    "disabledReason": null,
                    "disabledAt": null,
                    "lastSuccessAt": "2026-11-18T14:15:02.000Z",
                    "lastFailureAt": null,
                    "createdAt": "2026-11-01T09:30:00.000Z",
                    "updatedAt": "2026-11-18T15:00:00.000Z"
                  }
                }
              }
            }
          },
          "400": {
            "description": "The body is not valid (invalid_webhook), or a rule ID is not a rule of the organization (invalid_rule_ids)",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/WebhookErrorResponse"
                },
                "examples": {
                  "invalid_webhook": {
                    "summary": "The body is not valid",
                    "value": {
                      "error": "url: Use an https URL.",
                      "code": "invalid_webhook"
                    }
                  },
                  "invalid_rule_ids": {
                    "summary": "A rule ID is not a rule of this organization",
                    "value": {
                      "error": "These rules are not rules of the organization: H2kL9mP4qR7sT1vW5xZ8aD",
                      "code": "invalid_rule_ids"
                    }
                  }
                }
              }
            }
          },
          "401": {
            "description": "No API key, or the key is not valid. Send it as Authorization: Bearer or as ?apiKey=.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/WebhookProblemResponse"
                },
                "example": {
                  "type": "https://httpproblems.com/http-status/401",
                  "title": "Unauthorized",
                  "status": 401,
                  "detail": "Send a valid Precip API key as Authorization: Bearer or ?apiKey=. Docs: https://api.precip.ai/docs/getting-started",
                  "instance": "/api/v1/webhooks"
                }
              }
            }
          },
          "403": {
            "description": "You are not an admin of the endpoint's organization (webhook_forbidden), you are in no organization (org_required), or the key or sign-in isn't tied to an active Precip user (account_required, hobby_api_revoked, mcp_plan_required), or the API key has no commercial access (commercial_tier_required; webhooks are commercial only, and upgradeUrl says how to get it)",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/WebhookErrorResponse"
                },
                "examples": {
                  "webhook_forbidden": {
                    "summary": "You are not an admin of the organization",
                    "value": {
                      "error": "Only an admin of the organization can manage its webhooks.",
                      "code": "webhook_forbidden"
                    }
                  },
                  "org_required": {
                    "summary": "You are not in an organization",
                    "value": {
                      "error": "Webhooks belong to an organization. Join or create one first.",
                      "code": "org_required"
                    }
                  },
                  "account_required": {
                    "summary": "The key is not tied to a Precip user or organization",
                    "value": {
                      "error": "This needs a Precip account. Sign in with Precip, or use an API key.",
                      "code": "account_required"
                    }
                  },
                  "hobby_api_revoked": {
                    "summary": "The personal API key is no longer active",
                    "value": {
                      "error": "This personal API key is no longer active. Subscribe to Precip to restore access at https://app.precip.ai/upgrade?upgrade_type=api_access. Pay-per-use without a key: https://api.precip.ai/mcp-x402.",
                      "code": "hobby_api_revoked",
                      "upgradeUrl": "https://app.precip.ai/upgrade?upgrade_type=api_access",
                      "x402Url": "https://api.precip.ai/mcp-x402"
                    }
                  },
                  "mcp_plan_required": {
                    "summary": "The sign-in is not a Precip user",
                    "value": {
                      "error": "This login is not a Precip user. Create an account at https://app.precip.ai/upgrade?upgrade_type=mcp_access. Pay-per-use without a key: https://api.precip.ai/mcp-x402.",
                      "code": "mcp_plan_required",
                      "upgradeUrl": "https://app.precip.ai/upgrade?upgrade_type=mcp_access",
                      "x402Url": "https://api.precip.ai/mcp-x402"
                    }
                  },
                  "commercial_tier_required": {
                    "summary": "The key has no commercial access",
                    "value": {
                      "error": "Webhooks are part of commercial API access. Contact us to upgrade your API key.",
                      "code": "commercial_tier_required",
                      "upgradeUrl": "https://savvycal.com/precip/demo"
                    }
                  }
                }
              }
            }
          },
          "404": {
            "description": "No webhook endpoint with this ID in an organization you belong to (webhook_not_found)",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/WebhookErrorResponse"
                },
                "examples": {
                  "not_found": {
                    "summary": "No endpoint with this ID in your organizations",
                    "value": {
                      "error": "Webhook endpoint not found.",
                      "code": "webhook_not_found"
                    }
                  }
                }
              }
            }
          },
          "429": {
            "description": "More than 30 requests a minute from your account. Wait for the number of seconds in the Retry-After header.",
            "headers": {
              "Retry-After": {
                "description": "Seconds to wait before the next request",
                "schema": {
                  "type": "integer"
                }
              }
            },
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/WebhookProblemResponse"
                }
              }
            }
          },
          "503": {
            "description": "Webhooks are not available right now; try again later",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/WebhookErrorResponse"
                },
                "examples": {
                  "webhooks_unavailable": {
                    "summary": "Webhooks are not available",
                    "value": {
                      "error": "Webhooks are not available right now. Try again later.",
                      "code": "webhooks_unavailable"
                    }
                  }
                }
              }
            }
          }
        },
        "operationId": "update_webhook_endpoint"
      },
      "delete": {
        "summary": "Delete a Webhook Endpoint",
        "description": "Delete an endpoint and its delivery log. Deliveries that wait for a retry are not sent. Requires Growth, Enterprise, or Starter with the Webhooks add-on.",
        "tags": [
          "Webhooks"
        ],
        "x-order": 5,
        "security": [
          {
            "BearerAuth": []
          },
          {
            "ApiKeyQuery": []
          }
        ],
        "parameters": [
          {
            "name": "id",
            "in": "path",
            "required": true,
            "description": "Webhook endpoint ID",
            "schema": {
              "type": "string",
              "example": "Xk3T9pQ2LmN8vR4sW7yZa1"
            }
          }
        ],
        "responses": {
          "204": {
            "description": "The endpoint is deleted"
          },
          "401": {
            "description": "No API key, or the key is not valid. Send it as Authorization: Bearer or as ?apiKey=.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/WebhookProblemResponse"
                },
                "example": {
                  "type": "https://httpproblems.com/http-status/401",
                  "title": "Unauthorized",
                  "status": 401,
                  "detail": "Send a valid Precip API key as Authorization: Bearer or ?apiKey=. Docs: https://api.precip.ai/docs/getting-started",
                  "instance": "/api/v1/webhooks"
                }
              }
            }
          },
          "403": {
            "description": "You are not an admin of the endpoint's organization (webhook_forbidden), you are in no organization (org_required), or the key or sign-in isn't tied to an active Precip user (account_required, hobby_api_revoked, mcp_plan_required), or the API key has no commercial access (commercial_tier_required; webhooks are commercial only, and upgradeUrl says how to get it)",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/WebhookErrorResponse"
                },
                "examples": {
                  "webhook_forbidden": {
                    "summary": "You are not an admin of the organization",
                    "value": {
                      "error": "Only an admin of the organization can manage its webhooks.",
                      "code": "webhook_forbidden"
                    }
                  },
                  "org_required": {
                    "summary": "You are not in an organization",
                    "value": {
                      "error": "Webhooks belong to an organization. Join or create one first.",
                      "code": "org_required"
                    }
                  },
                  "account_required": {
                    "summary": "The key is not tied to a Precip user or organization",
                    "value": {
                      "error": "This needs a Precip account. Sign in with Precip, or use an API key.",
                      "code": "account_required"
                    }
                  },
                  "hobby_api_revoked": {
                    "summary": "The personal API key is no longer active",
                    "value": {
                      "error": "This personal API key is no longer active. Subscribe to Precip to restore access at https://app.precip.ai/upgrade?upgrade_type=api_access. Pay-per-use without a key: https://api.precip.ai/mcp-x402.",
                      "code": "hobby_api_revoked",
                      "upgradeUrl": "https://app.precip.ai/upgrade?upgrade_type=api_access",
                      "x402Url": "https://api.precip.ai/mcp-x402"
                    }
                  },
                  "mcp_plan_required": {
                    "summary": "The sign-in is not a Precip user",
                    "value": {
                      "error": "This login is not a Precip user. Create an account at https://app.precip.ai/upgrade?upgrade_type=mcp_access. Pay-per-use without a key: https://api.precip.ai/mcp-x402.",
                      "code": "mcp_plan_required",
                      "upgradeUrl": "https://app.precip.ai/upgrade?upgrade_type=mcp_access",
                      "x402Url": "https://api.precip.ai/mcp-x402"
                    }
                  },
                  "commercial_tier_required": {
                    "summary": "The key has no commercial access",
                    "value": {
                      "error": "Webhooks are part of commercial API access. Contact us to upgrade your API key.",
                      "code": "commercial_tier_required",
                      "upgradeUrl": "https://savvycal.com/precip/demo"
                    }
                  }
                }
              }
            }
          },
          "404": {
            "description": "No webhook endpoint with this ID in an organization you belong to (webhook_not_found)",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/WebhookErrorResponse"
                },
                "examples": {
                  "not_found": {
                    "summary": "No endpoint with this ID in your organizations",
                    "value": {
                      "error": "Webhook endpoint not found.",
                      "code": "webhook_not_found"
                    }
                  }
                }
              }
            }
          },
          "429": {
            "description": "More than 30 requests a minute from your account. Wait for the number of seconds in the Retry-After header.",
            "headers": {
              "Retry-After": {
                "description": "Seconds to wait before the next request",
                "schema": {
                  "type": "integer"
                }
              }
            },
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/WebhookProblemResponse"
                }
              }
            }
          },
          "503": {
            "description": "Webhooks are not available right now; try again later",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/WebhookErrorResponse"
                },
                "examples": {
                  "webhooks_unavailable": {
                    "summary": "Webhooks are not available",
                    "value": {
                      "error": "Webhooks are not available right now. Try again later.",
                      "code": "webhooks_unavailable"
                    }
                  }
                }
              }
            }
          }
        },
        "operationId": "delete_webhook_endpoint"
      }
    },
    "/api/v1/webhooks/{id}/rotate-secret": {
      "post": {
        "summary": "Rotate a Webhook Secret",
        "description": "Make a new signing secret. The response is the only time you see it. For the next 24 hours each delivery has two signatures, one from the new secret and one from the old secret, so you can change your server without missing events. After 24 hours only the new secret signs. Only the secret just before the latest rotation stays valid: if you rotate again within the 24 hours, the older secret stops at once. Requires Growth, Enterprise, or Starter with the Webhooks add-on.",
        "tags": [
          "Webhooks"
        ],
        "x-order": 6,
        "security": [
          {
            "BearerAuth": []
          },
          {
            "ApiKeyQuery": []
          }
        ],
        "parameters": [
          {
            "name": "id",
            "in": "path",
            "required": true,
            "description": "Webhook endpoint ID",
            "schema": {
              "type": "string",
              "example": "Xk3T9pQ2LmN8vR4sW7yZa1"
            }
          }
        ],
        "responses": {
          "200": {
            "description": "The new signing secret",
            "content": {
              "application/json": {
                "schema": {
                  "type": "object",
                  "required": [
                    "secret"
                  ],
                  "properties": {
                    "secret": {
                      "$ref": "#/components/schemas/WebhookSecret"
                    }
                  }
                },
                "example": {
                  "secret": "whsec_MfKQ9r8GKYqrTwjUPD8ILPZIo2LaLaSw"
                }
              }
            }
          },
          "401": {
            "description": "No API key, or the key is not valid. Send it as Authorization: Bearer or as ?apiKey=.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/WebhookProblemResponse"
                },
                "example": {
                  "type": "https://httpproblems.com/http-status/401",
                  "title": "Unauthorized",
                  "status": 401,
                  "detail": "Send a valid Precip API key as Authorization: Bearer or ?apiKey=. Docs: https://api.precip.ai/docs/getting-started",
                  "instance": "/api/v1/webhooks"
                }
              }
            }
          },
          "403": {
            "description": "You are not an admin of the endpoint's organization (webhook_forbidden), you are in no organization (org_required), or the key or sign-in isn't tied to an active Precip user (account_required, hobby_api_revoked, mcp_plan_required), or the API key has no commercial access (commercial_tier_required; webhooks are commercial only, and upgradeUrl says how to get it)",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/WebhookErrorResponse"
                },
                "examples": {
                  "webhook_forbidden": {
                    "summary": "You are not an admin of the organization",
                    "value": {
                      "error": "Only an admin of the organization can manage its webhooks.",
                      "code": "webhook_forbidden"
                    }
                  },
                  "org_required": {
                    "summary": "You are not in an organization",
                    "value": {
                      "error": "Webhooks belong to an organization. Join or create one first.",
                      "code": "org_required"
                    }
                  },
                  "account_required": {
                    "summary": "The key is not tied to a Precip user or organization",
                    "value": {
                      "error": "This needs a Precip account. Sign in with Precip, or use an API key.",
                      "code": "account_required"
                    }
                  },
                  "hobby_api_revoked": {
                    "summary": "The personal API key is no longer active",
                    "value": {
                      "error": "This personal API key is no longer active. Subscribe to Precip to restore access at https://app.precip.ai/upgrade?upgrade_type=api_access. Pay-per-use without a key: https://api.precip.ai/mcp-x402.",
                      "code": "hobby_api_revoked",
                      "upgradeUrl": "https://app.precip.ai/upgrade?upgrade_type=api_access",
                      "x402Url": "https://api.precip.ai/mcp-x402"
                    }
                  },
                  "mcp_plan_required": {
                    "summary": "The sign-in is not a Precip user",
                    "value": {
                      "error": "This login is not a Precip user. Create an account at https://app.precip.ai/upgrade?upgrade_type=mcp_access. Pay-per-use without a key: https://api.precip.ai/mcp-x402.",
                      "code": "mcp_plan_required",
                      "upgradeUrl": "https://app.precip.ai/upgrade?upgrade_type=mcp_access",
                      "x402Url": "https://api.precip.ai/mcp-x402"
                    }
                  },
                  "commercial_tier_required": {
                    "summary": "The key has no commercial access",
                    "value": {
                      "error": "Webhooks are part of commercial API access. Contact us to upgrade your API key.",
                      "code": "commercial_tier_required",
                      "upgradeUrl": "https://savvycal.com/precip/demo"
                    }
                  }
                }
              }
            }
          },
          "404": {
            "description": "No webhook endpoint with this ID in an organization you belong to (webhook_not_found)",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/WebhookErrorResponse"
                },
                "examples": {
                  "not_found": {
                    "summary": "No endpoint with this ID in your organizations",
                    "value": {
                      "error": "Webhook endpoint not found.",
                      "code": "webhook_not_found"
                    }
                  }
                }
              }
            }
          },
          "409": {
            "description": "Another rotation changed the secret while this call ran (webhook_secret_conflict)",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/WebhookErrorResponse"
                },
                "examples": {
                  "webhook_secret_conflict": {
                    "summary": "Concurrent secret rotation conflict",
                    "value": {
                      "error": "The secret changed while this call ran. Get the secret from the call that changed it, or rotate again.",
                      "code": "webhook_secret_conflict",
                      "retryable": true
                    }
                  }
                }
              }
            }
          },
          "429": {
            "description": "More than 30 requests a minute from your account. Wait for the number of seconds in the Retry-After header.",
            "headers": {
              "Retry-After": {
                "description": "Seconds to wait before the next request",
                "schema": {
                  "type": "integer"
                }
              }
            },
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/WebhookProblemResponse"
                }
              }
            }
          },
          "503": {
            "description": "Webhooks are not available right now; try again later",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/WebhookErrorResponse"
                },
                "examples": {
                  "webhooks_unavailable": {
                    "summary": "Webhooks are not available",
                    "value": {
                      "error": "Webhooks are not available right now. Try again later.",
                      "code": "webhooks_unavailable"
                    }
                  }
                }
              }
            }
          }
        },
        "operationId": "rotate_webhook_secret"
      }
    },
    "/api/v1/webhooks/{id}/test": {
      "post": {
        "summary": "Send a Test Event",
        "description": "Queue a test webhook event to the endpoint. Send an empty body (or `{\"eventType\": \"webhook.test\"}`) for a lightweight `webhook.test` ping, or `{\"eventType\": \"threshold_rule.triggered\"}` (optionally with `ruleId`) to receive a realistic sample `threshold_rule.triggered` payload matching the exact production schema without affecting rule or location cooldowns. Test events are signed and retried like real events and appear in the delivery log. Precip sends them only while the endpoint is enabled. Requires Growth, Enterprise, or Starter with the Webhooks add-on.",
        "tags": [
          "Webhooks"
        ],
        "x-order": 7,
        "security": [
          {
            "BearerAuth": []
          },
          {
            "ApiKeyQuery": []
          }
        ],
        "parameters": [
          {
            "name": "id",
            "in": "path",
            "required": true,
            "description": "Webhook endpoint ID",
            "schema": {
              "type": "string",
              "example": "Xk3T9pQ2LmN8vR4sW7yZa1"
            }
          }
        ],
        "requestBody": {
          "required": false,
          "description": "Optional test event selection. Omit the body to send a `webhook.test` event.",
          "content": {
            "application/json": {
              "schema": {
                "type": "object",
                "properties": {
                  "eventType": {
                    "type": "string",
                    "enum": [
                      "webhook.test",
                      "threshold_rule.triggered"
                    ],
                    "default": "webhook.test",
                    "description": "Event type to queue. Use `threshold_rule.triggered` to test your real alert payload parser end-to-end."
                  },
                  "ruleId": {
                    "type": "string",
                    "description": "Optional alert rule ID belonging to the endpoint's organization. Only valid when `eventType` is `threshold_rule.triggered`. Uses that rule's real threshold, direction, window, and alert type to construct the sample payload."
                  }
                }
              },
              "examples": {
                "ping": {
                  "summary": "Lightweight webhook.test ping",
                  "value": {
                    "eventType": "webhook.test"
                  }
                },
                "sample_triggered": {
                  "summary": "Sample threshold_rule.triggered event",
                  "value": {
                    "eventType": "threshold_rule.triggered",
                    "ruleId": "H2kL9mP4qR7sT1vW5xZ8aC"
                  }
                }
              }
            }
          }
        },
        "responses": {
          "202": {
            "description": "The test event is queued. If the endpoint is enabled, it is usually sent within a minute.",
            "content": {
              "application/json": {
                "schema": {
                  "type": "object",
                  "required": [
                    "deliveryId",
                    "eventType"
                  ],
                  "properties": {
                    "deliveryId": {
                      "type": "string",
                      "description": "The delivery ID. It is also the webhook-id header of the request."
                    },
                    "eventType": {
                      "type": "string",
                      "enum": [
                        "webhook.test",
                        "threshold_rule.triggered"
                      ],
                      "description": "The event type that was queued."
                    }
                  }
                },
                "example": {
                  "deliveryId": "msg_Fp4Rk8Wz2Ns6Qt9Lm3Xv5H",
                  "eventType": "threshold_rule.triggered"
                }
              }
            }
          },
          "400": {
            "description": "Invalid eventType, invalid ruleId, or ruleId does not belong to the endpoint's organization.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/WebhookErrorResponse"
                }
              }
            }
          },
          "401": {
            "description": "No API key, or the key is not valid. Send it as Authorization: Bearer or as ?apiKey=.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/WebhookProblemResponse"
                },
                "example": {
                  "type": "https://httpproblems.com/http-status/401",
                  "title": "Unauthorized",
                  "status": 401,
                  "detail": "Send a valid Precip API key as Authorization: Bearer or ?apiKey=. Docs: https://api.precip.ai/docs/getting-started",
                  "instance": "/api/v1/webhooks"
                }
              }
            }
          },
          "403": {
            "description": "You are not an admin of the endpoint's organization (webhook_forbidden), you are in no organization (org_required), or the key or sign-in isn't tied to an active Precip user (account_required, hobby_api_revoked, mcp_plan_required), or the API key has no commercial access (commercial_tier_required; webhooks are commercial only, and upgradeUrl says how to get it)",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/WebhookErrorResponse"
                },
                "examples": {
                  "webhook_forbidden": {
                    "summary": "You are not an admin of the organization",
                    "value": {
                      "error": "Only an admin of the organization can manage its webhooks.",
                      "code": "webhook_forbidden"
                    }
                  },
                  "org_required": {
                    "summary": "You are not in an organization",
                    "value": {
                      "error": "Webhooks belong to an organization. Join or create one first.",
                      "code": "org_required"
                    }
                  },
                  "account_required": {
                    "summary": "The key is not tied to a Precip user or organization",
                    "value": {
                      "error": "This needs a Precip account. Sign in with Precip, or use an API key.",
                      "code": "account_required"
                    }
                  },
                  "hobby_api_revoked": {
                    "summary": "The personal API key is no longer active",
                    "value": {
                      "error": "This personal API key is no longer active. Subscribe to Precip to restore access at https://app.precip.ai/upgrade?upgrade_type=api_access. Pay-per-use without a key: https://api.precip.ai/mcp-x402.",
                      "code": "hobby_api_revoked",
                      "upgradeUrl": "https://app.precip.ai/upgrade?upgrade_type=api_access",
                      "x402Url": "https://api.precip.ai/mcp-x402"
                    }
                  },
                  "mcp_plan_required": {
                    "summary": "The sign-in is not a Precip user",
                    "value": {
                      "error": "This login is not a Precip user. Create an account at https://app.precip.ai/upgrade?upgrade_type=mcp_access. Pay-per-use without a key: https://api.precip.ai/mcp-x402.",
                      "code": "mcp_plan_required",
                      "upgradeUrl": "https://app.precip.ai/upgrade?upgrade_type=mcp_access",
                      "x402Url": "https://api.precip.ai/mcp-x402"
                    }
                  },
                  "commercial_tier_required": {
                    "summary": "The key has no commercial access",
                    "value": {
                      "error": "Webhooks are part of commercial API access. Contact us to upgrade your API key.",
                      "code": "commercial_tier_required",
                      "upgradeUrl": "https://savvycal.com/precip/demo"
                    }
                  }
                }
              }
            }
          },
          "404": {
            "description": "No webhook endpoint with this ID in an organization you belong to (webhook_not_found)",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/WebhookErrorResponse"
                },
                "examples": {
                  "not_found": {
                    "summary": "No endpoint with this ID in your organizations",
                    "value": {
                      "error": "Webhook endpoint not found.",
                      "code": "webhook_not_found"
                    }
                  }
                }
              }
            }
          },
          "429": {
            "description": "More than 30 requests a minute from your account. Wait for the number of seconds in the Retry-After header.",
            "headers": {
              "Retry-After": {
                "description": "Seconds to wait before the next request",
                "schema": {
                  "type": "integer"
                }
              }
            },
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/WebhookProblemResponse"
                }
              }
            }
          },
          "503": {
            "description": "Webhooks are not available right now; try again later",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/WebhookErrorResponse"
                },
                "examples": {
                  "webhooks_unavailable": {
                    "summary": "Webhooks are not available",
                    "value": {
                      "error": "Webhooks are not available right now. Try again later.",
                      "code": "webhooks_unavailable"
                    }
                  }
                }
              }
            }
          }
        },
        "operationId": "send_webhook_test"
      }
    },
    "/api/v1/webhooks/{id}/deliveries": {
      "get": {
        "summary": "List Webhook Deliveries",
        "description": "The recent deliveries to an endpoint, newest first, with the payload, the number of attempts and the last response. Precip keeps deliveries for 30 days. Requires Growth, Enterprise, or Starter with the Webhooks add-on.",
        "tags": [
          "Webhooks"
        ],
        "x-order": 8,
        "security": [
          {
            "BearerAuth": []
          },
          {
            "ApiKeyQuery": []
          }
        ],
        "parameters": [
          {
            "name": "id",
            "in": "path",
            "required": true,
            "description": "Webhook endpoint ID",
            "schema": {
              "type": "string",
              "example": "Xk3T9pQ2LmN8vR4sW7yZa1"
            }
          },
          {
            "name": "limit",
            "in": "query",
            "required": false,
            "description": "The number of deliveries to return",
            "schema": {
              "type": "integer",
              "minimum": 1,
              "maximum": 100,
              "default": 20
            }
          },
          {
            "name": "status",
            "in": "query",
            "required": false,
            "description": "Only return deliveries with this status",
            "schema": {
              "type": "string",
              "enum": [
                "pending",
                "succeeded",
                "failed"
              ]
            }
          }
        ],
        "responses": {
          "200": {
            "description": "The deliveries, newest first",
            "content": {
              "application/json": {
                "schema": {
                  "type": "object",
                  "required": [
                    "deliveries"
                  ],
                  "properties": {
                    "deliveries": {
                      "type": "array",
                      "items": {
                        "$ref": "#/components/schemas/WebhookDelivery"
                      }
                    }
                  }
                },
                "example": {
                  "deliveries": [
                    {
                      "id": "msg_Fp4Rk8Wz2Ns6Qt9Lm3Xv5H",
                      "endpointId": "Xk3T9pQ2LmN8vR4sW7yZa1",
                      "eventType": "threshold_rule.triggered",
                      "ruleId": "H2kL9mP4qR7sT1vW5xZ8aC",
                      "status": "succeeded",
                      "attempts": 1,
                      "nextAttemptAt": "2026-11-18T14:15:00.000Z",
                      "lastAttemptAt": "2026-11-18T14:15:01.000Z",
                      "lastStatusCode": 200,
                      "lastError": null,
                      "lastResponseSnippet": "ok",
                      "createdAt": "2026-11-18T14:15:00.000Z",
                      "succeededAt": "2026-11-18T14:15:01.000Z",
                      "payload": {
                        "type": "threshold_rule.triggered",
                        "timestamp": "2026-11-18T14:15:00Z",
                        "data": {
                          "rule": {
                            "id": "H2kL9mP4qR7sT1vW5xZ8aC",
                            "org_id": "R7cP2mQ9sL4vN8xK3tW6yB",
                            "alert_type": "precipitation",
                            "observation_type": "observation",
                            "direction": "above",
                            "threshold": 25.4,
                            "unit": "mm",
                            "window_hours": 24,
                            "forecast_probability_pct": null
                          },
                          "window": {
                            "start": "2026-11-17T14:00:00Z",
                            "end": "2026-11-18T14:00:00Z"
                          },
                          "locations": [
                            {
                              "id": "Lq8Wn3Zp6Tr1Ky4Mb7Vc2D",
                              "name": "North field",
                              "latitude": 41.6,
                              "longitude": -93.6,
                              "value": 31.2,
                              "unit": "mm"
                            }
                          ]
                        }
                      }
                    }
                  ]
                }
              }
            }
          },
          "400": {
            "description": "limit or status is not valid",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/WebhookErrorResponse"
                },
                "examples": {
                  "invalid_webhook": {
                    "summary": "The query is not valid",
                    "value": {
                      "error": "limit: Use a whole number from 1 to 100.",
                      "code": "invalid_webhook"
                    }
                  }
                }
              }
            }
          },
          "401": {
            "description": "No API key, or the key is not valid. Send it as Authorization: Bearer or as ?apiKey=.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/WebhookProblemResponse"
                },
                "example": {
                  "type": "https://httpproblems.com/http-status/401",
                  "title": "Unauthorized",
                  "status": 401,
                  "detail": "Send a valid Precip API key as Authorization: Bearer or ?apiKey=. Docs: https://api.precip.ai/docs/getting-started",
                  "instance": "/api/v1/webhooks"
                }
              }
            }
          },
          "403": {
            "description": "You are not an admin of the endpoint's organization (webhook_forbidden), you are in no organization (org_required), or the key or sign-in isn't tied to an active Precip user (account_required, hobby_api_revoked, mcp_plan_required), or the API key has no commercial access (commercial_tier_required; webhooks are commercial only, and upgradeUrl says how to get it)",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/WebhookErrorResponse"
                },
                "examples": {
                  "webhook_forbidden": {
                    "summary": "You are not an admin of the organization",
                    "value": {
                      "error": "Only an admin of the organization can manage its webhooks.",
                      "code": "webhook_forbidden"
                    }
                  },
                  "org_required": {
                    "summary": "You are not in an organization",
                    "value": {
                      "error": "Webhooks belong to an organization. Join or create one first.",
                      "code": "org_required"
                    }
                  },
                  "account_required": {
                    "summary": "The key is not tied to a Precip user or organization",
                    "value": {
                      "error": "This needs a Precip account. Sign in with Precip, or use an API key.",
                      "code": "account_required"
                    }
                  },
                  "hobby_api_revoked": {
                    "summary": "The personal API key is no longer active",
                    "value": {
                      "error": "This personal API key is no longer active. Subscribe to Precip to restore access at https://app.precip.ai/upgrade?upgrade_type=api_access. Pay-per-use without a key: https://api.precip.ai/mcp-x402.",
                      "code": "hobby_api_revoked",
                      "upgradeUrl": "https://app.precip.ai/upgrade?upgrade_type=api_access",
                      "x402Url": "https://api.precip.ai/mcp-x402"
                    }
                  },
                  "mcp_plan_required": {
                    "summary": "The sign-in is not a Precip user",
                    "value": {
                      "error": "This login is not a Precip user. Create an account at https://app.precip.ai/upgrade?upgrade_type=mcp_access. Pay-per-use without a key: https://api.precip.ai/mcp-x402.",
                      "code": "mcp_plan_required",
                      "upgradeUrl": "https://app.precip.ai/upgrade?upgrade_type=mcp_access",
                      "x402Url": "https://api.precip.ai/mcp-x402"
                    }
                  },
                  "commercial_tier_required": {
                    "summary": "The key has no commercial access",
                    "value": {
                      "error": "Webhooks are part of commercial API access. Contact us to upgrade your API key.",
                      "code": "commercial_tier_required",
                      "upgradeUrl": "https://savvycal.com/precip/demo"
                    }
                  }
                }
              }
            }
          },
          "404": {
            "description": "No webhook endpoint with this ID in an organization you belong to (webhook_not_found)",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/WebhookErrorResponse"
                },
                "examples": {
                  "not_found": {
                    "summary": "No endpoint with this ID in your organizations",
                    "value": {
                      "error": "Webhook endpoint not found.",
                      "code": "webhook_not_found"
                    }
                  }
                }
              }
            }
          },
          "429": {
            "description": "More than 30 requests a minute from your account. Wait for the number of seconds in the Retry-After header.",
            "headers": {
              "Retry-After": {
                "description": "Seconds to wait before the next request",
                "schema": {
                  "type": "integer"
                }
              }
            },
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/WebhookProblemResponse"
                }
              }
            }
          },
          "503": {
            "description": "Webhooks are not available right now; try again later",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/WebhookErrorResponse"
                },
                "examples": {
                  "webhooks_unavailable": {
                    "summary": "Webhooks are not available",
                    "value": {
                      "error": "Webhooks are not available right now. Try again later.",
                      "code": "webhooks_unavailable"
                    }
                  }
                }
              }
            }
          }
        },
        "operationId": "list_webhook_deliveries"
      }
    },
    "/api/v1/webhooks/{id}/deliveries/{deliveryId}/replay": {
      "post": {
        "summary": "Replay a Webhook Delivery",
        "description": "Re-enqueue a previously recorded delivery (failed or succeeded) to the same webhook endpoint with a fresh `deliveryId` / `webhook-id` header and the exact original payload. The original delivery row is preserved in history. The endpoint must be enabled (`enabled: true`) before replaying. Deliveries are retained for 30 days. Requires Growth, Enterprise, or Starter with the Webhooks add-on.",
        "tags": [
          "Webhooks"
        ],
        "x-order": 9,
        "security": [
          {
            "BearerAuth": []
          },
          {
            "ApiKeyQuery": []
          }
        ],
        "parameters": [
          {
            "name": "id",
            "in": "path",
            "required": true,
            "description": "Webhook endpoint ID",
            "schema": {
              "type": "string",
              "example": "Xk3T9pQ2LmN8vR4sW7yZa1"
            }
          },
          {
            "name": "deliveryId",
            "in": "path",
            "required": true,
            "description": "Original delivery ID (from GET /api/v1/webhooks/{id}/deliveries)",
            "schema": {
              "type": "string",
              "example": "msg_Fp4Rk8Wz2Ns6Qt9Lm3Xv5H"
            }
          }
        ],
        "responses": {
          "202": {
            "description": "The replay delivery is queued and will usually be sent within a minute.",
            "content": {
              "application/json": {
                "schema": {
                  "type": "object",
                  "required": [
                    "deliveryId",
                    "replayedFromDeliveryId"
                  ],
                  "properties": {
                    "deliveryId": {
                      "type": "string",
                      "description": "The newly queued delivery ID (also sent as the `webhook-id` header)."
                    },
                    "replayedFromDeliveryId": {
                      "type": "string",
                      "description": "The original delivery ID whose payload was replayed."
                    }
                  }
                },
                "example": {
                  "deliveryId": "msg_9aBcDeFgHiJkLmNoPqRsTu",
                  "replayedFromDeliveryId": "msg_Fp4Rk8Wz2Ns6Qt9Lm3Xv5H"
                }
              }
            }
          },
          "401": {
            "description": "No API key, or the key is not valid.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/WebhookProblemResponse"
                }
              }
            }
          },
          "403": {
            "description": "Caller lacks webhook plan entitlement or org admin permissions.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/WebhookErrorResponse"
                }
              }
            }
          },
          "404": {
            "description": "Webhook endpoint or delivery not found (`webhook_not_found` or `delivery_not_found`).",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/WebhookErrorResponse"
                }
              }
            }
          },
          "409": {
            "description": "The webhook endpoint is disabled (`webhook_endpoint_disabled`). Re-enable it via PATCH /api/v1/webhooks/{id} first.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/WebhookErrorResponse"
                },
                "example": {
                  "error": "Enable this webhook endpoint before replaying deliveries.",
                  "code": "webhook_endpoint_disabled"
                }
              }
            }
          },
          "429": {
            "description": "Rate limit exceeded.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/WebhookProblemResponse"
                }
              }
            }
          }
        },
        "operationId": "replay_webhook_delivery"
      }
    },
    "/mcp": {
      "post": {
        "summary": "MCP Server",
        "description": "Model Context Protocol server endpoint for AI tool integration",
        "tags": [
          "MCP Servers"
        ],
        "responses": {
          "200": {
            "description": "MCP server response",
            "content": {
              "application/json": {
                "schema": {
                  "type": "object"
                }
              }
            }
          }
        },
        "operationId": "6c939b4a-0e6a-4f41-a80f-44d9e0c24708"
      }
    },
    "/mcp-x402": {
      "post": {
        "summary": "MCP Server (x402 Pay-per-use)",
        "description": "Model Context Protocol server endpoint for unauthenticated pay-per-use access via x402. No API key required - payment is handled automatically through the x402 protocol.",
        "tags": [
          "MCP Servers"
        ],
        "responses": {
          "200": {
            "description": "MCP server response",
            "content": {
              "application/json": {
                "schema": {
                  "type": "object"
                }
              }
            }
          }
        },
        "operationId": "mcp-x402-server"
      }
    },
    "/embed/location": {
      "get": {
        "summary": "Embeddable HTML UI",
        "description": "Returns a complete, HTML page displaying comprehensive weather data for a specific location. See the examples page for more details. \n\n Authorization headers set automatically from query parameters on this endpoint. ",
        "operationId": "embed_location_get",
        "tags": [
          "Embed Widgets"
        ],
        "x-order": 1,
        "parameters": [
          {
            "name": "lat",
            "in": "query",
            "required": true,
            "schema": {
              "type": "number",
              "minimum": -90,
              "maximum": 90,
              "title": "Latitude",
              "example": 42.378792,
              "default": 42.378792
            },
            "description": "Latitude coordinate (-90 to 90) for the location center of the precipitation widget"
          },
          {
            "name": "lon",
            "in": "query",
            "required": true,
            "schema": {
              "type": "number",
              "minimum": -180,
              "maximum": 180,
              "title": "Longitude",
              "example": -83.7935,
              "default": -83.7935
            },
            "description": "Longitude coordinate (-180 to 180) for the location center of the precipitation widget"
          },
          {
            "name": "apiKey",
            "in": "query",
            "required": true,
            "schema": {
              "type": "string",
              "title": "API Key",
              "example": "YOUR_API_KEY"
            },
            "description": "Your API key for authentication. Gets automatically applied as header."
          },
          {
            "name": "units",
            "in": "query",
            "required": false,
            "schema": {
              "type": "string",
              "enum": [
                "metric",
                "imperial"
              ],
              "default": "metric",
              "title": "Units"
            },
            "description": "Unit system for displaying precipitation amounts and temperatures. 'metric' shows mm and °C, 'imperial' shows inches and °F."
          },
          {
            "name": "widgets",
            "in": "query",
            "required": false,
            "schema": {
              "type": "string",
              "title": "Widgets",
              "example": "current,temp,precip"
            },
            "description": "Comma-separated list of widget keys to display.\n\nAvailable options:\n`current`, `event`, `calendar`, `cumulative`, `total`, `precip`, `table`, `wind`, `temp`, `soiltemp`, `soilmoisture`, `snow`\n\nWhen not provided, shows all widgets."
          }
        ],
        "responses": {
          "200": {
            "description": "Interactive precipitation widget HTML successfully retrieved. Returns a complete, self-contained HTML page optimized for iframe embedding.",
            "headers": {
              "X-Frame-Options": {
                "description": "Allows iframe embedding from any domain",
                "schema": {
                  "type": "string",
                  "example": "ALLOWALL"
                }
              },
              "Content-Security-Policy": {
                "description": "Permits embedding from any parent domain",
                "schema": {
                  "type": "string",
                  "example": "frame-ancestors * capacitor: http://localhost:* https://localhost http://127.0.0.1:*"
                }
              },
              "Cross-Origin-Resource-Policy": {
                "description": "Enables cross-origin resource sharing for iframe embedding",
                "schema": {
                  "type": "string",
                  "example": "cross-origin"
                }
              },
              "Cross-Origin-Embedder-Policy": {
                "description": "Allows credentialless cross-origin embedding",
                "schema": {
                  "type": "string",
                  "example": "credentialless"
                }
              }
            },
            "content": {
              "text/html": {
                "schema": {
                  "type": "string",
                  "title": "Interactive Precipitation Widget HTML",
                  "description": "Complete HTML page containing an interactive precipitation widget with charts, current conditions, and historical data. Includes embedded CSS and JavaScript for full functionality."
                },
                "examples": {
                  "iframe_usage": {
                    "summary": "Basic iframe embedding",
                    "description": "How to embed the widget in your web application",
                    "value": "<iframe src=\"https://api.precip.ai/embed/location?lat=42.378792&lon=-83.7935&units=imperial&key=your-api-key\" width=\"100%\" height=\"400\" frameborder=\"0\" allowtransparency=\"true\"></iframe>"
                  },
                  "selective_widgets": {
                    "summary": "Selective widget display",
                    "description": "How to embed only specific widgets",
                    "value": "<iframe src=\"https://api.precip.ai/embed/location?lat=42.378792&lon=-83.7935&units=imperial&widgets=current,temp,precip&key=your-api-key\" width=\"100%\" height=\"400\" frameborder=\"0\" allowtransparency=\"true\"></iframe>"
                  },
                  "react_component": {
                    "summary": "React component usage",
                    "description": "Example of using the widget in a React component with selective widgets",
                    "value": "const PrecipWidget = ({ lat, lon, units = 'metric', widgets = null }) => (\n  <iframe\n    src={`https://api.precip.ai/embed/location?lat=${lat}&lon=${lon}&units=${units}${widgets ? `&widgets=${widgets}` : ''}&key=${apiKey}`}\n    style={{ width: '100%', height: '400px', border: 'none', borderRadius: '8px' }}\n    title=\"Precipitation Widget\"\n  />\n);"
                  }
                }
              }
            }
          },
          "400": {
            "description": "Bad Request - Invalid parameters",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                }
              }
            }
          },
          "401": {
            "description": "Unauthorized - Invalid or missing API key",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                }
              }
            }
          },
          "422": {
            "description": "Validation Error - Parameter validation failed",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/HTTPValidationError"
                }
              }
            }
          },
          "500": {
            "description": "Internal Server Error",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                }
              }
            }
          }
        }
      }
    },
    "/x402/api/v1/hourly": {
      "get": {
        "summary": "Hourly Precipitation Data (x402)",
        "description": "Pay-per-use access via x402. This path is handled through Orthogonal's x402 gateway.",
        "responses": {
          "200": {
            "description": "Success"
          }
        },
        "operationId": "x402-api-v1-hourly-get",
        "parameters": [
          {
            "name": "start",
            "in": "query",
            "required": true,
            "schema": {
              "type": "string",
              "description": "ISO 8601 date `%Y-%m-%d` or datetime `%Y-%m-%dT%H:%M:%S`",
              "title": "Start",
              "example": "2024-01-04",
              "default": "2024-01-04"
            }
          },
          {
            "name": "end",
            "in": "query",
            "required": true,
            "schema": {
              "type": "string",
              "description": "ISO 8601 date `%Y-%m-%d` or datetime `%Y-%m-%dT%H:%M:%S`",
              "title": "End",
              "example": "2024-02-04",
              "default": "2024-02-04"
            }
          },
          {
            "name": "longitude",
            "in": "query",
            "required": true,
            "schema": {
              "type": "string",
              "example": "-122.42616",
              "description": "Longitude (WGS84). Personal API: one value. Commercial keys may pass a comma-separated list.",
              "title": "Longitude",
              "default": "-122.42616"
            },
            "example": "-122.42616"
          },
          {
            "name": "latitude",
            "in": "query",
            "required": true,
            "schema": {
              "type": "string",
              "example": "37.75750",
              "description": "Latitude (WGS84). Personal API: one value. Commercial keys may pass a comma-separated list.",
              "title": "Latitude",
              "default": "37.75750"
            },
            "example": "37.75750"
          },
          {
            "name": "timeZoneId",
            "in": "query",
            "required": false,
            "schema": {
              "type": "string",
              "description": "IANA timezone identifier e.g. `America/Chicago`",
              "title": "Timezoneid",
              "default": "America/Chicago"
            }
          },
          {
            "name": "format",
            "in": "query",
            "required": false,
            "schema": {
              "type": "string",
              "enum": [
                "geojson",
                "json",
                "csv"
              ],
              "description": "Output format: `geojson`, `json` or `csv`",
              "default": "geojson",
              "title": "Format"
            }
          }
        ],
        "tags": [
          "Pay-per-use (x402)"
        ]
      }
    },
    "/x402/api/v1/minutely": {
      "get": {
        "summary": "Minutely Precipitation Rate (x402)",
        "description": "Pay-per-use access via x402. This path is handled through Orthogonal's x402 gateway.",
        "responses": {
          "200": {
            "description": "Success"
          }
        },
        "operationId": "x402-api-v1-minutely-get",
        "parameters": [
          {
            "name": "start",
            "in": "query",
            "required": false,
            "schema": {
              "type": "string",
              "description": "ISO 8601 date `%Y-%m-%d` or datetime `%Y-%m-%dT%H:%M:%S`, or relative `now-1h`. Snapped to the UTC minute. Defaults to `now-1h` when both `start` and `end` are omitted.",
              "title": "Start",
              "example": "now-1h"
            }
          },
          {
            "name": "end",
            "in": "query",
            "required": false,
            "schema": {
              "type": "string",
              "description": "ISO 8601 date `%Y-%m-%d` or datetime `%Y-%m-%dT%H:%M:%S`, or relative `now+1h`. Snapped to the UTC minute. Defaults to `now+1h` when both `start` and `end` are omitted. Maximum `end - start` is 7 days.",
              "title": "End",
              "example": "now+1h"
            }
          },
          {
            "name": "longitude",
            "in": "query",
            "required": true,
            "schema": {
              "type": "string",
              "example": "-122.42616",
              "description": "Longitude (WGS84). Personal API: one value. Commercial keys may pass a comma-separated list.",
              "title": "Longitude",
              "default": "-122.42616"
            },
            "example": "-122.42616"
          },
          {
            "name": "latitude",
            "in": "query",
            "required": true,
            "schema": {
              "type": "string",
              "example": "37.75750",
              "description": "Latitude (WGS84). Personal API: one value. Commercial keys may pass a comma-separated list.",
              "title": "Latitude",
              "default": "37.75750"
            },
            "example": "37.75750"
          },
          {
            "name": "timeZoneId",
            "in": "query",
            "required": false,
            "schema": {
              "type": "string",
              "description": "IANA timezone identifier e.g. `America/Chicago`",
              "title": "Timezoneid",
              "default": "America/Chicago"
            }
          },
          {
            "name": "format",
            "in": "query",
            "required": false,
            "schema": {
              "type": "string",
              "enum": [
                "geojson",
                "json",
                "csv"
              ],
              "description": "Output format: `geojson`, `json` or `csv`",
              "default": "geojson",
              "title": "Format"
            }
          },
          {
            "name": "units",
            "in": "query",
            "required": false,
            "schema": {
              "type": "string",
              "enum": [
                "metric",
                "imperial"
              ],
              "description": "Display system: `metric` (mm/h, default) or `imperial` (in/h)",
              "default": "metric",
              "title": "Units"
            }
          }
        ],
        "tags": [
          "Pay-per-use (x402)"
        ]
      }
    },
    "/x402/api/v1/last-{hours}": {
      "get": {
        "summary": "Last N Hours Precipitation Data (x402)",
        "description": "Pay-per-use access via x402. Use `12`, `24`, `48`, or `168` in the path. This path is handled through Orthogonal's x402 gateway.",
        "responses": {
          "200": {
            "description": "Success"
          }
        },
        "operationId": "x402-api-v1-last-hours-get",
        "parameters": [
          {
            "name": "hours",
            "in": "path",
            "required": true,
            "description": "Number of hours: 12, 24, 48, or 168 (7 days).",
            "schema": {
              "type": "string",
              "enum": [
                "12",
                "24",
                "48",
                "168"
              ],
              "example": "48"
            }
          },
          {
            "name": "longitude",
            "in": "query",
            "required": true,
            "schema": {
              "type": "string",
              "example": "-122.42616",
              "description": "Longitude (WGS84). Personal API: one value. Commercial keys may pass a comma-separated list.",
              "title": "Longitude",
              "default": "-122.42616"
            },
            "example": "-122.42616"
          },
          {
            "name": "latitude",
            "in": "query",
            "required": true,
            "schema": {
              "type": "string",
              "example": "37.75750",
              "description": "Latitude (WGS84). Personal API: one value. Commercial keys may pass a comma-separated list.",
              "title": "Latitude",
              "default": "37.75750"
            },
            "example": "37.75750"
          },
          {
            "name": "timeZoneId",
            "in": "query",
            "required": false,
            "schema": {
              "type": "string",
              "description": "IANA timezone identifier e.g. `America/Chicago`",
              "title": "Timezoneid",
              "default": "America/Chicago"
            }
          },
          {
            "name": "format",
            "in": "query",
            "required": false,
            "schema": {
              "type": "string",
              "enum": [
                "geojson",
                "json",
                "csv"
              ],
              "description": "Output format: `geojson`, `json` or `csv`",
              "default": "geojson",
              "title": "Format"
            }
          }
        ],
        "tags": [
          "Pay-per-use (x402)"
        ]
      }
    },
    "/x402/api/v1/recent-rain": {
      "get": {
        "summary": "Recent Rain Event (x402)",
        "description": "Pay-per-use access via x402. This path is handled through Orthogonal's x402 gateway.",
        "responses": {
          "200": {
            "description": "Success"
          }
        },
        "operationId": "x402-api-v1-recent-rain-get",
        "parameters": [
          {
            "name": "longitude",
            "in": "query",
            "required": true,
            "schema": {
              "type": "string",
              "example": "-122.42616",
              "description": "Longitude (WGS84). Personal API: one value. Commercial keys may pass a comma-separated list.",
              "title": "Longitude",
              "default": "-122.42616"
            },
            "example": "-122.42616"
          },
          {
            "name": "latitude",
            "in": "query",
            "required": true,
            "schema": {
              "type": "string",
              "example": "37.75750",
              "description": "Latitude (WGS84). Personal API: one value. Commercial keys may pass a comma-separated list.",
              "title": "Latitude",
              "default": "37.75750"
            },
            "example": "37.75750"
          },
          {
            "name": "timeZoneId",
            "in": "query",
            "required": false,
            "schema": {
              "type": "string",
              "description": "IANA timezone identifier e.g. `America/Chicago`",
              "title": "Timezoneid",
              "default": "America/Chicago"
            }
          },
          {
            "name": "format",
            "in": "query",
            "required": false,
            "schema": {
              "type": "string",
              "enum": [
                "geojson",
                "json",
                "csv"
              ],
              "description": "Output format: `geojson`, `json` or `csv`",
              "default": "geojson",
              "title": "Format"
            }
          }
        ],
        "tags": [
          "Pay-per-use (x402)"
        ]
      }
    },
    "/x402/api/v1/soil-moisture-daily": {
      "get": {
        "summary": "Daily Soil Moisture (x402)",
        "description": "Pay-per-use access via x402. This path is handled through Orthogonal's x402 gateway.",
        "responses": {
          "200": {
            "description": "Success"
          }
        },
        "operationId": "x402-api-v1-soil-moisture-daily-get",
        "parameters": [
          {
            "name": "start",
            "in": "query",
            "required": true,
            "schema": {
              "type": "string",
              "description": "ISO 8601 date `%Y-%m-%d` or datetime `%Y-%m-%dT%H:%M:%S`",
              "title": "Start",
              "example": "2025-06-01",
              "default": "2025-06-01"
            }
          },
          {
            "name": "end",
            "in": "query",
            "required": true,
            "schema": {
              "title": "End",
              "type": "string",
              "description": "ISO 8601 date `%Y-%m-%d` or datetime `%Y-%m-%dT%H:%M:%S`",
              "example": "2025-06-30",
              "default": "2025-06-30"
            }
          },
          {
            "name": "longitude",
            "in": "query",
            "required": true,
            "schema": {
              "type": "string",
              "example": "-122.42616",
              "description": "Longitude (WGS84). Personal API: one value. Commercial keys may pass a comma-separated list.",
              "title": "Longitude",
              "default": "-122.42616"
            },
            "example": "-122.42616"
          },
          {
            "name": "latitude",
            "in": "query",
            "required": true,
            "schema": {
              "type": "string",
              "example": "37.75750",
              "description": "Latitude (WGS84). Personal API: one value. Commercial keys may pass a comma-separated list.",
              "title": "Latitude",
              "default": "37.75750"
            },
            "example": "37.75750"
          },
          {
            "name": "timeZoneId",
            "in": "query",
            "required": false,
            "schema": {
              "type": "string",
              "description": "IANA timezone identifier e.g. `America/Chicago`",
              "title": "Timezoneid",
              "default": "America/Chicago"
            }
          },
          {
            "name": "format",
            "in": "query",
            "required": false,
            "schema": {
              "type": "string",
              "enum": [
                "geojson",
                "json",
                "csv"
              ],
              "description": "Output format: `geojson`, `json` or `csv`",
              "default": "geojson",
              "title": "Format"
            }
          }
        ],
        "tags": [
          "Pay-per-use (x402)"
        ]
      }
    },
    "/x402/api/v1/soil-moisture-hourly": {
      "get": {
        "summary": "Hourly Soil Moisture (x402)",
        "description": "Pay-per-use access via x402. This path is handled through Orthogonal's x402 gateway.",
        "responses": {
          "200": {
            "description": "Success"
          }
        },
        "operationId": "x402-api-v1-soil-moisture-hourly-get",
        "parameters": [
          {
            "name": "start",
            "in": "query",
            "required": true,
            "schema": {
              "type": "string",
              "description": "ISO 8601 date `%Y-%m-%d` or datetime `%Y-%m-%dT%H:%M:%S`",
              "title": "Start",
              "example": "2025-06-01",
              "default": "2025-06-01"
            }
          },
          {
            "name": "end",
            "in": "query",
            "required": true,
            "schema": {
              "title": "End",
              "type": "string",
              "description": "ISO 8601 date `%Y-%m-%d` or datetime `%Y-%m-%dT%H:%M:%S`",
              "example": "2025-06-30",
              "default": "2025-06-30"
            }
          },
          {
            "name": "longitude",
            "in": "query",
            "required": true,
            "schema": {
              "type": "string",
              "example": "-122.42616",
              "description": "Longitude (WGS84). Personal API: one value. Commercial keys may pass a comma-separated list.",
              "title": "Longitude",
              "default": "-122.42616"
            },
            "example": "-122.42616"
          },
          {
            "name": "latitude",
            "in": "query",
            "required": true,
            "schema": {
              "type": "string",
              "example": "37.75750",
              "description": "Latitude (WGS84). Personal API: one value. Commercial keys may pass a comma-separated list.",
              "title": "Latitude",
              "default": "37.75750"
            },
            "example": "37.75750"
          },
          {
            "name": "timeZoneId",
            "in": "query",
            "required": false,
            "schema": {
              "type": "string",
              "description": "IANA timezone identifier e.g. `America/Chicago`",
              "title": "Timezoneid",
              "default": "America/Chicago"
            }
          },
          {
            "name": "format",
            "in": "query",
            "required": false,
            "schema": {
              "type": "string",
              "enum": [
                "geojson",
                "json",
                "csv"
              ],
              "description": "Output format: `geojson`, `json` or `csv`",
              "default": "geojson",
              "title": "Format"
            }
          }
        ],
        "tags": [
          "Pay-per-use (x402)"
        ]
      }
    },
    "/x402/api/v1/temp-0-10cm-hourly": {
      "get": {
        "summary": "Hourly Soil Temperature 0-10cm (x402)",
        "description": "Pay-per-use access via x402. This path is handled through Orthogonal's x402 gateway.",
        "responses": {
          "200": {
            "description": "Success"
          }
        },
        "operationId": "x402-api-v1-temp-0-10cm-hourly-get",
        "parameters": [
          {
            "name": "start",
            "in": "query",
            "required": true,
            "schema": {
              "type": "string",
              "description": "ISO 8601 date `%Y-%m-%d` or datetime `%Y-%m-%dT%H:%M:%S`",
              "title": "Start",
              "example": "2025-06-01",
              "default": "2025-06-01"
            }
          },
          {
            "name": "end",
            "in": "query",
            "required": true,
            "schema": {
              "title": "End",
              "type": "string",
              "description": "ISO 8601 date `%Y-%m-%d` or datetime `%Y-%m-%dT%H:%M:%S`",
              "example": "2025-06-30",
              "default": "2025-06-30"
            }
          },
          {
            "name": "longitude",
            "in": "query",
            "required": true,
            "schema": {
              "type": "string",
              "pattern": "^-?\\d+(\\.\\d+)?(,-?\\d+(\\.\\d+)?)*$",
              "default": "-122.42616"
            },
            "description": "Longitude (WGS84). Personal API: one value. Commercial keys may pass a comma-separated list.",
            "example": "-122.42616"
          },
          {
            "name": "latitude",
            "in": "query",
            "required": true,
            "schema": {
              "type": "string",
              "pattern": "^-?\\d+(\\.\\d+)?(,-?\\d+(\\.\\d+)?)*$",
              "default": "37.75750"
            },
            "description": "Latitude (WGS84). Personal API: one value. Commercial keys may pass a comma-separated list.",
            "example": "37.75750"
          },
          {
            "name": "timeZoneId",
            "in": "query",
            "required": false,
            "schema": {
              "type": "string",
              "pattern": "^[A-Za-z_]+/[A-Za-z_]+$",
              "default": "America/Chicago"
            },
            "description": "IANA timezone identifier for localizing timestamps",
            "example": "America/Chicago"
          },
          {
            "name": "format",
            "in": "query",
            "required": false,
            "schema": {
              "type": "string",
              "enum": [
                "geojson",
                "json",
                "csv"
              ],
              "description": "Output format: `geojson`, `json` or `csv`",
              "default": "geojson",
              "title": "Format"
            },
            "description": "Output format: `geojson`, `json` or `csv`"
          }
        ],
        "tags": [
          "Pay-per-use (x402)"
        ]
      }
    },
    "/x402/api/v1/temperature-hourly": {
      "get": {
        "summary": "Hourly Air Temperature (x402)",
        "description": "Pay-per-use access via x402. This path is handled through Orthogonal's x402 gateway.",
        "responses": {
          "200": {
            "description": "Success"
          }
        },
        "operationId": "x402-api-v1-temperature-hourly-get",
        "parameters": [
          {
            "name": "start",
            "in": "query",
            "required": true,
            "schema": {
              "type": "string",
              "description": "ISO 8601 date `%Y-%m-%d` or datetime `%Y-%m-%dT%H:%M:%S`",
              "title": "Start",
              "example": "2025-06-01",
              "default": "2025-06-01"
            }
          },
          {
            "name": "end",
            "in": "query",
            "required": true,
            "schema": {
              "title": "End",
              "type": "string",
              "description": "ISO 8601 date `%Y-%m-%d` or datetime `%Y-%m-%dT%H:%M:%S`",
              "example": "2025-06-30",
              "default": "2025-06-30"
            }
          },
          {
            "name": "longitude",
            "in": "query",
            "required": true,
            "schema": {
              "type": "string",
              "pattern": "^-?\\d+(\\.\\d+)?(,-?\\d+(\\.\\d+)?)*$",
              "default": "-122.42616"
            },
            "description": "Longitude (WGS84). Personal API: one value. Commercial keys may pass a comma-separated list.",
            "example": "-122.42616"
          },
          {
            "name": "latitude",
            "in": "query",
            "required": true,
            "schema": {
              "type": "string",
              "pattern": "^-?\\d+(\\.\\d+)?(,-?\\d+(\\.\\d+)?)*$",
              "default": "37.75750"
            },
            "description": "Latitude (WGS84). Personal API: one value. Commercial keys may pass a comma-separated list.",
            "example": "37.75750"
          },
          {
            "name": "timeZoneId",
            "in": "query",
            "required": false,
            "schema": {
              "type": "string",
              "pattern": "^[A-Za-z_]+/[A-Za-z_]+$",
              "default": "America/Chicago"
            },
            "description": "IANA timezone identifier for localizing timestamps",
            "example": "America/Chicago"
          },
          {
            "name": "format",
            "in": "query",
            "required": false,
            "schema": {
              "type": "string",
              "enum": [
                "geojson",
                "json",
                "csv"
              ],
              "description": "Output format: `geojson`, `json` or `csv`",
              "default": "geojson",
              "title": "Format"
            },
            "description": "Output format: `geojson`, `json` or `csv`"
          }
        ],
        "tags": [
          "Pay-per-use (x402)"
        ]
      }
    },
    "/x402/api/v1/specific-humidity-hourly": {
      "get": {
        "summary": "Hourly Specific Humidity (x402)",
        "description": "Pay-per-use access via x402. This path is handled through Orthogonal's x402 gateway.",
        "responses": {
          "200": {
            "description": "Success"
          }
        },
        "operationId": "x402-api-v1-specific-humidity-hourly-get",
        "parameters": [
          {
            "name": "start",
            "in": "query",
            "required": true,
            "schema": {
              "type": "string",
              "description": "ISO 8601 date `%Y-%m-%d` or datetime `%Y-%m-%dT%H:%M:%S`",
              "title": "Start",
              "example": "2025-06-01",
              "default": "2025-06-01"
            }
          },
          {
            "name": "end",
            "in": "query",
            "required": true,
            "schema": {
              "title": "End",
              "type": "string",
              "description": "ISO 8601 date `%Y-%m-%d` or datetime `%Y-%m-%dT%H:%M:%S`",
              "example": "2025-06-30",
              "default": "2025-06-30"
            }
          },
          {
            "name": "longitude",
            "in": "query",
            "required": true,
            "schema": {
              "type": "string",
              "pattern": "^-?\\d+(\\.\\d+)?(,-?\\d+(\\.\\d+)?)*$",
              "default": "-122.42616"
            },
            "description": "Longitude (WGS84). Personal API: one value. Commercial keys may pass a comma-separated list.",
            "example": "-122.42616"
          },
          {
            "name": "latitude",
            "in": "query",
            "required": true,
            "schema": {
              "type": "string",
              "pattern": "^-?\\d+(\\.\\d+)?(,-?\\d+(\\.\\d+)?)*$",
              "default": "37.75750"
            },
            "description": "Latitude (WGS84). Personal API: one value. Commercial keys may pass a comma-separated list.",
            "example": "37.75750"
          },
          {
            "name": "timeZoneId",
            "in": "query",
            "required": false,
            "schema": {
              "type": "string",
              "pattern": "^[A-Za-z_]+/[A-Za-z_]+$",
              "default": "America/Chicago"
            },
            "description": "IANA timezone identifier for localizing timestamps",
            "example": "America/Chicago"
          },
          {
            "name": "format",
            "in": "query",
            "required": false,
            "schema": {
              "type": "string",
              "enum": [
                "geojson",
                "json",
                "csv"
              ],
              "description": "Output format: `geojson`, `json` or `csv`",
              "default": "geojson",
              "title": "Format"
            }
          }
        ],
        "tags": [
          "Pay-per-use (x402)"
        ]
      }
    },
    "/x402/api/v1/relative-humidity-hourly": {
      "get": {
        "summary": "Hourly Relative Humidity (x402)",
        "description": "Pay-per-use access via x402. This path is handled through Orthogonal's x402 gateway.",
        "responses": {
          "200": {
            "description": "Success"
          }
        },
        "operationId": "x402-api-v1-relative-humidity-hourly-get",
        "parameters": [
          {
            "name": "start",
            "in": "query",
            "required": true,
            "schema": {
              "type": "string",
              "description": "ISO 8601 date `%Y-%m-%d` or datetime `%Y-%m-%dT%H:%M:%S`",
              "title": "Start",
              "example": "2025-10-01",
              "default": "2025-10-01"
            }
          },
          {
            "name": "end",
            "in": "query",
            "required": true,
            "schema": {
              "title": "End",
              "type": "string",
              "description": "ISO 8601 date `%Y-%m-%d` or datetime `%Y-%m-%dT%H:%M:%S`",
              "example": "2025-10-31",
              "default": "2025-10-31"
            }
          },
          {
            "name": "longitude",
            "in": "query",
            "required": true,
            "schema": {
              "type": "string",
              "pattern": "^-?\\d+(\\.\\d+)?(,-?\\d+(\\.\\d+)?)*$",
              "default": "-122.42616"
            },
            "description": "Longitude (WGS84). Personal API: one value. Commercial keys may pass a comma-separated list.",
            "example": "-122.42616"
          },
          {
            "name": "latitude",
            "in": "query",
            "required": true,
            "schema": {
              "type": "string",
              "pattern": "^-?\\d+(\\.\\d+)?(,-?\\d+(\\.\\d+)?)*$",
              "default": "37.75750"
            },
            "description": "Latitude (WGS84). Personal API: one value. Commercial keys may pass a comma-separated list.",
            "example": "37.75750"
          },
          {
            "name": "timeZoneId",
            "in": "query",
            "required": false,
            "schema": {
              "type": "string",
              "pattern": "^[A-Za-z_]+/[A-Za-z_]+$",
              "default": "America/Chicago"
            },
            "description": "IANA timezone identifier for localizing timestamps",
            "example": "America/Chicago"
          },
          {
            "name": "format",
            "in": "query",
            "required": false,
            "schema": {
              "type": "string",
              "enum": [
                "geojson",
                "json",
                "csv"
              ],
              "description": "Output format: `geojson`, `json` or `csv`",
              "default": "geojson",
              "title": "Format"
            },
            "description": "Output format: `geojson`, `json` or `csv`"
          }
        ],
        "tags": [
          "Pay-per-use (x402)"
        ]
      }
    },
    "/x402/api/v1/pressure-hourly": {
      "get": {
        "summary": "Hourly Surface Pressure (x402)",
        "description": "Pay-per-use access via x402. This path is handled through Orthogonal's x402 gateway.",
        "responses": {
          "200": {
            "description": "Success"
          }
        },
        "operationId": "x402-api-v1-pressure-hourly-get",
        "parameters": [
          {
            "name": "start",
            "in": "query",
            "required": true,
            "schema": {
              "type": "string",
              "description": "ISO 8601 date `%Y-%m-%d` or datetime `%Y-%m-%dT%H:%M:%S`",
              "title": "Start",
              "example": "2025-10-01",
              "default": "2025-10-01"
            }
          },
          {
            "name": "end",
            "in": "query",
            "required": true,
            "schema": {
              "title": "End",
              "type": "string",
              "description": "ISO 8601 date `%Y-%m-%d` or datetime `%Y-%m-%dT%H:%M:%S`",
              "example": "2025-10-31",
              "default": "2025-10-31"
            }
          },
          {
            "name": "longitude",
            "in": "query",
            "required": true,
            "schema": {
              "type": "string",
              "pattern": "^-?\\d+(\\.\\d+)?(,-?\\d+(\\.\\d+)?)*$",
              "default": "-122.42616"
            },
            "description": "Longitude (WGS84). Personal API: one value. Commercial keys may pass a comma-separated list.",
            "example": "-122.42616"
          },
          {
            "name": "latitude",
            "in": "query",
            "required": true,
            "schema": {
              "type": "string",
              "pattern": "^-?\\d+(\\.\\d+)?(,-?\\d+(\\.\\d+)?)*$",
              "default": "37.75750"
            },
            "description": "Latitude (WGS84). Personal API: one value. Commercial keys may pass a comma-separated list.",
            "example": "37.75750"
          },
          {
            "name": "timeZoneId",
            "in": "query",
            "required": false,
            "schema": {
              "type": "string",
              "pattern": "^[A-Za-z_]+/[A-Za-z_]+$",
              "default": "America/Chicago"
            },
            "description": "IANA timezone identifier for localizing timestamps",
            "example": "America/Chicago"
          },
          {
            "name": "format",
            "in": "query",
            "required": false,
            "schema": {
              "type": "string",
              "enum": [
                "geojson",
                "json",
                "csv"
              ],
              "description": "Output format: `geojson`, `json` or `csv`",
              "default": "geojson",
              "title": "Format"
            },
            "description": "Output format: `geojson`, `json` or `csv`"
          }
        ],
        "tags": [
          "Pay-per-use (x402)"
        ]
      }
    },
    "/x402/api/v1/wind-speed-hourly": {
      "get": {
        "summary": "Hourly Wind Speed (x402)",
        "description": "Pay-per-use access via x402. This path is handled through Orthogonal's x402 gateway.",
        "responses": {
          "200": {
            "description": "Success"
          }
        },
        "operationId": "x402-api-v1-wind-speed-hourly-get",
        "parameters": [
          {
            "name": "start",
            "in": "query",
            "required": true,
            "schema": {
              "type": "string",
              "description": "ISO 8601 date `%Y-%m-%d` or datetime `%Y-%m-%dT%H:%M:%S`",
              "title": "Start",
              "example": "2025-06-01",
              "default": "2025-06-01"
            }
          },
          {
            "name": "end",
            "in": "query",
            "required": true,
            "schema": {
              "title": "End",
              "type": "string",
              "description": "ISO 8601 date `%Y-%m-%d` or datetime `%Y-%m-%dT%H:%M:%S`",
              "example": "2025-06-30",
              "default": "2025-06-30"
            }
          },
          {
            "name": "longitude",
            "in": "query",
            "required": true,
            "schema": {
              "type": "string",
              "pattern": "^-?\\d+(\\.\\d+)?(,-?\\d+(\\.\\d+)?)*$",
              "default": "-122.42616"
            },
            "description": "Longitude (WGS84). Personal API: one value. Commercial keys may pass a comma-separated list.",
            "example": "-122.42616"
          },
          {
            "name": "latitude",
            "in": "query",
            "required": true,
            "schema": {
              "type": "string",
              "pattern": "^-?\\d+(\\.\\d+)?(,-?\\d+(\\.\\d+)?)*$",
              "default": "37.75750"
            },
            "description": "Latitude (WGS84). Personal API: one value. Commercial keys may pass a comma-separated list.",
            "example": "37.75750"
          },
          {
            "name": "timeZoneId",
            "in": "query",
            "required": false,
            "schema": {
              "type": "string",
              "pattern": "^[A-Za-z_]+/[A-Za-z_]+$",
              "default": "America/Chicago"
            },
            "description": "IANA timezone identifier for localizing timestamps",
            "example": "America/Chicago"
          },
          {
            "name": "format",
            "in": "query",
            "required": false,
            "schema": {
              "type": "string",
              "enum": [
                "geojson",
                "json",
                "csv"
              ],
              "description": "Output format: `geojson`, `json` or `csv`",
              "default": "geojson",
              "title": "Format"
            },
            "description": "Output format: `geojson`, `json` or `csv`"
          }
        ],
        "tags": [
          "Pay-per-use (x402)"
        ]
      }
    },
    "/x402/api/v1/wind-speed-gust-hourly": {
      "get": {
        "summary": "Hourly Wind Gust Speed (x402)",
        "description": "Pay-per-use access via x402. This path is handled through Orthogonal's x402 gateway.",
        "responses": {
          "200": {
            "description": "Success"
          }
        },
        "operationId": "x402-api-v1-wind-speed-gust-hourly-get",
        "parameters": [
          {
            "name": "start",
            "in": "query",
            "required": true,
            "schema": {
              "type": "string",
              "description": "ISO 8601 date `%Y-%m-%d` or datetime `%Y-%m-%dT%H:%M:%S`",
              "title": "Start",
              "example": "2025-06-01",
              "default": "2025-06-01"
            }
          },
          {
            "name": "end",
            "in": "query",
            "required": true,
            "schema": {
              "title": "End",
              "type": "string",
              "description": "ISO 8601 date `%Y-%m-%d` or datetime `%Y-%m-%dT%H:%M:%S`",
              "example": "2025-06-30",
              "default": "2025-06-30"
            }
          },
          {
            "name": "longitude",
            "in": "query",
            "required": true,
            "schema": {
              "type": "string",
              "pattern": "^-?\\d+(\\.\\d+)?(,-?\\d+(\\.\\d+)?)*$",
              "default": "-122.42616"
            },
            "description": "Longitude (WGS84). Personal API: one value. Commercial keys may pass a comma-separated list.",
            "example": "-122.42616"
          },
          {
            "name": "latitude",
            "in": "query",
            "required": true,
            "schema": {
              "type": "string",
              "pattern": "^-?\\d+(\\.\\d+)?(,-?\\d+(\\.\\d+)?)*$",
              "default": "37.75750"
            },
            "description": "Latitude (WGS84). Personal API: one value. Commercial keys may pass a comma-separated list.",
            "example": "37.75750"
          },
          {
            "name": "timeZoneId",
            "in": "query",
            "required": false,
            "schema": {
              "type": "string",
              "pattern": "^[A-Za-z_]+/[A-Za-z_]+$",
              "default": "America/Chicago"
            },
            "description": "IANA timezone identifier for localizing timestamps",
            "example": "America/Chicago"
          },
          {
            "name": "format",
            "in": "query",
            "required": false,
            "schema": {
              "type": "string",
              "enum": [
                "geojson",
                "json",
                "csv"
              ],
              "description": "Output format: `geojson`, `json` or `csv`",
              "default": "geojson",
              "title": "Format"
            },
            "description": "Output format: `geojson`, `json` or `csv`"
          }
        ],
        "tags": [
          "Pay-per-use (x402)"
        ]
      }
    },
    "/x402/api/v1/wind-direction-hourly": {
      "get": {
        "summary": "Hourly Wind Direction (x402)",
        "description": "Pay-per-use access via x402. This path is handled through Orthogonal's x402 gateway.",
        "responses": {
          "200": {
            "description": "Success"
          }
        },
        "operationId": "x402-api-v1-wind-direction-hourly-get",
        "parameters": [
          {
            "name": "start",
            "in": "query",
            "required": true,
            "schema": {
              "type": "string",
              "description": "ISO 8601 date `%Y-%m-%d` or datetime `%Y-%m-%dT%H:%M:%S`",
              "title": "Start",
              "example": "2025-06-01",
              "default": "2025-06-01"
            }
          },
          {
            "name": "end",
            "in": "query",
            "required": true,
            "schema": {
              "title": "End",
              "type": "string",
              "description": "ISO 8601 date `%Y-%m-%d` or datetime `%Y-%m-%dT%H:%M:%S`",
              "example": "2025-06-30",
              "default": "2025-06-30"
            }
          },
          {
            "name": "longitude",
            "in": "query",
            "required": true,
            "schema": {
              "type": "string",
              "pattern": "^-?\\d+(\\.\\d+)?(,-?\\d+(\\.\\d+)?)*$",
              "default": "-122.42616"
            },
            "description": "Longitude (WGS84). Personal API: one value. Commercial keys may pass a comma-separated list.",
            "example": "-122.42616"
          },
          {
            "name": "latitude",
            "in": "query",
            "required": true,
            "schema": {
              "type": "string",
              "pattern": "^-?\\d+(\\.\\d+)?(,-?\\d+(\\.\\d+)?)*$",
              "default": "37.75750"
            },
            "description": "Latitude (WGS84). Personal API: one value. Commercial keys may pass a comma-separated list.",
            "example": "37.75750"
          },
          {
            "name": "timeZoneId",
            "in": "query",
            "required": false,
            "schema": {
              "type": "string",
              "pattern": "^[A-Za-z_]+/[A-Za-z_]+$",
              "default": "America/Chicago"
            },
            "description": "IANA timezone identifier for localizing timestamps",
            "example": "America/Chicago"
          },
          {
            "name": "format",
            "in": "query",
            "required": false,
            "schema": {
              "type": "string",
              "enum": [
                "geojson",
                "json",
                "csv"
              ],
              "description": "Output format: `geojson`, `json` or `csv`",
              "default": "geojson",
              "title": "Format"
            },
            "description": "Output format: `geojson`, `json` or `csv`"
          }
        ],
        "tags": [
          "Pay-per-use (x402)"
        ]
      }
    },
    "/x402/api/v1/cloud-cover-hourly": {
      "get": {
        "summary": "Hourly Cloud Cover (x402)",
        "description": "Pay-per-use access via x402. This path is handled through Orthogonal's x402 gateway.",
        "responses": {
          "200": {
            "description": "Success"
          }
        },
        "operationId": "x402-api-v1-cloud-cover-hourly-get",
        "parameters": [
          {
            "name": "start",
            "in": "query",
            "required": true,
            "schema": {
              "type": "string",
              "description": "ISO 8601 date `%Y-%m-%d` or datetime `%Y-%m-%dT%H:%M:%S`",
              "title": "Start",
              "example": "2025-10-01",
              "default": "2025-10-01"
            }
          },
          {
            "name": "end",
            "in": "query",
            "required": true,
            "schema": {
              "title": "End",
              "type": "string",
              "description": "ISO 8601 date `%Y-%m-%d` or datetime `%Y-%m-%dT%H:%M:%S`",
              "example": "2025-10-31",
              "default": "2025-10-31"
            }
          },
          {
            "name": "longitude",
            "in": "query",
            "required": true,
            "schema": {
              "type": "string",
              "pattern": "^-?\\d+(\\.\\d+)?(,-?\\d+(\\.\\d+)?)*$",
              "default": "-122.42616"
            },
            "description": "Longitude (WGS84). Personal API: one value. Commercial keys may pass a comma-separated list.",
            "example": "-122.42616"
          },
          {
            "name": "latitude",
            "in": "query",
            "required": true,
            "schema": {
              "type": "string",
              "pattern": "^-?\\d+(\\.\\d+)?(,-?\\d+(\\.\\d+)?)*$",
              "default": "37.75750"
            },
            "description": "Latitude (WGS84). Personal API: one value. Commercial keys may pass a comma-separated list.",
            "example": "37.75750"
          },
          {
            "name": "timeZoneId",
            "in": "query",
            "required": false,
            "schema": {
              "type": "string",
              "pattern": "^[A-Za-z_]+/[A-Za-z_]+$",
              "default": "America/Chicago"
            },
            "description": "IANA timezone identifier for localizing timestamps",
            "example": "America/Chicago"
          },
          {
            "name": "format",
            "in": "query",
            "required": false,
            "schema": {
              "type": "string",
              "enum": [
                "geojson",
                "json",
                "csv"
              ],
              "description": "Output format: `geojson`, `json` or `csv`",
              "default": "geojson",
              "title": "Format"
            },
            "description": "Output format: `geojson`, `json` or `csv`"
          }
        ],
        "tags": [
          "Pay-per-use (x402)"
        ]
      }
    },
    "/x402/api/v1/solar-radiation-hourly": {
      "get": {
        "summary": "Hourly Solar Radiation (x402)",
        "description": "Pay-per-use access via x402. This path is handled through Orthogonal's x402 gateway.",
        "responses": {
          "200": {
            "description": "Success"
          }
        },
        "operationId": "x402-api-v1-solar-radiation-hourly-get",
        "parameters": [
          {
            "name": "start",
            "in": "query",
            "required": true,
            "schema": {
              "type": "string",
              "description": "ISO 8601 date `%Y-%m-%d` or datetime `%Y-%m-%dT%H:%M:%S`",
              "title": "Start",
              "example": "2025-10-15",
              "default": "2025-10-15"
            }
          },
          {
            "name": "end",
            "in": "query",
            "required": true,
            "schema": {
              "title": "End",
              "type": "string",
              "description": "ISO 8601 date `%Y-%m-%d` or datetime `%Y-%m-%dT%H:%M:%S`",
              "example": "2025-10-31",
              "default": "2025-10-31"
            }
          },
          {
            "name": "longitude",
            "in": "query",
            "required": true,
            "schema": {
              "type": "string",
              "pattern": "^-?\\d+(\\.\\d+)?(,-?\\d+(\\.\\d+)?)*$",
              "default": "-122.42616"
            },
            "description": "Longitude (WGS84). Personal API: one value. Commercial keys may pass a comma-separated list.",
            "example": "-122.42616"
          },
          {
            "name": "latitude",
            "in": "query",
            "required": true,
            "schema": {
              "type": "string",
              "pattern": "^-?\\d+(\\.\\d+)?(,-?\\d+(\\.\\d+)?)*$",
              "default": "37.75750"
            },
            "description": "Latitude (WGS84). Personal API: one value. Commercial keys may pass a comma-separated list.",
            "example": "37.75750"
          },
          {
            "name": "timeZoneId",
            "in": "query",
            "required": false,
            "schema": {
              "type": "string",
              "pattern": "^[A-Za-z_]+/[A-Za-z_]+$",
              "default": "America/Chicago"
            },
            "description": "IANA timezone identifier for localizing timestamps",
            "example": "America/Chicago"
          },
          {
            "name": "format",
            "in": "query",
            "required": false,
            "schema": {
              "type": "string",
              "enum": [
                "geojson",
                "json",
                "csv"
              ],
              "description": "Output format: `geojson`, `json` or `csv`",
              "default": "geojson",
              "title": "Format"
            },
            "description": "Output format: `geojson`, `json` or `csv`"
          }
        ],
        "tags": [
          "Pay-per-use (x402)"
        ]
      }
    }
  },
  "components": {
    "parameters": {
      "FormatParam": {
        "name": "format",
        "in": "query",
        "required": false,
        "schema": {
          "type": "string",
          "enum": [
            "geojson",
            "json",
            "csv"
          ],
          "description": "Output format: `geojson`, `json` or `csv`",
          "default": "json",
          "title": "Format"
        },
        "description": "Output format: `geojson`, `json` or `csv`"
      },
      "LongitudeParam": {
        "name": "longitude",
        "in": "query",
        "required": true,
        "schema": {
          "type": "string",
          "pattern": "^-?\\d+(\\.\\d+)?(,-?\\d+(\\.\\d+)?)*$",
          "default": "-122.42616"
        },
        "description": "Longitude (WGS84). Personal API: one value. Commercial keys may pass a comma-separated list.",
        "example": "-122.42616"
      },
      "LatitudeParam": {
        "name": "latitude",
        "in": "query",
        "required": true,
        "schema": {
          "type": "string",
          "pattern": "^-?\\d+(\\.\\d+)?(,-?\\d+(\\.\\d+)?)*$",
          "default": "37.75750"
        },
        "description": "Latitude (WGS84). Personal API: one value. Commercial keys may pass a comma-separated list.",
        "example": "37.75750"
      },
      "TimeZoneParam": {
        "name": "timeZoneId",
        "in": "query",
        "required": false,
        "schema": {
          "type": "string",
          "pattern": "^[A-Za-z_]+/[A-Za-z_]+$",
          "default": "America/Chicago"
        },
        "description": "IANA timezone identifier for localizing timestamps",
        "example": "America/Chicago"
      },
      "StartDateParam": {
        "name": "start",
        "in": "query",
        "required": true,
        "schema": {
          "type": "string",
          "format": "date-time",
          "default": "2024-01-04"
        },
        "description": "Start date/time in ISO 8601 format (YYYY-MM-DD or YYYY-MM-DDTHH:MM:SS)",
        "example": "2024-01-04"
      },
      "EndDateParam": {
        "name": "end",
        "in": "query",
        "required": true,
        "schema": {
          "type": "string",
          "format": "date-time",
          "default": "2024-02-04"
        },
        "description": "End date/time in ISO 8601 format (YYYY-MM-DD or YYYY-MM-DDTHH:MM:SS)",
        "example": "2024-02-04"
      },
      "UnitsParam": {
        "name": "units",
        "in": "query",
        "required": false,
        "schema": {
          "type": "string",
          "enum": [
            "imperial",
            "metric"
          ]
        },
        "description": "Display unit system. Legend defaults to `imperial` (°F, inches). Point queries and getSamples default to `metric` (storage units: °C, mm, m/s)."
      },
      "UnitParam": {
        "name": "unit",
        "in": "query",
        "required": false,
        "schema": {
          "type": "string",
          "enum": [
            "mm",
            "inches",
            "celsius",
            "fahrenheit",
            "mps",
            "percent",
            "ratio",
            "degrees",
            "pa",
            "w/m²",
            "kg/kg",
            "days"
          ]
        },
        "description": "Explicit display unit for values and labels. Overrides `units` when set. Must match the layer's physical quantity — e.g. `unit=fahrenheit` on a wind-speed layer returns `400 Bad Request` rather than running a temperature conversion over m/s values."
      }
    },
    "schemas": {
      "ServiceName": {
        "type": "string",
        "title": "Service Name",
        "example": "last-48",
        "description": "Map layer ID. Common values:\n- Rolling precipitation (max zoom 7): `last-12`, `last-24`, `last-48`, `last-168`, `last-720`, `next-12`, `next-24`, `next-48`, `next-168`, `mtd`, `ytd`, `mtd-pct`, `ytd-pct`, `recent-rain`, `precip-next-rain`\n- Live radar & nowcast (URL-encode `/` as `%2F`, WebP only): `precip-rate%2F2min` (max zoom 8), `precip-rate-v2%2F5min` (max zoom 7)\n- Time-enabled hourly & daily (max zoom 8): `precip-hourly` (`hourly`), `precip-daily` (`daily`), `temperature-hourly`, `wind-speed-hourly`, `wind-speed-gust-hourly`, `wind-direction-hourly`, `relative-humidity-hourly`, `cloud-cover-hourly`, `dswrf-hourly`, `soil-moisture-hourly`, `snow-depth-daily`, `tmin-daily`, `tmax-daily`\n- Static soil & frost: `frost-first-avg-doy`, `frost-last-avg-doy`, `clay-mean-0-5-polaris`, `sand-mean-0-5-polaris`\n\nSee [Map Tiles & Layers](/map-tiles) for the complete layer table."
      },
      "DailyProperties": {
        "properties": {
          "days": {
            "items": {
              "$ref": "#/components/schemas/Day"
            },
            "type": "array",
            "title": "Days"
          },
          "timeZoneId": {
            "type": "string",
            "title": "Timezoneid"
          }
        },
        "type": "object",
        "required": [
          "days",
          "timeZoneId"
        ],
        "title": "DailyProperties"
      },
      "Day": {
        "properties": {
          "startTime": {
            "type": "string",
            "format": "date-time",
            "title": "Start Time",
            "description": "ISO 8601 timestamp marking the start of the day"
          },
          "precip": {
            "type": "number",
            "minimum": 0,
            "title": "Precipitation",
            "description": "Total precipitation amount in millimeters for the day"
          },
          "precip_probability": {
            "type": [
              "integer",
              "null"
            ],
            "minimum": 0,
            "maximum": 100,
            "title": "Precipitation Probability",
            "description": "Probability of precipitation as a percentage (0-100). Null for historical observations."
          },
          "precip_type": {
            "type": "string",
            "enum": [
              "rain",
              "snow",
              "mixed"
            ],
            "title": "Precipitation Type",
            "description": "Type of precipitation that occurred or is forecasted for the day"
          },
          "source": {
            "type": "string",
            "enum": [
              "observation",
              "forecast"
            ],
            "title": "Data Source",
            "description": "Whether this data comes from historical observations or forecast models"
          }
        },
        "type": "object",
        "required": [
          "startTime",
          "precip",
          "precip_type",
          "source"
        ],
        "title": "Day"
      },
      "GetSamples_Response": {
        "type": "object",
        "properties": {
          "unit": {
            "type": "string",
            "enum": [
              "fahrenheit",
              "celsius",
              "inches",
              "mm",
              "m/s",
              "percent",
              "ratio",
              "degrees",
              "pa",
              "w/m²",
              "kg/kg",
              "days"
            ],
            "description": "Display unit of sample values"
          },
          "samples": {
            "type": "array",
            "items": {
              "type": "object",
              "properties": {
                "value": {
                  "type": "number",
                  "nullable": true
                },
                "location": {
                  "type": "object"
                },
                "locationId": {
                  "type": "integer"
                }
              }
            }
          }
        },
        "example": {
          "unit": "celsius",
          "samples": [
            {
              "value": 21.5
            },
            {
              "value": 21.5
            },
            {
              "value": 21.5
            },
            {
              "value": 21.5
            }
          ]
        }
      },
      "FeatureCollection_DailyProperties_": {
        "example": {
          "type": "FeatureCollection",
          "features": [
            {
              "type": "Feature",
              "geometry": {
                "type": "Point",
                "coordinates": [
                  -84.281508334,
                  43.631819304
                ]
              },
              "properties": {
                "days": [
                  {
                    "precip": 0,
                    "precip_probability": null,
                    "precip_type": "rain",
                    "startTime": "2024-06-11T12:00:00+0000",
                    "source": "observation"
                  },
                  {
                    "precip": 4.7,
                    "precip_probability": null,
                    "precip_type": "rain",
                    "startTime": "2025-06-09T12:00:00+0000",
                    "source": "observation"
                  },
                  {
                    "precip": 0.8,
                    "precip_probability": 22,
                    "precip_type": "rain",
                    "startTime": "2025-06-12T12:00:00+0000",
                    "source": "forecast"
                  },
                  {
                    "precip": 5.4,
                    "precip_probability": null,
                    "precip_type": "snow",
                    "startTime": "2024-12-04T12:00:00+0000",
                    "source": "observation"
                  }
                ],
                "timeZoneId": "GMT"
              }
            }
          ]
        },
        "properties": {
          "type": {
            "type": "string",
            "enum": [
              "FeatureCollection"
            ],
            "title": "Type"
          },
          "features": {
            "items": {
              "$ref": "#/components/schemas/Feature_DailyProperties_"
            },
            "type": "array",
            "title": "Features"
          }
        },
        "type": "object",
        "required": [
          "type",
          "features"
        ],
        "title": "FeatureCollection[DailyProperties]"
      },
      "FeatureCollection_DailySoilProperties_": {
        "example": {
          "type": "FeatureCollection",
          "features": [
            {
              "type": "Feature",
              "properties": {
                "days": [
                  {
                    "soil_moisture": 30.101002,
                    "startTime": "2025-02-12T12:00:00+0000"
                  },
                  {
                    "soil_moisture": 29.766,
                    "startTime": "2025-02-13T12:00:00+0000"
                  }
                ],
                "timeZoneId": "GMT"
              },
              "geometry": {
                "type": "Point",
                "coordinates": [
                  -85.89186,
                  40.57694
                ]
              }
            }
          ]
        },
        "properties": {
          "type": {
            "type": "string",
            "enum": [
              "FeatureCollection"
            ],
            "title": "Type"
          },
          "features": {
            "items": {
              "type": "object",
              "required": [
                "type",
                "properties",
                "geometry"
              ],
              "properties": {
                "type": {
                  "type": "string",
                  "enum": [
                    "Feature"
                  ]
                },
                "properties": {
                  "type": "object",
                  "required": [
                    "days",
                    "timeZoneId"
                  ],
                  "properties": {
                    "days": {
                      "type": "array",
                      "items": {
                        "type": "object",
                        "required": [
                          "soil_moisture",
                          "startTime"
                        ],
                        "properties": {
                          "soil_moisture": {
                            "type": "number",
                            "title": "Soil Moisture"
                          },
                          "startTime": {
                            "type": "string",
                            "format": "date-time",
                            "title": "Start Time"
                          }
                        }
                      }
                    },
                    "timeZoneId": {
                      "type": "string",
                      "title": "Timezoneid"
                    }
                  }
                },
                "geometry": {
                  "$ref": "#/components/schemas/Point"
                }
              }
            },
            "type": "array",
            "title": "Features"
          }
        },
        "type": "object",
        "required": [
          "type",
          "features"
        ],
        "title": "FeatureCollection[DailyProperties]"
      },
      "FeatureCollection_HourlySoilProperties_": {
        "example": {
          "type": "FeatureCollection",
          "features": [
            {
              "type": "Feature",
              "properties": {
                "hours": [
                  {
                    "soil_moisture": 27.42,
                    "startTime": "2025-02-12T12:00:00+0000"
                  },
                  {
                    "soil_moisture": 27.58,
                    "startTime": "2025-02-12T13:00:00+0000"
                  }
                ],
                "timeZoneId": "GMT"
              },
              "geometry": {
                "type": "Point",
                "coordinates": [
                  -85.89186,
                  40.57694
                ]
              }
            }
          ]
        },
        "properties": {
          "type": {
            "type": "string",
            "enum": [
              "FeatureCollection"
            ],
            "title": "Type"
          },
          "features": {
            "items": {
              "type": "object",
              "required": [
                "type",
                "properties",
                "geometry"
              ],
              "properties": {
                "type": {
                  "type": "string",
                  "enum": [
                    "Feature"
                  ]
                },
                "properties": {
                  "type": "object",
                  "required": [
                    "hours",
                    "timeZoneId"
                  ],
                  "properties": {
                    "hours": {
                      "type": "array",
                      "items": {
                        "type": "object",
                        "required": [
                          "soil_moisture",
                          "startTime"
                        ],
                        "properties": {
                          "soil_moisture": {
                            "type": "number",
                            "title": "Soil Moisture"
                          },
                          "startTime": {
                            "type": "string",
                            "format": "date-time",
                            "title": "Start Time"
                          }
                        }
                      }
                    },
                    "timeZoneId": {
                      "type": "string",
                      "title": "Timezoneid"
                    }
                  }
                },
                "geometry": {
                  "$ref": "#/components/schemas/Point"
                }
              }
            },
            "type": "array",
            "title": "Features"
          }
        },
        "type": "object",
        "required": [
          "type",
          "features"
        ],
        "title": "FeatureCollection[HourlyProperties]"
      },
      "FeatureCollection_HourlyTemperatureProperties_": {
        "example": {
          "type": "FeatureCollection",
          "features": [
            {
              "type": "Feature",
              "properties": {
                "hours": [
                  {
                    "temperature": 12.71,
                    "startTime": "2024-10-09T00:00:00+0000"
                  },
                  {
                    "temperature": 11.75,
                    "startTime": "2024-10-09T01:00:00+0000"
                  }
                ],
                "timeZoneId": "GMT"
              },
              "geometry": {
                "type": "Point",
                "coordinates": [
                  -83.791929211,
                  42.378447032
                ]
              }
            }
          ]
        },
        "properties": {
          "type": {
            "type": "string",
            "enum": [
              "FeatureCollection"
            ],
            "title": "Type"
          },
          "features": {
            "items": {
              "type": "object",
              "required": [
                "type",
                "properties",
                "geometry"
              ],
              "properties": {
                "type": {
                  "type": "string",
                  "enum": [
                    "Feature"
                  ]
                },
                "properties": {
                  "type": "object",
                  "required": [
                    "hours",
                    "timeZoneId"
                  ],
                  "properties": {
                    "hours": {
                      "type": "array",
                      "items": {
                        "type": "object",
                        "required": [
                          "temperature",
                          "startTime"
                        ],
                        "properties": {
                          "temperature": {
                            "type": "number",
                            "title": "Temperature"
                          },
                          "startTime": {
                            "type": "string",
                            "format": "date-time",
                            "title": "Start Time"
                          }
                        }
                      }
                    },
                    "timeZoneId": {
                      "type": "string",
                      "title": "Timezoneid"
                    }
                  }
                },
                "geometry": {
                  "$ref": "#/components/schemas/Point"
                }
              }
            },
            "type": "array",
            "title": "Features"
          }
        },
        "type": "object",
        "required": [
          "type",
          "features"
        ],
        "title": "FeatureCollection[HourlyProperties]"
      },
      "FeatureCollection_HourlySoilTemperatureProperties_": {
        "example": {
          "type": "FeatureCollection",
          "features": [
            {
              "type": "Feature",
              "properties": {
                "hours": [
                  {
                    "temp_0_10cm": 15.3,
                    "startTime": "2025-01-04T00:00:00+0000"
                  },
                  {
                    "temp_0_10cm": 14.8,
                    "startTime": "2025-01-04T01:00:00+0000"
                  }
                ],
                "timeZoneId": "GMT"
              },
              "geometry": {
                "type": "Point",
                "coordinates": [
                  -83.791929211,
                  42.378447032
                ]
              }
            }
          ]
        },
        "properties": {
          "type": {
            "type": "string",
            "enum": [
              "FeatureCollection"
            ],
            "title": "Type"
          },
          "features": {
            "items": {
              "type": "object",
              "required": [
                "type",
                "properties",
                "geometry"
              ],
              "properties": {
                "type": {
                  "type": "string",
                  "enum": [
                    "Feature"
                  ]
                },
                "properties": {
                  "type": "object",
                  "required": [
                    "hours",
                    "timeZoneId"
                  ],
                  "properties": {
                    "hours": {
                      "type": "array",
                      "items": {
                        "type": "object",
                        "required": [
                          "temp_0_10cm",
                          "startTime"
                        ],
                        "properties": {
                          "temp_0_10cm": {
                            "type": "number",
                            "title": "Soil Temperature"
                          },
                          "startTime": {
                            "type": "string",
                            "format": "date-time",
                            "title": "Start Time"
                          }
                        }
                      }
                    },
                    "timeZoneId": {
                      "type": "string",
                      "title": "Timezoneid"
                    }
                  }
                },
                "geometry": {
                  "$ref": "#/components/schemas/Point"
                }
              }
            },
            "type": "array",
            "title": "Features"
          }
        },
        "type": "object",
        "required": [
          "type",
          "features"
        ],
        "title": "FeatureCollection[HourlyProperties]"
      },
      "FeatureCollection_DailySnowDepthProperties_": {
        "example": {
          "type": "FeatureCollection",
          "features": [
            {
              "type": "Feature",
              "properties": {
                "days": [
                  {
                    "snow-depth": 12.5,
                    "startTime": "2025-01-04T12:00:00+0000"
                  },
                  {
                    "snow-depth": 13.2,
                    "startTime": "2025-01-05T12:00:00+0000"
                  }
                ],
                "timeZoneId": "GMT"
              },
              "geometry": {
                "type": "Point",
                "coordinates": [
                  -83.791929211,
                  42.378447032
                ]
              }
            }
          ]
        },
        "properties": {
          "type": {
            "type": "string",
            "enum": [
              "FeatureCollection"
            ],
            "title": "Type"
          },
          "features": {
            "items": {
              "type": "object",
              "required": [
                "type",
                "properties",
                "geometry"
              ],
              "properties": {
                "type": {
                  "type": "string",
                  "enum": [
                    "Feature"
                  ]
                },
                "properties": {
                  "type": "object",
                  "required": [
                    "days",
                    "timeZoneId"
                  ],
                  "properties": {
                    "days": {
                      "type": "array",
                      "items": {
                        "type": "object",
                        "required": [
                          "snow-depth",
                          "startTime"
                        ],
                        "properties": {
                          "snow-depth": {
                            "type": "number",
                            "title": "Snow Depth"
                          },
                          "startTime": {
                            "type": "string",
                            "format": "date-time",
                            "title": "Start Time"
                          }
                        }
                      }
                    },
                    "timeZoneId": {
                      "type": "string",
                      "title": "Timezoneid"
                    }
                  }
                },
                "geometry": {
                  "$ref": "#/components/schemas/Point"
                }
              }
            },
            "type": "array",
            "title": "Features"
          }
        },
        "type": "object",
        "required": [
          "type",
          "features"
        ],
        "title": "FeatureCollection[DailyProperties]"
      },
      "FeatureCollection_HourlySpecificHumidityProperties_": {
        "example": {
          "type": "FeatureCollection",
          "features": [
            {
              "type": "Feature",
              "properties": {
                "hours": [
                  {
                    "specific_humidity": 0.005086,
                    "startTime": "2024-10-09T00:00:00+0000"
                  },
                  {
                    "specific_humidity": 0.005194,
                    "startTime": "2024-10-09T01:00:00+0000"
                  }
                ],
                "timeZoneId": "GMT"
              },
              "geometry": {
                "type": "Point",
                "coordinates": [
                  -83.791929211,
                  42.378447032
                ]
              }
            }
          ]
        },
        "properties": {
          "type": {
            "type": "string",
            "enum": [
              "FeatureCollection"
            ],
            "title": "Type"
          },
          "features": {
            "items": {
              "type": "object",
              "required": [
                "type",
                "properties",
                "geometry"
              ],
              "properties": {
                "type": {
                  "type": "string",
                  "enum": [
                    "Feature"
                  ]
                },
                "properties": {
                  "type": "object",
                  "required": [
                    "hours",
                    "timeZoneId"
                  ],
                  "properties": {
                    "hours": {
                      "type": "array",
                      "items": {
                        "type": "object",
                        "required": [
                          "specific_humidity",
                          "startTime"
                        ],
                        "properties": {
                          "specific_humidity": {
                            "type": "number",
                            "title": "Specific Humidity"
                          },
                          "startTime": {
                            "type": "string",
                            "format": "date-time",
                            "title": "Start Time"
                          }
                        }
                      }
                    },
                    "timeZoneId": {
                      "type": "string",
                      "title": "Timezoneid"
                    }
                  }
                },
                "geometry": {
                  "$ref": "#/components/schemas/Point"
                }
              }
            },
            "type": "array",
            "title": "Features"
          }
        },
        "type": "object",
        "required": [
          "type",
          "features"
        ],
        "title": "FeatureCollection[HourlyProperties]"
      },
      "FeatureCollection_HourlyWindSpeedProperties_": {
        "example": {
          "type": "FeatureCollection",
          "features": [
            {
              "type": "Feature",
              "properties": {
                "hours": [
                  {
                    "wind_speed": 3.2,
                    "startTime": "2025-10-09T00:00:00+0000"
                  },
                  {
                    "wind_speed": 3.8,
                    "startTime": "2025-10-09T01:00:00+0000"
                  }
                ],
                "timeZoneId": "GMT"
              },
              "geometry": {
                "type": "Point",
                "coordinates": [
                  -83.791929211,
                  42.378447032
                ]
              }
            }
          ]
        },
        "properties": {
          "type": {
            "type": "string",
            "enum": [
              "FeatureCollection"
            ],
            "title": "Type"
          },
          "features": {
            "items": {
              "type": "object",
              "required": [
                "type",
                "properties",
                "geometry"
              ],
              "properties": {
                "type": {
                  "type": "string",
                  "enum": [
                    "Feature"
                  ]
                },
                "properties": {
                  "type": "object",
                  "required": [
                    "hours",
                    "timeZoneId"
                  ],
                  "properties": {
                    "hours": {
                      "type": "array",
                      "items": {
                        "type": "object",
                        "required": [
                          "wind_speed",
                          "startTime"
                        ],
                        "properties": {
                          "wind_speed": {
                            "type": "number",
                            "title": "Wind Speed"
                          },
                          "startTime": {
                            "type": "string",
                            "format": "date-time",
                            "title": "Start Time"
                          }
                        }
                      }
                    },
                    "timeZoneId": {
                      "type": "string",
                      "title": "Timezoneid"
                    }
                  }
                },
                "geometry": {
                  "$ref": "#/components/schemas/Point"
                }
              }
            },
            "type": "array",
            "title": "Features"
          }
        },
        "type": "object",
        "required": [
          "type",
          "features"
        ],
        "title": "FeatureCollection[HourlyProperties]"
      },
      "FeatureCollection_HourlyWindGustProperties_": {
        "example": {
          "type": "FeatureCollection",
          "features": [
            {
              "type": "Feature",
              "properties": {
                "hours": [
                  {
                    "wind_gust": 7.5,
                    "startTime": "2025-10-09T00:00:00+0000"
                  },
                  {
                    "wind_gust": 8.1,
                    "startTime": "2025-10-09T01:00:00+0000"
                  }
                ],
                "timeZoneId": "GMT"
              },
              "geometry": {
                "type": "Point",
                "coordinates": [
                  -83.791929211,
                  42.378447032
                ]
              }
            }
          ]
        },
        "properties": {
          "type": {
            "type": "string",
            "enum": [
              "FeatureCollection"
            ],
            "title": "Type"
          },
          "features": {
            "items": {
              "type": "object",
              "required": [
                "type",
                "properties",
                "geometry"
              ],
              "properties": {
                "type": {
                  "type": "string",
                  "enum": [
                    "Feature"
                  ]
                },
                "properties": {
                  "type": "object",
                  "required": [
                    "hours",
                    "timeZoneId"
                  ],
                  "properties": {
                    "hours": {
                      "type": "array",
                      "items": {
                        "type": "object",
                        "required": [
                          "wind_gust",
                          "startTime"
                        ],
                        "properties": {
                          "wind_gust": {
                            "type": "number",
                            "title": "Wind Gust"
                          },
                          "startTime": {
                            "type": "string",
                            "format": "date-time",
                            "title": "Start Time"
                          }
                        }
                      }
                    },
                    "timeZoneId": {
                      "type": "string",
                      "title": "Timezoneid"
                    }
                  }
                },
                "geometry": {
                  "$ref": "#/components/schemas/Point"
                }
              }
            },
            "type": "array",
            "title": "Features"
          }
        },
        "type": "object",
        "required": [
          "type",
          "features"
        ],
        "title": "FeatureCollection[HourlyProperties]"
      },
      "FeatureCollection_HourlyWindDirectionProperties_": {
        "example": {
          "type": "FeatureCollection",
          "features": [
            {
              "type": "Feature",
              "properties": {
                "hours": [
                  {
                    "wind_direction": 12.2,
                    "startTime": "2025-10-09T00:00:00+0000"
                  },
                  {
                    "wind_direction": 319.9,
                    "startTime": "2025-10-09T01:00:00+0000"
                  }
                ],
                "timeZoneId": "GMT"
              },
              "geometry": {
                "type": "Point",
                "coordinates": [
                  -83.791929211,
                  42.378447032
                ]
              }
            }
          ]
        },
        "properties": {
          "type": {
            "type": "string",
            "enum": [
              "FeatureCollection"
            ],
            "title": "Type"
          },
          "features": {
            "items": {
              "type": "object",
              "required": [
                "type",
                "properties",
                "geometry"
              ],
              "properties": {
                "type": {
                  "type": "string",
                  "enum": [
                    "Feature"
                  ]
                },
                "properties": {
                  "type": "object",
                  "required": [
                    "hours",
                    "timeZoneId"
                  ],
                  "properties": {
                    "hours": {
                      "type": "array",
                      "items": {
                        "type": "object",
                        "required": [
                          "wind_direction",
                          "startTime"
                        ],
                        "properties": {
                          "wind_direction": {
                            "type": "number",
                            "title": "Wind Direction"
                          },
                          "startTime": {
                            "type": "string",
                            "format": "date-time",
                            "title": "Start Time"
                          }
                        }
                      }
                    },
                    "timeZoneId": {
                      "type": "string",
                      "title": "Timezoneid"
                    }
                  }
                },
                "geometry": {
                  "$ref": "#/components/schemas/Point"
                }
              }
            },
            "type": "array",
            "title": "Features"
          }
        },
        "type": "object",
        "required": [
          "type",
          "features"
        ],
        "title": "FeatureCollection[HourlyProperties]"
      },
      "FeatureCollection_HourlyCloudCoverProperties_": {
        "example": {
          "type": "FeatureCollection",
          "features": [
            {
              "type": "Feature",
              "properties": {
                "hours": [
                  {
                    "cloud_cover": 0.42,
                    "startTime": "2025-10-09T00:00:00+0000"
                  },
                  {
                    "cloud_cover": 0.38,
                    "startTime": "2025-10-09T01:00:00+0000"
                  }
                ],
                "timeZoneId": "GMT"
              },
              "geometry": {
                "type": "Point",
                "coordinates": [
                  -83.791929211,
                  42.378447032
                ]
              }
            }
          ]
        },
        "properties": {
          "type": {
            "type": "string",
            "enum": [
              "FeatureCollection"
            ],
            "title": "Type"
          },
          "features": {
            "items": {
              "type": "object",
              "required": [
                "type",
                "properties",
                "geometry"
              ],
              "properties": {
                "type": {
                  "type": "string",
                  "enum": [
                    "Feature"
                  ]
                },
                "properties": {
                  "type": "object",
                  "required": [
                    "hours",
                    "timeZoneId"
                  ],
                  "properties": {
                    "hours": {
                      "type": "array",
                      "items": {
                        "type": "object",
                        "required": [
                          "cloud_cover",
                          "startTime"
                        ],
                        "properties": {
                          "cloud_cover": {
                            "type": "number",
                            "title": "Cloud Cover"
                          },
                          "startTime": {
                            "type": "string",
                            "format": "date-time",
                            "title": "Start Time"
                          }
                        }
                      }
                    },
                    "timeZoneId": {
                      "type": "string",
                      "title": "Timezoneid"
                    }
                  }
                },
                "geometry": {
                  "$ref": "#/components/schemas/Point"
                }
              }
            },
            "type": "array",
            "title": "Features"
          }
        },
        "type": "object",
        "required": [
          "type",
          "features"
        ],
        "title": "FeatureCollection[HourlyProperties]"
      },
      "FeatureCollection_HourlyRelativeHumidityProperties_": {
        "example": {
          "type": "FeatureCollection",
          "features": [
            {
              "type": "Feature",
              "properties": {
                "hours": [
                  {
                    "relative_humidity": 65.3,
                    "startTime": "2025-10-09T00:00:00+0000"
                  },
                  {
                    "relative_humidity": 68.7,
                    "startTime": "2025-10-09T01:00:00+0000"
                  }
                ],
                "timeZoneId": "GMT"
              },
              "geometry": {
                "type": "Point",
                "coordinates": [
                  -83.791929211,
                  42.378447032
                ]
              }
            }
          ]
        },
        "properties": {
          "type": {
            "type": "string",
            "enum": [
              "FeatureCollection"
            ],
            "title": "Type"
          },
          "features": {
            "items": {
              "type": "object",
              "required": [
                "type",
                "properties",
                "geometry"
              ],
              "properties": {
                "type": {
                  "type": "string",
                  "enum": [
                    "Feature"
                  ]
                },
                "properties": {
                  "type": "object",
                  "required": [
                    "hours",
                    "timeZoneId"
                  ],
                  "properties": {
                    "hours": {
                      "type": "array",
                      "items": {
                        "type": "object",
                        "required": [
                          "relative_humidity",
                          "startTime"
                        ],
                        "properties": {
                          "relative_humidity": {
                            "type": "number",
                            "title": "Relative Humidity"
                          },
                          "startTime": {
                            "type": "string",
                            "format": "date-time",
                            "title": "Start Time"
                          }
                        }
                      }
                    },
                    "timeZoneId": {
                      "type": "string",
                      "title": "Timezoneid"
                    }
                  }
                },
                "geometry": {
                  "$ref": "#/components/schemas/Point"
                }
              }
            },
            "type": "array",
            "title": "Features"
          }
        },
        "type": "object",
        "required": [
          "type",
          "features"
        ],
        "title": "FeatureCollection[HourlyProperties]"
      },
      "FeatureCollection_HourlyPressureProperties_": {
        "example": {
          "type": "FeatureCollection",
          "features": [
            {
              "type": "Feature",
              "properties": {
                "hours": [
                  {
                    "pressure": 101325,
                    "startTime": "2025-10-09T00:00:00+0000"
                  },
                  {
                    "pressure": 101180,
                    "startTime": "2025-10-09T01:00:00+0000"
                  }
                ],
                "timeZoneId": "GMT"
              },
              "geometry": {
                "type": "Point",
                "coordinates": [
                  -83.791929211,
                  42.378447032
                ]
              }
            }
          ]
        },
        "properties": {
          "type": {
            "type": "string",
            "enum": [
              "FeatureCollection"
            ],
            "title": "Type"
          },
          "features": {
            "items": {
              "type": "object",
              "required": [
                "type",
                "properties",
                "geometry"
              ],
              "properties": {
                "type": {
                  "type": "string",
                  "enum": [
                    "Feature"
                  ]
                },
                "properties": {
                  "type": "object",
                  "required": [
                    "hours",
                    "timeZoneId"
                  ],
                  "properties": {
                    "hours": {
                      "type": "array",
                      "items": {
                        "type": "object",
                        "required": [
                          "pressure",
                          "startTime"
                        ],
                        "properties": {
                          "pressure": {
                            "type": "number",
                            "title": "Surface Pressure"
                          },
                          "startTime": {
                            "type": "string",
                            "format": "date-time",
                            "title": "Start Time"
                          }
                        }
                      }
                    },
                    "timeZoneId": {
                      "type": "string",
                      "title": "Timezoneid"
                    }
                  }
                },
                "geometry": {
                  "$ref": "#/components/schemas/Point"
                }
              }
            },
            "type": "array",
            "title": "Features"
          }
        },
        "type": "object",
        "required": [
          "type",
          "features"
        ],
        "title": "FeatureCollection[HourlyProperties]"
      },
      "FeatureCollection_HourlySolarRadiationProperties_": {
        "example": {
          "type": "FeatureCollection",
          "features": [
            {
              "type": "Feature",
              "properties": {
                "hours": [
                  {
                    "DSWRF": 450.2,
                    "startTime": "2025-10-09T00:00:00+0000"
                  },
                  {
                    "DSWRF": 520.8,
                    "startTime": "2025-10-09T01:00:00+0000"
                  }
                ],
                "timeZoneId": "GMT"
              },
              "geometry": {
                "type": "Point",
                "coordinates": [
                  -83.791929211,
                  42.378447032
                ]
              }
            }
          ]
        },
        "properties": {
          "type": {
            "type": "string",
            "enum": [
              "FeatureCollection"
            ],
            "title": "Type"
          },
          "features": {
            "items": {
              "type": "object",
              "required": [
                "type",
                "properties",
                "geometry"
              ],
              "properties": {
                "type": {
                  "type": "string",
                  "enum": [
                    "Feature"
                  ]
                },
                "properties": {
                  "type": "object",
                  "required": [
                    "hours",
                    "timeZoneId"
                  ],
                  "properties": {
                    "hours": {
                      "type": "array",
                      "items": {
                        "type": "object",
                        "required": [
                          "DSWRF",
                          "startTime"
                        ],
                        "properties": {
                          "DSWRF": {
                            "type": "number",
                            "title": "Solar Radiation"
                          },
                          "startTime": {
                            "type": "string",
                            "format": "date-time",
                            "title": "Start Time"
                          }
                        }
                      }
                    },
                    "timeZoneId": {
                      "type": "string",
                      "title": "Timezoneid"
                    }
                  }
                },
                "geometry": {
                  "$ref": "#/components/schemas/Point"
                }
              }
            },
            "type": "array",
            "title": "Features"
          }
        },
        "type": "object",
        "required": [
          "type",
          "features"
        ],
        "title": "FeatureCollection[HourlyProperties]"
      },
      "FeatureCollection_HourlyProperties_": {
        "example": {
          "type": "FeatureCollection",
          "features": [
            {
              "type": "Feature",
              "geometry": {
                "type": "Point",
                "coordinates": [
                  -84.281508334,
                  43.631819304
                ]
              },
              "properties": {
                "hours": [
                  {
                    "startTime": "2024-06-11T12:00:00+0000",
                    "precip": 0,
                    "precip_probability": null,
                    "precip_type": "rain",
                    "source": "observation"
                  },
                  {
                    "startTime": "2024-06-11T13:00:00+0000",
                    "precip": 2.5,
                    "precip_probability": null,
                    "precip_type": "rain",
                    "source": "observation"
                  },
                  {
                    "startTime": "2024-06-12T12:00:00+0000",
                    "precip": 1.2,
                    "precip_probability": 25,
                    "precip_type": "rain",
                    "source": "forecast"
                  },
                  {
                    "startTime": "2024-12-04T12:00:00+0000",
                    "precip": 0.8,
                    "precip_probability": null,
                    "precip_type": "snow",
                    "source": "observation"
                  }
                ],
                "timeZoneId": "GMT"
              }
            }
          ]
        },
        "properties": {
          "type": {
            "type": "string",
            "enum": [
              "FeatureCollection"
            ],
            "title": "Type"
          },
          "features": {
            "items": {
              "$ref": "#/components/schemas/Feature_HourlyProperties_"
            },
            "type": "array",
            "title": "Features"
          }
        },
        "type": "object",
        "required": [
          "type",
          "features"
        ],
        "title": "FeatureCollection[HourlyProperties]"
      },
      "FeatureCollection_MinutelyProperties_": {
        "example": {
          "type": "FeatureCollection",
          "features": [
            {
              "type": "Feature",
              "geometry": {
                "type": "Point",
                "coordinates": [
                  -122.42616,
                  37.7575
                ]
              },
              "properties": {
                "minutes": [
                  {
                    "startTime": "2026-09-19T19:45:00+0000",
                    "precip_rate": 1.23,
                    "precip_type": "rain",
                    "source": "observation"
                  },
                  {
                    "startTime": "2026-09-19T20:10:00+0000",
                    "precip_rate": 0.4,
                    "precip_type": "rain",
                    "source": "nowcast"
                  },
                  {
                    "startTime": "2026-09-19T20:45:00+0000",
                    "precip_rate": 2.1,
                    "precip_type": "rain",
                    "source": "forecast"
                  }
                ],
                "timeZoneId": "America/Chicago",
                "unit": "mm/h"
              }
            }
          ]
        },
        "properties": {
          "type": {
            "type": "string",
            "enum": [
              "FeatureCollection"
            ],
            "title": "Type"
          },
          "features": {
            "items": {
              "$ref": "#/components/schemas/Feature_MinutelyProperties_"
            },
            "type": "array",
            "title": "Features"
          }
        },
        "type": "object",
        "required": [
          "type",
          "features"
        ],
        "title": "FeatureCollection[MinutelyProperties]"
      },
      "FeatureCollection_Last48Properties_": {
        "example": {
          "type": "FeatureCollection",
          "features": [
            {
              "type": "Feature",
              "properties": {
                "precip": 1.5999999046325684,
                "endTime": "2024-01-27T23:41:30"
              },
              "geometry": {
                "type": "Point",
                "coordinates": [
                  -79.19495,
                  36.43939
                ]
              }
            }
          ]
        },
        "properties": {
          "type": {
            "type": "string",
            "enum": [
              "FeatureCollection"
            ],
            "title": "Type"
          },
          "features": {
            "items": {
              "$ref": "#/components/schemas/Feature_Last48Properties_"
            },
            "type": "array",
            "title": "Features"
          }
        },
        "type": "object",
        "required": [
          "type",
          "features"
        ],
        "title": "FeatureCollection[Last48Properties]"
      },
      "FeatureCollection_RecentRainProperties_": {
        "example": {
          "type": "FeatureCollection",
          "features": [
            {
              "type": "Feature",
              "geometry": {
                "type": "Point",
                "coordinates": [
                  -84.281508334,
                  43.631819304
                ]
              },
              "properties": {
                "precip": 4.7,
                "precip_type": "rain",
                "slr": 10,
                "snow": 0,
                "rain": 4.7,
                "endTime": "2025-06-09T23:00:00+0000",
                "ago": "45 hours",
                "details": "new data"
              }
            }
          ]
        },
        "properties": {
          "type": {
            "type": "string",
            "enum": [
              "FeatureCollection"
            ],
            "title": "Type"
          },
          "features": {
            "items": {
              "$ref": "#/components/schemas/Feature_RecentRainProperties_"
            },
            "type": "array",
            "title": "Features"
          }
        },
        "type": "object",
        "required": [
          "type",
          "features"
        ],
        "title": "FeatureCollection[RecentRainProperties]"
      },
      "Feature_DailyProperties_": {
        "properties": {
          "type": {
            "type": "string",
            "enum": [
              "Feature"
            ],
            "title": "Type"
          },
          "properties": {
            "$ref": "#/components/schemas/DailyProperties"
          },
          "geometry": {
            "$ref": "#/components/schemas/Point"
          }
        },
        "type": "object",
        "required": [
          "type",
          "properties",
          "geometry"
        ],
        "title": "Feature[DailyProperties]"
      },
      "Feature_HourlyProperties_": {
        "properties": {
          "type": {
            "type": "string",
            "enum": [
              "Feature"
            ],
            "title": "Type"
          },
          "properties": {
            "$ref": "#/components/schemas/HourlyProperties"
          },
          "geometry": {
            "$ref": "#/components/schemas/Point"
          }
        },
        "type": "object",
        "required": [
          "type",
          "properties",
          "geometry"
        ],
        "title": "Feature[HourlyProperties]"
      },
      "Feature_MinutelyProperties_": {
        "properties": {
          "type": {
            "type": "string",
            "enum": [
              "Feature"
            ],
            "title": "Type"
          },
          "properties": {
            "$ref": "#/components/schemas/MinutelyProperties"
          },
          "geometry": {
            "$ref": "#/components/schemas/Point"
          }
        },
        "type": "object",
        "required": [
          "type",
          "properties",
          "geometry"
        ],
        "title": "Feature[MinutelyProperties]"
      },
      "Feature_Last48Properties_": {
        "properties": {
          "type": {
            "type": "string",
            "enum": [
              "Feature"
            ],
            "title": "Type"
          },
          "properties": {
            "$ref": "#/components/schemas/Last48Properties"
          },
          "geometry": {
            "$ref": "#/components/schemas/Point"
          }
        },
        "type": "object",
        "required": [
          "type",
          "properties",
          "geometry"
        ],
        "title": "Feature[Last48Properties]"
      },
      "Feature_RecentRainProperties_": {
        "properties": {
          "type": {
            "type": "string",
            "enum": [
              "Feature"
            ],
            "title": "Type"
          },
          "properties": {
            "$ref": "#/components/schemas/RecentRainProperties"
          },
          "geometry": {
            "$ref": "#/components/schemas/Point"
          }
        },
        "type": "object",
        "required": [
          "type",
          "properties",
          "geometry"
        ],
        "title": "Feature[RecentRainProperties]"
      },
      "HTTPValidationError": {
        "properties": {
          "detail": {
            "items": {
              "$ref": "#/components/schemas/ValidationError"
            },
            "type": "array",
            "title": "Detail"
          }
        },
        "type": "object",
        "title": "HTTPValidationError"
      },
      "Hour": {
        "properties": {
          "startTime": {
            "type": "string",
            "format": "date-time",
            "title": "Start Time",
            "description": "ISO 8601 timestamp marking the start of the hour"
          },
          "precip": {
            "type": "number",
            "minimum": 0,
            "title": "Precipitation",
            "description": "Total precipitation amount in millimeters for the hour"
          },
          "precip_probability": {
            "type": [
              "integer",
              "null"
            ],
            "minimum": 0,
            "maximum": 100,
            "title": "Precipitation Probability",
            "description": "Probability of precipitation as a percentage (0-100). Null for historical observations."
          },
          "precip_type": {
            "type": "string",
            "enum": [
              "rain",
              "snow",
              "mixed"
            ],
            "title": "Precipitation Type",
            "description": "Type of precipitation that occurred or is forecasted for the hour"
          },
          "source": {
            "type": "string",
            "enum": [
              "observation",
              "forecast"
            ],
            "title": "Data Source",
            "description": "Whether this data comes from historical observations or forecast models"
          }
        },
        "type": "object",
        "required": [
          "startTime",
          "precip",
          "precip_type",
          "source"
        ],
        "title": "Hour"
      },
      "Minute": {
        "properties": {
          "startTime": {
            "type": "string",
            "format": "date-time",
            "title": "Start Time",
            "description": "ISO 8601 timestamp marking the start of the minute"
          },
          "precip_rate": {
            "type": [
              "number",
              "null"
            ],
            "minimum": 0,
            "title": "Precipitation Rate",
            "description": "Instantaneous precipitation rate in mm/h (or in/h when units=imperial). Null when no 2-minute or 5-minute coverage exists for this minute."
          },
          "precip_type": {
            "type": "string",
            "enum": [
              "rain",
              "snow",
              "sleet",
              "freezing rain",
              "none"
            ],
            "title": "Precipitation Type",
            "description": "Type of precipitation for the containing hour. `none` when the minute is dry or uncovered."
          },
          "source": {
            "type": [
              "string",
              "null"
            ],
            "enum": [
              "observation",
              "nowcast",
              "forecast"
            ],
            "title": "Data Source",
            "description": "observation = 2-minute MRMS analysis; nowcast = 5-minute nowcast at or before now; forecast = 5-minute nowcast after now. Null when uncovered."
          }
        },
        "type": "object",
        "required": [
          "startTime",
          "precip_rate",
          "precip_type"
        ],
        "title": "Minute"
      },
      "HourlyProperties": {
        "properties": {
          "hours": {
            "items": {
              "$ref": "#/components/schemas/Hour"
            },
            "type": "array",
            "title": "Hours"
          },
          "timeZoneId": {
            "type": "string",
            "title": "Timezoneid"
          }
        },
        "type": "object",
        "required": [
          "hours",
          "timeZoneId"
        ],
        "title": "HourlyProperties"
      },
      "MinutelyProperties": {
        "properties": {
          "minutes": {
            "items": {
              "$ref": "#/components/schemas/Minute"
            },
            "type": "array",
            "title": "Minutes"
          },
          "timeZoneId": {
            "type": "string",
            "title": "Timezoneid"
          },
          "unit": {
            "type": "string",
            "title": "Unit",
            "description": "Display unit for precip_rate: `mm/h` or `in/h`"
          }
        },
        "type": "object",
        "required": [
          "minutes",
          "timeZoneId"
        ],
        "title": "MinutelyProperties"
      },
      "Last48Properties": {
        "properties": {
          "precip": {
            "type": "number",
            "title": "Precip"
          },
          "endTime": {
            "type": "string",
            "title": "Endtime"
          }
        },
        "type": "object",
        "required": [
          "precip",
          "endTime"
        ],
        "title": "Last48Properties"
      },
      "Point": {
        "properties": {
          "type": {
            "type": "string",
            "enum": [
              "Point"
            ],
            "title": "Type"
          },
          "coordinates": {
            "type": "array",
            "maxItems": 3,
            "minItems": 2,
            "items": {
              "type": "number"
            },
            "title": "Coordinates"
          }
        },
        "type": "object",
        "required": [
          "type",
          "coordinates"
        ],
        "title": "Point"
      },
      "RecentRainProperties": {
        "properties": {
          "precip": {
            "type": "number",
            "minimum": 0,
            "title": "Total Precipitation",
            "description": "Total precipitation amount in millimeters for the rain event"
          },
          "precip_type": {
            "type": "string",
            "enum": [
              "rain",
              "snow",
              "mixed"
            ],
            "title": "Precipitation Type",
            "description": "Type of precipitation that occurred during the event"
          },
          "slr": {
            "type": "number",
            "minimum": 0,
            "title": "Snow-to-Liquid Ratio",
            "description": "Snow-to-liquid ratio (defaults to 10:1)"
          },
          "snow": {
            "type": "number",
            "minimum": 0,
            "title": "Snow Amount",
            "description": "Snow accumulation in millimeters (liquid equivalent)"
          },
          "rain": {
            "type": "number",
            "minimum": 0,
            "title": "Rain Amount",
            "description": "Liquid rain amount in millimeters"
          },
          "endTime": {
            "type": "string",
            "format": "date-time",
            "title": "Event End Time",
            "description": "ISO 8601 timestamp when the rain event ended"
          },
          "ago": {
            "type": "string",
            "title": "Time Since Event",
            "description": "Human-readable description of how long ago the rain event ended"
          },
          "details": {
            "type": "string",
            "title": "Data Details",
            "description": "Additional information about the data source or quality"
          }
        },
        "type": "object",
        "required": [
          "precip",
          "precip_type",
          "slr",
          "snow",
          "rain",
          "endTime",
          "ago",
          "details"
        ],
        "title": "RecentRainProperties"
      },
      "ValidationError": {
        "properties": {
          "loc": {
            "items": {
              "anyOf": [
                {
                  "type": "string"
                },
                {
                  "type": "integer"
                }
              ]
            },
            "type": "array",
            "title": "Location"
          },
          "msg": {
            "type": "string",
            "title": "Message"
          },
          "type": {
            "type": "string",
            "title": "Error Type"
          }
        },
        "type": "object",
        "required": [
          "loc",
          "msg",
          "type"
        ],
        "title": "ValidationError"
      },
      "ForecastHour": {
        "type": "object",
        "properties": {
          "time": {
            "type": "string",
            "description": "Local label of the end of the hour, e.g. `1 PM` for 12:00-13:00",
            "example": "1 PM"
          },
          "startTime": {
            "type": "string",
            "description": "Start of the hour in UTC (ISO 8601)",
            "example": "2026-10-19T17:00Z"
          },
          "temperature": {
            "type": "number",
            "nullable": true,
            "description": "Air temperature (°C or °F)"
          },
          "apparent_temperature": {
            "type": "number",
            "nullable": true,
            "description": "Feels-like temperature (°C or °F)"
          },
          "precip": {
            "type": "number",
            "nullable": true,
            "description": "Liquid-equivalent precipitation in the hour (mm or inch)"
          },
          "rain": {
            "type": "number",
            "nullable": true,
            "description": "Part of `precip` that falls as rain, sleet or freezing rain (mm or inch)"
          },
          "snow_liquid": {
            "type": "number",
            "nullable": true,
            "description": "Part of `precip` that falls as snow, as liquid (mm or inch)"
          },
          "snowfall": {
            "type": "number",
            "nullable": true,
            "description": "Snow depth from `snow_liquid` at the `slr` ratio (cm with `mm`, inch with `inch`)"
          },
          "slr": {
            "type": "number",
            "description": "Snow-to-liquid ratio used for `snowfall`",
            "example": 10
          },
          "precip_type": {
            "type": "string",
            "nullable": true,
            "enum": [
              "none",
              "rain",
              "snow",
              "sleet",
              "freezing rain"
            ],
            "description": "Precipitation type. Null when the type is unknown."
          },
          "precip_probability": {
            "type": "number",
            "nullable": true,
            "description": "Chance of precipitation (0-100 %)"
          },
          "weathercode": {
            "type": "number",
            "nullable": true,
            "description": "WMO weather interpretation code"
          },
          "is_day": {
            "type": "integer",
            "enum": [
              0,
              1
            ],
            "description": "1 when the sun is up at the middle of the hour"
          },
          "wind_speed": {
            "type": "number",
            "nullable": true,
            "description": "Wind speed (m/s)"
          },
          "wind_speed_gust": {
            "type": "number",
            "nullable": true,
            "description": "Wind gust (m/s)"
          },
          "wind_direction": {
            "type": "number",
            "nullable": true,
            "description": "Direction the wind blows from (degrees)"
          },
          "cloud_cover": {
            "type": "number",
            "nullable": true,
            "description": "Cloud cover (0-100 %)"
          },
          "relative_humidity": {
            "type": "number",
            "nullable": true,
            "description": "Relative humidity (0-100 %)"
          },
          "uv_index": {
            "type": "number",
            "nullable": true,
            "description": "UV index"
          },
          "us_aqi": {
            "type": "number",
            "nullable": true,
            "description": "US Air Quality Index"
          },
          "frost_probability_36f": {
            "type": "number",
            "nullable": true,
            "description": "Chance the temperature is at or below 36 °F (0-100 %)"
          },
          "frost_probability_32f": {
            "type": "number",
            "nullable": true,
            "description": "Chance the temperature is at or below 32 °F (0-100 %)"
          },
          "frost_probability_28f": {
            "type": "number",
            "nullable": true,
            "description": "Chance the temperature is at or below 28 °F (0-100 %)"
          }
        }
      },
      "ForecastDailyRange": {
        "type": "object",
        "properties": {
          "min": {
            "type": "number"
          },
          "max": {
            "type": "number"
          }
        }
      },
      "ForecastResponse": {
        "type": "object",
        "description": "Daily maps are keyed by local date (`YYYY-MM-DD`). The first and last days only cover the hours in the request window.",
        "properties": {
          "hourly": {
            "type": "array",
            "items": {
              "$ref": "#/components/schemas/ForecastHour"
            }
          },
          "dailyTemps": {
            "type": "object",
            "description": "Daily low and high temperature",
            "additionalProperties": {
              "$ref": "#/components/schemas/ForecastDailyRange"
            },
            "example": {
              "2026-10-20": {
                "min": 5.9,
                "max": 14.9
              }
            }
          },
          "dailyPrecip": {
            "type": "object",
            "description": "Daily precipitation total.",
            "additionalProperties": {
              "type": "number"
            },
            "example": {
              "2026-10-20": 3.2
            }
          },
          "dailyPoP": {
            "type": "object",
            "description": "Highest hourly chance of precipitation in the day (0-100 %)",
            "additionalProperties": {
              "type": "integer"
            },
            "example": {
              "2026-10-20": 70
            }
          },
          "dailyHumidity": {
            "type": "object",
            "description": "Daily low and high relative humidity (%)",
            "additionalProperties": {
              "$ref": "#/components/schemas/ForecastDailyRange"
            }
          },
          "dailyUv": {
            "type": "object",
            "description": "Highest UV index in the day",
            "additionalProperties": {
              "type": "number"
            }
          }
        }
      },
      "WebhookEventType": {
        "type": "string",
        "enum": [
          "threshold_rule.triggered"
        ],
        "description": "An event an endpoint can subscribe to. webhook.test is sent only by Send a Test Event, so you don't subscribe to it."
      },
      "WebhookSecret": {
        "type": "string",
        "description": "The signing secret: whsec_ and then base64 of 32 random bytes. Precip shows it only once. Use the base64 part, decoded, as the HMAC key.",
        "example": "whsec_MfKQ9r8GKYqrTwjUPD8ILPZIo2LaLaSw"
      },
      "AlertRule": {
        "type": "object",
        "title": "AlertRule",
        "description": "An API-managed threshold alert rule. Delivered via organization webhooks (`threshold_rule.triggered`) and optionally push/email if configured for team members in the Precip app.",
        "required": [
          "id",
          "orgId",
          "alert_type",
          "observation_type",
          "direction",
          "window_hours",
          "frequency",
          "timezone",
          "scope",
          "all_locations",
          "location_ids",
          "api_managed",
          "delivery_medium",
          "enabled",
          "createdAt",
          "updatedAt"
        ],
        "properties": {
          "id": {
            "type": "string",
            "description": "Rule ID. Pass in a webhook endpoint's `ruleIds` array to route only specific rules to that endpoint."
          },
          "orgId": {
            "type": "string",
            "description": "Organization ID. Fired events are delivered to matching enabled webhook endpoints on this organization."
          },
          "name": {
            "type": "string",
            "nullable": true,
            "description": "Human-readable name for the alert rule"
          },
          "alert_type": {
            "type": "string",
            "enum": [
              "precipitation",
              "wind",
              "temperature"
            ]
          },
          "observation_type": {
            "type": "string",
            "enum": [
              "observation",
              "forecast"
            ]
          },
          "direction": {
            "type": "string",
            "enum": [
              "above",
              "below"
            ]
          },
          "threshold_mm": {
            "type": "number",
            "description": "Precipitation threshold in millimeters"
          },
          "threshold_wind_speed_ms": {
            "type": "number",
            "description": "Wind speed threshold in m/s (for wind rules)"
          },
          "threshold_temperature_c": {
            "type": "number",
            "description": "Temperature threshold in °C (for temperature rules)"
          },
          "forecast_probability_pct": {
            "type": "number",
            "description": "Minimum probability (0–100) for forecast precipitation rules"
          },
          "between_hours_start": {
            "type": "integer",
            "description": "Optional local start hour (0–23)"
          },
          "between_hours_end": {
            "type": "integer",
            "description": "Optional local end hour (0–23)"
          },
          "window_hours": {
            "type": "integer",
            "enum": [
              12,
              24,
              168
            ]
          },
          "frequency": {
            "type": "string",
            "enum": [
              "hourly",
              "daily",
              "weekly"
            ]
          },
          "timezone": {
            "type": "string",
            "description": "IANA timezone name or UTC used for daily/weekly schedules and between-hours windows"
          },
          "scope": {
            "type": "string",
            "enum": [
              "all_locations",
              "selected_locations"
            ]
          },
          "all_locations": {
            "type": "boolean"
          },
          "location_ids": {
            "type": "array",
            "items": {
              "type": "string"
            }
          },
          "api_managed": {
            "type": "boolean",
            "description": "Always `true` for rules created via `/api/v1/alert-rules`."
          },
          "delivery_medium": {
            "type": "string",
            "enum": [
              "webhook",
              "push",
              "email",
              "both"
            ],
            "description": "Defaults to `\"webhook\"` (webhooks only — no push or email). If an organization admin adds push or email notifications for team members in the Precip app, this reflects those additional channels while webhooks continue firing."
          },
          "enabled": {
            "type": "boolean"
          },
          "createdAt": {
            "type": "string",
            "format": "date-time"
          },
          "updatedAt": {
            "type": "string",
            "format": "date-time"
          }
        }
      },
      "WebhookEndpoint": {
        "type": "object",
        "title": "WebhookEndpoint",
        "required": [
          "id",
          "orgId",
          "url",
          "description",
          "events",
          "ruleIds",
          "enabled",
          "disabledReason",
          "disabledAt",
          "lastSuccessAt",
          "lastFailureAt",
          "createdAt",
          "updatedAt"
        ],
        "properties": {
          "id": {
            "type": "string",
            "description": "Endpoint ID"
          },
          "orgId": {
            "type": "string",
            "description": "The organization the endpoint belongs to"
          },
          "url": {
            "type": "string",
            "format": "uri",
            "description": "Where Precip sends events"
          },
          "description": {
            "type": "string",
            "nullable": true,
            "description": "Your note for the endpoint"
          },
          "events": {
            "type": "array",
            "items": {
              "$ref": "#/components/schemas/WebhookEventType"
            },
            "description": "The events the endpoint gets"
          },
          "ruleIds": {
            "type": "array",
            "nullable": true,
            "items": {
              "type": "string"
            },
            "description": "The threshold rules the endpoint gets events for, or null for every rule of the organization"
          },
          "enabled": {
            "type": "boolean",
            "description": "Whether Precip sends events to the endpoint"
          },
          "disabledReason": {
            "type": "string",
            "nullable": true,
            "enum": [
              "failing",
              "user",
              null
            ],
            "description": "Why the endpoint is off: failing (3 failed deliveries in a row) or user (you turned it off). null when it is on."
          },
          "disabledAt": {
            "type": "string",
            "format": "date-time",
            "nullable": true,
            "description": "When the endpoint was turned off"
          },
          "lastSuccessAt": {
            "type": "string",
            "format": "date-time",
            "nullable": true,
            "description": "The last delivery that got a 2xx response"
          },
          "lastFailureAt": {
            "type": "string",
            "format": "date-time",
            "nullable": true,
            "description": "The last delivery that failed after all its attempts"
          },
          "createdAt": {
            "type": "string",
            "format": "date-time",
            "description": "When the endpoint was created"
          },
          "updatedAt": {
            "type": "string",
            "format": "date-time",
            "description": "When the endpoint was last changed"
          }
        },
        "example": {
          "id": "Xk3T9pQ2LmN8vR4sW7yZa1",
          "orgId": "R7cP2mQ9sL4vN8xK3tW6yB",
          "url": "https://example.com/precip/webhooks",
          "description": "Irrigation scheduler",
          "events": [
            "threshold_rule.triggered"
          ],
          "ruleIds": null,
          "enabled": true,
          "disabledReason": null,
          "disabledAt": null,
          "lastSuccessAt": "2026-11-18T14:15:02.000Z",
          "lastFailureAt": null,
          "createdAt": "2026-11-01T09:30:00.000Z",
          "updatedAt": "2026-11-01T09:30:00.000Z"
        }
      },
      "WebhookDelivery": {
        "type": "object",
        "title": "WebhookDelivery",
        "required": [
          "id",
          "endpointId",
          "eventType",
          "status",
          "attempts",
          "createdAt",
          "payload"
        ],
        "properties": {
          "id": {
            "type": "string",
            "description": "Delivery ID. It is the webhook-id header, the same on each retry. Use it to skip duplicates."
          },
          "endpointId": {
            "type": "string",
            "description": "The endpoint"
          },
          "eventType": {
            "type": "string",
            "enum": [
              "threshold_rule.triggered",
              "webhook.test"
            ],
            "description": "The event type"
          },
          "ruleId": {
            "type": "string",
            "nullable": true,
            "description": "The threshold rule that fired, or null for a test event"
          },
          "status": {
            "type": "string",
            "enum": [
              "pending",
              "succeeded",
              "failed"
            ],
            "description": "pending: not sent yet, or waiting for a retry. succeeded: your endpoint returned 2xx. failed: no more attempts."
          },
          "attempts": {
            "type": "integer",
            "description": "The number of attempts so far (at most 8)"
          },
          "nextAttemptAt": {
            "type": "string",
            "format": "date-time",
            "description": "When the next attempt is due (pending deliveries)"
          },
          "lastAttemptAt": {
            "type": "string",
            "format": "date-time",
            "nullable": true,
            "description": "When the last attempt started"
          },
          "lastStatusCode": {
            "type": "integer",
            "nullable": true,
            "description": "The HTTP status of the last attempt, or null when there was no response"
          },
          "lastError": {
            "type": "string",
            "nullable": true,
            "description": "Why the last attempt failed, for example a timeout or a refused address"
          },
          "lastResponseSnippet": {
            "type": "string",
            "nullable": true,
            "description": "The first 1 KB of your endpoint's last response body"
          },
          "createdAt": {
            "type": "string",
            "format": "date-time",
            "description": "When the event was queued"
          },
          "succeededAt": {
            "type": "string",
            "format": "date-time",
            "nullable": true,
            "description": "When an attempt succeeded"
          },
          "payload": {
            "type": "object",
            "additionalProperties": true,
            "description": "The JSON body Precip sends. See the Webhooks guide for both event types."
          }
        },
        "example": {
          "id": "msg_Fp4Rk8Wz2Ns6Qt9Lm3Xv5H",
          "endpointId": "Xk3T9pQ2LmN8vR4sW7yZa1",
          "eventType": "threshold_rule.triggered",
          "ruleId": "H2kL9mP4qR7sT1vW5xZ8aC",
          "status": "succeeded",
          "attempts": 1,
          "nextAttemptAt": "2026-11-18T14:15:00.000Z",
          "lastAttemptAt": "2026-11-18T14:15:01.000Z",
          "lastStatusCode": 200,
          "lastError": null,
          "lastResponseSnippet": "ok",
          "createdAt": "2026-11-18T14:15:00.000Z",
          "succeededAt": "2026-11-18T14:15:01.000Z",
          "payload": {
            "type": "threshold_rule.triggered",
            "timestamp": "2026-11-18T14:15:00Z",
            "data": {
              "rule": {
                "id": "H2kL9mP4qR7sT1vW5xZ8aC",
                "org_id": "R7cP2mQ9sL4vN8xK3tW6yB",
                "alert_type": "precipitation",
                "observation_type": "observation",
                "direction": "above",
                "threshold": 25.4,
                "unit": "mm",
                "window_hours": 24,
                "forecast_probability_pct": null
              },
              "window": {
                "start": "2026-11-17T14:00:00Z",
                "end": "2026-11-18T14:00:00Z"
              },
              "locations": [
                {
                  "id": "Lq8Wn3Zp6Tr1Ky4Mb7Vc2D",
                  "name": "North field",
                  "latitude": 41.6,
                  "longitude": -93.6,
                  "value": 31.2,
                  "unit": "mm"
                }
              ]
            }
          }
        }
      },
      "WebhookErrorResponse": {
        "type": "object",
        "title": "WebhookErrorResponse",
        "required": [
          "error"
        ],
        "properties": {
          "error": {
            "type": "string",
            "description": "What went wrong and what to do next"
          },
          "code": {
            "type": "string",
            "description": "The reason, for programs to check",
            "example": "invalid_webhook"
          },
          "upgradeUrl": {
            "type": "string",
            "description": "Where to upgrade (commercial_tier_required, hobby_api_revoked, and mcp_plan_required)"
          },
          "x402Url": {
            "type": "string",
            "description": "Pay-per-use without a key (hobby_api_revoked and mcp_plan_required only)"
          },
          "retryable": {
            "type": "boolean",
            "description": "Whether the caller may retry the request (webhook_secret_conflict and webhooks_unavailable)"
          },
          "limit": {
            "type": "integer",
            "description": "Maximum endpoints allowed per organization (webhook_limit_reached)"
          },
          "ruleIds": {
            "type": "array",
            "items": {
              "type": "string"
            },
            "description": "Rule IDs that do not belong to the organization (invalid_rule_ids)"
          }
        }
      },
      "WebhookProblemResponse": {
        "type": "object",
        "title": "WebhookProblemResponse",
        "description": "An error from the API gateway, in the Problem Details format (RFC 7807)",
        "properties": {
          "type": {
            "type": "string"
          },
          "title": {
            "type": "string"
          },
          "status": {
            "type": "integer"
          },
          "detail": {
            "type": "string",
            "description": "What went wrong and what to do next"
          },
          "instance": {
            "type": "string"
          }
        }
      },
      "ErrorResponse": {
        "type": "object",
        "properties": {
          "error": {
            "type": "string",
            "description": "Error message describing what went wrong"
          },
          "code": {
            "type": "string",
            "description": "Error code for programmatic handling"
          },
          "details": {
            "type": "object",
            "description": "Additional error details",
            "additionalProperties": true
          }
        },
        "required": [
          "error",
          "code"
        ],
        "title": "ErrorResponse",
        "example": {
          "error": "Invalid coordinate format",
          "code": "INVALID_COORDINATES",
          "details": {
            "parameter": "longitude",
            "value": "invalid-value"
          }
        }
      }
    },
    "securitySchemes": {
      "ApiKeyQuery": {
        "type": "apiKey",
        "in": "query",
        "name": "apiKey",
        "description": "API key passed as query parameter"
      },
      "BearerAuth": {
        "type": "http",
        "scheme": "bearer",
        "bearerFormat": "API Key",
        "description": "API key passed in the Authorization header using the Bearer scheme. Format: `Authorization: Bearer YOUR_API_KEY`"
      }
    },
    "responses": {
      "RateLimitNoRetryAfter": {
        "description": "Rate Limiting Response",
        "content": {
          "application/json": {
            "schema": {
              "type": "object",
              "required": [
                "type",
                "title",
                "status"
              ],
              "examples": [
                {
                  "type": "https://httpproblems.com/http-status/429",
                  "title": "Too Many Requests",
                  "status": 429,
                  "instance": "/foo/bar"
                }
              ],
              "properties": {
                "type": {
                  "type": "string",
                  "example": "https://httpproblems.com/http-status/429",
                  "description": "A URI reference that identifies the problem."
                },
                "title": {
                  "type": "string",
                  "example": "Too Many Requests",
                  "description": "A short, human-readable summary of the problem."
                },
                "status": {
                  "type": "number",
                  "example": 429,
                  "description": "The HTTP status code."
                },
                "instance": {
                  "type": "string",
                  "example": "/foo/bar"
                }
              }
            }
          }
        }
      },
      "RateLimitWithRetryAfter": {
        "description": "Rate Limiting Response",
        "content": {
          "application/json": {
            "schema": {
              "type": "object",
              "required": [
                "type",
                "title",
                "status"
              ],
              "examples": [
                {
                  "type": "https://httpproblems.com/http-status/429",
                  "title": "Too Many Requests",
                  "status": 429,
                  "instance": "/foo/bar"
                }
              ],
              "properties": {
                "type": {
                  "type": "string",
                  "example": "https://httpproblems.com/http-status/429",
                  "description": "A URI reference that identifies the problem."
                },
                "title": {
                  "type": "string",
                  "example": "Too Many Requests",
                  "description": "A short, human-readable summary of the problem."
                },
                "status": {
                  "type": "number",
                  "example": 429,
                  "description": "The HTTP status code."
                },
                "instance": {
                  "type": "string",
                  "example": "/foo/bar"
                }
              }
            }
          }
        },
        "headers": {
          "retry-after": {
            "description": "The number of seconds to wait before making a new request.",
            "schema": {
              "type": "integer",
              "example": 60
            }
          }
        }
      }
    }
  }
}