{
	"openapi": "3.1.0",
	"info": {
		"title": "Gustly wind API",
		"version": "1.0.0-beta",
		"description": "Hourly wind forecasts and measured wind near the water. Private beta: access is pending launch, so every route answers 404 `api_off` until the API is on. Sign in on the developers page to create one free trial key per account; it is shown once. Limits belong to the account, and every refusal carries a stable `code`. Every example answer is synthetic."
	},
	"servers": [
		{
			"url": "https://www.gustly.org/api/backend",
			"description": "Production"
		}
	],
	"security": [
		{
			"apiKey": []
		}
	],
	"tags": [
		{
			"name": "Live wind",
			"description": "Live meters, one meter's day, sources."
		},
		{
			"name": "Forecast wind",
			"description": "Forecast model catalog, point forecasts and bounded batches."
		},
		{
			"name": "Manage",
			"description": "Your key, its expiry, its quota, its usage and the routes it may call."
		}
	],
	"paths": {
		"/api/v1/live": {
			"get": {
				"summary": "Live meters in a box",
				"description": "Every meter inside the box with a reading, best first, at most your plan's `max_meters`. Each meter carries its reading in knots, its freshness, its epoch time and the same time in ISO 8601 UTC, and the credit to show. Past `max_meters` the answer keeps the best meters and sets `truncated` with a `truncated_hint` that says to split the box. Send the last answer's `ETag` as `If-None-Match` to be answered `304` when nothing changed. Counts one request and one meter row per meter returned. The answer shown is a synthetic example, not real readings.",
				"operationId": "v1_live",
				"tags": [
					"Live wind"
				],
				"x-codeSamples": [
					{
						"lang": "curl",
						"label": "curl",
						"source": "export GUSTLY_API_KEY=\"gk_your_key_here\"\ncurl --include -H \"Authorization: Bearer $GUSTLY_API_KEY\" \\\n  'https://www.gustly.org/api/backend/api/v1/live?bbox=-5.8,35.9,-5.5,36.2'"
					}
				],
				"parameters": [
					{
						"description": "west,south,east,north in degrees",
						"in": "query",
						"name": "bbox",
						"required": true,
						"schema": {
							"description": "west,south,east,north in degrees",
							"maxLength": 80,
							"title": "Bbox",
							"type": "string"
						}
					}
				],
				"security": [
					{
						"apiKey": []
					}
				],
				"responses": {
					"200": {
						"description": "Successful JSON response. A data answer is `Cache-Control: private, max-age=60`.",
						"headers": {
							"X-RateLimit-Limit": {
								"description": "Requests allowed in the current minute.",
								"schema": {
									"type": "integer"
								}
							},
							"X-RateLimit-Remaining": {
								"description": "Requests left in the current minute.",
								"schema": {
									"type": "integer"
								}
							},
							"X-RateLimit-Reset": {
								"description": "Seconds until the current minute ends.",
								"schema": {
									"type": "integer"
								}
							},
							"X-RateLimit-Day-Limit": {
								"description": "Requests allowed per UTC day.",
								"schema": {
									"type": "integer"
								}
							},
							"X-RateLimit-Day-Remaining": {
								"description": "Requests left today (UTC).",
								"schema": {
									"type": "integer"
								}
							},
							"X-Request-Id": {
								"description": "This request's id, also on the server's log line: quote it in a report.",
								"schema": {
									"type": "string"
								}
							},
							"Cache-Control": {
								"schema": {
									"type": "string"
								}
							},
							"Vary": {
								"schema": {
									"type": "string"
								}
							},
							"ETag": {
								"description": "Send this back as `If-None-Match` to be answered 304 while nothing changed.",
								"schema": {
									"type": "string"
								}
							}
						},
						"content": {
							"application/json": {
								"schema": {
									"$ref": "#/components/schemas/V1Live"
								},
								"example": {
									"meters": [
										{
											"id": "example:beach-1",
											"lat": 36.012,
											"lon": -5.604,
											"kind": "met",
											"source": "example",
											"credit": "Example Network (synthetic data)",
											"credit_required": true,
											"avg_kn": 18.4,
											"gust_kn": 24.1,
											"dir_deg": 95,
											"observed_at": 1795001220,
											"trust": "trusted",
											"reads_low": null,
											"state": "live",
											"cadence_min": 10,
											"next_at": 1795001820,
											"late": false,
											"observed_at_utc": "2026-11-18T11:27:00Z",
											"next_at_utc": "2026-11-18T11:37:00Z"
										},
										{
											"id": "example:harbour-2",
											"lat": 36.058,
											"lon": -5.648,
											"kind": "pier",
											"source": "example",
											"credit": "Example Network (synthetic data)",
											"credit_required": true,
											"avg_kn": 15.2,
											"gust_kn": null,
											"dir_deg": 102,
											"observed_at": 1795000500,
											"trust": "usable",
											"reads_low": null,
											"state": "live",
											"cadence_min": 15,
											"next_at": 1795001400,
											"late": false,
											"observed_at_utc": "2026-11-18T11:15:00Z",
											"next_at_utc": "2026-11-18T11:30:00Z"
										},
										{
											"id": "example:point-3",
											"lat": 36.081,
											"lon": -5.711,
											"kind": "met",
											"source": "example",
											"credit": "Example Network (synthetic data)",
											"credit_required": true,
											"avg_kn": null,
											"gust_kn": null,
											"dir_deg": 90,
											"observed_at": 1794998700,
											"trust": "trusted",
											"reads_low": "E",
											"state": "stale",
											"cadence_min": 30,
											"next_at": 1795000200,
											"late": true,
											"observed_at_utc": "2026-11-18T10:45:00Z",
											"next_at_utc": "2026-11-18T11:10:00Z"
										}
									],
									"truncated": false,
									"truncated_hint": null,
									"attribution": [
										"Example Network (synthetic data)"
									],
									"updated_at": 1795001220,
									"updated_at_utc": "2026-11-18T11:27:00Z"
								}
							}
						}
					},
					"304": {
						"description": "Nothing changed since the answer whose `ETag` was sent as `If-None-Match`. No body. Costs the minute, never the day.",
						"headers": {
							"X-RateLimit-Limit": {
								"description": "Requests allowed in the current minute.",
								"schema": {
									"type": "integer"
								}
							},
							"X-RateLimit-Remaining": {
								"description": "Requests left in the current minute.",
								"schema": {
									"type": "integer"
								}
							},
							"X-RateLimit-Reset": {
								"description": "Seconds until the current minute ends.",
								"schema": {
									"type": "integer"
								}
							},
							"X-RateLimit-Day-Limit": {
								"description": "Requests allowed per UTC day.",
								"schema": {
									"type": "integer"
								}
							},
							"X-RateLimit-Day-Remaining": {
								"description": "Requests left today (UTC).",
								"schema": {
									"type": "integer"
								}
							},
							"ETag": {
								"description": "Send this back as `If-None-Match` to be answered 304 while nothing changed.",
								"schema": {
									"type": "string"
								}
							},
							"X-Request-Id": {
								"description": "This request's id, also on the server's log line: quote it in a report.",
								"schema": {
									"type": "string"
								}
							}
						}
					},
					"401": {
						"description": "No key (`key_missing`), or an unknown, revoked or expired trial key (`key_invalid`). Carries `WWW-Authenticate: Bearer`.",
						"headers": {
							"X-Request-Id": {
								"description": "This request's id, also on the server's log line: quote it in a report.",
								"schema": {
									"type": "string"
								}
							},
							"WWW-Authenticate": {
								"schema": {
									"type": "string",
									"const": "Bearer"
								}
							}
						},
						"content": {
							"application/json": {
								"schema": {
									"$ref": "#/components/schemas/Error"
								},
								"example": {
									"detail": "An API key is required: Authorization: Bearer gk_...",
									"code": "key_missing"
								}
							}
						}
					},
					"403": {
						"description": "The key's plan is not open (`plan_closed`).",
						"headers": {
							"X-Request-Id": {
								"description": "This request's id, also on the server's log line: quote it in a report.",
								"schema": {
									"type": "string"
								}
							}
						},
						"content": {
							"application/json": {
								"schema": {
									"$ref": "#/components/schemas/Error"
								},
								"example": {
									"detail": "This API key's plan is not open.",
									"code": "plan_closed"
								}
							}
						}
					},
					"404": {
						"description": "The API is switched off (`api_off`), no such meter with a reading in the last 24 h (`meter_missing`), or a model that is not cleared (`model_unavailable`).",
						"headers": {
							"X-Request-Id": {
								"description": "This request's id, also on the server's log line: quote it in a report.",
								"schema": {
									"type": "string"
								}
							}
						},
						"content": {
							"application/json": {
								"schema": {
									"$ref": "#/components/schemas/Error"
								},
								"example": {
									"detail": "Not Found",
									"code": "api_off"
								}
							}
						}
					},
					"422": {
						"description": "A malformed `bbox` (`bbox_invalid`), one wider than your plan's box limit (`bbox_too_wide`), or another invalid parameter (`invalid_params`, with `errors`). Not counted on your day.",
						"headers": {
							"X-Request-Id": {
								"description": "This request's id, also on the server's log line: quote it in a report.",
								"schema": {
									"type": "string"
								}
							}
						},
						"content": {
							"application/json": {
								"schema": {
									"$ref": "#/components/schemas/Error"
								},
								"example": {
									"detail": "bbox is wider than this plan's 4 square degrees",
									"code": "bbox_too_wide"
								}
							}
						}
					},
					"429": {
						"description": "Past the burst (`rate_burst`), the minute (`rate_minute`), the day's requests (`rate_day`), meter reads (`meter_day`), meter rows (`rows_day`) or forecast points (`cold_day`). Wait `Retry-After` seconds.",
						"headers": {
							"X-Request-Id": {
								"description": "This request's id, also on the server's log line: quote it in a report.",
								"schema": {
									"type": "string"
								}
							},
							"X-RateLimit-Limit": {
								"description": "Requests allowed in the current minute.",
								"schema": {
									"type": "integer"
								}
							},
							"X-RateLimit-Remaining": {
								"description": "Requests left in the current minute.",
								"schema": {
									"type": "integer"
								}
							},
							"X-RateLimit-Reset": {
								"description": "Seconds until the current minute ends.",
								"schema": {
									"type": "integer"
								}
							},
							"X-RateLimit-Day-Limit": {
								"description": "Requests allowed per UTC day.",
								"schema": {
									"type": "integer"
								}
							},
							"X-RateLimit-Day-Remaining": {
								"description": "Requests left today (UTC).",
								"schema": {
									"type": "integer"
								}
							},
							"Retry-After": {
								"description": "Seconds before retrying.",
								"schema": {
									"type": "integer"
								}
							}
						},
						"content": {
							"application/json": {
								"schema": {
									"$ref": "#/components/schemas/Error"
								},
								"example": {
									"detail": "Rate limit reached, retry after Retry-After.",
									"code": "rate_minute"
								}
							}
						}
					}
				}
			}
		},
		"/api/v1/meters/{meter_id}": {
			"get": {
				"summary": "One meter and its last 24 h",
				"description": "One meter's latest reading and its last 24 hours by the hour, oldest first. An hour with no reading is absent, never filled in. Counts one request, one 24 h meter read and one meter row plus one per hour row. A repeat with the last answer's `ETag` is a `304`. The answer shown is a synthetic example, not real readings.",
				"operationId": "v1_meter",
				"tags": [
					"Live wind"
				],
				"x-codeSamples": [
					{
						"lang": "curl",
						"label": "curl",
						"source": "export GUSTLY_API_KEY=\"gk_your_key_here\"\ncurl --include -H \"Authorization: Bearer $GUSTLY_API_KEY\" \\\n  'https://www.gustly.org/api/backend/api/v1/meters/example:beach-1'"
					}
				],
				"parameters": [
					{
						"description": "a meter's `id` from `/api/v1/live`",
						"in": "path",
						"name": "meter_id",
						"required": true,
						"schema": {
							"description": "a meter's `id` from `/api/v1/live`",
							"maxLength": 120,
							"title": "Meter Id",
							"type": "string"
						}
					}
				],
				"security": [
					{
						"apiKey": []
					}
				],
				"responses": {
					"200": {
						"description": "Successful JSON response. A data answer is `Cache-Control: private, max-age=60`.",
						"headers": {
							"X-RateLimit-Limit": {
								"description": "Requests allowed in the current minute.",
								"schema": {
									"type": "integer"
								}
							},
							"X-RateLimit-Remaining": {
								"description": "Requests left in the current minute.",
								"schema": {
									"type": "integer"
								}
							},
							"X-RateLimit-Reset": {
								"description": "Seconds until the current minute ends.",
								"schema": {
									"type": "integer"
								}
							},
							"X-RateLimit-Day-Limit": {
								"description": "Requests allowed per UTC day.",
								"schema": {
									"type": "integer"
								}
							},
							"X-RateLimit-Day-Remaining": {
								"description": "Requests left today (UTC).",
								"schema": {
									"type": "integer"
								}
							},
							"X-Request-Id": {
								"description": "This request's id, also on the server's log line: quote it in a report.",
								"schema": {
									"type": "string"
								}
							},
							"Cache-Control": {
								"schema": {
									"type": "string"
								}
							},
							"Vary": {
								"schema": {
									"type": "string"
								}
							},
							"ETag": {
								"description": "Send this back as `If-None-Match` to be answered 304 while nothing changed.",
								"schema": {
									"type": "string"
								}
							}
						},
						"content": {
							"application/json": {
								"schema": {
									"$ref": "#/components/schemas/V1MeterHours"
								},
								"example": {
									"meter": {
										"id": "example:beach-1",
										"lat": 36.012,
										"lon": -5.604,
										"kind": "met",
										"source": "example",
										"credit": "Example Network (synthetic data)",
										"credit_required": true,
										"avg_kn": 18.4,
										"gust_kn": 24.1,
										"dir_deg": 95,
										"observed_at": 1795001220,
										"trust": "trusted",
										"reads_low": null,
										"state": "live",
										"cadence_min": 10,
										"next_at": 1795001820,
										"late": false,
										"observed_at_utc": "2026-11-18T11:27:00Z",
										"next_at_utc": "2026-11-18T11:37:00Z"
									},
									"hours": [
										{
											"t": "2026-11-18T08:00:00Z",
											"wind_kn": 12.6,
											"gust_kn": 16.9,
											"lull_kn": 9.8,
											"dir_deg": 84,
											"measured": true
										},
										{
											"t": "2026-11-18T09:00:00Z",
											"wind_kn": 14.9,
											"gust_kn": 19.4,
											"lull_kn": 11.2,
											"dir_deg": 88,
											"measured": true
										},
										{
											"t": "2026-11-18T10:00:00Z",
											"wind_kn": 17.1,
											"gust_kn": 23,
											"lull_kn": 13.5,
											"dir_deg": 93,
											"measured": true
										},
										{
											"t": "2026-11-18T11:00:00Z",
											"wind_kn": 18.2,
											"gust_kn": 24.6,
											"lull_kn": 14.1,
											"dir_deg": 95,
											"measured": true
										}
									],
									"attribution": [
										"Example Network (synthetic data)"
									]
								}
							}
						}
					},
					"304": {
						"description": "Nothing changed since the answer whose `ETag` was sent as `If-None-Match`. No body. Costs the minute, never the day.",
						"headers": {
							"X-RateLimit-Limit": {
								"description": "Requests allowed in the current minute.",
								"schema": {
									"type": "integer"
								}
							},
							"X-RateLimit-Remaining": {
								"description": "Requests left in the current minute.",
								"schema": {
									"type": "integer"
								}
							},
							"X-RateLimit-Reset": {
								"description": "Seconds until the current minute ends.",
								"schema": {
									"type": "integer"
								}
							},
							"X-RateLimit-Day-Limit": {
								"description": "Requests allowed per UTC day.",
								"schema": {
									"type": "integer"
								}
							},
							"X-RateLimit-Day-Remaining": {
								"description": "Requests left today (UTC).",
								"schema": {
									"type": "integer"
								}
							},
							"ETag": {
								"description": "Send this back as `If-None-Match` to be answered 304 while nothing changed.",
								"schema": {
									"type": "string"
								}
							},
							"X-Request-Id": {
								"description": "This request's id, also on the server's log line: quote it in a report.",
								"schema": {
									"type": "string"
								}
							}
						}
					},
					"401": {
						"description": "No key (`key_missing`), or an unknown, revoked or expired trial key (`key_invalid`). Carries `WWW-Authenticate: Bearer`.",
						"headers": {
							"X-Request-Id": {
								"description": "This request's id, also on the server's log line: quote it in a report.",
								"schema": {
									"type": "string"
								}
							},
							"WWW-Authenticate": {
								"schema": {
									"type": "string",
									"const": "Bearer"
								}
							}
						},
						"content": {
							"application/json": {
								"schema": {
									"$ref": "#/components/schemas/Error"
								},
								"example": {
									"detail": "An API key is required: Authorization: Bearer gk_...",
									"code": "key_missing"
								}
							}
						}
					},
					"403": {
						"description": "The key's plan is not open (`plan_closed`).",
						"headers": {
							"X-Request-Id": {
								"description": "This request's id, also on the server's log line: quote it in a report.",
								"schema": {
									"type": "string"
								}
							}
						},
						"content": {
							"application/json": {
								"schema": {
									"$ref": "#/components/schemas/Error"
								},
								"example": {
									"detail": "This API key's plan is not open.",
									"code": "plan_closed"
								}
							}
						}
					},
					"404": {
						"description": "The API is switched off (`api_off`), no such meter with a reading in the last 24 h (`meter_missing`), or a model that is not cleared (`model_unavailable`).",
						"headers": {
							"X-Request-Id": {
								"description": "This request's id, also on the server's log line: quote it in a report.",
								"schema": {
									"type": "string"
								}
							}
						},
						"content": {
							"application/json": {
								"schema": {
									"$ref": "#/components/schemas/Error"
								},
								"example": {
									"detail": "Not Found",
									"code": "api_off"
								}
							}
						}
					},
					"422": {
						"description": "An invalid parameter (`invalid_params`: a coordinate out of range, `days` outside 1 to 90) or batch body (`body_invalid`: outside 1 to 10 points); `errors` names it.",
						"headers": {
							"X-Request-Id": {
								"description": "This request's id, also on the server's log line: quote it in a report.",
								"schema": {
									"type": "string"
								}
							}
						},
						"content": {
							"application/json": {
								"schema": {
									"$ref": "#/components/schemas/Error"
								},
								"example": {
									"detail": "Invalid request.",
									"code": "body_invalid",
									"errors": [
										{
											"loc": [
												"body",
												"points"
											],
											"msg": "Input should have at most 10 items"
										}
									]
								}
							}
						}
					},
					"429": {
						"description": "Past the burst (`rate_burst`), the minute (`rate_minute`), the day's requests (`rate_day`), meter reads (`meter_day`), meter rows (`rows_day`) or forecast points (`cold_day`). Wait `Retry-After` seconds.",
						"headers": {
							"X-Request-Id": {
								"description": "This request's id, also on the server's log line: quote it in a report.",
								"schema": {
									"type": "string"
								}
							},
							"X-RateLimit-Limit": {
								"description": "Requests allowed in the current minute.",
								"schema": {
									"type": "integer"
								}
							},
							"X-RateLimit-Remaining": {
								"description": "Requests left in the current minute.",
								"schema": {
									"type": "integer"
								}
							},
							"X-RateLimit-Reset": {
								"description": "Seconds until the current minute ends.",
								"schema": {
									"type": "integer"
								}
							},
							"X-RateLimit-Day-Limit": {
								"description": "Requests allowed per UTC day.",
								"schema": {
									"type": "integer"
								}
							},
							"X-RateLimit-Day-Remaining": {
								"description": "Requests left today (UTC).",
								"schema": {
									"type": "integer"
								}
							},
							"Retry-After": {
								"description": "Seconds before retrying.",
								"schema": {
									"type": "integer"
								}
							}
						},
						"content": {
							"application/json": {
								"schema": {
									"$ref": "#/components/schemas/Error"
								},
								"example": {
									"detail": "Rate limit reached, retry after Retry-After.",
									"code": "rate_minute"
								}
							}
						}
					}
				}
			}
		},
		"/api/v1/sources": {
			"get": {
				"summary": "Sources and credits",
				"description": "The sources this API serves, each with the credit you show beside its readings and the licence it is served under. Counts one request. The answer shown is a synthetic example, not real readings.",
				"operationId": "v1_sources",
				"tags": [
					"Live wind"
				],
				"x-codeSamples": [
					{
						"lang": "curl",
						"label": "curl",
						"source": "export GUSTLY_API_KEY=\"gk_your_key_here\"\ncurl --include -H \"Authorization: Bearer $GUSTLY_API_KEY\" \\\n  'https://www.gustly.org/api/backend/api/v1/sources'"
					}
				],
				"security": [
					{
						"apiKey": []
					}
				],
				"responses": {
					"200": {
						"description": "Successful JSON response. A data answer is `Cache-Control: private, max-age=60`.",
						"headers": {
							"X-RateLimit-Limit": {
								"description": "Requests allowed in the current minute.",
								"schema": {
									"type": "integer"
								}
							},
							"X-RateLimit-Remaining": {
								"description": "Requests left in the current minute.",
								"schema": {
									"type": "integer"
								}
							},
							"X-RateLimit-Reset": {
								"description": "Seconds until the current minute ends.",
								"schema": {
									"type": "integer"
								}
							},
							"X-RateLimit-Day-Limit": {
								"description": "Requests allowed per UTC day.",
								"schema": {
									"type": "integer"
								}
							},
							"X-RateLimit-Day-Remaining": {
								"description": "Requests left today (UTC).",
								"schema": {
									"type": "integer"
								}
							},
							"X-Request-Id": {
								"description": "This request's id, also on the server's log line: quote it in a report.",
								"schema": {
									"type": "string"
								}
							},
							"Cache-Control": {
								"schema": {
									"type": "string"
								}
							},
							"Vary": {
								"schema": {
									"type": "string"
								}
							},
							"ETag": {
								"description": "Send this back as `If-None-Match` to be answered 304 while nothing changed.",
								"schema": {
									"type": "string"
								}
							}
						},
						"content": {
							"application/json": {
								"schema": {
									"$ref": "#/components/schemas/V1Sources"
								},
								"example": {
									"sources": [
										{
											"id": "example",
											"credit": "Example Network (synthetic data)",
											"credit_required": true,
											"licence": "Example open data licence"
										}
									]
								}
							}
						}
					},
					"401": {
						"description": "No key (`key_missing`), or an unknown, revoked or expired trial key (`key_invalid`). Carries `WWW-Authenticate: Bearer`.",
						"headers": {
							"X-Request-Id": {
								"description": "This request's id, also on the server's log line: quote it in a report.",
								"schema": {
									"type": "string"
								}
							},
							"WWW-Authenticate": {
								"schema": {
									"type": "string",
									"const": "Bearer"
								}
							}
						},
						"content": {
							"application/json": {
								"schema": {
									"$ref": "#/components/schemas/Error"
								},
								"example": {
									"detail": "An API key is required: Authorization: Bearer gk_...",
									"code": "key_missing"
								}
							}
						}
					},
					"403": {
						"description": "The key's plan is not open (`plan_closed`).",
						"headers": {
							"X-Request-Id": {
								"description": "This request's id, also on the server's log line: quote it in a report.",
								"schema": {
									"type": "string"
								}
							}
						},
						"content": {
							"application/json": {
								"schema": {
									"$ref": "#/components/schemas/Error"
								},
								"example": {
									"detail": "This API key's plan is not open.",
									"code": "plan_closed"
								}
							}
						}
					},
					"404": {
						"description": "The API is switched off (`api_off`), no such meter with a reading in the last 24 h (`meter_missing`), or a model that is not cleared (`model_unavailable`).",
						"headers": {
							"X-Request-Id": {
								"description": "This request's id, also on the server's log line: quote it in a report.",
								"schema": {
									"type": "string"
								}
							}
						},
						"content": {
							"application/json": {
								"schema": {
									"$ref": "#/components/schemas/Error"
								},
								"example": {
									"detail": "Not Found",
									"code": "api_off"
								}
							}
						}
					},
					"429": {
						"description": "Past the burst (`rate_burst`), the minute (`rate_minute`), the day's requests (`rate_day`), meter reads (`meter_day`), meter rows (`rows_day`) or forecast points (`cold_day`). Wait `Retry-After` seconds.",
						"headers": {
							"X-Request-Id": {
								"description": "This request's id, also on the server's log line: quote it in a report.",
								"schema": {
									"type": "string"
								}
							},
							"X-RateLimit-Limit": {
								"description": "Requests allowed in the current minute.",
								"schema": {
									"type": "integer"
								}
							},
							"X-RateLimit-Remaining": {
								"description": "Requests left in the current minute.",
								"schema": {
									"type": "integer"
								}
							},
							"X-RateLimit-Reset": {
								"description": "Seconds until the current minute ends.",
								"schema": {
									"type": "integer"
								}
							},
							"X-RateLimit-Day-Limit": {
								"description": "Requests allowed per UTC day.",
								"schema": {
									"type": "integer"
								}
							},
							"X-RateLimit-Day-Remaining": {
								"description": "Requests left today (UTC).",
								"schema": {
									"type": "integer"
								}
							},
							"Retry-After": {
								"description": "Seconds before retrying.",
								"schema": {
									"type": "integer"
								}
							}
						},
						"content": {
							"application/json": {
								"schema": {
									"$ref": "#/components/schemas/Error"
								},
								"example": {
									"detail": "Rate limit reached, retry after Retry-After.",
									"code": "rate_minute"
								}
							}
						}
					}
				}
			}
		},
		"/api/v1/me": {
			"get": {
				"summary": "Your key and its quota today",
				"description": "Your key's plan and when it expires, and how much of today the account has used: requests, 24 h meter reads, meter rows and forecast points, each with its limit and the UTC reset time, plus the current minute window. Read-only: checking it never counts on the day. The answer shown is a synthetic example.",
				"operationId": "v1_me",
				"tags": [
					"Manage"
				],
				"x-codeSamples": [
					{
						"lang": "curl",
						"label": "curl",
						"source": "export GUSTLY_API_KEY=\"gk_your_key_here\"\ncurl --include -H \"Authorization: Bearer $GUSTLY_API_KEY\" \\\n  'https://www.gustly.org/api/backend/api/v1/me'"
					}
				],
				"security": [
					{
						"apiKey": []
					}
				],
				"responses": {
					"200": {
						"description": "Successful JSON response. A data answer is `Cache-Control: private, max-age=60`.",
						"headers": {
							"X-RateLimit-Limit": {
								"description": "Requests allowed in the current minute.",
								"schema": {
									"type": "integer"
								}
							},
							"X-RateLimit-Remaining": {
								"description": "Requests left in the current minute.",
								"schema": {
									"type": "integer"
								}
							},
							"X-RateLimit-Reset": {
								"description": "Seconds until the current minute ends.",
								"schema": {
									"type": "integer"
								}
							},
							"X-RateLimit-Day-Limit": {
								"description": "Requests allowed per UTC day.",
								"schema": {
									"type": "integer"
								}
							},
							"X-RateLimit-Day-Remaining": {
								"description": "Requests left today (UTC).",
								"schema": {
									"type": "integer"
								}
							},
							"X-Request-Id": {
								"description": "This request's id, also on the server's log line: quote it in a report.",
								"schema": {
									"type": "string"
								}
							},
							"Cache-Control": {
								"schema": {
									"type": "string"
								}
							},
							"Vary": {
								"schema": {
									"type": "string"
								}
							},
							"ETag": {
								"description": "Send this back as `If-None-Match` to be answered 304 while nothing changed.",
								"schema": {
									"type": "string"
								}
							}
						},
						"content": {
							"application/json": {
								"schema": {
									"$ref": "#/components/schemas/V1Me"
								},
								"example": {
									"key": {
										"id": 7,
										"prefix": "gk_rANd0m",
										"plan": "trial",
										"created_utc": "2026-11-20T10:00:00Z",
										"expires_utc": "2027-01-17T11:27:00Z"
									},
									"quota": {
										"day": {
											"requests": 141,
											"limit": 500,
											"meter_reads": 2,
											"meter_reads_limit": 50,
											"meter_rows": 420,
											"meter_rows_limit": 4800,
											"forecast_points": 3,
											"forecast_points_limit": 100,
											"resets_utc": "2026-11-23T00:00:00Z"
										},
										"minute": {
											"remaining": 8,
											"limit": 10,
											"reset_s": 42
										}
									}
								}
							}
						}
					},
					"401": {
						"description": "No key (`key_missing`), or an unknown, revoked or expired trial key (`key_invalid`). Carries `WWW-Authenticate: Bearer`.",
						"headers": {
							"X-Request-Id": {
								"description": "This request's id, also on the server's log line: quote it in a report.",
								"schema": {
									"type": "string"
								}
							},
							"WWW-Authenticate": {
								"schema": {
									"type": "string",
									"const": "Bearer"
								}
							}
						},
						"content": {
							"application/json": {
								"schema": {
									"$ref": "#/components/schemas/Error"
								},
								"example": {
									"detail": "An API key is required: Authorization: Bearer gk_...",
									"code": "key_missing"
								}
							}
						}
					},
					"403": {
						"description": "The key's plan is not open (`plan_closed`).",
						"headers": {
							"X-Request-Id": {
								"description": "This request's id, also on the server's log line: quote it in a report.",
								"schema": {
									"type": "string"
								}
							}
						},
						"content": {
							"application/json": {
								"schema": {
									"$ref": "#/components/schemas/Error"
								},
								"example": {
									"detail": "This API key's plan is not open.",
									"code": "plan_closed"
								}
							}
						}
					},
					"404": {
						"description": "The API is switched off (`api_off`), no such meter with a reading in the last 24 h (`meter_missing`), or a model that is not cleared (`model_unavailable`).",
						"headers": {
							"X-Request-Id": {
								"description": "This request's id, also on the server's log line: quote it in a report.",
								"schema": {
									"type": "string"
								}
							}
						},
						"content": {
							"application/json": {
								"schema": {
									"$ref": "#/components/schemas/Error"
								},
								"example": {
									"detail": "Not Found",
									"code": "api_off"
								}
							}
						}
					},
					"429": {
						"description": "Past the burst (`rate_burst`), the minute (`rate_minute`), the day's requests (`rate_day`), meter reads (`meter_day`), meter rows (`rows_day`) or forecast points (`cold_day`). Wait `Retry-After` seconds.",
						"headers": {
							"X-Request-Id": {
								"description": "This request's id, also on the server's log line: quote it in a report.",
								"schema": {
									"type": "string"
								}
							},
							"X-RateLimit-Limit": {
								"description": "Requests allowed in the current minute.",
								"schema": {
									"type": "integer"
								}
							},
							"X-RateLimit-Remaining": {
								"description": "Requests left in the current minute.",
								"schema": {
									"type": "integer"
								}
							},
							"X-RateLimit-Reset": {
								"description": "Seconds until the current minute ends.",
								"schema": {
									"type": "integer"
								}
							},
							"X-RateLimit-Day-Limit": {
								"description": "Requests allowed per UTC day.",
								"schema": {
									"type": "integer"
								}
							},
							"X-RateLimit-Day-Remaining": {
								"description": "Requests left today (UTC).",
								"schema": {
									"type": "integer"
								}
							},
							"Retry-After": {
								"description": "Seconds before retrying.",
								"schema": {
									"type": "integer"
								}
							}
						},
						"content": {
							"application/json": {
								"schema": {
									"$ref": "#/components/schemas/Error"
								},
								"example": {
									"detail": "Rate limit reached, retry after Retry-After.",
									"code": "rate_minute"
								}
							}
						}
					}
				}
			}
		},
		"/api/v1/usage": {
			"get": {
				"summary": "Your usage by day",
				"description": "The account's requests and 24 h meter reads per UTC day, oldest first, for the last `days` days (1 to 90, default 30). A day with no usage is absent. A rotated key keeps the same history. Counts as one request on the day.",
				"operationId": "v1_usage",
				"tags": [
					"Manage"
				],
				"x-codeSamples": [
					{
						"lang": "curl",
						"label": "curl",
						"source": "export GUSTLY_API_KEY=\"gk_your_key_here\"\ncurl --include -H \"Authorization: Bearer $GUSTLY_API_KEY\" \\\n  'https://www.gustly.org/api/backend/api/v1/usage?days=30'"
					}
				],
				"parameters": [
					{
						"description": "how many days back, 1 to 90",
						"in": "query",
						"name": "days",
						"required": false,
						"schema": {
							"default": 30,
							"description": "how many days back, 1 to 90",
							"maximum": 90,
							"minimum": 1,
							"title": "Days",
							"type": "integer"
						}
					}
				],
				"security": [
					{
						"apiKey": []
					}
				],
				"responses": {
					"200": {
						"description": "Successful JSON response. A data answer is `Cache-Control: private, max-age=60`.",
						"headers": {
							"X-RateLimit-Limit": {
								"description": "Requests allowed in the current minute.",
								"schema": {
									"type": "integer"
								}
							},
							"X-RateLimit-Remaining": {
								"description": "Requests left in the current minute.",
								"schema": {
									"type": "integer"
								}
							},
							"X-RateLimit-Reset": {
								"description": "Seconds until the current minute ends.",
								"schema": {
									"type": "integer"
								}
							},
							"X-RateLimit-Day-Limit": {
								"description": "Requests allowed per UTC day.",
								"schema": {
									"type": "integer"
								}
							},
							"X-RateLimit-Day-Remaining": {
								"description": "Requests left today (UTC).",
								"schema": {
									"type": "integer"
								}
							},
							"X-Request-Id": {
								"description": "This request's id, also on the server's log line: quote it in a report.",
								"schema": {
									"type": "string"
								}
							},
							"Cache-Control": {
								"schema": {
									"type": "string"
								}
							},
							"Vary": {
								"schema": {
									"type": "string"
								}
							},
							"ETag": {
								"description": "Send this back as `If-None-Match` to be answered 304 while nothing changed.",
								"schema": {
									"type": "string"
								}
							}
						},
						"content": {
							"application/json": {
								"schema": {
									"$ref": "#/components/schemas/V1Usage"
								},
								"example": {
									"key_id": 7,
									"account_id": 7,
									"days": [
										{
											"day": "2026-11-20",
											"requests": 120,
											"meter_reads": 2
										},
										{
											"day": "2026-11-21",
											"requests": 21,
											"meter_reads": 0
										}
									]
								}
							}
						}
					},
					"401": {
						"description": "No key (`key_missing`), or an unknown, revoked or expired trial key (`key_invalid`). Carries `WWW-Authenticate: Bearer`.",
						"headers": {
							"X-Request-Id": {
								"description": "This request's id, also on the server's log line: quote it in a report.",
								"schema": {
									"type": "string"
								}
							},
							"WWW-Authenticate": {
								"schema": {
									"type": "string",
									"const": "Bearer"
								}
							}
						},
						"content": {
							"application/json": {
								"schema": {
									"$ref": "#/components/schemas/Error"
								},
								"example": {
									"detail": "An API key is required: Authorization: Bearer gk_...",
									"code": "key_missing"
								}
							}
						}
					},
					"403": {
						"description": "The key's plan is not open (`plan_closed`).",
						"headers": {
							"X-Request-Id": {
								"description": "This request's id, also on the server's log line: quote it in a report.",
								"schema": {
									"type": "string"
								}
							}
						},
						"content": {
							"application/json": {
								"schema": {
									"$ref": "#/components/schemas/Error"
								},
								"example": {
									"detail": "This API key's plan is not open.",
									"code": "plan_closed"
								}
							}
						}
					},
					"404": {
						"description": "The API is switched off (`api_off`), no such meter with a reading in the last 24 h (`meter_missing`), or a model that is not cleared (`model_unavailable`).",
						"headers": {
							"X-Request-Id": {
								"description": "This request's id, also on the server's log line: quote it in a report.",
								"schema": {
									"type": "string"
								}
							}
						},
						"content": {
							"application/json": {
								"schema": {
									"$ref": "#/components/schemas/Error"
								},
								"example": {
									"detail": "Not Found",
									"code": "api_off"
								}
							}
						}
					},
					"422": {
						"description": "An invalid parameter (`invalid_params`: a coordinate out of range, `days` outside 1 to 90) or batch body (`body_invalid`: outside 1 to 10 points); `errors` names it.",
						"headers": {
							"X-Request-Id": {
								"description": "This request's id, also on the server's log line: quote it in a report.",
								"schema": {
									"type": "string"
								}
							}
						},
						"content": {
							"application/json": {
								"schema": {
									"$ref": "#/components/schemas/Error"
								},
								"example": {
									"detail": "Invalid request.",
									"code": "body_invalid",
									"errors": [
										{
											"loc": [
												"body",
												"points"
											],
											"msg": "Input should have at most 10 items"
										}
									]
								}
							}
						}
					},
					"429": {
						"description": "Past the burst (`rate_burst`), the minute (`rate_minute`), the day's requests (`rate_day`), meter reads (`meter_day`), meter rows (`rows_day`) or forecast points (`cold_day`). Wait `Retry-After` seconds.",
						"headers": {
							"X-Request-Id": {
								"description": "This request's id, also on the server's log line: quote it in a report.",
								"schema": {
									"type": "string"
								}
							},
							"X-RateLimit-Limit": {
								"description": "Requests allowed in the current minute.",
								"schema": {
									"type": "integer"
								}
							},
							"X-RateLimit-Remaining": {
								"description": "Requests left in the current minute.",
								"schema": {
									"type": "integer"
								}
							},
							"X-RateLimit-Reset": {
								"description": "Seconds until the current minute ends.",
								"schema": {
									"type": "integer"
								}
							},
							"X-RateLimit-Day-Limit": {
								"description": "Requests allowed per UTC day.",
								"schema": {
									"type": "integer"
								}
							},
							"X-RateLimit-Day-Remaining": {
								"description": "Requests left today (UTC).",
								"schema": {
									"type": "integer"
								}
							},
							"Retry-After": {
								"description": "Seconds before retrying.",
								"schema": {
									"type": "integer"
								}
							}
						},
						"content": {
							"application/json": {
								"schema": {
									"$ref": "#/components/schemas/Error"
								},
								"example": {
									"detail": "Rate limit reached, retry after Retry-After.",
									"code": "rate_minute"
								}
							}
						}
					}
				}
			}
		},
		"/api/v1/key/rotate": {
			"post": {
				"summary": "Replace your key",
				"description": "Issue a replacement key and revoke the old one in the same moment. The new key is shown exactly once in the answer: only its hash is stored, so a lost answer cannot be re-issued. The same plan, the same expiry and the same day carry over: a rotation never buys a second day. The answer is `Cache-Control: no-store`. Counts as one request on the day.",
				"operationId": "v1_key_rotate",
				"tags": [
					"Manage"
				],
				"x-codeSamples": [
					{
						"lang": "curl",
						"label": "curl",
						"source": "export GUSTLY_API_KEY=\"gk_your_key_here\"\ncurl --include -H \"Authorization: Bearer $GUSTLY_API_KEY\" \\\n  -X POST \\\n  'https://www.gustly.org/api/backend/api/v1/key/rotate'"
					}
				],
				"security": [
					{
						"apiKey": []
					}
				],
				"responses": {
					"200": {
						"description": "Successful JSON response. It carries a key, so it is `Cache-Control: no-store`.",
						"headers": {
							"X-RateLimit-Limit": {
								"description": "Requests allowed in the current minute.",
								"schema": {
									"type": "integer"
								}
							},
							"X-RateLimit-Remaining": {
								"description": "Requests left in the current minute.",
								"schema": {
									"type": "integer"
								}
							},
							"X-RateLimit-Reset": {
								"description": "Seconds until the current minute ends.",
								"schema": {
									"type": "integer"
								}
							},
							"X-RateLimit-Day-Limit": {
								"description": "Requests allowed per UTC day.",
								"schema": {
									"type": "integer"
								}
							},
							"X-RateLimit-Day-Remaining": {
								"description": "Requests left today (UTC).",
								"schema": {
									"type": "integer"
								}
							},
							"X-Request-Id": {
								"description": "This request's id, also on the server's log line: quote it in a report.",
								"schema": {
									"type": "string"
								}
							},
							"Cache-Control": {
								"schema": {
									"type": "string"
								}
							},
							"Vary": {
								"schema": {
									"type": "string"
								}
							}
						},
						"content": {
							"application/json": {
								"schema": {
									"$ref": "#/components/schemas/V1Rotate"
								},
								"example": {
									"key_id": 8,
									"expires_utc": "2027-01-17T11:27:00Z",
									"key": "gk_your_key_here",
									"shown_once": true,
									"old_revoked": true
								}
							}
						}
					},
					"401": {
						"description": "No key (`key_missing`), or an unknown, revoked or expired trial key (`key_invalid`). Carries `WWW-Authenticate: Bearer`.",
						"headers": {
							"X-Request-Id": {
								"description": "This request's id, also on the server's log line: quote it in a report.",
								"schema": {
									"type": "string"
								}
							},
							"WWW-Authenticate": {
								"schema": {
									"type": "string",
									"const": "Bearer"
								}
							}
						},
						"content": {
							"application/json": {
								"schema": {
									"$ref": "#/components/schemas/Error"
								},
								"example": {
									"detail": "An API key is required: Authorization: Bearer gk_...",
									"code": "key_missing"
								}
							}
						}
					},
					"403": {
						"description": "The key's plan is not open (`plan_closed`).",
						"headers": {
							"X-Request-Id": {
								"description": "This request's id, also on the server's log line: quote it in a report.",
								"schema": {
									"type": "string"
								}
							}
						},
						"content": {
							"application/json": {
								"schema": {
									"$ref": "#/components/schemas/Error"
								},
								"example": {
									"detail": "This API key's plan is not open.",
									"code": "plan_closed"
								}
							}
						}
					},
					"404": {
						"description": "The API is switched off (`api_off`), no such meter with a reading in the last 24 h (`meter_missing`), or a model that is not cleared (`model_unavailable`).",
						"headers": {
							"X-Request-Id": {
								"description": "This request's id, also on the server's log line: quote it in a report.",
								"schema": {
									"type": "string"
								}
							}
						},
						"content": {
							"application/json": {
								"schema": {
									"$ref": "#/components/schemas/Error"
								},
								"example": {
									"detail": "Not Found",
									"code": "api_off"
								}
							}
						}
					},
					"429": {
						"description": "Past the burst (`rate_burst`), the minute (`rate_minute`), the day's requests (`rate_day`), meter reads (`meter_day`), meter rows (`rows_day`) or forecast points (`cold_day`). Wait `Retry-After` seconds.",
						"headers": {
							"X-Request-Id": {
								"description": "This request's id, also on the server's log line: quote it in a report.",
								"schema": {
									"type": "string"
								}
							},
							"X-RateLimit-Limit": {
								"description": "Requests allowed in the current minute.",
								"schema": {
									"type": "integer"
								}
							},
							"X-RateLimit-Remaining": {
								"description": "Requests left in the current minute.",
								"schema": {
									"type": "integer"
								}
							},
							"X-RateLimit-Reset": {
								"description": "Seconds until the current minute ends.",
								"schema": {
									"type": "integer"
								}
							},
							"X-RateLimit-Day-Limit": {
								"description": "Requests allowed per UTC day.",
								"schema": {
									"type": "integer"
								}
							},
							"X-RateLimit-Day-Remaining": {
								"description": "Requests left today (UTC).",
								"schema": {
									"type": "integer"
								}
							},
							"Retry-After": {
								"description": "Seconds before retrying.",
								"schema": {
									"type": "integer"
								}
							}
						},
						"content": {
							"application/json": {
								"schema": {
									"$ref": "#/components/schemas/Error"
								},
								"example": {
									"detail": "Rate limit reached, retry after Retry-After.",
									"code": "rate_minute"
								}
							}
						}
					}
				}
			}
		},
		"/api/v1/key": {
			"delete": {
				"summary": "Revoke your key",
				"description": "Revoke the bearer key from the next request on. There is no undo, and the plaintext cannot be read again: only its hash was ever stored. A new trial key can be created on the key page afterwards. Counts as one request on the day.",
				"operationId": "v1_key_delete",
				"tags": [
					"Manage"
				],
				"x-codeSamples": [
					{
						"lang": "curl",
						"label": "curl",
						"source": "export GUSTLY_API_KEY=\"gk_your_key_here\"\ncurl --include -H \"Authorization: Bearer $GUSTLY_API_KEY\" \\\n  -X DELETE \\\n  'https://www.gustly.org/api/backend/api/v1/key'"
					}
				],
				"security": [
					{
						"apiKey": []
					}
				],
				"responses": {
					"200": {
						"description": "Successful JSON response. A data answer is `Cache-Control: private, max-age=60`.",
						"headers": {
							"X-RateLimit-Limit": {
								"description": "Requests allowed in the current minute.",
								"schema": {
									"type": "integer"
								}
							},
							"X-RateLimit-Remaining": {
								"description": "Requests left in the current minute.",
								"schema": {
									"type": "integer"
								}
							},
							"X-RateLimit-Reset": {
								"description": "Seconds until the current minute ends.",
								"schema": {
									"type": "integer"
								}
							},
							"X-RateLimit-Day-Limit": {
								"description": "Requests allowed per UTC day.",
								"schema": {
									"type": "integer"
								}
							},
							"X-RateLimit-Day-Remaining": {
								"description": "Requests left today (UTC).",
								"schema": {
									"type": "integer"
								}
							},
							"X-Request-Id": {
								"description": "This request's id, also on the server's log line: quote it in a report.",
								"schema": {
									"type": "string"
								}
							},
							"Cache-Control": {
								"schema": {
									"type": "string"
								}
							},
							"Vary": {
								"schema": {
									"type": "string"
								}
							},
							"ETag": {
								"description": "Send this back as `If-None-Match` to be answered 304 while nothing changed.",
								"schema": {
									"type": "string"
								}
							}
						},
						"content": {
							"application/json": {
								"schema": {
									"$ref": "#/components/schemas/V1Revoked"
								},
								"example": {
									"status": "revoked",
									"key_id": 7
								}
							}
						}
					},
					"401": {
						"description": "No key (`key_missing`), or an unknown, revoked or expired trial key (`key_invalid`). Carries `WWW-Authenticate: Bearer`.",
						"headers": {
							"X-Request-Id": {
								"description": "This request's id, also on the server's log line: quote it in a report.",
								"schema": {
									"type": "string"
								}
							},
							"WWW-Authenticate": {
								"schema": {
									"type": "string",
									"const": "Bearer"
								}
							}
						},
						"content": {
							"application/json": {
								"schema": {
									"$ref": "#/components/schemas/Error"
								},
								"example": {
									"detail": "An API key is required: Authorization: Bearer gk_...",
									"code": "key_missing"
								}
							}
						}
					},
					"403": {
						"description": "The key's plan is not open (`plan_closed`).",
						"headers": {
							"X-Request-Id": {
								"description": "This request's id, also on the server's log line: quote it in a report.",
								"schema": {
									"type": "string"
								}
							}
						},
						"content": {
							"application/json": {
								"schema": {
									"$ref": "#/components/schemas/Error"
								},
								"example": {
									"detail": "This API key's plan is not open.",
									"code": "plan_closed"
								}
							}
						}
					},
					"404": {
						"description": "The API is switched off (`api_off`), no such meter with a reading in the last 24 h (`meter_missing`), or a model that is not cleared (`model_unavailable`).",
						"headers": {
							"X-Request-Id": {
								"description": "This request's id, also on the server's log line: quote it in a report.",
								"schema": {
									"type": "string"
								}
							}
						},
						"content": {
							"application/json": {
								"schema": {
									"$ref": "#/components/schemas/Error"
								},
								"example": {
									"detail": "Not Found",
									"code": "api_off"
								}
							}
						}
					},
					"429": {
						"description": "Past the burst (`rate_burst`), the minute (`rate_minute`), the day's requests (`rate_day`), meter reads (`meter_day`), meter rows (`rows_day`) or forecast points (`cold_day`). Wait `Retry-After` seconds.",
						"headers": {
							"X-Request-Id": {
								"description": "This request's id, also on the server's log line: quote it in a report.",
								"schema": {
									"type": "string"
								}
							},
							"X-RateLimit-Limit": {
								"description": "Requests allowed in the current minute.",
								"schema": {
									"type": "integer"
								}
							},
							"X-RateLimit-Remaining": {
								"description": "Requests left in the current minute.",
								"schema": {
									"type": "integer"
								}
							},
							"X-RateLimit-Reset": {
								"description": "Seconds until the current minute ends.",
								"schema": {
									"type": "integer"
								}
							},
							"X-RateLimit-Day-Limit": {
								"description": "Requests allowed per UTC day.",
								"schema": {
									"type": "integer"
								}
							},
							"X-RateLimit-Day-Remaining": {
								"description": "Requests left today (UTC).",
								"schema": {
									"type": "integer"
								}
							},
							"Retry-After": {
								"description": "Seconds before retrying.",
								"schema": {
									"type": "integer"
								}
							}
						},
						"content": {
							"application/json": {
								"schema": {
									"$ref": "#/components/schemas/Error"
								},
								"example": {
									"detail": "Rate limit reached, retry after Retry-After.",
									"code": "rate_minute"
								}
							}
						}
					}
				}
			}
		},
		"/api/v1/endpoints": {
			"get": {
				"summary": "Every keyed route",
				"description": "Every /api/v1 route your key may call, with its stable id (the OpenAPI `operationId`), method, path and parameters. Read this to discover the surface. Counts as one request on the day.",
				"operationId": "v1_endpoints",
				"tags": [
					"Manage"
				],
				"x-codeSamples": [
					{
						"lang": "curl",
						"label": "curl",
						"source": "export GUSTLY_API_KEY=\"gk_your_key_here\"\ncurl --include -H \"Authorization: Bearer $GUSTLY_API_KEY\" \\\n  'https://www.gustly.org/api/backend/api/v1/endpoints'"
					}
				],
				"security": [
					{
						"apiKey": []
					}
				],
				"responses": {
					"200": {
						"description": "Successful JSON response. A data answer is `Cache-Control: private, max-age=60`.",
						"headers": {
							"X-RateLimit-Limit": {
								"description": "Requests allowed in the current minute.",
								"schema": {
									"type": "integer"
								}
							},
							"X-RateLimit-Remaining": {
								"description": "Requests left in the current minute.",
								"schema": {
									"type": "integer"
								}
							},
							"X-RateLimit-Reset": {
								"description": "Seconds until the current minute ends.",
								"schema": {
									"type": "integer"
								}
							},
							"X-RateLimit-Day-Limit": {
								"description": "Requests allowed per UTC day.",
								"schema": {
									"type": "integer"
								}
							},
							"X-RateLimit-Day-Remaining": {
								"description": "Requests left today (UTC).",
								"schema": {
									"type": "integer"
								}
							},
							"X-Request-Id": {
								"description": "This request's id, also on the server's log line: quote it in a report.",
								"schema": {
									"type": "string"
								}
							},
							"Cache-Control": {
								"schema": {
									"type": "string"
								}
							},
							"Vary": {
								"schema": {
									"type": "string"
								}
							},
							"ETag": {
								"description": "Send this back as `If-None-Match` to be answered 304 while nothing changed.",
								"schema": {
									"type": "string"
								}
							}
						},
						"content": {
							"application/json": {
								"schema": {
									"$ref": "#/components/schemas/V1Endpoints"
								},
								"example": {
									"endpoints": [
										{
											"id": "v1_live",
											"method": "GET",
											"path": "/api/v1/live",
											"summary": "The meters in a box with their last reading, best first.",
											"params": [
												{
													"name": "bbox",
													"where": "query",
													"required": true,
													"type": "string",
													"description": "west,south,east,north in degrees."
												}
											]
										},
										{
											"id": "v1_me",
											"method": "GET",
											"path": "/api/v1/me",
											"summary": "The bearer key's plan and its usage so far today (read-only).",
											"params": []
										},
										{
											"id": "v1_key_rotate",
											"method": "POST",
											"path": "/api/v1/key/rotate",
											"summary": "Replace the bearer key: the new key is shown once, the old one is revoked.",
											"params": []
										}
									]
								}
							}
						}
					},
					"401": {
						"description": "No key (`key_missing`), or an unknown, revoked or expired trial key (`key_invalid`). Carries `WWW-Authenticate: Bearer`.",
						"headers": {
							"X-Request-Id": {
								"description": "This request's id, also on the server's log line: quote it in a report.",
								"schema": {
									"type": "string"
								}
							},
							"WWW-Authenticate": {
								"schema": {
									"type": "string",
									"const": "Bearer"
								}
							}
						},
						"content": {
							"application/json": {
								"schema": {
									"$ref": "#/components/schemas/Error"
								},
								"example": {
									"detail": "An API key is required: Authorization: Bearer gk_...",
									"code": "key_missing"
								}
							}
						}
					},
					"403": {
						"description": "The key's plan is not open (`plan_closed`).",
						"headers": {
							"X-Request-Id": {
								"description": "This request's id, also on the server's log line: quote it in a report.",
								"schema": {
									"type": "string"
								}
							}
						},
						"content": {
							"application/json": {
								"schema": {
									"$ref": "#/components/schemas/Error"
								},
								"example": {
									"detail": "This API key's plan is not open.",
									"code": "plan_closed"
								}
							}
						}
					},
					"404": {
						"description": "The API is switched off (`api_off`), no such meter with a reading in the last 24 h (`meter_missing`), or a model that is not cleared (`model_unavailable`).",
						"headers": {
							"X-Request-Id": {
								"description": "This request's id, also on the server's log line: quote it in a report.",
								"schema": {
									"type": "string"
								}
							}
						},
						"content": {
							"application/json": {
								"schema": {
									"$ref": "#/components/schemas/Error"
								},
								"example": {
									"detail": "Not Found",
									"code": "api_off"
								}
							}
						}
					},
					"429": {
						"description": "Past the burst (`rate_burst`), the minute (`rate_minute`), the day's requests (`rate_day`), meter reads (`meter_day`), meter rows (`rows_day`) or forecast points (`cold_day`). Wait `Retry-After` seconds.",
						"headers": {
							"X-Request-Id": {
								"description": "This request's id, also on the server's log line: quote it in a report.",
								"schema": {
									"type": "string"
								}
							},
							"X-RateLimit-Limit": {
								"description": "Requests allowed in the current minute.",
								"schema": {
									"type": "integer"
								}
							},
							"X-RateLimit-Remaining": {
								"description": "Requests left in the current minute.",
								"schema": {
									"type": "integer"
								}
							},
							"X-RateLimit-Reset": {
								"description": "Seconds until the current minute ends.",
								"schema": {
									"type": "integer"
								}
							},
							"X-RateLimit-Day-Limit": {
								"description": "Requests allowed per UTC day.",
								"schema": {
									"type": "integer"
								}
							},
							"X-RateLimit-Day-Remaining": {
								"description": "Requests left today (UTC).",
								"schema": {
									"type": "integer"
								}
							},
							"Retry-After": {
								"description": "Seconds before retrying.",
								"schema": {
									"type": "integer"
								}
							}
						},
						"content": {
							"application/json": {
								"schema": {
									"$ref": "#/components/schemas/Error"
								},
								"example": {
									"detail": "Rate limit reached, retry after Retry-After.",
									"code": "rate_minute"
								}
							}
						}
					}
				}
			}
		},
		"/api/v1/models": {
			"get": {
				"summary": "Forecast model catalog",
				"description": "List the forecast models cleared for this API, with their coverage, variables, credits and licences. An empty catalog (`{\"models\": []}`) means no model is cleared yet. Counts one request. The example is synthetic.",
				"operationId": "v1_models",
				"tags": [
					"Forecast wind"
				],
				"x-codeSamples": [
					{
						"lang": "curl",
						"label": "curl",
						"source": "export GUSTLY_API_KEY=\"gk_your_key_here\"\ncurl --include -H \"Authorization: Bearer $GUSTLY_API_KEY\" \\\n  'https://www.gustly.org/api/backend/api/v1/models'"
					}
				],
				"security": [
					{
						"apiKey": []
					}
				],
				"responses": {
					"200": {
						"description": "Successful JSON response. A data answer is `Cache-Control: private, max-age=60`.",
						"headers": {
							"X-RateLimit-Limit": {
								"description": "Requests allowed in the current minute.",
								"schema": {
									"type": "integer"
								}
							},
							"X-RateLimit-Remaining": {
								"description": "Requests left in the current minute.",
								"schema": {
									"type": "integer"
								}
							},
							"X-RateLimit-Reset": {
								"description": "Seconds until the current minute ends.",
								"schema": {
									"type": "integer"
								}
							},
							"X-RateLimit-Day-Limit": {
								"description": "Requests allowed per UTC day.",
								"schema": {
									"type": "integer"
								}
							},
							"X-RateLimit-Day-Remaining": {
								"description": "Requests left today (UTC).",
								"schema": {
									"type": "integer"
								}
							},
							"X-Request-Id": {
								"description": "This request's id, also on the server's log line: quote it in a report.",
								"schema": {
									"type": "string"
								}
							},
							"Cache-Control": {
								"schema": {
									"type": "string"
								}
							},
							"Vary": {
								"schema": {
									"type": "string"
								}
							},
							"ETag": {
								"description": "Send this back as `If-None-Match` to be answered 304 while nothing changed.",
								"schema": {
									"type": "string"
								}
							}
						},
						"content": {
							"application/json": {
								"schema": {
									"$ref": "#/components/schemas/Models"
								},
								"example": {
									"models": [
										{
											"id": "example",
											"attribution": "Example Model (synthetic data)",
											"licence": "Example model licence",
											"coverage": [
												-90,
												90,
												-180,
												180
											],
											"variables": [
												"wind_speed_kn",
												"wind_gust_kn",
												"wind_direction_deg"
											]
										},
										{
											"id": "example-second",
											"attribution": "Example Model (synthetic data)",
											"licence": "Example model licence",
											"coverage": [
												-90,
												90,
												-180,
												180
											],
											"variables": [
												"wind_speed_kn",
												"wind_gust_kn",
												"wind_direction_deg"
											]
										}
									]
								}
							}
						}
					},
					"401": {
						"description": "No key (`key_missing`), or an unknown, revoked or expired trial key (`key_invalid`). Carries `WWW-Authenticate: Bearer`.",
						"headers": {
							"X-Request-Id": {
								"description": "This request's id, also on the server's log line: quote it in a report.",
								"schema": {
									"type": "string"
								}
							},
							"WWW-Authenticate": {
								"schema": {
									"type": "string",
									"const": "Bearer"
								}
							}
						},
						"content": {
							"application/json": {
								"schema": {
									"$ref": "#/components/schemas/Error"
								},
								"example": {
									"detail": "An API key is required: Authorization: Bearer gk_...",
									"code": "key_missing"
								}
							}
						}
					},
					"403": {
						"description": "The key's plan is not open (`plan_closed`).",
						"headers": {
							"X-Request-Id": {
								"description": "This request's id, also on the server's log line: quote it in a report.",
								"schema": {
									"type": "string"
								}
							}
						},
						"content": {
							"application/json": {
								"schema": {
									"$ref": "#/components/schemas/Error"
								},
								"example": {
									"detail": "This API key's plan is not open.",
									"code": "plan_closed"
								}
							}
						}
					},
					"404": {
						"description": "The API is switched off (`api_off`), no such meter with a reading in the last 24 h (`meter_missing`), or a model that is not cleared (`model_unavailable`).",
						"headers": {
							"X-Request-Id": {
								"description": "This request's id, also on the server's log line: quote it in a report.",
								"schema": {
									"type": "string"
								}
							}
						},
						"content": {
							"application/json": {
								"schema": {
									"$ref": "#/components/schemas/Error"
								},
								"example": {
									"detail": "Not Found",
									"code": "api_off"
								}
							}
						}
					},
					"429": {
						"description": "Past the burst (`rate_burst`), the minute (`rate_minute`), the day's requests (`rate_day`), meter reads (`meter_day`), meter rows (`rows_day`) or forecast points (`cold_day`). Wait `Retry-After` seconds.",
						"headers": {
							"X-Request-Id": {
								"description": "This request's id, also on the server's log line: quote it in a report.",
								"schema": {
									"type": "string"
								}
							},
							"X-RateLimit-Limit": {
								"description": "Requests allowed in the current minute.",
								"schema": {
									"type": "integer"
								}
							},
							"X-RateLimit-Remaining": {
								"description": "Requests left in the current minute.",
								"schema": {
									"type": "integer"
								}
							},
							"X-RateLimit-Reset": {
								"description": "Seconds until the current minute ends.",
								"schema": {
									"type": "integer"
								}
							},
							"X-RateLimit-Day-Limit": {
								"description": "Requests allowed per UTC day.",
								"schema": {
									"type": "integer"
								}
							},
							"X-RateLimit-Day-Remaining": {
								"description": "Requests left today (UTC).",
								"schema": {
									"type": "integer"
								}
							},
							"Retry-After": {
								"description": "Seconds before retrying.",
								"schema": {
									"type": "integer"
								}
							}
						},
						"content": {
							"application/json": {
								"schema": {
									"$ref": "#/components/schemas/Error"
								},
								"example": {
									"detail": "Rate limit reached, retry after Retry-After.",
									"code": "rate_minute"
								}
							}
						}
					}
				}
			}
		},
		"/api/v1/models/{model_id}": {
			"get": {
				"summary": "One forecast model",
				"description": "One cleared forecast model's coverage, variables and credits. A model that is not in the catalog answers 404 `model_unavailable`. The example is synthetic.",
				"operationId": "v1_model",
				"tags": [
					"Forecast wind"
				],
				"x-codeSamples": [
					{
						"lang": "curl",
						"label": "curl",
						"source": "export GUSTLY_API_KEY=\"gk_your_key_here\"\ncurl --include -H \"Authorization: Bearer $GUSTLY_API_KEY\" \\\n  'https://www.gustly.org/api/backend/api/v1/models/example'"
					}
				],
				"parameters": [
					{
						"description": "a model's `id` from `/api/v1/models`",
						"in": "path",
						"name": "model_id",
						"required": true,
						"schema": {
							"description": "a model's `id` from `/api/v1/models`",
							"maxLength": 100,
							"title": "Model Id",
							"type": "string"
						}
					}
				],
				"security": [
					{
						"apiKey": []
					}
				],
				"responses": {
					"200": {
						"description": "Successful JSON response. A data answer is `Cache-Control: private, max-age=60`.",
						"headers": {
							"X-RateLimit-Limit": {
								"description": "Requests allowed in the current minute.",
								"schema": {
									"type": "integer"
								}
							},
							"X-RateLimit-Remaining": {
								"description": "Requests left in the current minute.",
								"schema": {
									"type": "integer"
								}
							},
							"X-RateLimit-Reset": {
								"description": "Seconds until the current minute ends.",
								"schema": {
									"type": "integer"
								}
							},
							"X-RateLimit-Day-Limit": {
								"description": "Requests allowed per UTC day.",
								"schema": {
									"type": "integer"
								}
							},
							"X-RateLimit-Day-Remaining": {
								"description": "Requests left today (UTC).",
								"schema": {
									"type": "integer"
								}
							},
							"X-Request-Id": {
								"description": "This request's id, also on the server's log line: quote it in a report.",
								"schema": {
									"type": "string"
								}
							},
							"Cache-Control": {
								"schema": {
									"type": "string"
								}
							},
							"Vary": {
								"schema": {
									"type": "string"
								}
							},
							"ETag": {
								"description": "Send this back as `If-None-Match` to be answered 304 while nothing changed.",
								"schema": {
									"type": "string"
								}
							}
						},
						"content": {
							"application/json": {
								"schema": {
									"$ref": "#/components/schemas/ModelInfo"
								},
								"example": {
									"id": "example",
									"attribution": "Example Model (synthetic data)",
									"licence": "Example model licence",
									"coverage": [
										-90,
										90,
										-180,
										180
									],
									"variables": [
										"wind_speed_kn",
										"wind_gust_kn",
										"wind_direction_deg"
									]
								}
							}
						}
					},
					"401": {
						"description": "No key (`key_missing`), or an unknown, revoked or expired trial key (`key_invalid`). Carries `WWW-Authenticate: Bearer`.",
						"headers": {
							"X-Request-Id": {
								"description": "This request's id, also on the server's log line: quote it in a report.",
								"schema": {
									"type": "string"
								}
							},
							"WWW-Authenticate": {
								"schema": {
									"type": "string",
									"const": "Bearer"
								}
							}
						},
						"content": {
							"application/json": {
								"schema": {
									"$ref": "#/components/schemas/Error"
								},
								"example": {
									"detail": "An API key is required: Authorization: Bearer gk_...",
									"code": "key_missing"
								}
							}
						}
					},
					"403": {
						"description": "The key's plan is not open (`plan_closed`).",
						"headers": {
							"X-Request-Id": {
								"description": "This request's id, also on the server's log line: quote it in a report.",
								"schema": {
									"type": "string"
								}
							}
						},
						"content": {
							"application/json": {
								"schema": {
									"$ref": "#/components/schemas/Error"
								},
								"example": {
									"detail": "This API key's plan is not open.",
									"code": "plan_closed"
								}
							}
						}
					},
					"404": {
						"description": "The API is switched off (`api_off`), no such meter with a reading in the last 24 h (`meter_missing`), or a model that is not cleared (`model_unavailable`).",
						"headers": {
							"X-Request-Id": {
								"description": "This request's id, also on the server's log line: quote it in a report.",
								"schema": {
									"type": "string"
								}
							}
						},
						"content": {
							"application/json": {
								"schema": {
									"$ref": "#/components/schemas/Error"
								},
								"example": {
									"detail": "Not Found",
									"code": "api_off"
								}
							}
						}
					},
					"422": {
						"description": "An invalid parameter (`invalid_params`: a coordinate out of range, `days` outside 1 to 90) or batch body (`body_invalid`: outside 1 to 10 points); `errors` names it.",
						"headers": {
							"X-Request-Id": {
								"description": "This request's id, also on the server's log line: quote it in a report.",
								"schema": {
									"type": "string"
								}
							}
						},
						"content": {
							"application/json": {
								"schema": {
									"$ref": "#/components/schemas/Error"
								},
								"example": {
									"detail": "Invalid request.",
									"code": "body_invalid",
									"errors": [
										{
											"loc": [
												"body",
												"points"
											],
											"msg": "Input should have at most 10 items"
										}
									]
								}
							}
						}
					},
					"429": {
						"description": "Past the burst (`rate_burst`), the minute (`rate_minute`), the day's requests (`rate_day`), meter reads (`meter_day`), meter rows (`rows_day`) or forecast points (`cold_day`). Wait `Retry-After` seconds.",
						"headers": {
							"X-Request-Id": {
								"description": "This request's id, also on the server's log line: quote it in a report.",
								"schema": {
									"type": "string"
								}
							},
							"X-RateLimit-Limit": {
								"description": "Requests allowed in the current minute.",
								"schema": {
									"type": "integer"
								}
							},
							"X-RateLimit-Remaining": {
								"description": "Requests left in the current minute.",
								"schema": {
									"type": "integer"
								}
							},
							"X-RateLimit-Reset": {
								"description": "Seconds until the current minute ends.",
								"schema": {
									"type": "integer"
								}
							},
							"X-RateLimit-Day-Limit": {
								"description": "Requests allowed per UTC day.",
								"schema": {
									"type": "integer"
								}
							},
							"X-RateLimit-Day-Remaining": {
								"description": "Requests left today (UTC).",
								"schema": {
									"type": "integer"
								}
							},
							"Retry-After": {
								"description": "Seconds before retrying.",
								"schema": {
									"type": "integer"
								}
							}
						},
						"content": {
							"application/json": {
								"schema": {
									"$ref": "#/components/schemas/Error"
								},
								"example": {
									"detail": "Rate limit reached, retry after Retry-After.",
									"code": "rate_minute"
								}
							}
						}
					},
					"503": {
						"description": "Forecast data temporarily unavailable (`forecast_unavailable`). A batch has no partial result.",
						"headers": {
							"X-Request-Id": {
								"description": "This request's id, also on the server's log line: quote it in a report.",
								"schema": {
									"type": "string"
								}
							},
							"X-RateLimit-Limit": {
								"description": "Requests allowed in the current minute.",
								"schema": {
									"type": "integer"
								}
							},
							"X-RateLimit-Remaining": {
								"description": "Requests left in the current minute.",
								"schema": {
									"type": "integer"
								}
							},
							"X-RateLimit-Reset": {
								"description": "Seconds until the current minute ends.",
								"schema": {
									"type": "integer"
								}
							},
							"X-RateLimit-Day-Limit": {
								"description": "Requests allowed per UTC day.",
								"schema": {
									"type": "integer"
								}
							},
							"X-RateLimit-Day-Remaining": {
								"description": "Requests left today (UTC).",
								"schema": {
									"type": "integer"
								}
							},
							"Retry-After": {
								"description": "Seconds before retrying.",
								"schema": {
									"type": "integer"
								}
							}
						},
						"content": {
							"application/json": {
								"schema": {
									"$ref": "#/components/schemas/Error"
								},
								"example": {
									"detail": "Forecast temporarily unavailable.",
									"code": "forecast_unavailable"
								}
							}
						}
					}
				}
			}
		},
		"/api/v1/forecast": {
			"get": {
				"summary": "Hourly wind at a point",
				"description": "Read one catalog model at one coordinate. Coordinates are snapped to the model's grid before the read, and the answer's `lat` and `lon` are that grid point. Valid times are UTC. Wind speed and gusts are in knots, and direction is in degrees true from which the wind blows. Missing values and unknown issue times are null. Counts one request and one forecast point. The example is synthetic.",
				"operationId": "v1_forecast",
				"tags": [
					"Forecast wind"
				],
				"x-codeSamples": [
					{
						"lang": "curl",
						"label": "curl",
						"source": "export GUSTLY_API_KEY=\"gk_your_key_here\"\ncurl --include -H \"Authorization: Bearer $GUSTLY_API_KEY\" \\\n  'https://www.gustly.org/api/backend/api/v1/forecast?lat=36&lon=-5&model=example'"
					}
				],
				"parameters": [
					{
						"in": "query",
						"name": "lat",
						"required": true,
						"schema": {
							"maximum": 90,
							"minimum": -90,
							"title": "Lat",
							"type": "number"
						}
					},
					{
						"in": "query",
						"name": "lon",
						"required": true,
						"schema": {
							"maximum": 180,
							"minimum": -180,
							"title": "Lon",
							"type": "number"
						}
					},
					{
						"in": "query",
						"name": "model",
						"required": true,
						"schema": {
							"maxLength": 100,
							"minLength": 1,
							"title": "Model",
							"type": "string"
						}
					}
				],
				"security": [
					{
						"apiKey": []
					}
				],
				"responses": {
					"200": {
						"description": "Successful JSON response. A data answer is `Cache-Control: private, max-age=60`.",
						"headers": {
							"X-RateLimit-Limit": {
								"description": "Requests allowed in the current minute.",
								"schema": {
									"type": "integer"
								}
							},
							"X-RateLimit-Remaining": {
								"description": "Requests left in the current minute.",
								"schema": {
									"type": "integer"
								}
							},
							"X-RateLimit-Reset": {
								"description": "Seconds until the current minute ends.",
								"schema": {
									"type": "integer"
								}
							},
							"X-RateLimit-Day-Limit": {
								"description": "Requests allowed per UTC day.",
								"schema": {
									"type": "integer"
								}
							},
							"X-RateLimit-Day-Remaining": {
								"description": "Requests left today (UTC).",
								"schema": {
									"type": "integer"
								}
							},
							"X-Request-Id": {
								"description": "This request's id, also on the server's log line: quote it in a report.",
								"schema": {
									"type": "string"
								}
							},
							"Cache-Control": {
								"schema": {
									"type": "string"
								}
							},
							"Vary": {
								"schema": {
									"type": "string"
								}
							},
							"ETag": {
								"description": "Send this back as `If-None-Match` to be answered 304 while nothing changed.",
								"schema": {
									"type": "string"
								}
							}
						},
						"content": {
							"application/json": {
								"schema": {
									"$ref": "#/components/schemas/Forecast"
								},
								"example": {
									"lat": 36,
									"lon": -5,
									"model": "example",
									"attribution": "Example Model (synthetic data)",
									"licence": "Example model licence",
									"issue_time": null,
									"available_time": null,
									"coverage": "covered",
									"hourly": [
										{
											"time": "2026-11-22T00:00:00Z",
											"wind_speed_kn": 12,
											"wind_gust_kn": null,
											"wind_direction_deg": 270
										}
									]
								}
							}
						}
					},
					"401": {
						"description": "No key (`key_missing`), or an unknown, revoked or expired trial key (`key_invalid`). Carries `WWW-Authenticate: Bearer`.",
						"headers": {
							"X-Request-Id": {
								"description": "This request's id, also on the server's log line: quote it in a report.",
								"schema": {
									"type": "string"
								}
							},
							"WWW-Authenticate": {
								"schema": {
									"type": "string",
									"const": "Bearer"
								}
							}
						},
						"content": {
							"application/json": {
								"schema": {
									"$ref": "#/components/schemas/Error"
								},
								"example": {
									"detail": "An API key is required: Authorization: Bearer gk_...",
									"code": "key_missing"
								}
							}
						}
					},
					"403": {
						"description": "The key's plan is not open (`plan_closed`).",
						"headers": {
							"X-Request-Id": {
								"description": "This request's id, also on the server's log line: quote it in a report.",
								"schema": {
									"type": "string"
								}
							}
						},
						"content": {
							"application/json": {
								"schema": {
									"$ref": "#/components/schemas/Error"
								},
								"example": {
									"detail": "This API key's plan is not open.",
									"code": "plan_closed"
								}
							}
						}
					},
					"404": {
						"description": "The API is switched off (`api_off`), no such meter with a reading in the last 24 h (`meter_missing`), or a model that is not cleared (`model_unavailable`).",
						"headers": {
							"X-Request-Id": {
								"description": "This request's id, also on the server's log line: quote it in a report.",
								"schema": {
									"type": "string"
								}
							}
						},
						"content": {
							"application/json": {
								"schema": {
									"$ref": "#/components/schemas/Error"
								},
								"example": {
									"detail": "Not Found",
									"code": "api_off"
								}
							}
						}
					},
					"422": {
						"description": "An invalid parameter (`invalid_params`: a coordinate out of range, `days` outside 1 to 90) or batch body (`body_invalid`: outside 1 to 10 points); `errors` names it.",
						"headers": {
							"X-Request-Id": {
								"description": "This request's id, also on the server's log line: quote it in a report.",
								"schema": {
									"type": "string"
								}
							}
						},
						"content": {
							"application/json": {
								"schema": {
									"$ref": "#/components/schemas/Error"
								},
								"example": {
									"detail": "Invalid request.",
									"code": "body_invalid",
									"errors": [
										{
											"loc": [
												"body",
												"points"
											],
											"msg": "Input should have at most 10 items"
										}
									]
								}
							}
						}
					},
					"429": {
						"description": "Past the burst (`rate_burst`), the minute (`rate_minute`), the day's requests (`rate_day`), meter reads (`meter_day`), meter rows (`rows_day`) or forecast points (`cold_day`). Wait `Retry-After` seconds.",
						"headers": {
							"X-Request-Id": {
								"description": "This request's id, also on the server's log line: quote it in a report.",
								"schema": {
									"type": "string"
								}
							},
							"X-RateLimit-Limit": {
								"description": "Requests allowed in the current minute.",
								"schema": {
									"type": "integer"
								}
							},
							"X-RateLimit-Remaining": {
								"description": "Requests left in the current minute.",
								"schema": {
									"type": "integer"
								}
							},
							"X-RateLimit-Reset": {
								"description": "Seconds until the current minute ends.",
								"schema": {
									"type": "integer"
								}
							},
							"X-RateLimit-Day-Limit": {
								"description": "Requests allowed per UTC day.",
								"schema": {
									"type": "integer"
								}
							},
							"X-RateLimit-Day-Remaining": {
								"description": "Requests left today (UTC).",
								"schema": {
									"type": "integer"
								}
							},
							"Retry-After": {
								"description": "Seconds before retrying.",
								"schema": {
									"type": "integer"
								}
							}
						},
						"content": {
							"application/json": {
								"schema": {
									"$ref": "#/components/schemas/Error"
								},
								"example": {
									"detail": "Rate limit reached, retry after Retry-After.",
									"code": "rate_minute"
								}
							}
						}
					},
					"503": {
						"description": "Forecast data temporarily unavailable (`forecast_unavailable`). A batch has no partial result.",
						"headers": {
							"X-Request-Id": {
								"description": "This request's id, also on the server's log line: quote it in a report.",
								"schema": {
									"type": "string"
								}
							},
							"X-RateLimit-Limit": {
								"description": "Requests allowed in the current minute.",
								"schema": {
									"type": "integer"
								}
							},
							"X-RateLimit-Remaining": {
								"description": "Requests left in the current minute.",
								"schema": {
									"type": "integer"
								}
							},
							"X-RateLimit-Reset": {
								"description": "Seconds until the current minute ends.",
								"schema": {
									"type": "integer"
								}
							},
							"X-RateLimit-Day-Limit": {
								"description": "Requests allowed per UTC day.",
								"schema": {
									"type": "integer"
								}
							},
							"X-RateLimit-Day-Remaining": {
								"description": "Requests left today (UTC).",
								"schema": {
									"type": "integer"
								}
							},
							"Retry-After": {
								"description": "Seconds before retrying.",
								"schema": {
									"type": "integer"
								}
							}
						},
						"content": {
							"application/json": {
								"schema": {
									"$ref": "#/components/schemas/Error"
								},
								"example": {
									"detail": "Forecast temporarily unavailable.",
									"code": "forecast_unavailable"
								}
							}
						}
					}
				}
			}
		},
		"/api/v1/forecast/batch": {
			"post": {
				"summary": "Hourly wind for a batch of points",
				"description": "Read 1 to 10 coordinate and model pairs in input order. Each result uses the same shape and units as a point forecast, and every input point is answered. Points that snap to one model grid point are read once and count one forecast point, plus one request. Compare models by UTC valid time. A failed read answers 503 with no partial result. The example is synthetic.",
				"operationId": "v1_forecast_batch",
				"tags": [
					"Forecast wind"
				],
				"x-codeSamples": [
					{
						"lang": "curl",
						"label": "curl",
						"source": "export GUSTLY_API_KEY=\"gk_your_key_here\"\ncurl --include -H \"Authorization: Bearer $GUSTLY_API_KEY\" \\\n  -H 'Content-Type: application/json' \\\n  --data '{\n  \"points\": [\n    {\n      \"lat\": 36,\n      \"lon\": -5,\n      \"model\": \"example\"\n    },\n    {\n      \"lat\": 36,\n      \"lon\": -5,\n      \"model\": \"example-second\"\n    }\n  ]\n}' \\\n  'https://www.gustly.org/api/backend/api/v1/forecast/batch'"
					}
				],
				"requestBody": {
					"content": {
						"application/json": {
							"schema": {
								"$ref": "#/components/schemas/Batch"
							},
							"example": {
								"points": [
									{
										"lat": 36,
										"lon": -5,
										"model": "example"
									},
									{
										"lat": 36,
										"lon": -5,
										"model": "example-second"
									}
								]
							}
						}
					},
					"required": true
				},
				"security": [
					{
						"apiKey": []
					}
				],
				"responses": {
					"200": {
						"description": "Successful JSON response. A data answer is `Cache-Control: private, max-age=60`.",
						"headers": {
							"X-RateLimit-Limit": {
								"description": "Requests allowed in the current minute.",
								"schema": {
									"type": "integer"
								}
							},
							"X-RateLimit-Remaining": {
								"description": "Requests left in the current minute.",
								"schema": {
									"type": "integer"
								}
							},
							"X-RateLimit-Reset": {
								"description": "Seconds until the current minute ends.",
								"schema": {
									"type": "integer"
								}
							},
							"X-RateLimit-Day-Limit": {
								"description": "Requests allowed per UTC day.",
								"schema": {
									"type": "integer"
								}
							},
							"X-RateLimit-Day-Remaining": {
								"description": "Requests left today (UTC).",
								"schema": {
									"type": "integer"
								}
							},
							"X-Request-Id": {
								"description": "This request's id, also on the server's log line: quote it in a report.",
								"schema": {
									"type": "string"
								}
							},
							"Cache-Control": {
								"schema": {
									"type": "string"
								}
							},
							"Vary": {
								"schema": {
									"type": "string"
								}
							},
							"ETag": {
								"description": "Send this back as `If-None-Match` to be answered 304 while nothing changed.",
								"schema": {
									"type": "string"
								}
							}
						},
						"content": {
							"application/json": {
								"schema": {
									"$ref": "#/components/schemas/Forecasts"
								},
								"example": {
									"forecasts": [
										{
											"lat": 36,
											"lon": -5,
											"model": "example",
											"attribution": "Example Model (synthetic data)",
											"licence": "Example model licence",
											"issue_time": null,
											"available_time": null,
											"coverage": "covered",
											"hourly": [
												{
													"time": "2026-11-22T00:00:00Z",
													"wind_speed_kn": 12,
													"wind_gust_kn": null,
													"wind_direction_deg": 270
												}
											]
										},
										{
											"lat": 36,
											"lon": -5,
											"model": "example-second",
											"attribution": "Example Model (synthetic data)",
											"licence": "Example model licence",
											"issue_time": null,
											"available_time": null,
											"coverage": "covered",
											"hourly": [
												{
													"time": "2026-11-22T00:00:00Z",
													"wind_speed_kn": 14,
													"wind_gust_kn": null,
													"wind_direction_deg": 270
												}
											]
										}
									]
								}
							}
						}
					},
					"401": {
						"description": "No key (`key_missing`), or an unknown, revoked or expired trial key (`key_invalid`). Carries `WWW-Authenticate: Bearer`.",
						"headers": {
							"X-Request-Id": {
								"description": "This request's id, also on the server's log line: quote it in a report.",
								"schema": {
									"type": "string"
								}
							},
							"WWW-Authenticate": {
								"schema": {
									"type": "string",
									"const": "Bearer"
								}
							}
						},
						"content": {
							"application/json": {
								"schema": {
									"$ref": "#/components/schemas/Error"
								},
								"example": {
									"detail": "An API key is required: Authorization: Bearer gk_...",
									"code": "key_missing"
								}
							}
						}
					},
					"403": {
						"description": "The key's plan is not open (`plan_closed`).",
						"headers": {
							"X-Request-Id": {
								"description": "This request's id, also on the server's log line: quote it in a report.",
								"schema": {
									"type": "string"
								}
							}
						},
						"content": {
							"application/json": {
								"schema": {
									"$ref": "#/components/schemas/Error"
								},
								"example": {
									"detail": "This API key's plan is not open.",
									"code": "plan_closed"
								}
							}
						}
					},
					"404": {
						"description": "The API is switched off (`api_off`), no such meter with a reading in the last 24 h (`meter_missing`), or a model that is not cleared (`model_unavailable`).",
						"headers": {
							"X-Request-Id": {
								"description": "This request's id, also on the server's log line: quote it in a report.",
								"schema": {
									"type": "string"
								}
							}
						},
						"content": {
							"application/json": {
								"schema": {
									"$ref": "#/components/schemas/Error"
								},
								"example": {
									"detail": "Not Found",
									"code": "api_off"
								}
							}
						}
					},
					"422": {
						"description": "An invalid parameter (`invalid_params`: a coordinate out of range, `days` outside 1 to 90) or batch body (`body_invalid`: outside 1 to 10 points); `errors` names it.",
						"headers": {
							"X-Request-Id": {
								"description": "This request's id, also on the server's log line: quote it in a report.",
								"schema": {
									"type": "string"
								}
							}
						},
						"content": {
							"application/json": {
								"schema": {
									"$ref": "#/components/schemas/Error"
								},
								"example": {
									"detail": "Invalid request.",
									"code": "body_invalid",
									"errors": [
										{
											"loc": [
												"body",
												"points"
											],
											"msg": "Input should have at most 10 items"
										}
									]
								}
							}
						}
					},
					"429": {
						"description": "Past the burst (`rate_burst`), the minute (`rate_minute`), the day's requests (`rate_day`), meter reads (`meter_day`), meter rows (`rows_day`) or forecast points (`cold_day`). Wait `Retry-After` seconds.",
						"headers": {
							"X-Request-Id": {
								"description": "This request's id, also on the server's log line: quote it in a report.",
								"schema": {
									"type": "string"
								}
							},
							"X-RateLimit-Limit": {
								"description": "Requests allowed in the current minute.",
								"schema": {
									"type": "integer"
								}
							},
							"X-RateLimit-Remaining": {
								"description": "Requests left in the current minute.",
								"schema": {
									"type": "integer"
								}
							},
							"X-RateLimit-Reset": {
								"description": "Seconds until the current minute ends.",
								"schema": {
									"type": "integer"
								}
							},
							"X-RateLimit-Day-Limit": {
								"description": "Requests allowed per UTC day.",
								"schema": {
									"type": "integer"
								}
							},
							"X-RateLimit-Day-Remaining": {
								"description": "Requests left today (UTC).",
								"schema": {
									"type": "integer"
								}
							},
							"Retry-After": {
								"description": "Seconds before retrying.",
								"schema": {
									"type": "integer"
								}
							}
						},
						"content": {
							"application/json": {
								"schema": {
									"$ref": "#/components/schemas/Error"
								},
								"example": {
									"detail": "Rate limit reached, retry after Retry-After.",
									"code": "rate_minute"
								}
							}
						}
					},
					"503": {
						"description": "Forecast data temporarily unavailable (`forecast_unavailable`). A batch has no partial result.",
						"headers": {
							"X-Request-Id": {
								"description": "This request's id, also on the server's log line: quote it in a report.",
								"schema": {
									"type": "string"
								}
							},
							"X-RateLimit-Limit": {
								"description": "Requests allowed in the current minute.",
								"schema": {
									"type": "integer"
								}
							},
							"X-RateLimit-Remaining": {
								"description": "Requests left in the current minute.",
								"schema": {
									"type": "integer"
								}
							},
							"X-RateLimit-Reset": {
								"description": "Seconds until the current minute ends.",
								"schema": {
									"type": "integer"
								}
							},
							"X-RateLimit-Day-Limit": {
								"description": "Requests allowed per UTC day.",
								"schema": {
									"type": "integer"
								}
							},
							"X-RateLimit-Day-Remaining": {
								"description": "Requests left today (UTC).",
								"schema": {
									"type": "integer"
								}
							},
							"Retry-After": {
								"description": "Seconds before retrying.",
								"schema": {
									"type": "integer"
								}
							}
						},
						"content": {
							"application/json": {
								"schema": {
									"$ref": "#/components/schemas/Error"
								},
								"example": {
									"detail": "Forecast temporarily unavailable.",
									"code": "forecast_unavailable"
								}
							}
						}
					}
				}
			}
		}
	},
	"components": {
		"securitySchemes": {
			"apiKey": {
				"type": "http",
				"scheme": "bearer",
				"description": "Your Gustly API key, `gk_` and 43 characters."
			}
		},
		"schemas": {
			"Batch": {
				"additionalProperties": false,
				"properties": {
					"points": {
						"items": {
							"$ref": "#/components/schemas/Point"
						},
						"maxItems": 10,
						"minItems": 1,
						"title": "Points",
						"type": "array"
					}
				},
				"required": [
					"points"
				],
				"title": "Batch",
				"type": "object"
			},
			"Error": {
				"properties": {
					"code": {
						"description": "A stable machine-readable code (`docs/api_v1.md`, Errors).",
						"title": "Code",
						"type": "string"
					},
					"detail": {
						"title": "Detail",
						"type": "string"
					},
					"errors": {
						"description": "Field errors on validation failures.",
						"items": {
							"$ref": "#/components/schemas/FieldError"
						},
						"title": "Errors",
						"type": [
							"array",
							"null"
						]
					}
				},
				"required": [
					"detail",
					"code"
				],
				"title": "Error",
				"type": "object"
			},
			"FieldError": {
				"properties": {
					"loc": {
						"items": {
							"anyOf": [
								{
									"type": "string"
								},
								{
									"type": "integer"
								}
							]
						},
						"title": "Loc",
						"type": "array"
					},
					"msg": {
						"title": "Msg",
						"type": "string"
					}
				},
				"required": [
					"loc",
					"msg"
				],
				"title": "FieldError",
				"type": "object"
			},
			"Forecast": {
				"properties": {
					"attribution": {
						"title": "Attribution",
						"type": "string"
					},
					"available_time": {
						"description": "UTC time the identified run became available, or null.",
						"title": "Available Time",
						"type": [
							"string",
							"null"
						]
					},
					"coverage": {
						"description": "covered, not_covered, or provider_drift.",
						"title": "Coverage",
						"type": "string"
					},
					"hourly": {
						"items": {
							"$ref": "#/components/schemas/Hour"
						},
						"maxItems": 168,
						"title": "Hourly",
						"type": "array"
					},
					"issue_time": {
						"description": "UTC model initialization time, or null if unknown or blended.",
						"title": "Issue Time",
						"type": [
							"string",
							"null"
						]
					},
					"lat": {
						"title": "Lat",
						"type": "number"
					},
					"licence": {
						"title": "Licence",
						"type": "string"
					},
					"lon": {
						"title": "Lon",
						"type": "number"
					},
					"model": {
						"title": "Model",
						"type": "string"
					}
				},
				"required": [
					"lat",
					"lon",
					"model",
					"attribution",
					"licence",
					"issue_time",
					"available_time",
					"coverage",
					"hourly"
				],
				"title": "Forecast",
				"type": "object"
			},
			"Forecasts": {
				"properties": {
					"forecasts": {
						"items": {
							"$ref": "#/components/schemas/Forecast"
						},
						"title": "Forecasts",
						"type": "array"
					}
				},
				"required": [
					"forecasts"
				],
				"title": "Forecasts",
				"type": "object"
			},
			"Hour": {
				"properties": {
					"time": {
						"description": "UTC hourly valid time in ISO 8601.",
						"title": "Time",
						"type": "string"
					},
					"wind_direction_deg": {
						"description": "Direction the 10 m wind blows from, in degrees true, or null.",
						"title": "Wind Direction Deg",
						"type": [
							"number",
							"null"
						]
					},
					"wind_gust_kn": {
						"description": "10 m gust speed in knots, or null.",
						"title": "Wind Gust Kn",
						"type": [
							"number",
							"null"
						]
					},
					"wind_speed_kn": {
						"description": "10 m wind speed in knots, or null.",
						"title": "Wind Speed Kn",
						"type": [
							"number",
							"null"
						]
					}
				},
				"required": [
					"time",
					"wind_speed_kn",
					"wind_gust_kn",
					"wind_direction_deg"
				],
				"title": "Hour",
				"type": "object"
			},
			"LiveHour": {
				"properties": {
					"dir_deg": {
						"description": "Vector mean; null without a vane.",
						"title": "Dir Deg",
						"type": [
							"number",
							"null"
						]
					},
					"gust_kn": {
						"description": "The hour's highest gust; null without gusts.",
						"title": "Gust Kn",
						"type": [
							"number",
							"null"
						]
					},
					"lull_kn": {
						"description": "The hour's lowest lull the meter published (never above a mean of the hour); null without one (never estimated from the means alone).",
						"title": "Lull Kn",
						"type": [
							"number",
							"null"
						]
					},
					"measured": {
						"description": "Always true: the meter's, not the model's.",
						"title": "Measured",
						"type": "boolean"
					},
					"t": {
						"description": "The hour's start, ISO 8601 UTC (a past column's `valid_utc`).",
						"title": "T",
						"type": "string"
					},
					"wind_kn": {
						"description": "The hour's mean of the meter's mean wind.",
						"title": "Wind Kn",
						"type": "number"
					}
				},
				"required": [
					"t",
					"wind_kn",
					"gust_kn",
					"dir_deg",
					"measured"
				],
				"title": "LiveHour",
				"type": "object"
			},
			"ModelInfo": {
				"properties": {
					"attribution": {
						"title": "Attribution",
						"type": "string"
					},
					"coverage": {
						"description": "Approximate bounds in degrees: south, north, west, east.",
						"maxItems": 4,
						"minItems": 4,
						"prefixItems": [
							{
								"type": "number"
							},
							{
								"type": "number"
							},
							{
								"type": "number"
							},
							{
								"type": "number"
							}
						],
						"title": "Coverage",
						"type": "array"
					},
					"id": {
						"title": "Id",
						"type": "string"
					},
					"licence": {
						"title": "Licence",
						"type": "string"
					},
					"variables": {
						"items": {
							"type": "string"
						},
						"title": "Variables",
						"type": "array"
					}
				},
				"required": [
					"id",
					"attribution",
					"licence",
					"coverage",
					"variables"
				],
				"title": "ModelInfo",
				"type": "object"
			},
			"Models": {
				"properties": {
					"models": {
						"items": {
							"$ref": "#/components/schemas/ModelInfo"
						},
						"title": "Models",
						"type": "array"
					}
				},
				"required": [
					"models"
				],
				"title": "Models",
				"type": "object"
			},
			"Point": {
				"additionalProperties": false,
				"properties": {
					"lat": {
						"maximum": 90,
						"minimum": -90,
						"title": "Lat",
						"type": "number"
					},
					"lon": {
						"maximum": 180,
						"minimum": -180,
						"title": "Lon",
						"type": "number"
					},
					"model": {
						"maxLength": 100,
						"minLength": 1,
						"title": "Model",
						"type": "string"
					}
				},
				"required": [
					"lat",
					"lon",
					"model"
				],
				"title": "Point",
				"type": "object"
			},
			"V1Endpoint": {
				"properties": {
					"id": {
						"description": "The operation's stable id, as in the OpenAPI contract.",
						"title": "Id",
						"type": "string"
					},
					"method": {
						"description": "`GET`, `POST` or `DELETE`.",
						"title": "Method",
						"type": "string"
					},
					"params": {
						"description": "The parameters the route takes, in order; an empty list takes none.",
						"items": {
							"$ref": "#/components/schemas/V1EndpointParam"
						},
						"title": "Params",
						"type": "array"
					},
					"path": {
						"title": "Path",
						"type": "string"
					},
					"summary": {
						"title": "Summary",
						"type": "string"
					}
				},
				"required": [
					"id",
					"method",
					"path",
					"summary",
					"params"
				],
				"title": "V1Endpoint",
				"type": "object"
			},
			"V1EndpointParam": {
				"properties": {
					"description": {
						"title": "Description",
						"type": "string"
					},
					"name": {
						"title": "Name",
						"type": "string"
					},
					"required": {
						"title": "Required",
						"type": "boolean"
					},
					"type": {
						"description": "`string`, `number`, `integer` or `array`.",
						"title": "Type",
						"type": "string"
					},
					"where": {
						"description": "`query`, `path` or `body`.",
						"title": "Where",
						"type": "string"
					}
				},
				"required": [
					"name",
					"where",
					"required",
					"type",
					"description"
				],
				"title": "V1EndpointParam",
				"type": "object"
			},
			"V1Endpoints": {
				"properties": {
					"endpoints": {
						"description": "Every keyed /api/v1 route, with its stable id: what a client or agent may call with this key.",
						"items": {
							"$ref": "#/components/schemas/V1Endpoint"
						},
						"title": "Endpoints",
						"type": "array"
					}
				},
				"required": [
					"endpoints"
				],
				"title": "V1Endpoints",
				"type": "object"
			},
			"V1Key": {
				"properties": {
					"created_utc": {
						"description": "When the key was made, ISO 8601 UTC.",
						"title": "Created Utc",
						"type": [
							"string",
							"null"
						]
					},
					"expired": {
						"description": "The key page only: whether the trial expiry has passed. null elsewhere.",
						"title": "Expired",
						"type": [
							"boolean",
							"null"
						]
					},
					"expires_utc": {
						"description": "When the key stops working, ISO 8601 UTC. A trial key expires 60 days after its last use; a paid plan's key never expires (null).",
						"title": "Expires Utc",
						"type": [
							"string",
							"null"
						]
					},
					"id": {
						"title": "Id",
						"type": "integer"
					},
					"plan": {
						"description": "The plan's name (`trial`, `small`, `pro`), never an enum.",
						"title": "Plan",
						"type": "string"
					},
					"prefix": {
						"description": "The first 7 characters of the key, for the caller to recognize.",
						"title": "Prefix",
						"type": "string"
					}
				},
				"required": [
					"id",
					"prefix",
					"plan",
					"created_utc",
					"expires_utc"
				],
				"title": "V1Key",
				"type": "object"
			},
			"V1Live": {
				"properties": {
					"attribution": {
						"description": "Every credit in `meters`: show them with the data.",
						"items": {
							"type": "string"
						},
						"title": "Attribution",
						"type": "array"
					},
					"meters": {
						"description": "The box's meters with a reading, best first.",
						"items": {
							"$ref": "#/components/schemas/V1Meter"
						},
						"title": "Meters",
						"type": "array"
					},
					"truncated": {
						"description": "More meters were in the box than the plan's maximum.",
						"title": "Truncated",
						"type": "boolean"
					},
					"truncated_hint": {
						"description": "When `truncated`, what to do next (split the box). null otherwise.",
						"title": "Truncated Hint",
						"type": [
							"string",
							"null"
						]
					},
					"updated_at": {
						"description": "The newest `observed_at`; null with no meter.",
						"title": "Updated At",
						"type": [
							"number",
							"null"
						]
					},
					"updated_at_utc": {
						"description": "The same instant in ISO 8601 UTC.",
						"title": "Updated At Utc",
						"type": [
							"string",
							"null"
						]
					}
				},
				"required": [
					"meters",
					"truncated",
					"truncated_hint",
					"attribution",
					"updated_at",
					"updated_at_utc"
				],
				"title": "V1Live",
				"type": "object"
			},
			"V1Me": {
				"properties": {
					"key": {
						"$ref": "#/components/schemas/V1Key"
					},
					"quota": {
						"$ref": "#/components/schemas/V1Quota",
						"description": "The bearer key's plan and its usage so far today (read-only)."
					}
				},
				"required": [
					"key",
					"quota"
				],
				"title": "V1Me",
				"type": "object"
			},
			"V1Meter": {
				"properties": {
					"avg_kn": {
						"description": "Mean wind, knots. 0 is calm, measured. null only with `reads_low`.",
						"title": "Avg Kn",
						"type": [
							"number",
							"null"
						]
					},
					"cadence_min": {
						"description": "How often this meter reports, minutes: the median gap of its last 12 observed times (3 gaps or more), else its source's usual step.",
						"title": "Cadence Min",
						"type": "number"
					},
					"credit": {
						"description": "The source's credit, shown beside its readings.",
						"title": "Credit",
						"type": "string"
					},
					"credit_required": {
						"description": "The source requires its credit be shown.",
						"title": "Credit Required",
						"type": "boolean"
					},
					"dir_deg": {
						"description": "Degrees true, from. null: no vane, or its vane is not trusted.",
						"title": "Dir Deg",
						"type": [
							"number",
							"null"
						]
					},
					"gust_kn": {
						"description": "null: the meter reports no gust (or `reads_low`).",
						"title": "Gust Kn",
						"type": [
							"number",
							"null"
						]
					},
					"id": {
						"description": "`source:station`, stable across answers; the `/meters/{id}` id.",
						"title": "Id",
						"type": "string"
					},
					"kind": {
						"description": "`met`, `airport`, `buoy`, `pier`, `pws`, ... (a str, never an enum).",
						"title": "Kind",
						"type": "string"
					},
					"lat": {
						"title": "Lat",
						"type": "number"
					},
					"late": {
						"description": "true past `next_at` by more than 15 min. Under 30 min old it stays `live`.",
						"title": "Late",
						"type": "boolean"
					},
					"lon": {
						"title": "Lon",
						"type": "number"
					},
					"next_at": {
						"description": "When its next reading is due, epoch seconds UTC.",
						"title": "Next At",
						"type": "number"
					},
					"next_at_utc": {
						"description": "The same instant in ISO 8601 UTC.",
						"title": "Next At Utc",
						"type": "string"
					},
					"observed_at": {
						"description": "When the meter measured it, epoch seconds UTC.",
						"title": "Observed At",
						"type": "number"
					},
					"observed_at_utc": {
						"description": "The same instant in ISO 8601 UTC, so a client need not convert it.",
						"title": "Observed At Utc",
						"type": "string"
					},
					"reads_low": {
						"description": "The sector (N, NE, ...) the wind blows from now, where this meter is known to read low: its wind is null. null: its number stands.",
						"title": "Reads Low",
						"type": [
							"string",
							"null"
						]
					},
					"source": {
						"title": "Source",
						"type": "string"
					},
					"state": {
						"description": "`live` (30 min old or less), `recent` (up to 60 min) or `stale` (older, or past `next_at` by more than 15 min while over 30 min old). A str, never an enum.",
						"title": "State",
						"type": "string"
					},
					"trust": {
						"description": "Gustly's verdict on this meter for riders: `trusted` or `usable` (a str, never an enum). A meter Gustly does not trust is never served.",
						"title": "Trust",
						"type": "string"
					}
				},
				"required": [
					"id",
					"lat",
					"lon",
					"kind",
					"source",
					"credit",
					"credit_required",
					"avg_kn",
					"gust_kn",
					"dir_deg",
					"observed_at",
					"observed_at_utc",
					"trust",
					"reads_low",
					"state",
					"cadence_min",
					"next_at",
					"next_at_utc",
					"late"
				],
				"title": "V1Meter",
				"type": "object"
			},
			"V1MeterHours": {
				"properties": {
					"attribution": {
						"items": {
							"type": "string"
						},
						"title": "Attribution",
						"type": "array"
					},
					"hours": {
						"description": "The last 24 h by the hour, oldest first; an hour with no reading is absent.",
						"items": {
							"$ref": "#/components/schemas/LiveHour"
						},
						"title": "Hours",
						"type": "array"
					},
					"meter": {
						"$ref": "#/components/schemas/V1Meter"
					}
				},
				"required": [
					"meter",
					"hours",
					"attribution"
				],
				"title": "V1MeterHours",
				"type": "object"
			},
			"V1Quota": {
				"properties": {
					"day": {
						"$ref": "#/components/schemas/V1QuotaDay"
					},
					"minute": {
						"$ref": "#/components/schemas/V1QuotaMinute"
					}
				},
				"required": [
					"day",
					"minute"
				],
				"title": "V1Quota",
				"type": "object"
			},
			"V1QuotaDay": {
				"properties": {
					"forecast_points": {
						"description": "Distinct forecast grid points read this UTC day.",
						"title": "Forecast Points",
						"type": "integer"
					},
					"forecast_points_limit": {
						"title": "Forecast Points Limit",
						"type": "integer"
					},
					"limit": {
						"title": "Limit",
						"type": "integer"
					},
					"meter_reads": {
						"description": "24 h meter reads this UTC day.",
						"title": "Meter Reads",
						"type": "integer"
					},
					"meter_reads_limit": {
						"title": "Meter Reads Limit",
						"type": "integer"
					},
					"meter_rows": {
						"description": "Meter reading rows returned this UTC day, all reads.",
						"title": "Meter Rows",
						"type": "integer"
					},
					"meter_rows_limit": {
						"title": "Meter Rows Limit",
						"type": "integer"
					},
					"requests": {
						"description": "Requests this UTC day, read-only (`/me` never counts one).",
						"title": "Requests",
						"type": "integer"
					},
					"resets_utc": {
						"description": "When today's window resets, ISO 8601 UTC (00:00 UTC).",
						"title": "Resets Utc",
						"type": "string"
					}
				},
				"required": [
					"requests",
					"limit",
					"meter_reads",
					"meter_reads_limit",
					"meter_rows",
					"meter_rows_limit",
					"forecast_points",
					"forecast_points_limit",
					"resets_utc"
				],
				"title": "V1QuotaDay",
				"type": "object"
			},
			"V1QuotaMinute": {
				"properties": {
					"limit": {
						"title": "Limit",
						"type": "integer"
					},
					"remaining": {
						"description": "Requests left in this clock minute.",
						"title": "Remaining",
						"type": "integer"
					},
					"reset_s": {
						"description": "Seconds until the minute's counters reset.",
						"title": "Reset S",
						"type": "integer"
					}
				},
				"required": [
					"remaining",
					"limit",
					"reset_s"
				],
				"title": "V1QuotaMinute",
				"type": "object"
			},
			"V1Revoked": {
				"properties": {
					"key_id": {
						"title": "Key Id",
						"type": "integer"
					},
					"status": {
						"description": "`revoked`, the only answer.",
						"title": "Status",
						"type": "string"
					}
				},
				"required": [
					"status",
					"key_id"
				],
				"title": "V1Revoked",
				"type": "object"
			},
			"V1Rotate": {
				"properties": {
					"expires_utc": {
						"description": "When the new key stops working (trial: 60 idle days); null for a paid plan.",
						"title": "Expires Utc",
						"type": [
							"string",
							"null"
						]
					},
					"key": {
						"description": "The replacement key, shown this once. Only its hash is stored: if this answer is lost it will not be re-issued.",
						"title": "Key",
						"type": "string"
					},
					"key_id": {
						"title": "Key Id",
						"type": "integer"
					},
					"old_revoked": {
						"description": "Whether the old key was active and is now revoked.",
						"title": "Old Revoked",
						"type": "boolean"
					},
					"shown_once": {
						"description": "Always true; the plaintext key is never stored.",
						"title": "Shown Once",
						"type": "boolean"
					}
				},
				"required": [
					"key_id",
					"expires_utc",
					"key",
					"shown_once",
					"old_revoked"
				],
				"title": "V1Rotate",
				"type": "object"
			},
			"V1Source": {
				"properties": {
					"credit": {
						"title": "Credit",
						"type": "string"
					},
					"credit_required": {
						"title": "Credit Required",
						"type": "boolean"
					},
					"id": {
						"title": "Id",
						"type": "string"
					},
					"licence": {
						"description": "The licence the API serves it under; null: not named.",
						"title": "Licence",
						"type": [
							"string",
							"null"
						]
					}
				},
				"required": [
					"id",
					"credit",
					"credit_required",
					"licence"
				],
				"title": "V1Source",
				"type": "object"
			},
			"V1Sources": {
				"properties": {
					"sources": {
						"items": {
							"$ref": "#/components/schemas/V1Source"
						},
						"title": "Sources",
						"type": "array"
					}
				},
				"required": [
					"sources"
				],
				"title": "V1Sources",
				"type": "object"
			},
			"V1Usage": {
				"properties": {
					"account_id": {
						"description": "The account the limits belong to: a rotated key keeps the same history.",
						"title": "Account Id",
						"type": "integer"
					},
					"days": {
						"description": "The key's usage per UTC day, oldest first; a day with none is absent.",
						"items": {
							"$ref": "#/components/schemas/V1UsageDay"
						},
						"title": "Days",
						"type": "array"
					},
					"key_id": {
						"title": "Key Id",
						"type": "integer"
					}
				},
				"required": [
					"key_id",
					"account_id",
					"days"
				],
				"title": "V1Usage",
				"type": "object"
			},
			"V1UsageDay": {
				"properties": {
					"day": {
						"description": "The UTC day.",
						"title": "Day",
						"type": "string"
					},
					"meter_reads": {
						"title": "Meter Reads",
						"type": "integer"
					},
					"requests": {
						"title": "Requests",
						"type": "integer"
					}
				},
				"required": [
					"day",
					"requests",
					"meter_reads"
				],
				"title": "V1UsageDay",
				"type": "object"
			}
		}
	}
}
