{
  "openapi": "3.1.0",
  "info": {
    "title": "kamineko API",
    "version": "0.1.0",
    "description": "Small, sharp utility APIs: weather, background removal, unit and color conversion, color palettes, JSON/YAML/TOML/CSV conversion, lorem ipsum, fake data, types from JSON, text and JSON diffs, screenshots, PDFs, page-to-Markdown, UUIDs, validation (JSON Schema included), DNS and domain lookups, QR codes, and placeholder images.\n\n## Authentication\n\nMost endpoints can be tried without a key, at low limits meant for kicking the tires. **Screenshots, PDFs, Markdown conversions, background removal, QR batches, domain registration lookups, and images that count as more than one request need one.** For anything more, create a key for free on the [dashboard](https://app.kamineko.dev/keys): every limit goes up with it.\n\nSend the key in the `Authorization` header (or `X-Api-Key`). Never put it in the URL.\n\n```sh\ncurl https://api.kamineko.dev/v1/uuid -H \"Authorization: Bearer kn_meow_…\"\n```\n\nA key that is malformed, unknown, or revoked gets a `401` with code `unauthorized`, even on endpoints that work without a key. Trying many different bad keys from one IP gets a `429` with code `rate_limited` for a minute.\n\n## Rate limits\n\nFree is available today. Pro and Scale are planned tiers and cannot currently be purchased.\n\nWithout a key, limits apply per IP (per /64 for IPv6, and per zone for calls from Cloudflare Workers). With one, they apply to your account, shared by all of its keys.\nEvery call counts as a request. Heavy requests (screenshots, PDFs, Markdown conversions, background removal, QR batches, and domain registration lookups) also count against a lower limit.\n\n| | Requests / minute | Heavy requests / minute |\n| --- | --- | --- |\n| No key (per IP) | 10 | Key required |\n| Free (per account) | 120 | 5 |\n| Pro (per account) | 600 | 60 |\n| Scale (per account) | 1500 | 120 |\n\nEvery heavy endpoint needs a key. Over a limit, you get a `429` with code `rate_limited` and a `Retry-After` header. The catalog (`GET /v1/apis`) isn't limited.\n\n## Monthly quotas\n\nWithout a key, you get 100 requests a day per IP, resetting at midnight UTC. A free key gets 100,000 a month.\n\nWith a key, your account has a monthly quota, counted per calendar month (UTC). Every successful call counts as a request, and screenshots, PDFs, Markdown conversions, and background removals also count as renders.\n\nUnusually heavy calls count as several requests: QR batches (at least one per code), QR PNGs that are large, dense, or have a big logo, large placeholder PNGs, fake-data responses with thousands of values, large data conversions, JSON Schema checks of large documents, large diffs, and types from large samples. When a call counts as more than one, its `X-Request-Units` header says how many. Without a key, QR codes and placeholder PNGs must count as one: larger ones get a `401`.\n\nFailed calls don't count as requests, and calls rejected before rendering starts (say, for invalid input) don't count as renders. A render that starts and fails (say, a page that times out) is given back, up to your plan's monthly allowance. After that, failed renders count.\n\n| | Requests / month | Renders / month | Failed renders given back / month |\n| --- | --- | --- | --- |\n| Free | 100,000 | 50 | 50 |\n| Pro | 1,000,000 | 10,000 | 2,000 |\n| Scale | 10,000,000 | 50,000 | 10,000 |\n\nPast a quota, calls get a `429` with code `quota_exceeded` and a `Retry-After` header that points at the reset. Your dashboard shows what you've used.\n\n## Errors\n\nEvery error response has the same shape. `details` is optional; validation errors use it to list each problem.\n\n```json\n{\n  \"error\": {\n    \"code\": \"invalid_request\",\n    \"message\": \"Request validation failed\",\n    \"details\": [\n      {\n        \"path\": \"lat\",\n        \"message\": \"Too big: expected number to be <=90\"\n      }\n    ]\n  }\n}\n```"
  },
  "servers": [
    {
      "url": "https://api.kamineko.dev"
    }
  ],
  "security": [
    {
      "ApiKey": []
    },
    {}
  ],
  "tags": [
    {
      "name": "Service",
      "description": "Health and discovery."
    },
    {
      "name": "Weather",
      "description": "Current conditions and forecasts by latitude/longitude. The provider is picked by location (US locations use the National Weather Service, the rest of the world MET Norway), or forced with `provider`. Show `attribution` wherever you show MET Norway data."
    },
    {
      "name": "Background Removal",
      "description": "Cut the subject out of a photo and get back a transparent PNG, WebP, or AVIF."
    },
    {
      "name": "Conversion",
      "description": "Convert values between 80+ units, and documents between JSON, YAML, TOML, and CSV."
    },
    {
      "name": "Color",
      "description": "Convert colors between every format CSS knows, check text against WCAG contrast rules, and build palettes in OKLCh.\n\n- **Convert:** `GET /v1/color?value=tomato` returns hex, RGB, HSL, HWB, Lab, LCh, OKLab, OKLCh, and Display P3, as numbers and as CSS, plus the nearest CSS color name.\n- **Wide gamut:** colors outside sRGB are gamut mapped the way CSS Color 4 specifies, and `gamut` tells you when.\n- **Contrast:** `GET /v1/color/contrast?foreground=777&background=fff` returns the ratio and the AA and AAA levels it passes.\n- **Palettes:** `GET /v1/color/harmony` for complementary, triadic, and other schemes, `/shades` for tints and shades, and `/scale` for a full 50–950 scale."
    },
    {
      "name": "Lorem Ipsum",
      "description": "Placeholder text in classic Latin, or as a cat, a pirate, a middle manager, or an astronaut."
    },
    {
      "name": "Fake Data",
      "description": "Send a JSON Schema, get back realistic dummy data that matches it, as JSON, CSV, SQL inserts, or TypeScript."
    },
    {
      "name": "Screenshots",
      "description": "Capture any web page (or your own HTML) as a PNG, JPEG, or WebP in a real browser."
    },
    {
      "name": "PDF",
      "description": "Print any web page (or your own HTML) to a PDF in a real browser."
    },
    {
      "name": "Markdown",
      "description": "Turn any web page (or your own HTML) into Markdown, after rendering it in a real browser."
    },
    {
      "name": "UUID",
      "description": "Random v4 UUIDs, one at a time or up to 10 per request."
    },
    {
      "name": "Validate",
      "description": "Check user input before you store it, and get it back in a canonical form.\n\n- **Phone numbers:** `GET /v1/validate/phone?value=+44 7400 123456` checks the number against its country's numbering plan, says whether it's mobile, and formats it as E.164.\n- **IBANs:** `GET /v1/validate/iban?value=GB82WEST12345698765432` checks the length, format, and check digits for the country, and splits out the bank and account.\n- **Luhn:** `GET /v1/validate/luhn?value=4242424242424242` checks card numbers, IMEIs, and other mod 10 numbers, and names the card network.\n- **Email:** `GET /v1/validate/email?value=someone@gmail.com` checks the syntax and whether the domain accepts mail.\n- **User agents:** `GET /v1/validate/user-agent` reads a user agent into browser, OS, and device, and spots bots.\n- **JSON Schema:** `POST /v1/validate/json-schema` checks a JSON document against a schema (drafts 4 to 2020-12) and lists every error with its path.\n\nAn invalid value gets a `200` with `valid: false`, and a `reason` your code can switch on or, for JSON Schema, the list of errors."
    },
    {
      "name": "Diff",
      "description": "See what changed between two versions of something.\n\n- **Text:** `POST /v1/diff/text` compares line by line and returns hunks with line numbers, plus a unified diff you can hand to `patch` or `git apply`.\n- **JSON:** `POST /v1/diff/json` compares structure, not text, and returns an RFC 6902 JSON Patch. Key order doesn't matter, and array items are matched by value."
    },
    {
      "name": "Types",
      "description": "Paste a response from an API you don't control and get types for it.\n\n- **TypeScript:** interfaces, one per nested object, named after their keys.\n- **zod:** zod 4 schemas with a type inferred from each, dependencies first, with formats such as `z.email()` and `z.iso.datetime()` where every sample matches.\n- **JSON Schema:** draft 2020-12, ready for `POST /v1/validate/json-schema` or `POST /v1/fake-data`.\n\nSend several samples as an array to learn which keys are optional."
    },
    {
      "name": "DNS and domains",
      "description": "DNS records and domain registrations as JSON.\n\n- **Records:** `GET /v1/dns?name=example.com&type=A,MX` asks Cloudflare's 1.1.1.1 resolver, over DNS over HTTPS, for any of 17 record types.\n- **Reverse DNS:** `GET /v1/dns?name=1.1.1.1` looks up the PTR record for an IPv4 or IPv6 address.\n- **Registration:** `GET /v1/dns/rdap?domain=example.com` returns the registrar, dates, status, and nameservers from the domain's registry over RDAP, the successor to WHOIS. It needs an API key."
    },
    {
      "name": "QR Codes",
      "description": "QR codes as PNG or SVG, from a plain black-on-white code to a styled one with your logo in the middle.\n\n- **Basic:** `GET /v1/qr?data=https://kamineko.dev` returns a 512px PNG.\n- **Styled:** pick module and eye shapes (`style`, `eyeFrame`, `eyeBall`), colors, and gradients.\n- **Logo:** pass `logo` as an image URL or data URI (SVG logos need `format=svg`). Error correction goes up to H and the middle is cleared, so the code still scans.\n- **Batch:** `POST /v1/qr/batch` renders up to 25 codes in one style as a ZIP or JSON. Needs an API key."
    },
    {
      "name": "Placeholder Image",
      "description": "Generate an SVG or PNG at your chosen size with a solid color, stripes, checks, or dots and an optional caption."
    }
  ],
  "components": {
    "securitySchemes": {
      "ApiKey": {
        "type": "http",
        "scheme": "bearer",
        "description": "An API key from the dashboard, e.g. `kn_nyaa_…`. `X-Api-Key: <key>` also works."
      }
    },
    "schemas": {
      "ApiModule": {
        "type": "object",
        "properties": {
          "id": {
            "type": "string",
            "example": "weather"
          },
          "name": {
            "type": "string",
            "example": "Weather"
          },
          "summary": {
            "type": "string"
          },
          "description": {
            "type": "string"
          },
          "category": {
            "type": "string",
            "enum": [
              "data",
              "media",
              "text",
              "developer"
            ]
          },
          "status": {
            "type": "string",
            "enum": [
              "stable",
              "beta",
              "experimental"
            ]
          }
        },
        "required": [
          "id",
          "name",
          "summary",
          "category",
          "status"
        ]
      },
      "Error": {
        "type": "object",
        "properties": {
          "error": {
            "type": "object",
            "properties": {
              "code": {
                "type": "string",
                "example": "invalid_request"
              },
              "message": {
                "type": "string",
                "example": "Request validation failed"
              },
              "details": {}
            },
            "required": [
              "code",
              "message"
            ]
          }
        },
        "required": [
          "error"
        ]
      },
      "CurrentConditions": {
        "type": "object",
        "properties": {
          "provider": {
            "type": "string",
            "example": "nws"
          },
          "basis": {
            "type": "string",
            "enum": [
              "observation",
              "forecast"
            ],
            "description": "`observation`: measured at `station`. `forecast`: the provider's forecast for the current hour, valid at `observedAt` (MET Norway)."
          },
          "location": {
            "type": "object",
            "properties": {
              "lat": {
                "type": "number"
              },
              "lon": {
                "type": "number"
              },
              "name": {
                "type": [
                  "string",
                  "null"
                ],
                "example": "Boulder, CO"
              },
              "timeZone": {
                "type": [
                  "string",
                  "null"
                ],
                "example": "America/Denver"
              }
            },
            "required": [
              "lat",
              "lon",
              "name",
              "timeZone"
            ]
          },
          "observedAt": {
            "type": [
              "string",
              "null"
            ]
          },
          "station": {
            "type": [
              "object",
              "null"
            ],
            "properties": {
              "id": {
                "type": "string"
              },
              "name": {
                "type": "string"
              }
            },
            "required": [
              "id",
              "name"
            ]
          },
          "description": {
            "type": [
              "string",
              "null"
            ],
            "example": "Partly Cloudy"
          },
          "temperature": {
            "type": [
              "number",
              "null"
            ]
          },
          "feelsLike": {
            "type": [
              "number",
              "null"
            ]
          },
          "dewpoint": {
            "type": [
              "number",
              "null"
            ]
          },
          "humidity": {
            "type": [
              "number",
              "null"
            ],
            "description": "Relative humidity, percent"
          },
          "windSpeed": {
            "type": [
              "number",
              "null"
            ]
          },
          "windGust": {
            "type": [
              "number",
              "null"
            ]
          },
          "windDirection": {
            "type": [
              "number",
              "null"
            ],
            "description": "Degrees clockwise from north"
          },
          "pressure": {
            "type": [
              "number",
              "null"
            ]
          },
          "visibility": {
            "type": [
              "number",
              "null"
            ]
          },
          "icon": {
            "type": [
              "string",
              "null"
            ]
          },
          "units": {
            "type": "object",
            "properties": {
              "temperature": {
                "type": "string",
                "enum": [
                  "C",
                  "F"
                ]
              },
              "speed": {
                "type": "string",
                "enum": [
                  "km/h",
                  "mph"
                ]
              },
              "pressure": {
                "type": "string",
                "enum": [
                  "hPa",
                  "inHg"
                ]
              },
              "distance": {
                "type": "string",
                "enum": [
                  "km",
                  "mi"
                ]
              }
            },
            "required": [
              "temperature",
              "speed",
              "pressure",
              "distance"
            ]
          },
          "attribution": {
            "type": [
              "string",
              "null"
            ],
            "description": "Credit the provider's license requires. Show it wherever you show the data. Null when none is required."
          }
        },
        "required": [
          "provider",
          "basis",
          "location",
          "observedAt",
          "station",
          "description",
          "temperature",
          "feelsLike",
          "dewpoint",
          "humidity",
          "windSpeed",
          "windGust",
          "windDirection",
          "pressure",
          "visibility",
          "icon",
          "units",
          "attribution"
        ]
      },
      "Forecast": {
        "type": "object",
        "properties": {
          "provider": {
            "type": "string"
          },
          "location": {
            "type": "object",
            "properties": {
              "lat": {
                "type": "number"
              },
              "lon": {
                "type": "number"
              },
              "name": {
                "type": [
                  "string",
                  "null"
                ],
                "example": "Boulder, CO"
              },
              "timeZone": {
                "type": [
                  "string",
                  "null"
                ],
                "example": "America/Denver"
              }
            },
            "required": [
              "lat",
              "lon",
              "name",
              "timeZone"
            ]
          },
          "updatedAt": {
            "type": [
              "string",
              "null"
            ]
          },
          "hourly": {
            "type": "boolean"
          },
          "units": {
            "type": "object",
            "properties": {
              "temperature": {
                "type": "string",
                "enum": [
                  "C",
                  "F"
                ]
              },
              "speed": {
                "type": "string",
                "enum": [
                  "km/h",
                  "mph"
                ]
              },
              "pressure": {
                "type": "string",
                "enum": [
                  "hPa",
                  "inHg"
                ]
              },
              "distance": {
                "type": "string",
                "enum": [
                  "km",
                  "mi"
                ]
              }
            },
            "required": [
              "temperature",
              "speed",
              "pressure",
              "distance"
            ]
          },
          "periods": {
            "type": "array",
            "items": {
              "type": "object",
              "properties": {
                "name": {
                  "type": [
                    "string",
                    "null"
                  ],
                  "example": "Tonight"
                },
                "startTime": {
                  "type": "string"
                },
                "endTime": {
                  "type": "string"
                },
                "isDaytime": {
                  "type": "boolean"
                },
                "temperature": {
                  "type": [
                    "number",
                    "null"
                  ]
                },
                "precipitationChance": {
                  "type": [
                    "number",
                    "null"
                  ],
                  "description": "Percent"
                },
                "windSpeed": {
                  "type": [
                    "object",
                    "null"
                  ],
                  "properties": {
                    "min": {
                      "type": "number"
                    },
                    "max": {
                      "type": "number"
                    }
                  },
                  "required": [
                    "min",
                    "max"
                  ]
                },
                "windDirection": {
                  "type": [
                    "string",
                    "null"
                  ],
                  "example": "NW"
                },
                "summary": {
                  "type": "string",
                  "example": "Mostly Sunny"
                },
                "detail": {
                  "type": [
                    "string",
                    "null"
                  ]
                },
                "icon": {
                  "type": [
                    "string",
                    "null"
                  ]
                }
              },
              "required": [
                "name",
                "startTime",
                "endTime",
                "isDaytime",
                "temperature",
                "precipitationChance",
                "windSpeed",
                "windDirection",
                "summary",
                "detail",
                "icon"
              ]
            }
          },
          "attribution": {
            "type": [
              "string",
              "null"
            ],
            "description": "Credit the provider's license requires. Show it wherever you show the data. Null when none is required."
          }
        },
        "required": [
          "provider",
          "location",
          "updatedAt",
          "hourly",
          "units",
          "periods",
          "attribution"
        ]
      },
      "Conversion": {
        "type": "object",
        "properties": {
          "category": {
            "type": "string",
            "example": "length"
          },
          "value": {
            "type": "number",
            "example": 10
          },
          "from": {
            "type": "object",
            "properties": {
              "id": {
                "type": "string",
                "example": "km"
              },
              "name": {
                "type": "string",
                "example": "kilometer"
              }
            },
            "required": [
              "id",
              "name"
            ]
          },
          "to": {
            "type": "object",
            "properties": {
              "id": {
                "type": "string",
                "example": "km"
              },
              "name": {
                "type": "string",
                "example": "kilometer"
              }
            },
            "required": [
              "id",
              "name"
            ]
          },
          "result": {
            "type": "number",
            "example": 6.2137119224
          }
        },
        "required": [
          "category",
          "value",
          "from",
          "to",
          "result"
        ]
      },
      "DataConversion": {
        "type": "object",
        "properties": {
          "from": {
            "type": "string",
            "enum": [
              "json",
              "yaml",
              "toml",
              "csv"
            ]
          },
          "to": {
            "type": "string",
            "enum": [
              "json",
              "yaml",
              "toml",
              "csv"
            ]
          },
          "output": {
            "type": "string",
            "description": "The converted document",
            "example": "{\n  \"name\": \"kamineko\",\n  \"teeth\": \"sharp\",\n  \"naps\": [\n    \"morning\",\n    \"afternoon\"\n  ]\n}"
          }
        },
        "required": [
          "from",
          "to",
          "output"
        ]
      },
      "DataConversionRequest": {
        "type": "object",
        "properties": {
          "input": {
            "type": "string",
            "description": "The document to convert, as text",
            "example": "name: kamineko\nteeth: sharp\nnaps: [morning, afternoon]\n"
          },
          "from": {
            "type": "string",
            "enum": [
              "json",
              "yaml",
              "toml",
              "csv"
            ],
            "description": "The format of `input`",
            "example": "yaml"
          },
          "to": {
            "type": "string",
            "enum": [
              "json",
              "yaml",
              "toml",
              "csv"
            ],
            "description": "The format to write. It can match `from`, to reformat a document",
            "example": "json"
          },
          "indent": {
            "type": "integer",
            "minimum": 0,
            "maximum": 8,
            "default": 2,
            "description": "Spaces per level in JSON and YAML output. `0` writes JSON on one line; YAML needs at least 1"
          },
          "delimiter": {
            "type": "string",
            "enum": [
              ",",
              ";",
              "\t",
              "|"
            ],
            "default": ",",
            "description": "The CSV field separator, for reading and writing"
          },
          "header": {
            "type": "boolean",
            "default": true,
            "description": "CSV: the first row names the columns. Read, each row becomes an object; without a header, an array. Written, rows that are objects get a header row first"
          },
          "inferTypes": {
            "type": "boolean",
            "default": false,
            "description": "CSV input: read numbers, `true`/`false`, and empty fields as numbers, booleans, and null. Off by default, so values like `007` stay text"
          }
        },
        "required": [
          "input",
          "from",
          "to"
        ]
      },
      "Color": {
        "type": "object",
        "properties": {
          "hex": {
            "type": "string",
            "description": "`#rrggbb`, or `#rrggbbaa` when the color is translucent"
          },
          "alpha": {
            "type": "number",
            "description": "0–1"
          },
          "rgb": {
            "type": "object",
            "properties": {
              "r": {
                "type": "integer"
              },
              "g": {
                "type": "integer"
              },
              "b": {
                "type": "integer"
              }
            },
            "required": [
              "r",
              "g",
              "b"
            ],
            "description": "sRGB, 0–255 per channel"
          },
          "hsl": {
            "type": "object",
            "properties": {
              "h": {
                "type": "number",
                "description": "Degrees, 0 up to 360. Grays have no hue and report 0."
              },
              "s": {
                "type": "number",
                "description": "0–100"
              },
              "l": {
                "type": "number",
                "description": "0–100"
              }
            },
            "required": [
              "h",
              "s",
              "l"
            ]
          },
          "hwb": {
            "type": "object",
            "properties": {
              "h": {
                "type": "number",
                "description": "Degrees, 0 up to 360. Grays have no hue and report 0."
              },
              "w": {
                "type": "number",
                "description": "0–100"
              },
              "b": {
                "type": "number",
                "description": "0–100"
              }
            },
            "required": [
              "h",
              "w",
              "b"
            ]
          },
          "lab": {
            "type": "object",
            "properties": {
              "l": {
                "type": "number"
              },
              "a": {
                "type": "number"
              },
              "b": {
                "type": "number"
              }
            },
            "required": [
              "l",
              "a",
              "b"
            ],
            "description": "CIE Lab (D50) as CSS `lab()` writes it: lightness 0–100"
          },
          "lch": {
            "type": "object",
            "properties": {
              "l": {
                "type": "number"
              },
              "c": {
                "type": "number"
              },
              "h": {
                "type": "number",
                "description": "Degrees, 0 up to 360. Grays have no hue and report 0."
              }
            },
            "required": [
              "l",
              "c",
              "h"
            ],
            "description": "CIE LCh (D50) as CSS `lch()` writes it"
          },
          "oklab": {
            "type": "object",
            "properties": {
              "l": {
                "type": "number"
              },
              "a": {
                "type": "number"
              },
              "b": {
                "type": "number"
              }
            },
            "required": [
              "l",
              "a",
              "b"
            ],
            "description": "Lightness 0–1"
          },
          "oklch": {
            "type": "object",
            "properties": {
              "l": {
                "type": "number"
              },
              "c": {
                "type": "number"
              },
              "h": {
                "type": "number",
                "description": "Degrees, 0 up to 360. Grays have no hue and report 0."
              }
            },
            "required": [
              "l",
              "c",
              "h"
            ],
            "description": "Lightness 0–1"
          },
          "displayP3": {
            "type": "object",
            "properties": {
              "r": {
                "type": "number",
                "description": "0–1"
              },
              "g": {
                "type": "number",
                "description": "0–1"
              },
              "b": {
                "type": "number",
                "description": "0–1"
              }
            },
            "required": [
              "r",
              "g",
              "b"
            ],
            "description": "Display P3, 0–1 per channel, as CSS `color(display-p3 …)` writes it"
          },
          "css": {
            "type": "object",
            "properties": {
              "hex": {
                "type": "string"
              },
              "rgb": {
                "type": "string"
              },
              "hsl": {
                "type": "string"
              },
              "hwb": {
                "type": "string"
              },
              "lab": {
                "type": "string"
              },
              "lch": {
                "type": "string"
              },
              "oklab": {
                "type": "string"
              },
              "oklch": {
                "type": "string"
              },
              "displayP3": {
                "type": "string"
              }
            },
            "required": [
              "hex",
              "rgb",
              "hsl",
              "hwb",
              "lab",
              "lch",
              "oklab",
              "oklch",
              "displayP3"
            ],
            "description": "Each format as a CSS color you can paste into a stylesheet"
          },
          "gamut": {
            "type": "object",
            "properties": {
              "srgb": {
                "type": "boolean"
              },
              "displayP3": {
                "type": "boolean"
              }
            },
            "required": [
              "srgb",
              "displayP3"
            ],
            "description": "Whether the color fits each gamut as given. If it doesn't, that gamut's formats hold the closest color that does."
          },
          "name": {
            "type": "object",
            "properties": {
              "nearest": {
                "type": "string"
              },
              "exact": {
                "type": "boolean"
              }
            },
            "required": [
              "nearest",
              "exact"
            ],
            "description": "The closest of the 148 CSS named colors, ignoring alpha, and whether it's an exact match"
          }
        },
        "required": [
          "hex",
          "alpha",
          "rgb",
          "hsl",
          "hwb",
          "lab",
          "lch",
          "oklab",
          "oklch",
          "displayP3",
          "css",
          "gamut",
          "name"
        ],
        "example": {
          "hex": "#ff6347",
          "alpha": 1,
          "rgb": {
            "r": 255,
            "g": 99,
            "b": 71
          },
          "hsl": {
            "h": 9.13,
            "s": 100,
            "l": 63.92
          },
          "hwb": {
            "h": 9.13,
            "w": 27.84,
            "b": 0
          },
          "lab": {
            "l": 62.99,
            "a": 59.36,
            "b": 47.88
          },
          "lch": {
            "l": 62.99,
            "c": 76.27,
            "h": 38.89
          },
          "oklab": {
            "l": 0.69622,
            "a": 0.16523,
            "b": 0.10454
          },
          "oklch": {
            "l": 0.69622,
            "c": 0.19552,
            "h": 32.32
          },
          "displayP3": {
            "r": 0.9283,
            "g": 0.4286,
            "b": 0.3199
          },
          "css": {
            "hex": "#ff6347",
            "rgb": "rgb(255 99 71)",
            "hsl": "hsl(9.13 100% 63.92%)",
            "hwb": "hwb(9.13 27.84% 0%)",
            "lab": "lab(62.99 59.36 47.88)",
            "lch": "lch(62.99 76.27 38.89)",
            "oklab": "oklab(0.69622 0.16523 0.10454)",
            "oklch": "oklch(0.69622 0.19552 32.32)",
            "displayP3": "color(display-p3 0.9283 0.4286 0.3199)"
          },
          "gamut": {
            "srgb": true,
            "displayP3": true
          },
          "name": {
            "nearest": "tomato",
            "exact": true
          }
        }
      },
      "Contrast": {
        "type": "object",
        "properties": {
          "foreground": {
            "type": "string",
            "description": "The foreground as drawn, after blending it over the background if it's translucent"
          },
          "background": {
            "type": "string"
          },
          "ratio": {
            "type": "number",
            "description": "From 1 to 21, truncated to two decimals"
          },
          "aa": {
            "type": "object",
            "properties": {
              "normalText": {
                "type": "boolean",
                "description": "At least 4.5:1"
              },
              "largeText": {
                "type": "boolean",
                "description": "At least 3:1"
              },
              "nonText": {
                "type": "boolean",
                "description": "At least 3:1, for icons, borders, and focus indicators"
              }
            },
            "required": [
              "normalText",
              "largeText",
              "nonText"
            ]
          },
          "aaa": {
            "type": "object",
            "properties": {
              "normalText": {
                "type": "boolean",
                "description": "At least 7:1"
              },
              "largeText": {
                "type": "boolean",
                "description": "At least 4.5:1"
              }
            },
            "required": [
              "normalText",
              "largeText"
            ]
          }
        },
        "required": [
          "foreground",
          "background",
          "ratio",
          "aa",
          "aaa"
        ],
        "example": {
          "foreground": "#777777",
          "background": "#ffffff",
          "ratio": 4.47,
          "aa": {
            "normalText": false,
            "largeText": true,
            "nonText": true
          },
          "aaa": {
            "normalText": false,
            "largeText": false
          }
        }
      },
      "Harmony": {
        "type": "object",
        "properties": {
          "scheme": {
            "type": "string",
            "enum": [
              "complementary",
              "analogous",
              "split-complementary",
              "triadic",
              "tetradic",
              "square"
            ]
          },
          "colors": {
            "type": "array",
            "items": {
              "$ref": "#/components/schemas/Swatch"
            }
          }
        },
        "required": [
          "scheme",
          "colors"
        ]
      },
      "Swatch": {
        "type": "object",
        "properties": {
          "hex": {
            "type": "string",
            "description": "`#rrggbb`"
          },
          "oklch": {
            "type": "object",
            "properties": {
              "l": {
                "type": "number"
              },
              "c": {
                "type": "number"
              },
              "h": {
                "type": "number",
                "description": "Degrees, 0 up to 360. Grays have no hue and report 0."
              }
            },
            "required": [
              "l",
              "c",
              "h"
            ],
            "description": "Lightness 0–1"
          },
          "css": {
            "type": "string",
            "description": "The color as CSS `oklch()`"
          },
          "contrast": {
            "type": "object",
            "properties": {
              "white": {
                "type": "number"
              },
              "black": {
                "type": "number"
              }
            },
            "required": [
              "white",
              "black"
            ],
            "description": "WCAG 2 contrast ratio against white and against black, truncated to two decimals, for picking the text to put on it"
          }
        },
        "required": [
          "hex",
          "oklch",
          "css",
          "contrast"
        ],
        "example": {
          "hex": "#ff6347",
          "oklch": {
            "l": 0.69622,
            "c": 0.19552,
            "h": 32.32
          },
          "css": "oklch(0.69622 0.19552 32.32)",
          "contrast": {
            "white": 2.94,
            "black": 7.12
          }
        }
      },
      "TintsAndShades": {
        "type": "object",
        "properties": {
          "base": {
            "$ref": "#/components/schemas/Swatch"
          },
          "tints": {
            "type": "array",
            "items": {
              "allOf": [
                {
                  "$ref": "#/components/schemas/Swatch"
                },
                {
                  "type": "object",
                  "properties": {
                    "mix": {
                      "type": "number",
                      "description": "How much white (for a tint) or black (for a shade) went in, in percent"
                    }
                  },
                  "required": [
                    "mix"
                  ]
                }
              ],
              "example": {
                "mix": 25,
                "hex": "#ff8f78",
                "oklch": {
                  "l": 0.76562,
                  "c": 0.14025,
                  "h": 32.65
                },
                "css": "oklch(0.76562 0.14025 32.65)",
                "contrast": {
                  "white": 2.22,
                  "black": 9.45
                }
              }
            }
          },
          "shades": {
            "type": "array",
            "items": {
              "allOf": [
                {
                  "$ref": "#/components/schemas/Swatch"
                },
                {
                  "type": "object",
                  "properties": {
                    "mix": {
                      "type": "number",
                      "description": "How much white (for a tint) or black (for a shade) went in, in percent"
                    }
                  },
                  "required": [
                    "mix"
                  ]
                }
              ],
              "example": {
                "mix": 25,
                "hex": "#ff8f78",
                "oklch": {
                  "l": 0.76562,
                  "c": 0.14025,
                  "h": 32.65
                },
                "css": "oklch(0.76562 0.14025 32.65)",
                "contrast": {
                  "white": 2.22,
                  "black": 9.45
                }
              }
            }
          }
        },
        "required": [
          "base",
          "tints",
          "shades"
        ]
      },
      "ColorScale": {
        "type": "object",
        "properties": {
          "baseStep": {
            "type": "integer",
            "description": "The step the color you sent is on",
            "example": 400
          },
          "colors": {
            "type": "array",
            "items": {
              "allOf": [
                {
                  "$ref": "#/components/schemas/Swatch"
                },
                {
                  "type": "object",
                  "properties": {
                    "step": {
                      "type": "integer"
                    }
                  },
                  "required": [
                    "step"
                  ]
                }
              ],
              "example": {
                "step": 400,
                "hex": "#ff6347",
                "oklch": {
                  "l": 0.69622,
                  "c": 0.19552,
                  "h": 32.32
                },
                "css": "oklch(0.69622 0.19552 32.32)",
                "contrast": {
                  "white": 2.94,
                  "black": 7.12
                }
              }
            }
          }
        },
        "required": [
          "baseStep",
          "colors"
        ]
      },
      "Lorem": {
        "type": "object",
        "properties": {
          "flavor": {
            "type": "string",
            "example": "cat"
          },
          "unit": {
            "type": "string",
            "enum": [
              "paragraphs",
              "sentences",
              "words"
            ]
          },
          "count": {
            "type": "integer"
          },
          "paragraphs": {
            "type": "array",
            "items": {
              "type": "string"
            }
          },
          "text": {
            "type": "string",
            "description": "Paragraphs joined with blank lines"
          }
        },
        "required": [
          "flavor",
          "unit",
          "count",
          "paragraphs",
          "text"
        ]
      },
      "FakeDataRequest": {
        "type": "object",
        "properties": {
          "schema": {
            "anyOf": [
              {
                "type": "boolean"
              },
              {
                "type": "object",
                "additionalProperties": {}
              }
            ],
            "description": "A JSON Schema object or boolean from draft 2020-12 or draft-07, using the constraints listed below. Local `$ref`s are supported.",
            "example": {
              "type": "object",
              "properties": {
                "id": {
                  "type": "string",
                  "format": "uuid"
                },
                "name": {
                  "type": "string"
                },
                "email": {
                  "type": "string",
                  "format": "email"
                },
                "age": {
                  "type": "integer",
                  "minimum": 18
                },
                "tags": {
                  "type": "array",
                  "items": {
                    "type": "string"
                  },
                  "maxItems": 3
                }
              },
              "required": [
                "id",
                "name",
                "email"
              ]
            }
          },
          "count": {
            "type": "integer",
            "minimum": 1,
            "maximum": 100,
            "default": 1
          },
          "seed": {
            "type": "integer",
            "minimum": 0,
            "maximum": 4294967295,
            "description": "Reuse a seed to get the same data back"
          },
          "format": {
            "type": "string",
            "enum": [
              "json",
              "csv",
              "sql",
              "typescript"
            ],
            "default": "json",
            "description": "`json` returns the documents as `data`. The others return them as text in `output`: `csv` with a header row, `sql` INSERT statements, or `typescript` with an inferred interface."
          },
          "name": {
            "type": "string",
            "pattern": "^[A-Za-z][A-Za-z0-9_]{0,63}$",
            "default": "items",
            "description": "The table name for `sql`, and the constant's name for `typescript` (its type is the singular: `items` holds `Item`)"
          },
          "dialect": {
            "type": "string",
            "enum": [
              "postgres",
              "mysql",
              "sqlite"
            ],
            "default": "postgres",
            "description": "How `sql` quotes names and strings"
          }
        },
        "required": [
          "schema"
        ]
      },
      "ScreenshotRequest": {
        "type": "object",
        "properties": {
          "url": {
            "type": "string",
            "format": "uri",
            "example": "https://example.com"
          },
          "html": {
            "type": "string",
            "maxLength": 524288,
            "description": "Render this HTML instead of a URL"
          },
          "width": {
            "type": "integer",
            "minimum": 320,
            "maximum": 3840,
            "default": 1280,
            "description": "Viewport width in CSS pixels"
          },
          "height": {
            "type": "integer",
            "minimum": 240,
            "maximum": 2160,
            "default": 800,
            "description": "Viewport height in CSS pixels"
          },
          "scale": {
            "type": "number",
            "minimum": 1,
            "maximum": 3,
            "default": 1,
            "description": "Device scale factor (2 for retina)"
          },
          "fullPage": {
            "type": "boolean",
            "description": "Capture the whole scrollable page"
          },
          "format": {
            "type": "string",
            "enum": [
              "png",
              "jpeg",
              "webp"
            ],
            "default": "png"
          },
          "quality": {
            "type": "integer",
            "minimum": 1,
            "maximum": 100,
            "description": "JPEG/WebP quality"
          },
          "selector": {
            "type": "string",
            "maxLength": 500,
            "description": "Screenshot only the first element matching this CSS selector"
          },
          "waitUntil": {
            "type": "string",
            "enum": [
              "load",
              "domcontentloaded",
              "networkidle0",
              "networkidle2"
            ],
            "default": "load"
          },
          "delay": {
            "type": "integer",
            "minimum": 0,
            "maximum": 10000,
            "default": 0,
            "description": "Extra wait after load, in ms. Counts toward the 15 seconds a render gets"
          }
        }
      },
      "PdfRequest": {
        "type": "object",
        "properties": {
          "url": {
            "type": "string",
            "format": "uri",
            "example": "https://example.com"
          },
          "html": {
            "type": "string",
            "maxLength": 524288,
            "description": "Render this HTML instead of a URL"
          },
          "paper": {
            "type": "string",
            "enum": [
              "letter",
              "legal",
              "tabloid",
              "ledger",
              "a0",
              "a1",
              "a2",
              "a3",
              "a4",
              "a5",
              "a6"
            ],
            "default": "letter",
            "description": "Paper size"
          },
          "landscape": {
            "type": "boolean",
            "default": false,
            "description": "Turn the paper sideways"
          },
          "printBackground": {
            "type": "boolean",
            "default": true,
            "description": "Print background colors and images"
          },
          "scale": {
            "type": "number",
            "minimum": 0.1,
            "maximum": 2,
            "default": 1,
            "description": "Scale of the page's content (0.1–2)"
          },
          "margin": {
            "type": "string",
            "pattern": "^\\d{1,3}(\\.\\d{1,2})?(px|in|cm|mm)$",
            "description": "Margin on every side of each page, in `px`, `in`, `cm` or `mm`",
            "example": "1cm"
          },
          "pageRanges": {
            "type": "string",
            "maxLength": 100,
            "pattern": "^\\s*\\d+\\s*(-\\s*\\d+\\s*)?(,\\s*\\d+\\s*(-\\s*\\d+\\s*)?)*$",
            "description": "Only these pages, like `1-3, 5`",
            "example": "1-3, 5"
          },
          "media": {
            "type": "string",
            "enum": [
              "print",
              "screen"
            ],
            "default": "print",
            "description": "Lay the page out with its print styles or its screen styles"
          },
          "cssPageSize": {
            "type": "boolean",
            "default": false,
            "description": "Use the page size from the page's CSS `@page` rule instead of `paper`"
          },
          "waitUntil": {
            "type": "string",
            "enum": [
              "load",
              "domcontentloaded",
              "networkidle0",
              "networkidle2"
            ],
            "default": "load"
          },
          "delay": {
            "type": "integer",
            "minimum": 0,
            "maximum": 10000,
            "default": 0,
            "description": "Extra wait after load, in ms. Counts toward the 15 seconds a render gets"
          }
        }
      },
      "PageMarkdown": {
        "type": "object",
        "properties": {
          "markdown": {
            "type": "string",
            "description": "The page as Markdown, without the front matter `format=markdown` starts with",
            "example": "This domain is for use in documentation examples without needing permission."
          },
          "title": {
            "type": "string",
            "example": "Example Domain"
          },
          "url": {
            "type": [
              "string",
              "null"
            ],
            "description": "Where the page ended up, after redirects. `null` for HTML you sent",
            "example": "https://example.com/"
          },
          "status": {
            "type": [
              "integer",
              "null"
            ],
            "description": "The HTTP status the page was served with. `null` for HTML you sent",
            "example": 200
          }
        },
        "required": [
          "markdown",
          "title",
          "url",
          "status"
        ]
      },
      "MarkdownRequest": {
        "type": "object",
        "properties": {
          "url": {
            "type": "string",
            "format": "uri",
            "example": "https://example.com"
          },
          "html": {
            "type": "string",
            "maxLength": 524288,
            "description": "Render this HTML instead of a URL"
          },
          "format": {
            "type": "string",
            "enum": [
              "json",
              "markdown"
            ],
            "default": "json",
            "description": "`markdown` returns the Markdown alone, as `text/markdown`. It starts with YAML front matter holding the page's title, when the page has one"
          },
          "waitUntil": {
            "type": "string",
            "enum": [
              "load",
              "domcontentloaded",
              "networkidle0",
              "networkidle2"
            ],
            "default": "load"
          },
          "delay": {
            "type": "integer",
            "minimum": 0,
            "maximum": 10000,
            "default": 0,
            "description": "Extra wait after load, in ms. Counts toward the 15 seconds a render gets"
          }
        }
      },
      "Uuid": {
        "type": "object",
        "properties": {
          "uuid": {
            "type": "string",
            "format": "uuid",
            "example": "3b241101-e2bb-4255-8caf-4136c566a962"
          }
        },
        "required": [
          "uuid"
        ]
      },
      "UuidList": {
        "type": "object",
        "properties": {
          "data": {
            "type": "array",
            "items": {
              "type": "string",
              "format": "uuid",
              "example": "3b241101-e2bb-4255-8caf-4136c566a962"
            }
          }
        },
        "required": [
          "data"
        ]
      },
      "PhoneValidation": {
        "type": "object",
        "properties": {
          "valid": {
            "type": "boolean",
            "description": "Whether the value passed every check"
          },
          "reason": {
            "type": [
              "string",
              "null"
            ],
            "enum": [
              "not_a_number",
              "invalid_country",
              "too_short",
              "too_long",
              "invalid_length",
              "invalid_number",
              null
            ],
            "description": "Why it isn't valid: the first check it failed. Null when valid."
          },
          "possible": {
            "type": "boolean",
            "description": "Whether the length could be right for the country, even if the number isn't assigned"
          },
          "country": {
            "type": [
              "string",
              "null"
            ],
            "description": "ISO 3166-1 alpha-2 code of the country the number belongs to. Null for non-geographic numbers like +800."
          },
          "callingCode": {
            "type": [
              "string",
              "null"
            ],
            "description": "Country calling code, without the `+`"
          },
          "nationalNumber": {
            "type": [
              "string",
              "null"
            ],
            "description": "The number without its calling code, national prefix, or formatting"
          },
          "extension": {
            "type": [
              "string",
              "null"
            ]
          },
          "type": {
            "type": [
              "string",
              "null"
            ],
            "enum": [
              "mobile",
              "fixed_line",
              "fixed_line_or_mobile",
              "toll_free",
              "premium_rate",
              "shared_cost",
              "voip",
              "personal_number",
              "pager",
              "uan",
              "voicemail",
              null
            ],
            "description": "The kind of line. `fixed_line_or_mobile` is for countries like the US whose numbering plan doesn't tell them apart. Null unless valid."
          },
          "formats": {
            "type": [
              "object",
              "null"
            ],
            "properties": {
              "e164": {
                "type": "string",
                "description": "For storing and for APIs like Twilio: `+447400123456`"
              },
              "international": {
                "type": "string"
              },
              "national": {
                "type": "string"
              },
              "rfc3966": {
                "type": "string",
                "description": "A `tel:` URI for links"
              }
            },
            "required": [
              "e164",
              "international",
              "national",
              "rfc3966"
            ],
            "description": "Null unless valid"
          }
        },
        "required": [
          "valid",
          "reason",
          "possible",
          "country",
          "callingCode",
          "nationalNumber",
          "extension",
          "type",
          "formats"
        ],
        "example": {
          "valid": true,
          "reason": null,
          "possible": true,
          "country": "GB",
          "callingCode": "44",
          "nationalNumber": "7400123456",
          "extension": null,
          "type": "mobile",
          "formats": {
            "e164": "+447400123456",
            "international": "+44 7400 123456",
            "national": "07400 123456",
            "rfc3966": "tel:+447400123456"
          }
        }
      },
      "IbanValidation": {
        "type": "object",
        "properties": {
          "valid": {
            "type": "boolean",
            "description": "Whether the value passed every check"
          },
          "reason": {
            "type": [
              "string",
              "null"
            ],
            "enum": [
              "invalid_characters",
              "unknown_country",
              "wrong_length",
              "wrong_format",
              "invalid_check_digits",
              "checksum_mismatch",
              "national_checksum_mismatch",
              null
            ],
            "description": "Why it isn't valid: the first check it failed. Null when valid."
          },
          "iban": {
            "type": [
              "string",
              "null"
            ],
            "description": "Electronic format: uppercase, no spaces. Null unless valid."
          },
          "formatted": {
            "type": [
              "string",
              "null"
            ],
            "description": "Print format, in groups of four. Null unless valid."
          },
          "country": {
            "type": [
              "string",
              "null"
            ],
            "description": "ISO 3166-1 alpha-2 code, when it's a country that uses IBANs, even if the rest is wrong"
          },
          "checkDigits": {
            "type": [
              "string",
              "null"
            ]
          },
          "bban": {
            "type": [
              "string",
              "null"
            ],
            "description": "The national account number: everything after the check digits"
          },
          "bankCode": {
            "type": [
              "string",
              "null"
            ],
            "description": "The bank identifier inside the BBAN, for countries that define one"
          },
          "branchCode": {
            "type": [
              "string",
              "null"
            ],
            "description": "The branch identifier (a sort code in the UK), for countries that define one"
          },
          "accountNumber": {
            "type": [
              "string",
              "null"
            ]
          },
          "sepa": {
            "type": [
              "boolean",
              "null"
            ],
            "description": "Whether the country is in the Single Euro Payments Area"
          }
        },
        "required": [
          "valid",
          "reason",
          "iban",
          "formatted",
          "country",
          "checkDigits",
          "bban",
          "bankCode",
          "branchCode",
          "accountNumber",
          "sepa"
        ],
        "example": {
          "valid": true,
          "reason": null,
          "iban": "GB82WEST12345698765432",
          "formatted": "GB82 WEST 1234 5698 7654 32",
          "country": "GB",
          "checkDigits": "82",
          "bban": "WEST12345698765432",
          "bankCode": "WEST",
          "branchCode": "123456",
          "accountNumber": null,
          "sepa": true
        }
      },
      "LuhnValidation": {
        "type": "object",
        "properties": {
          "valid": {
            "type": "boolean",
            "description": "Whether the value passed every check"
          },
          "reason": {
            "type": [
              "string",
              "null"
            ],
            "enum": [
              "invalid_characters",
              "too_short",
              "checksum_mismatch",
              null
            ],
            "description": "Why it isn't valid: the first check it failed. Null when valid."
          },
          "length": {
            "type": [
              "integer",
              "null"
            ],
            "description": "How many digits there are, without separators"
          },
          "checkDigit": {
            "type": [
              "integer",
              "null"
            ],
            "description": "What the last digit should be for the rest of the number to pass"
          },
          "brand": {
            "type": [
              "string",
              "null"
            ],
            "enum": [
              "visa",
              "mastercard",
              "amex",
              "discover",
              "jcb",
              "diners",
              "unionpay",
              "maestro",
              "mir",
              null
            ],
            "description": "The card network whose number range and length match. A match doesn't mean the card exists. Null for anything else, like an IMEI."
          }
        },
        "required": [
          "valid",
          "reason",
          "length",
          "checkDigit",
          "brand"
        ],
        "example": {
          "valid": true,
          "reason": null,
          "length": 16,
          "checkDigit": 2,
          "brand": "visa"
        }
      },
      "EmailValidation": {
        "type": "object",
        "properties": {
          "valid": {
            "type": "boolean",
            "description": "Whether the value passed every check"
          },
          "reason": {
            "type": [
              "string",
              "null"
            ],
            "enum": [
              "too_long",
              "missing_at",
              "invalid_local_part",
              "local_part_too_long",
              "invalid_domain",
              "domain_not_found",
              "no_mail_server",
              null
            ],
            "description": "Why it isn't valid: the first check it failed. Null when valid."
          },
          "normalized": {
            "type": [
              "string",
              "null"
            ],
            "description": "Trimmed, with the domain in lowercase ASCII (Punycode for internationalized domains). The local part keeps its case."
          },
          "localPart": {
            "type": [
              "string",
              "null"
            ]
          },
          "domain": {
            "type": [
              "string",
              "null"
            ]
          },
          "role": {
            "type": [
              "boolean",
              "null"
            ],
            "description": "Whether the mailbox belongs to a function, like `support@` or `noreply@`, rather than a person"
          },
          "dns": {
            "$ref": "#/components/schemas/MailDns"
          }
        },
        "required": [
          "valid",
          "reason",
          "normalized",
          "localPart",
          "domain",
          "role",
          "dns"
        ],
        "example": {
          "valid": true,
          "reason": null,
          "normalized": "someone@gmail.com",
          "localPart": "someone",
          "domain": "gmail.com",
          "role": false,
          "dns": {
            "result": "mx",
            "acceptsMail": true,
            "records": [
              {
                "priority": 5,
                "exchange": "gmail-smtp-in.l.google.com"
              },
              {
                "priority": 10,
                "exchange": "alt1.gmail-smtp-in.l.google.com"
              }
            ]
          }
        }
      },
      "MailDns": {
        "type": [
          "object",
          "null"
        ],
        "properties": {
          "result": {
            "type": "string",
            "enum": [
              "mx",
              "implicit",
              "null_mx",
              "no_records",
              "not_found",
              "error"
            ]
          },
          "acceptsMail": {
            "type": [
              "boolean",
              "null"
            ],
            "description": "Null when the lookup failed"
          },
          "records": {
            "type": "array",
            "items": {
              "type": "object",
              "properties": {
                "priority": {
                  "type": "integer"
                },
                "exchange": {
                  "type": "string"
                }
              },
              "required": [
                "priority",
                "exchange"
              ]
            },
            "description": "MX records, lowest priority (tried first) first. Empty unless `result` is `mx`."
          }
        },
        "required": [
          "result",
          "acceptsMail",
          "records"
        ],
        "description": "Null when `mx=false` or the syntax is invalid"
      },
      "UserAgent": {
        "type": "object",
        "properties": {
          "userAgent": {
            "type": "string",
            "description": "The string that was parsed"
          },
          "browser": {
            "type": "object",
            "properties": {
              "name": {
                "type": [
                  "string",
                  "null"
                ]
              },
              "version": {
                "type": [
                  "string",
                  "null"
                ]
              }
            },
            "required": [
              "name",
              "version"
            ]
          },
          "engine": {
            "type": "object",
            "properties": {
              "name": {
                "type": [
                  "string",
                  "null"
                ]
              },
              "version": {
                "type": [
                  "string",
                  "null"
                ]
              }
            },
            "required": [
              "name",
              "version"
            ]
          },
          "os": {
            "type": "object",
            "properties": {
              "name": {
                "type": [
                  "string",
                  "null"
                ]
              },
              "version": {
                "type": [
                  "string",
                  "null"
                ]
              },
              "versionName": {
                "type": [
                  "string",
                  "null"
                ],
                "description": "Marketing name, like `10` for Windows NT 10.0 or `Sonoma`"
              }
            },
            "required": [
              "name",
              "version",
              "versionName"
            ]
          },
          "device": {
            "type": "object",
            "properties": {
              "type": {
                "type": [
                  "string",
                  "null"
                ],
                "enum": [
                  "desktop",
                  "mobile",
                  "tablet",
                  "tv",
                  "bot",
                  null
                ]
              },
              "vendor": {
                "type": [
                  "string",
                  "null"
                ]
              },
              "model": {
                "type": [
                  "string",
                  "null"
                ]
              }
            },
            "required": [
              "type",
              "vendor",
              "model"
            ]
          },
          "bot": {
            "type": "boolean",
            "description": "Whether it's a crawler, monitor, HTTP library, or other automated client"
          }
        },
        "required": [
          "userAgent",
          "browser",
          "engine",
          "os",
          "device",
          "bot"
        ],
        "example": {
          "userAgent": "Mozilla/5.0 (iPhone; CPU iPhone OS 17_5 like Mac OS X) AppleWebKit/605.1.15 (KHTML, like Gecko) Version/17.5 Mobile/15E148 Safari/604.1",
          "browser": {
            "name": "Safari",
            "version": "17.5"
          },
          "engine": {
            "name": "WebKit",
            "version": "605.1.15"
          },
          "os": {
            "name": "iOS",
            "version": "17.5",
            "versionName": null
          },
          "device": {
            "type": "mobile",
            "vendor": "Apple",
            "model": "iPhone"
          },
          "bot": false
        }
      },
      "JsonSchemaValidation": {
        "type": "object",
        "properties": {
          "valid": {
            "type": "boolean",
            "description": "Whether the value passed every check"
          },
          "errors": {
            "type": "array",
            "items": {
              "$ref": "#/components/schemas/SchemaIssue"
            },
            "description": "Every error found, up to `maxErrors`, in the order they were found. Empty when valid."
          },
          "truncated": {
            "type": "boolean",
            "description": "Whether there were more errors than `maxErrors`"
          }
        },
        "required": [
          "valid",
          "errors",
          "truncated"
        ],
        "example": {
          "valid": false,
          "errors": [
            {
              "path": "/age",
              "schemaPath": "#/properties/age/minimum",
              "keyword": "minimum",
              "message": "Must be at least 18."
            },
            {
              "path": "/email",
              "schemaPath": "#/properties/email/format",
              "keyword": "format",
              "message": "Must be a valid email."
            },
            {
              "path": "",
              "schemaPath": "#/required",
              "keyword": "required",
              "message": "Missing the required property \"name\"."
            }
          ],
          "truncated": false
        }
      },
      "SchemaIssue": {
        "type": "object",
        "properties": {
          "path": {
            "type": "string",
            "description": "JSON Pointer to the value that failed, in `data`. An empty string is the whole document.",
            "example": "/age"
          },
          "schemaPath": {
            "type": "string",
            "description": "Where the keyword that failed is, in the schema",
            "example": "#/properties/age/minimum"
          },
          "keyword": {
            "type": "string",
            "description": "The keyword that failed, or `false` for a `false` schema",
            "example": "minimum"
          },
          "message": {
            "type": "string",
            "example": "Must be at least 18."
          }
        },
        "required": [
          "path",
          "schemaPath",
          "keyword",
          "message"
        ]
      },
      "JsonSchemaValidationRequest": {
        "type": "object",
        "properties": {
          "schema": {
            "type": [
              "object",
              "boolean"
            ],
            "description": "A JSON Schema. `$schema` picks the draft: 4, 6, 7, 2019-09, or 2020-12 (the default).",
            "example": {
              "type": "object",
              "required": [
                "name",
                "email"
              ],
              "properties": {
                "name": {
                  "type": "string",
                  "minLength": 1
                },
                "email": {
                  "type": "string",
                  "format": "email"
                },
                "age": {
                  "type": "integer",
                  "minimum": 18
                }
              }
            }
          },
          "data": {
            "description": "The JSON value to check",
            "example": {
              "email": "mochi@example",
              "age": 3
            }
          },
          "formats": {
            "type": "boolean",
            "default": true,
            "description": "Check `format`. Off, formats are only annotations, as 2020-12 says by default"
          },
          "maxErrors": {
            "type": "integer",
            "minimum": 1,
            "maximum": 1000,
            "default": 100,
            "description": "The most errors to return"
          }
        },
        "required": [
          "schema",
          "data"
        ]
      },
      "TextDiff": {
        "type": "object",
        "properties": {
          "identical": {
            "type": "boolean"
          },
          "minimal": {
            "type": "boolean",
            "description": "False when the inputs were too different to search for the smallest diff in time. The diff is still correct, but may replace more than it had to."
          },
          "added": {
            "type": "integer",
            "description": "Lines added"
          },
          "removed": {
            "type": "integer",
            "description": "Lines removed"
          },
          "hunks": {
            "type": "array",
            "items": {
              "$ref": "#/components/schemas/DiffHunk"
            },
            "description": "The changes, each with up to `context` unchanged lines around it"
          },
          "unified": {
            "type": "string",
            "description": "The same hunks as a unified diff, as `diff -u` writes it. Empty when the texts are identical."
          }
        },
        "required": [
          "identical",
          "minimal",
          "added",
          "removed",
          "hunks",
          "unified"
        ],
        "example": {
          "identical": false,
          "minimal": true,
          "added": 1,
          "removed": 1,
          "hunks": [
            {
              "oldStart": 1,
              "oldLines": 3,
              "newStart": 1,
              "newLines": 3,
              "lines": [
                {
                  "type": "context",
                  "text": "name: kamineko",
                  "oldLine": 1,
                  "newLine": 1
                },
                {
                  "type": "removed",
                  "text": "teeth: sharp",
                  "oldLine": 2,
                  "newLine": null
                },
                {
                  "type": "added",
                  "text": "teeth: sharper",
                  "oldLine": null,
                  "newLine": 2
                },
                {
                  "type": "context",
                  "text": "naps: 3",
                  "oldLine": 3,
                  "newLine": 3
                }
              ]
            }
          ],
          "unified": "--- old\n+++ new\n@@ -1,3 +1,3 @@\n name: kamineko\n-teeth: sharp\n+teeth: sharper\n naps: 3\n"
        }
      },
      "DiffHunk": {
        "type": "object",
        "properties": {
          "oldStart": {
            "type": "integer"
          },
          "oldLines": {
            "type": "integer"
          },
          "newStart": {
            "type": "integer"
          },
          "newLines": {
            "type": "integer"
          },
          "lines": {
            "type": "array",
            "items": {
              "type": "object",
              "properties": {
                "type": {
                  "type": "string",
                  "enum": [
                    "context",
                    "removed",
                    "added"
                  ]
                },
                "text": {
                  "type": "string"
                },
                "oldLine": {
                  "type": [
                    "integer",
                    "null"
                  ],
                  "description": "Line number in `old`, from 1. Null for added lines."
                },
                "newLine": {
                  "type": [
                    "integer",
                    "null"
                  ],
                  "description": "Line number in `new`, from 1. Null for removed lines."
                }
              },
              "required": [
                "type",
                "text",
                "oldLine",
                "newLine"
              ]
            }
          }
        },
        "required": [
          "oldStart",
          "oldLines",
          "newStart",
          "newLines",
          "lines"
        ]
      },
      "TextDiffRequest": {
        "type": "object",
        "properties": {
          "old": {
            "type": "string",
            "description": "The original text",
            "example": "name: kamineko\nteeth: sharp\nnaps: 3\n"
          },
          "new": {
            "type": "string",
            "description": "The changed text",
            "example": "name: kamineko\nteeth: sharper\nnaps: 3\n"
          },
          "context": {
            "type": "integer",
            "minimum": 0,
            "maximum": 100,
            "default": 3,
            "description": "Unchanged lines to show around each change"
          },
          "ignoreWhitespace": {
            "type": "boolean",
            "default": false,
            "description": "Compare lines with whitespace runs collapsed and the ends trimmed"
          },
          "ignoreCase": {
            "type": "boolean",
            "default": false
          }
        },
        "required": [
          "old",
          "new"
        ]
      },
      "JsonDiff": {
        "type": "object",
        "properties": {
          "identical": {
            "type": "boolean"
          },
          "minimal": {
            "type": "boolean",
            "description": "False when the inputs were too different to search for the smallest diff in time. The diff is still correct, but may replace more than it had to."
          },
          "patch": {
            "type": "array",
            "items": {
              "$ref": "#/components/schemas/JsonPatchOperation"
            },
            "description": "An RFC 6902 JSON Patch that turns `old` into `new`"
          }
        },
        "required": [
          "identical",
          "minimal",
          "patch"
        ],
        "example": {
          "identical": false,
          "minimal": true,
          "patch": [
            {
              "op": "replace",
              "path": "/lives",
              "value": 8
            },
            {
              "op": "add",
              "path": "/naps/1",
              "value": "noon"
            },
            {
              "op": "remove",
              "path": "/owner"
            }
          ]
        }
      },
      "JsonPatchOperation": {
        "type": "object",
        "properties": {
          "op": {
            "type": "string",
            "enum": [
              "add",
              "remove",
              "replace"
            ]
          },
          "path": {
            "type": "string",
            "description": "JSON Pointer to where the operation applies, after the operations before it have run"
          },
          "value": {
            "description": "The new value, for add and replace"
          }
        },
        "required": [
          "op",
          "path"
        ]
      },
      "JsonDiffRequest": {
        "type": "object",
        "properties": {
          "old": {
            "description": "The original document: any JSON value",
            "example": {
              "name": "kamineko",
              "lives": 9,
              "naps": [
                "morning",
                "afternoon"
              ],
              "owner": "J"
            }
          },
          "new": {
            "description": "The changed document",
            "example": {
              "name": "kamineko",
              "lives": 8,
              "naps": [
                "morning",
                "noon",
                "afternoon"
              ]
            }
          }
        },
        "required": [
          "old",
          "new"
        ]
      },
      "Types": {
        "type": "object",
        "properties": {
          "to": {
            "type": "string",
            "enum": [
              "typescript",
              "zod",
              "json-schema"
            ]
          },
          "output": {
            "type": "string",
            "description": "The generated source, ready to save as a file"
          }
        },
        "required": [
          "to",
          "output"
        ],
        "example": {
          "to": "typescript",
          "output": "export interface Root {\n  id: number;\n  name: string;\n  email: string;\n  born: string;\n  tags: string[];\n  owner: Owner;\n}\n\nexport interface Owner {\n  name: string;\n  phone: null;\n}\n"
        }
      },
      "TypesRequest": {
        "type": "object",
        "properties": {
          "sample": {
            "description": "Any JSON value. Every item of an array is merged into one type, so send an array of several samples to cover optional keys.",
            "example": {
              "id": 7,
              "name": "Mochi",
              "email": "mochi@example.com",
              "born": "2021-04-01",
              "tags": [
                "orange"
              ],
              "owner": {
                "name": "Ada",
                "phone": null
              }
            }
          },
          "to": {
            "type": "string",
            "enum": [
              "typescript",
              "zod",
              "json-schema"
            ],
            "default": "typescript",
            "description": "`typescript` interfaces, `zod` 4 schemas, or a `json-schema` (draft 2020-12)"
          },
          "name": {
            "type": "string",
            "pattern": "^[A-Z][A-Za-z0-9_]{0,63}$",
            "default": "Root",
            "description": "The root type's name. Nested objects are named after their keys."
          },
          "formats": {
            "type": "boolean",
            "default": true,
            "description": "Detect string formats (uuid, email, date-time, date, and http(s) URLs) when every sample string at a place matches one. TypeScript has no format types, so this changes only zod and JSON Schema output."
          }
        },
        "required": [
          "sample"
        ]
      },
      "DnsLookup": {
        "type": "object",
        "properties": {
          "name": {
            "type": "string",
            "example": "example.com",
            "description": "The name looked up: lowercase ASCII, without the trailing dot. A reverse lookup's name ends in `in-addr.arpa` or `ip6.arpa`."
          },
          "lookups": {
            "type": "array",
            "items": {
              "type": "object",
              "properties": {
                "type": {
                  "type": "string",
                  "enum": [
                    "A",
                    "AAAA",
                    "CAA",
                    "CNAME",
                    "DNSKEY",
                    "DS",
                    "HTTPS",
                    "MX",
                    "NAPTR",
                    "NS",
                    "PTR",
                    "SOA",
                    "SRV",
                    "SSHFP",
                    "SVCB",
                    "TLSA",
                    "TXT"
                  ]
                },
                "status": {
                  "type": "string",
                  "example": "NOERROR",
                  "description": "The DNS response code. `NOERROR` with no records means the name exists but has none of this type. `NXDOMAIN` means the name doesn't exist. `SERVFAIL` usually means its nameservers are broken or DNSSEC failed."
                },
                "authenticated": {
                  "type": "boolean",
                  "description": "Whether the resolver validated the answer with DNSSEC"
                },
                "records": {
                  "type": "array",
                  "items": {
                    "type": "object",
                    "properties": {
                      "name": {
                        "type": "string",
                        "example": "example.com",
                        "description": "The name the record belongs to. Differs from the name asked about after a CNAME."
                      },
                      "type": {
                        "type": "string",
                        "example": "A"
                      },
                      "ttl": {
                        "type": "integer",
                        "example": 300,
                        "description": "Seconds the resolver will keep answering with this record"
                      },
                      "data": {
                        "type": "string",
                        "example": "192.0.2.1",
                        "description": "The record in DNS presentation format, as `dig` prints it. Names end with a dot."
                      },
                      "text": {
                        "type": "string",
                        "description": "TXT records only: the text, with the quoted strings decoded and joined, as SPF and DKIM read them"
                      }
                    },
                    "required": [
                      "name",
                      "type",
                      "ttl",
                      "data"
                    ]
                  }
                }
              },
              "required": [
                "type",
                "status",
                "authenticated",
                "records"
              ]
            }
          }
        },
        "required": [
          "name",
          "lookups"
        ]
      },
      "DomainRegistration": {
        "type": "object",
        "properties": {
          "domain": {
            "type": "string",
            "example": "example.com"
          },
          "unicodeName": {
            "type": [
              "string",
              "null"
            ],
            "description": "The domain in Unicode, for internationalized names"
          },
          "handle": {
            "type": [
              "string",
              "null"
            ],
            "description": "The registry's ID for the registration",
            "example": "2336799_DOMAIN_COM-VRSN"
          },
          "status": {
            "type": "array",
            "items": {
              "type": "string"
            },
            "example": [
              "client delete prohibited",
              "client transfer prohibited",
              "client update prohibited"
            ],
            "description": "EPP status codes, as the registry writes them. See https://icann.org/epp."
          },
          "registered": {
            "type": [
              "string",
              "null"
            ],
            "example": "1995-08-14T04:00:00Z"
          },
          "expires": {
            "type": [
              "string",
              "null"
            ],
            "example": "2027-08-13T04:00:00Z"
          },
          "updated": {
            "type": [
              "string",
              "null"
            ],
            "description": "When the registration last changed",
            "example": "2026-08-14T08:01:43Z"
          },
          "registrar": {
            "type": [
              "object",
              "null"
            ],
            "properties": {
              "name": {
                "type": [
                  "string",
                  "null"
                ],
                "example": "RESERVED-Internet Assigned Numbers Authority"
              },
              "ianaId": {
                "type": [
                  "string",
                  "null"
                ],
                "example": "376"
              },
              "url": {
                "type": [
                  "string",
                  "null"
                ]
              },
              "abuseEmail": {
                "type": [
                  "string",
                  "null"
                ],
                "description": "Where to report abuse of the domain"
              },
              "abusePhone": {
                "type": [
                  "string",
                  "null"
                ]
              }
            },
            "required": [
              "name",
              "ianaId",
              "url",
              "abuseEmail",
              "abusePhone"
            ]
          },
          "registrant": {
            "type": [
              "object",
              "null"
            ],
            "properties": {
              "organization": {
                "type": [
                  "string",
                  "null"
                ]
              },
              "country": {
                "type": [
                  "string",
                  "null"
                ],
                "description": "ISO 3166 code when the registry gives one, or the country's name"
              }
            },
            "required": [
              "organization",
              "country"
            ],
            "description": "Who holds the domain, when the registry publishes it. Most redact it."
          },
          "nameservers": {
            "type": "array",
            "items": {
              "type": "string"
            },
            "example": [
              "elliott.ns.cloudflare.com",
              "hera.ns.cloudflare.com"
            ]
          },
          "dnssec": {
            "type": [
              "boolean",
              "null"
            ],
            "description": "Whether the domain is signed with DNSSEC, per the registry"
          },
          "terms": {
            "type": [
              "string",
              "null"
            ],
            "description": "The registry's terms of use for this data"
          },
          "source": {
            "type": "string",
            "example": "https://rdap.verisign.com/com/v1/domain/example.com",
            "description": "The RDAP URL the data came from"
          }
        },
        "required": [
          "domain",
          "unicodeName",
          "handle",
          "status",
          "registered",
          "expires",
          "updated",
          "registrar",
          "registrant",
          "nameservers",
          "dnssec",
          "terms",
          "source"
        ]
      },
      "QrRequest": {
        "type": "object",
        "properties": {
          "data": {
            "type": "string",
            "minLength": 1,
            "maxLength": 7089,
            "description": "What the code encodes: a URL, text, or a `WIFI:`, `mailto:`, `tel:`, `BEGIN:VCARD` payload. Prefer POST for Wi-Fi credentials, contact details, or private URLs so they stay out of the request URL.",
            "example": "https://kamineko.dev"
          },
          "format": {
            "type": "string",
            "enum": [
              "png",
              "svg"
            ],
            "default": "png",
            "description": "PNG works anywhere; SVG scales cleanly for print"
          },
          "size": {
            "type": "integer",
            "minimum": 64,
            "maximum": 2048,
            "default": 512,
            "description": "Width and height in pixels, quiet zone included. PNGs need at least one pixel per module. Use larger sizes for printed or styled codes."
          },
          "margin": {
            "type": "integer",
            "minimum": 0,
            "maximum": 16,
            "default": 4,
            "description": "Quiet zone around the code, in modules. The spec asks for 4"
          },
          "ecc": {
            "type": "string",
            "enum": [
              "L",
              "M",
              "Q",
              "H"
            ],
            "description": "Error correction: L, M, Q, or H recover 7, 15, 25, or 30% damage. Defaults to M, or H with a logo"
          },
          "color": {
            "type": "string",
            "example": "#1a1a2e",
            "default": "#000000",
            "description": "Color of the dark modules"
          },
          "background": {
            "type": "string",
            "default": "#ffffff",
            "description": "Hex color, or `transparent`"
          },
          "style": {
            "type": "string",
            "enum": [
              "square",
              "dots",
              "rounded",
              "tiles",
              "bars"
            ],
            "default": "square",
            "description": "Module shape: `square`, `dots` (circles), `rounded` (neighbors merge into smooth shapes), `tiles` (separate rounded squares), or `bars` (vertical pills)"
          },
          "eyeFrame": {
            "type": "string",
            "enum": [
              "square",
              "rounded",
              "circle"
            ],
            "default": "square",
            "description": "Outer ring of the three corner finder patterns"
          },
          "eyeBall": {
            "type": "string",
            "enum": [
              "square",
              "rounded",
              "circle"
            ],
            "description": "Center of the three corner finder patterns. Defaults to `eyeFrame`. A `square` center inside a `circle` frame doesn't scan"
          },
          "eyeColor": {
            "type": "string",
            "example": "#1a1a2e",
            "description": "Color of the finder patterns. Defaults to `color`, gradient included"
          },
          "gradientColor": {
            "type": "string",
            "example": "#1a1a2e",
            "description": "Fade the dark modules from `color` to this color"
          },
          "gradientType": {
            "type": "string",
            "enum": [
              "linear",
              "radial"
            ],
            "default": "linear",
            "description": "With `gradientColor`: `linear`, or `radial` to fade outward from the center"
          },
          "gradientAngle": {
            "type": "number",
            "minimum": 0,
            "maximum": 360,
            "default": 45,
            "description": "Direction of a linear gradient in degrees: 0 is left to right, 90 is top to bottom"
          },
          "logo": {
            "type": "string",
            "maxLength": 1398230,
            "description": "Logo to put in the middle, as an http(s) URL or a data: URI (up to 1 MB). PNG, JPEG, or GIF (up to 4 megapixels in a PNG code). SVG logos need `format=svg`. Error correction defaults to H, and the code grows if it needs more room to stay scannable.",
            "example": "https://example.com/logo.png"
          },
          "logoSize": {
            "type": "number",
            "minimum": 0.05,
            "maximum": 0.3,
            "default": 0.2,
            "description": "Logo width as a fraction of the code's width"
          },
          "logoPadding": {
            "type": "number",
            "minimum": 0,
            "maximum": 2,
            "default": 1,
            "description": "Empty space around the logo, in modules (rounded to fit the grid)"
          }
        },
        "required": [
          "data"
        ]
      },
      "QrBatchResult": {
        "type": "object",
        "properties": {
          "data": {
            "type": "array",
            "items": {
              "type": "object",
              "properties": {
                "name": {
                  "type": "string",
                  "example": "table-12.png"
                },
                "dataUri": {
                  "type": "string",
                  "example": "data:image/png;base64,iVBORw0KGgo…"
                }
              },
              "required": [
                "name",
                "dataUri"
              ]
            }
          }
        },
        "required": [
          "data"
        ]
      },
      "QrBatchRequest": {
        "type": "object",
        "properties": {
          "items": {
            "type": "array",
            "items": {
              "$ref": "#/components/schemas/QrBatchItem"
            },
            "minItems": 1,
            "maxItems": 25,
            "description": "The codes to render, 1–25. Every one gets the same style"
          },
          "output": {
            "type": "string",
            "enum": [
              "zip",
              "json"
            ],
            "default": "zip",
            "description": "`zip`: a ZIP with one file per code. `json`: a list of data URIs"
          },
          "format": {
            "type": "string",
            "enum": [
              "png",
              "svg"
            ],
            "default": "png",
            "description": "PNG works anywhere; SVG scales cleanly for print"
          },
          "size": {
            "type": "integer",
            "minimum": 64,
            "maximum": 2048,
            "default": 512,
            "description": "Width and height in pixels, quiet zone included. PNGs need at least one pixel per module. Use larger sizes for printed or styled codes."
          },
          "margin": {
            "type": "integer",
            "minimum": 0,
            "maximum": 16,
            "default": 4,
            "description": "Quiet zone around the code, in modules. The spec asks for 4"
          },
          "ecc": {
            "type": "string",
            "enum": [
              "L",
              "M",
              "Q",
              "H"
            ],
            "description": "Error correction: L, M, Q, or H recover 7, 15, 25, or 30% damage. Defaults to M, or H with a logo"
          },
          "color": {
            "type": "string",
            "example": "#1a1a2e",
            "default": "#000000",
            "description": "Color of the dark modules"
          },
          "background": {
            "type": "string",
            "default": "#ffffff",
            "description": "Hex color, or `transparent`"
          },
          "style": {
            "type": "string",
            "enum": [
              "square",
              "dots",
              "rounded",
              "tiles",
              "bars"
            ],
            "default": "square",
            "description": "Module shape: `square`, `dots` (circles), `rounded` (neighbors merge into smooth shapes), `tiles` (separate rounded squares), or `bars` (vertical pills)"
          },
          "eyeFrame": {
            "type": "string",
            "enum": [
              "square",
              "rounded",
              "circle"
            ],
            "default": "square",
            "description": "Outer ring of the three corner finder patterns"
          },
          "eyeBall": {
            "type": "string",
            "enum": [
              "square",
              "rounded",
              "circle"
            ],
            "description": "Center of the three corner finder patterns. Defaults to `eyeFrame`. A `square` center inside a `circle` frame doesn't scan"
          },
          "eyeColor": {
            "type": "string",
            "example": "#1a1a2e",
            "description": "Color of the finder patterns. Defaults to `color`, gradient included"
          },
          "gradientColor": {
            "type": "string",
            "example": "#1a1a2e",
            "description": "Fade the dark modules from `color` to this color"
          },
          "gradientType": {
            "type": "string",
            "enum": [
              "linear",
              "radial"
            ],
            "default": "linear",
            "description": "With `gradientColor`: `linear`, or `radial` to fade outward from the center"
          },
          "gradientAngle": {
            "type": "number",
            "minimum": 0,
            "maximum": 360,
            "default": 45,
            "description": "Direction of a linear gradient in degrees: 0 is left to right, 90 is top to bottom"
          },
          "logo": {
            "type": "string",
            "maxLength": 1398230,
            "description": "Logo to put in the middle, as an http(s) URL or a data: URI (up to 1 MB). PNG, JPEG, or GIF (up to 4 megapixels in a PNG code). SVG logos need `format=svg`. Error correction defaults to H, and the code grows if it needs more room to stay scannable.",
            "example": "https://example.com/logo.png"
          },
          "logoSize": {
            "type": "number",
            "minimum": 0.05,
            "maximum": 0.3,
            "default": 0.2,
            "description": "Logo width as a fraction of the code's width"
          },
          "logoPadding": {
            "type": "number",
            "minimum": 0,
            "maximum": 2,
            "default": 1,
            "description": "Empty space around the logo, in modules (rounded to fit the grid)"
          }
        },
        "required": [
          "items"
        ]
      },
      "QrBatchItem": {
        "type": "object",
        "properties": {
          "data": {
            "type": "string",
            "minLength": 1,
            "maxLength": 7089,
            "description": "What the code encodes: a URL, text, or a `WIFI:`, `mailto:`, `tel:`, `BEGIN:VCARD` payload. Prefer POST for Wi-Fi credentials, contact details, or private URLs so they stay out of the request URL.",
            "example": "https://kamineko.dev"
          },
          "name": {
            "type": "string",
            "minLength": 1,
            "maxLength": 100,
            "description": "File name for this code, without the extension. Defaults to qr-001, qr-002, …",
            "example": "table-12"
          }
        },
        "required": [
          "data"
        ]
      }
    },
    "parameters": {}
  },
  "paths": {
    "/health": {
      "get": {
        "tags": [
          "Service"
        ],
        "summary": "Health check",
        "responses": {
          "200": {
            "description": "The API is up",
            "content": {
              "application/json": {
                "schema": {
                  "type": "object",
                  "properties": {
                    "status": {
                      "type": "string",
                      "enum": [
                        "ok"
                      ]
                    },
                    "version": {
                      "type": "string"
                    }
                  },
                  "required": [
                    "status",
                    "version"
                  ]
                }
              }
            }
          }
        }
      }
    },
    "/v1/apis": {
      "get": {
        "tags": [
          "Service"
        ],
        "summary": "List available APIs",
        "responses": {
          "200": {
            "description": "Every API module mounted on this server",
            "content": {
              "application/json": {
                "schema": {
                  "type": "object",
                  "properties": {
                    "data": {
                      "type": "array",
                      "items": {
                        "$ref": "#/components/schemas/ApiModule"
                      }
                    }
                  },
                  "required": [
                    "data"
                  ]
                }
              }
            }
          },
          "401": {
            "description": "The API key is missing, malformed, invalid, or revoked",
            "headers": {
              "WWW-Authenticate": {
                "schema": {
                  "type": "string"
                }
              }
            },
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "429": {
            "description": "Too many requests",
            "headers": {
              "Retry-After": {
                "description": "Seconds until retry, when known",
                "schema": {
                  "type": "string"
                }
              }
            },
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "503": {
            "description": "The service is temporarily unavailable",
            "headers": {
              "Retry-After": {
                "description": "Suggested delay in seconds",
                "schema": {
                  "type": "string"
                }
              }
            },
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          }
        }
      }
    },
    "/v1/weather/current": {
      "get": {
        "summary": "Current conditions",
        "description": "In the US, the latest observation from the station nearest the location. Elsewhere, MET Norway's forecast for the current hour (`basis` says which).",
        "tags": [
          "Weather"
        ],
        "parameters": [
          {
            "schema": {
              "type": "number",
              "minimum": -90,
              "maximum": 90,
              "example": 40.015
            },
            "required": true,
            "name": "lat",
            "in": "query"
          },
          {
            "schema": {
              "type": "number",
              "minimum": -180,
              "maximum": 180,
              "example": -105.2705
            },
            "required": true,
            "name": "lon",
            "in": "query"
          },
          {
            "schema": {
              "type": "string",
              "enum": [
                "us",
                "si"
              ],
              "default": "us",
              "description": "`us`: °F, mph, inHg, mi. `si`: °C, km/h, hPa, km."
            },
            "required": false,
            "description": "`us`: °F, mph, inHg, mi. `si`: °C, km/h, hPa, km.",
            "name": "units",
            "in": "query"
          },
          {
            "schema": {
              "type": "string",
              "enum": [
                "nws",
                "metno"
              ],
              "description": "Force a provider instead of picking by location"
            },
            "required": false,
            "description": "Force a provider instead of picking by location",
            "name": "provider",
            "in": "query"
          }
        ],
        "responses": {
          "200": {
            "description": "Current conditions",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/CurrentConditions"
                }
              }
            }
          },
          "400": {
            "description": "The request was invalid",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "401": {
            "description": "The API key is missing, malformed, invalid, or revoked",
            "headers": {
              "WWW-Authenticate": {
                "schema": {
                  "type": "string"
                }
              }
            },
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "422": {
            "description": "The request was valid but could not be processed",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "429": {
            "description": "Too many requests",
            "headers": {
              "Retry-After": {
                "description": "Seconds until retry, when known",
                "schema": {
                  "type": "string"
                }
              }
            },
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "502": {
            "description": "An upstream provider failed",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "503": {
            "description": "The service is temporarily unavailable",
            "headers": {
              "Retry-After": {
                "description": "Suggested delay in seconds",
                "schema": {
                  "type": "string"
                }
              }
            },
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          }
        }
      }
    },
    "/v1/weather/forecast": {
      "get": {
        "summary": "Forecast",
        "description": "Twice-daily periods for about a week, or hourly periods with `hourly=true`. MET Norway's hourly periods cover about the next two and a half days, and its times are UTC: its day periods run 06:00–18:00 approximate local solar time.",
        "tags": [
          "Weather"
        ],
        "parameters": [
          {
            "schema": {
              "type": "number",
              "minimum": -90,
              "maximum": 90,
              "example": 40.015
            },
            "required": true,
            "name": "lat",
            "in": "query"
          },
          {
            "schema": {
              "type": "number",
              "minimum": -180,
              "maximum": 180,
              "example": -105.2705
            },
            "required": true,
            "name": "lon",
            "in": "query"
          },
          {
            "schema": {
              "type": "string",
              "enum": [
                "us",
                "si"
              ],
              "default": "us",
              "description": "`us`: °F, mph, inHg, mi. `si`: °C, km/h, hPa, km."
            },
            "required": false,
            "description": "`us`: °F, mph, inHg, mi. `si`: °C, km/h, hPa, km.",
            "name": "units",
            "in": "query"
          },
          {
            "schema": {
              "type": "string",
              "enum": [
                "nws",
                "metno"
              ],
              "description": "Force a provider instead of picking by location"
            },
            "required": false,
            "description": "Force a provider instead of picking by location",
            "name": "provider",
            "in": "query"
          },
          {
            "schema": {
              "type": "boolean",
              "default": false,
              "description": "Hourly periods instead of twice-daily ones"
            },
            "required": false,
            "description": "Hourly periods instead of twice-daily ones",
            "name": "hourly",
            "in": "query"
          }
        ],
        "responses": {
          "200": {
            "description": "Forecast periods",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Forecast"
                }
              }
            }
          },
          "400": {
            "description": "The request was invalid",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "401": {
            "description": "The API key is missing, malformed, invalid, or revoked",
            "headers": {
              "WWW-Authenticate": {
                "schema": {
                  "type": "string"
                }
              }
            },
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "422": {
            "description": "The request was valid but could not be processed",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "429": {
            "description": "Too many requests",
            "headers": {
              "Retry-After": {
                "description": "Seconds until retry, when known",
                "schema": {
                  "type": "string"
                }
              }
            },
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "502": {
            "description": "An upstream provider failed",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "503": {
            "description": "The service is temporarily unavailable",
            "headers": {
              "Retry-After": {
                "description": "Suggested delay in seconds",
                "schema": {
                  "type": "string"
                }
              }
            },
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          }
        }
      }
    },
    "/v1/weather/providers": {
      "get": {
        "summary": "List weather providers",
        "tags": [
          "Weather"
        ],
        "responses": {
          "200": {
            "description": "Registered providers in priority order",
            "content": {
              "application/json": {
                "schema": {
                  "type": "object",
                  "properties": {
                    "data": {
                      "type": "array",
                      "items": {
                        "type": "object",
                        "properties": {
                          "id": {
                            "type": "string"
                          },
                          "name": {
                            "type": "string"
                          },
                          "coverage": {
                            "type": "string"
                          },
                          "attribution": {
                            "type": [
                              "string",
                              "null"
                            ]
                          }
                        },
                        "required": [
                          "id",
                          "name",
                          "coverage",
                          "attribution"
                        ]
                      }
                    }
                  },
                  "required": [
                    "data"
                  ]
                }
              }
            }
          },
          "401": {
            "description": "The API key is missing, malformed, invalid, or revoked",
            "headers": {
              "WWW-Authenticate": {
                "schema": {
                  "type": "string"
                }
              }
            },
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "429": {
            "description": "Too many requests",
            "headers": {
              "Retry-After": {
                "description": "Seconds until retry, when known",
                "schema": {
                  "type": "string"
                }
              }
            },
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "503": {
            "description": "The service is temporarily unavailable",
            "headers": {
              "Retry-After": {
                "description": "Suggested delay in seconds",
                "schema": {
                  "type": "string"
                }
              }
            },
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          }
        }
      }
    },
    "/v1/remove-background": {
      "get": {
        "summary": "Remove the background from an image URL",
        "description": "Needs an API key ([create one for free](https://app.kamineko.dev/keys)). Counts as a render toward your monthly quota, and so do failed renders once you've used the month's allowance for them; see Rate limits and Monthly quotas.",
        "security": [
          {
            "ApiKey": []
          }
        ],
        "tags": [
          "Background Removal"
        ],
        "parameters": [
          {
            "schema": {
              "type": "string",
              "format": "uri",
              "example": "https://example.com/photo.jpg"
            },
            "required": true,
            "name": "url",
            "in": "query"
          },
          {
            "schema": {
              "type": "string",
              "enum": [
                "png",
                "webp",
                "avif"
              ],
              "default": "png",
              "description": "Output format (all keep transparency)"
            },
            "required": false,
            "description": "Output format (all keep transparency)",
            "name": "format",
            "in": "query"
          }
        ],
        "responses": {
          "200": {
            "description": "The image with its background replaced by transparent pixels",
            "content": {
              "image/png": {
                "schema": {
                  "type": "string",
                  "format": "binary"
                }
              },
              "image/webp": {
                "schema": {
                  "type": "string",
                  "format": "binary"
                }
              },
              "image/avif": {
                "schema": {
                  "type": "string",
                  "format": "binary"
                }
              }
            }
          },
          "400": {
            "description": "The request was invalid",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "401": {
            "description": "The API key is missing, malformed, invalid, or revoked",
            "headers": {
              "WWW-Authenticate": {
                "schema": {
                  "type": "string"
                }
              }
            },
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "413": {
            "description": "The payload is too large",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "415": {
            "description": "Unsupported media type",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "422": {
            "description": "The request was valid but could not be processed",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "429": {
            "description": "Too many requests",
            "headers": {
              "Retry-After": {
                "description": "Seconds until retry, when known",
                "schema": {
                  "type": "string"
                }
              }
            },
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "502": {
            "description": "An upstream provider failed",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "503": {
            "description": "The service is temporarily unavailable",
            "headers": {
              "Retry-After": {
                "description": "Suggested delay in seconds",
                "schema": {
                  "type": "string"
                }
              }
            },
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          }
        }
      },
      "post": {
        "summary": "Remove the background from an uploaded image",
        "description": "Send the image as `multipart/form-data` in an `image` field, or as the raw request body with an `image/*` Content-Type. Max 20 MB.\n\nNeeds an API key ([create one for free](https://app.kamineko.dev/keys)). Counts as a render toward your monthly quota, and so do failed renders once you've used the month's allowance for them; see Rate limits and Monthly quotas.",
        "security": [
          {
            "ApiKey": []
          }
        ],
        "tags": [
          "Background Removal"
        ],
        "parameters": [
          {
            "schema": {
              "type": "string",
              "enum": [
                "png",
                "webp",
                "avif"
              ],
              "default": "png",
              "description": "Output format (all keep transparency)"
            },
            "required": false,
            "description": "Output format (all keep transparency)",
            "name": "format",
            "in": "query"
          }
        ],
        "requestBody": {
          "content": {
            "multipart/form-data": {
              "schema": {
                "type": "object",
                "properties": {
                  "image": {
                    "type": "string",
                    "format": "binary"
                  }
                },
                "required": [
                  "image"
                ]
              }
            },
            "image/*": {
              "schema": {
                "type": "string",
                "format": "binary"
              }
            }
          }
        },
        "responses": {
          "200": {
            "description": "The image with its background replaced by transparent pixels",
            "content": {
              "image/png": {
                "schema": {
                  "type": "string",
                  "format": "binary"
                }
              },
              "image/webp": {
                "schema": {
                  "type": "string",
                  "format": "binary"
                }
              },
              "image/avif": {
                "schema": {
                  "type": "string",
                  "format": "binary"
                }
              }
            }
          },
          "400": {
            "description": "The request was invalid",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "401": {
            "description": "The API key is missing, malformed, invalid, or revoked",
            "headers": {
              "WWW-Authenticate": {
                "schema": {
                  "type": "string"
                }
              }
            },
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "413": {
            "description": "The payload is too large",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "415": {
            "description": "Unsupported media type",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "422": {
            "description": "The request was valid but could not be processed",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "429": {
            "description": "Too many requests",
            "headers": {
              "Retry-After": {
                "description": "Seconds until retry, when known",
                "schema": {
                  "type": "string"
                }
              }
            },
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "502": {
            "description": "An upstream provider failed",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "503": {
            "description": "The service is temporarily unavailable",
            "headers": {
              "Retry-After": {
                "description": "Suggested delay in seconds",
                "schema": {
                  "type": "string"
                }
              }
            },
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          }
        }
      }
    },
    "/v1/convert": {
      "get": {
        "summary": "Convert a value between units",
        "description": "Units are matched by id, name, or alias (`km`, `kilometer`, `kilometre`). Exact matches are case-sensitive so `MB` (megabyte) and `Mb` (megabit) stay distinct. Bits are matched only by a spelled-out id (`kbit`, `megabit`) or a capitalized prefix (`Kb`, `Mb`, `Gib`); ambiguous lowercase spellings such as `b`, `kb`, `mb`, and `gb` mean bytes.",
        "tags": [
          "Conversion"
        ],
        "parameters": [
          {
            "schema": {
              "type": "number",
              "example": 10
            },
            "required": true,
            "name": "value",
            "in": "query"
          },
          {
            "schema": {
              "type": "string",
              "minLength": 1,
              "example": "km"
            },
            "required": true,
            "name": "from",
            "in": "query"
          },
          {
            "schema": {
              "type": "string",
              "minLength": 1,
              "example": "mi"
            },
            "required": true,
            "name": "to",
            "in": "query"
          },
          {
            "schema": {
              "type": "integer",
              "minimum": 0,
              "maximum": 15,
              "description": "Round the result to this many decimal places"
            },
            "required": false,
            "description": "Round the result to this many decimal places",
            "name": "decimals",
            "in": "query"
          }
        ],
        "responses": {
          "200": {
            "description": "The converted value",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Conversion"
                }
              }
            }
          },
          "400": {
            "description": "The request was invalid",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "401": {
            "description": "The API key is missing, malformed, invalid, or revoked",
            "headers": {
              "WWW-Authenticate": {
                "schema": {
                  "type": "string"
                }
              }
            },
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "429": {
            "description": "Too many requests",
            "headers": {
              "Retry-After": {
                "description": "Seconds until retry, when known",
                "schema": {
                  "type": "string"
                }
              }
            },
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "503": {
            "description": "The service is temporarily unavailable",
            "headers": {
              "Retry-After": {
                "description": "Suggested delay in seconds",
                "schema": {
                  "type": "string"
                }
              }
            },
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          }
        }
      }
    },
    "/v1/convert/units": {
      "get": {
        "summary": "List supported units",
        "tags": [
          "Conversion"
        ],
        "responses": {
          "200": {
            "description": "Supported units grouped by category",
            "content": {
              "application/json": {
                "schema": {
                  "type": "object",
                  "properties": {
                    "data": {
                      "type": "array",
                      "items": {
                        "type": "object",
                        "properties": {
                          "id": {
                            "type": "string"
                          },
                          "name": {
                            "type": "string"
                          },
                          "base": {
                            "type": "string"
                          },
                          "units": {
                            "type": "array",
                            "items": {
                              "type": "object",
                              "properties": {
                                "id": {
                                  "type": "string",
                                  "example": "km"
                                },
                                "name": {
                                  "type": "string",
                                  "example": "kilometer"
                                },
                                "aliases": {
                                  "type": "array",
                                  "items": {
                                    "type": "string"
                                  }
                                }
                              },
                              "required": [
                                "id",
                                "name",
                                "aliases"
                              ]
                            }
                          }
                        },
                        "required": [
                          "id",
                          "name",
                          "base",
                          "units"
                        ]
                      }
                    }
                  },
                  "required": [
                    "data"
                  ]
                }
              }
            }
          },
          "401": {
            "description": "The API key is missing, malformed, invalid, or revoked",
            "headers": {
              "WWW-Authenticate": {
                "schema": {
                  "type": "string"
                }
              }
            },
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "429": {
            "description": "Too many requests",
            "headers": {
              "Retry-After": {
                "description": "Seconds until retry, when known",
                "schema": {
                  "type": "string"
                }
              }
            },
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "503": {
            "description": "The service is temporarily unavailable",
            "headers": {
              "Retry-After": {
                "description": "Suggested delay in seconds",
                "schema": {
                  "type": "string"
                }
              }
            },
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          }
        }
      }
    },
    "/v1/convert/data": {
      "post": {
        "summary": "Convert a document between JSON, YAML, TOML, and CSV",
        "description": "Send the document as text in `input`. `from` and `to` can match, to reformat one. YAML is read as YAML 1.2, so `yes` and `no` stay strings, and written with strings like those quoted so YAML 1.1 readers agree. YAML merge keys (`<<`) work; send one YAML document at a time. TOML needs a table at the top level and has no null. TOML dates and times become strings in other formats. CSV follows RFC 4180. With `header`, each row is read as an object keyed by the first row; fields stay text unless `inferTypes` is set. Written, a list of objects becomes rows under the union of their keys, and nested values are written as JSON. JSON and CSV have no Infinity or NaN. Numbers are 64-bit floats, so integers past 2^53 lose precision, except in TOML, which refuses them. The request can be up to 512 KB, the output up to 4 MB, and YAML output up to 200,000 values. Input that can't be read, or data the target format can't hold, gets a 422 that says why and where. Large conversions can count as several requests (see Monthly quotas).",
        "tags": [
          "Conversion"
        ],
        "requestBody": {
          "required": true,
          "content": {
            "application/json": {
              "schema": {
                "$ref": "#/components/schemas/DataConversionRequest"
              }
            }
          }
        },
        "responses": {
          "200": {
            "description": "The converted document",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/DataConversion"
                }
              }
            }
          },
          "400": {
            "description": "The request was invalid",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "401": {
            "description": "The API key is missing, malformed, invalid, or revoked",
            "headers": {
              "WWW-Authenticate": {
                "schema": {
                  "type": "string"
                }
              }
            },
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "413": {
            "description": "The payload is too large",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "422": {
            "description": "The request was valid but could not be processed",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "429": {
            "description": "Too many requests",
            "headers": {
              "Retry-After": {
                "description": "Seconds until retry, when known",
                "schema": {
                  "type": "string"
                }
              }
            },
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "503": {
            "description": "The service is temporarily unavailable",
            "headers": {
              "Retry-After": {
                "description": "Suggested delay in seconds",
                "schema": {
                  "type": "string"
                }
              }
            },
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          }
        }
      }
    },
    "/v1/color": {
      "get": {
        "summary": "Convert a color to every format",
        "description": "Reads any CSS color and returns it as hex, RGB, HSL, HWB, Lab, LCh, OKLab, OKLCh, and Display P3, both as numbers and as CSS strings.\n\n`value` takes hex (`#ff6347`, `ff6347`, `#f64`, `#ff634780`), the 148 CSS color names and `transparent`, or a CSS function: `rgb()`, `hsl()`, `hwb()`, `lab()`, `lch()`, `oklab()`, `oklch()`, or `color()` (`srgb`, `display-p3`, `rec2020`, and the rest). In a query string, write `#` as `%23` or leave it out.\n\nColors outside sRGB, like a vivid `oklch()`, are gamut mapped the way CSS Color 4 says browsers should, by lowering chroma until they fit. `gamut` says when that happened.",
        "tags": [
          "Color"
        ],
        "parameters": [
          {
            "schema": {
              "type": "string",
              "minLength": 1,
              "maxLength": 128,
              "example": "tomato",
              "description": "Any CSS color"
            },
            "required": true,
            "description": "Any CSS color",
            "name": "value",
            "in": "query"
          }
        ],
        "responses": {
          "200": {
            "description": "The color in every format",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Color"
                }
              }
            }
          },
          "400": {
            "description": "The request was invalid",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "401": {
            "description": "The API key is missing, malformed, invalid, or revoked",
            "headers": {
              "WWW-Authenticate": {
                "schema": {
                  "type": "string"
                }
              }
            },
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "429": {
            "description": "Too many requests",
            "headers": {
              "Retry-After": {
                "description": "Seconds until retry, when known",
                "schema": {
                  "type": "string"
                }
              }
            },
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "503": {
            "description": "The service is temporarily unavailable",
            "headers": {
              "Retry-After": {
                "description": "Suggested delay in seconds",
                "schema": {
                  "type": "string"
                }
              }
            },
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          }
        }
      }
    },
    "/v1/color/contrast": {
      "get": {
        "summary": "Check contrast against WCAG",
        "description": "The WCAG 2 contrast ratio between two colors, and which success criteria it meets: 1.4.3 and 1.4.6 for text, 1.4.11 for everything else.\n\nBoth take any CSS color, as `GET /v1/color` does. A translucent foreground is blended over the background first. The background must be opaque.",
        "tags": [
          "Color"
        ],
        "parameters": [
          {
            "schema": {
              "type": "string",
              "minLength": 1,
              "maxLength": 128,
              "example": "#777",
              "description": "Text or icon color"
            },
            "required": true,
            "description": "Text or icon color",
            "name": "foreground",
            "in": "query"
          },
          {
            "schema": {
              "type": "string",
              "minLength": 1,
              "maxLength": 128,
              "example": "white",
              "description": "The color behind it"
            },
            "required": true,
            "description": "The color behind it",
            "name": "background",
            "in": "query"
          }
        ],
        "responses": {
          "200": {
            "description": "The contrast ratio and the levels it passes",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Contrast"
                }
              }
            }
          },
          "400": {
            "description": "The request was invalid",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "401": {
            "description": "The API key is missing, malformed, invalid, or revoked",
            "headers": {
              "WWW-Authenticate": {
                "schema": {
                  "type": "string"
                }
              }
            },
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "429": {
            "description": "Too many requests",
            "headers": {
              "Retry-After": {
                "description": "Seconds until retry, when known",
                "schema": {
                  "type": "string"
                }
              }
            },
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "503": {
            "description": "The service is temporarily unavailable",
            "headers": {
              "Retry-After": {
                "description": "Suggested delay in seconds",
                "schema": {
                  "type": "string"
                }
              }
            },
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          }
        }
      }
    },
    "/v1/color/harmony": {
      "get": {
        "summary": "Color harmonies",
        "description": "Colors that go with this one, found by turning its hue around the color wheel while keeping its lightness and chroma. The first color is always the one you sent.\n\n- `complementary`: 0°, 180°\n- `analogous`: 0°, 30°, 330°\n- `split-complementary`: 0°, 150°, 210°\n- `triadic`: 0°, 120°, 240°\n- `tetradic`: 0°, 60°, 180°, 240°\n- `square`: 0°, 90°, 180°, 270°\n\nPalettes are computed in OKLCh, where lightness matches what the eye sees. They start from the color as an sRGB screen shows it, ignore alpha, and only return colors that fit sRGB. Where a turned color doesn't fit, it's gamut mapped the way CSS does it: it loses chroma, and its lightness and hue barely move. Because the wheel is OKLCh's, the colors differ from an HSL or painter's wheel. Grays have no hue, so their harmonies are the same gray.",
        "tags": [
          "Color"
        ],
        "parameters": [
          {
            "schema": {
              "type": "string",
              "minLength": 1,
              "maxLength": 128,
              "example": "tomato",
              "description": "Any CSS color"
            },
            "required": true,
            "description": "Any CSS color",
            "name": "value",
            "in": "query"
          },
          {
            "schema": {
              "type": "string",
              "enum": [
                "complementary",
                "analogous",
                "split-complementary",
                "triadic",
                "tetradic",
                "square"
              ],
              "default": "complementary"
            },
            "required": false,
            "name": "scheme",
            "in": "query"
          }
        ],
        "responses": {
          "200": {
            "description": "The colors of the harmony, starting with the one you sent",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Harmony"
                }
              }
            }
          },
          "400": {
            "description": "The request was invalid",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "401": {
            "description": "The API key is missing, malformed, invalid, or revoked",
            "headers": {
              "WWW-Authenticate": {
                "schema": {
                  "type": "string"
                }
              }
            },
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "429": {
            "description": "Too many requests",
            "headers": {
              "Retry-After": {
                "description": "Seconds until retry, when known",
                "schema": {
                  "type": "string"
                }
              }
            },
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "503": {
            "description": "The service is temporarily unavailable",
            "headers": {
              "Retry-After": {
                "description": "Suggested delay in seconds",
                "schema": {
                  "type": "string"
                }
              }
            },
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          }
        }
      }
    },
    "/v1/color/shades": {
      "get": {
        "summary": "Tints and shades",
        "description": "Lighter and darker versions of a color, for hover states, borders, and backgrounds. Tints mix it with white and shades with black, like CSS `color-mix(in oklch, …)`: lightness moves toward white or black, chroma fades, and the hue stays.\n\n`steps` of each come back, evenly spaced and closest to the color first. They never reach white or black: with `steps=4`, the mixes are 20%, 40%, 60%, and 80%.\n\nPalettes are computed in OKLCh, where lightness matches what the eye sees. They start from the color as an sRGB screen shows it, ignore alpha, and only return colors that fit sRGB.",
        "tags": [
          "Color"
        ],
        "parameters": [
          {
            "schema": {
              "type": "string",
              "minLength": 1,
              "maxLength": 128,
              "example": "tomato",
              "description": "Any CSS color"
            },
            "required": true,
            "description": "Any CSS color",
            "name": "value",
            "in": "query"
          },
          {
            "schema": {
              "type": "integer",
              "minimum": 1,
              "maximum": 10,
              "default": 5,
              "description": "How many tints and how many shades (1–10)"
            },
            "required": false,
            "description": "How many tints and how many shades (1–10)",
            "name": "steps",
            "in": "query"
          }
        ],
        "responses": {
          "200": {
            "description": "The color, its tints, and its shades",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/TintsAndShades"
                }
              }
            }
          },
          "400": {
            "description": "The request was invalid",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "401": {
            "description": "The API key is missing, malformed, invalid, or revoked",
            "headers": {
              "WWW-Authenticate": {
                "schema": {
                  "type": "string"
                }
              }
            },
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "429": {
            "description": "Too many requests",
            "headers": {
              "Retry-After": {
                "description": "Seconds until retry, when known",
                "schema": {
                  "type": "string"
                }
              }
            },
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "503": {
            "description": "The service is temporarily unavailable",
            "headers": {
              "Retry-After": {
                "description": "Suggested delay in seconds",
                "schema": {
                  "type": "string"
                }
              }
            },
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          }
        }
      }
    },
    "/v1/color/scale": {
      "get": {
        "summary": "Color scale (50–950)",
        "description": "A full scale of one hue from light to dark, in steps named 50, 100, 200, and so on to 900 and 950, the way Tailwind CSS and many design systems name them. Each step comes with its contrast against white and black, for picking text colors.\n\nThe color lands on the step closest to its lightness, unchanged, and `baseStep` says which. Pass `step` to put it somewhere else, like `step=500` for a brand color. The other steps are spaced around it.\n\nPalettes are computed in OKLCh, where lightness matches what the eye sees. They start from the color as an sRGB screen shows it, ignore alpha, and only return colors that fit sRGB. The hue stays the same on every step. Each step keeps the color's chroma where sRGB can show it at that lightness, and fades toward the light and dark ends, so no step is more saturated than the color.",
        "tags": [
          "Color"
        ],
        "parameters": [
          {
            "schema": {
              "type": "string",
              "minLength": 1,
              "maxLength": 128,
              "example": "tomato",
              "description": "Any CSS color"
            },
            "required": true,
            "description": "Any CSS color",
            "name": "value",
            "in": "query"
          },
          {
            "schema": {
              "type": "string",
              "enum": [
                "50",
                "100",
                "200",
                "300",
                "400",
                "500",
                "600",
                "700",
                "800",
                "900",
                "950"
              ],
              "description": "The step to put the color on. Defaults to the one closest to its lightness."
            },
            "required": false,
            "description": "The step to put the color on. Defaults to the one closest to its lightness.",
            "name": "step",
            "in": "query"
          }
        ],
        "responses": {
          "200": {
            "description": "Eleven steps, lightest first",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ColorScale"
                }
              }
            }
          },
          "400": {
            "description": "The request was invalid",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "401": {
            "description": "The API key is missing, malformed, invalid, or revoked",
            "headers": {
              "WWW-Authenticate": {
                "schema": {
                  "type": "string"
                }
              }
            },
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "429": {
            "description": "Too many requests",
            "headers": {
              "Retry-After": {
                "description": "Seconds until retry, when known",
                "schema": {
                  "type": "string"
                }
              }
            },
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "503": {
            "description": "The service is temporarily unavailable",
            "headers": {
              "Retry-After": {
                "description": "Suggested delay in seconds",
                "schema": {
                  "type": "string"
                }
              }
            },
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          }
        }
      }
    },
    "/v1/lorem": {
      "get": {
        "summary": "Generate placeholder text",
        "description": "Flavors: `classic`, `cat`, `pirate`, `corporate`, `cosmic`. Use `format=text` or `format=html` to get the text without a JSON wrapper.",
        "tags": [
          "Lorem Ipsum"
        ],
        "parameters": [
          {
            "schema": {
              "type": "string",
              "enum": [
                "classic",
                "cat",
                "pirate",
                "corporate",
                "cosmic"
              ],
              "default": "classic",
              "example": "cat"
            },
            "required": false,
            "name": "flavor",
            "in": "query"
          },
          {
            "schema": {
              "type": "string",
              "enum": [
                "paragraphs",
                "sentences",
                "words"
              ],
              "default": "paragraphs"
            },
            "required": false,
            "name": "unit",
            "in": "query"
          },
          {
            "schema": {
              "type": "integer",
              "minimum": 1,
              "maximum": 100,
              "default": 3,
              "description": "How many paragraphs, sentences, or words"
            },
            "required": false,
            "description": "How many paragraphs, sentences, or words",
            "name": "count",
            "in": "query"
          },
          {
            "schema": {
              "type": "boolean",
              "default": true,
              "description": "Begin with the flavor's signature opener, like \"Lorem ipsum dolor sit amet\""
            },
            "required": false,
            "description": "Begin with the flavor's signature opener, like \"Lorem ipsum dolor sit amet\"",
            "name": "startWithOpener",
            "in": "query"
          },
          {
            "schema": {
              "type": "string",
              "enum": [
                "json",
                "text",
                "html"
              ],
              "default": "json"
            },
            "required": false,
            "name": "format",
            "in": "query"
          },
          {
            "schema": {
              "type": "integer",
              "minimum": 0,
              "description": "Same seed, same text"
            },
            "required": false,
            "description": "Same seed, same text",
            "name": "seed",
            "in": "query"
          }
        ],
        "responses": {
          "200": {
            "description": "Generated text",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Lorem"
                }
              },
              "text/plain": {
                "schema": {
                  "type": "string"
                }
              },
              "text/html": {
                "schema": {
                  "type": "string"
                }
              }
            }
          },
          "400": {
            "description": "The request was invalid",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "401": {
            "description": "The API key is missing, malformed, invalid, or revoked",
            "headers": {
              "WWW-Authenticate": {
                "schema": {
                  "type": "string"
                }
              }
            },
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "429": {
            "description": "Too many requests",
            "headers": {
              "Retry-After": {
                "description": "Seconds until retry, when known",
                "schema": {
                  "type": "string"
                }
              }
            },
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "503": {
            "description": "The service is temporarily unavailable",
            "headers": {
              "Retry-After": {
                "description": "Suggested delay in seconds",
                "schema": {
                  "type": "string"
                }
              }
            },
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          }
        }
      }
    },
    "/v1/lorem/flavors": {
      "get": {
        "summary": "List text flavors",
        "tags": [
          "Lorem Ipsum"
        ],
        "responses": {
          "200": {
            "description": "Available flavors",
            "content": {
              "application/json": {
                "schema": {
                  "type": "object",
                  "properties": {
                    "data": {
                      "type": "array",
                      "items": {
                        "type": "object",
                        "properties": {
                          "id": {
                            "type": "string"
                          },
                          "name": {
                            "type": "string"
                          },
                          "description": {
                            "type": "string"
                          },
                          "opener": {
                            "type": "string"
                          }
                        },
                        "required": [
                          "id",
                          "name",
                          "description",
                          "opener"
                        ]
                      }
                    }
                  },
                  "required": [
                    "data"
                  ]
                }
              }
            }
          },
          "401": {
            "description": "The API key is missing, malformed, invalid, or revoked",
            "headers": {
              "WWW-Authenticate": {
                "schema": {
                  "type": "string"
                }
              }
            },
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "429": {
            "description": "Too many requests",
            "headers": {
              "Retry-After": {
                "description": "Seconds until retry, when known",
                "schema": {
                  "type": "string"
                }
              }
            },
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "503": {
            "description": "The service is temporarily unavailable",
            "headers": {
              "Retry-After": {
                "description": "Suggested delay in seconds",
                "schema": {
                  "type": "string"
                }
              }
            },
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          }
        }
      }
    },
    "/v1/fake-data": {
      "post": {
        "summary": "Generate data matching a JSON Schema",
        "description": "Supports types, `enum`, `const`, `examples`, string `format`s (email, uri, uuid, date-time, date, time, ipv4, ipv6, hostname), numeric bounds, `multipleOf`, string and array lengths, `uniqueItems`, `oneOf`/`anyOf`/`allOf`, and local `$ref`. Property names such as `email`, `firstName`, `city` and `createdAt` produce realistic values. Unsupported constraints such as `pattern` return 422, as do combinations the generator cannot satisfy within its work limits. `minLength` goes up to 10,000, arrays up to 50 items, and a response up to about 5 MB. Responses with thousands of values count as several requests (see Monthly quotas). Set `format` to get the documents as CSV, SQL INSERT statements (one per document, nested values as JSON text), or a TypeScript file instead of JSON.",
        "tags": [
          "Fake Data"
        ],
        "requestBody": {
          "required": true,
          "content": {
            "application/json": {
              "schema": {
                "$ref": "#/components/schemas/FakeDataRequest"
              }
            }
          }
        },
        "responses": {
          "200": {
            "description": "Generated documents",
            "content": {
              "application/json": {
                "schema": {
                  "anyOf": [
                    {
                      "type": "object",
                      "properties": {
                        "data": {
                          "type": "array",
                          "items": {}
                        },
                        "seed": {
                          "type": "integer",
                          "description": "The seed used; pass it back to reproduce this output"
                        }
                      },
                      "required": [
                        "data",
                        "seed"
                      ]
                    },
                    {
                      "type": "object",
                      "properties": {
                        "format": {
                          "type": "string",
                          "enum": [
                            "csv",
                            "sql",
                            "typescript"
                          ]
                        },
                        "output": {
                          "type": "string",
                          "description": "The documents as text in that format"
                        },
                        "seed": {
                          "type": "integer",
                          "description": "The seed used; pass it back to reproduce this output"
                        }
                      },
                      "required": [
                        "format",
                        "output",
                        "seed"
                      ]
                    }
                  ]
                }
              }
            }
          },
          "400": {
            "description": "The request was invalid",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "401": {
            "description": "The API key is missing, malformed, invalid, or revoked",
            "headers": {
              "WWW-Authenticate": {
                "schema": {
                  "type": "string"
                }
              }
            },
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "413": {
            "description": "The payload is too large",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "422": {
            "description": "The request was valid but could not be processed",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "429": {
            "description": "Too many requests",
            "headers": {
              "Retry-After": {
                "description": "Seconds until retry, when known",
                "schema": {
                  "type": "string"
                }
              }
            },
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "503": {
            "description": "The service is temporarily unavailable",
            "headers": {
              "Retry-After": {
                "description": "Suggested delay in seconds",
                "schema": {
                  "type": "string"
                }
              }
            },
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          }
        }
      }
    },
    "/v1/screenshot": {
      "get": {
        "summary": "Screenshot a web page",
        "description": "Needs an API key ([create one for free](https://app.kamineko.dev/keys)). Counts as a render toward your monthly quota, and so do failed renders once you've used the month's allowance for them; see Rate limits and Monthly quotas. Pages get 15 seconds to load and render, including `delay`.",
        "security": [
          {
            "ApiKey": []
          }
        ],
        "tags": [
          "Screenshots"
        ],
        "parameters": [
          {
            "schema": {
              "type": "string",
              "format": "uri",
              "example": "https://example.com"
            },
            "required": true,
            "name": "url",
            "in": "query"
          },
          {
            "schema": {
              "type": "integer",
              "minimum": 320,
              "maximum": 3840,
              "default": 1280,
              "description": "Viewport width in CSS pixels"
            },
            "required": false,
            "description": "Viewport width in CSS pixels",
            "name": "width",
            "in": "query"
          },
          {
            "schema": {
              "type": "integer",
              "minimum": 240,
              "maximum": 2160,
              "default": 800,
              "description": "Viewport height in CSS pixels"
            },
            "required": false,
            "description": "Viewport height in CSS pixels",
            "name": "height",
            "in": "query"
          },
          {
            "schema": {
              "type": "number",
              "minimum": 1,
              "maximum": 3,
              "default": 1,
              "description": "Device scale factor (2 for retina)"
            },
            "required": false,
            "description": "Device scale factor (2 for retina)",
            "name": "scale",
            "in": "query"
          },
          {
            "schema": {
              "type": "boolean",
              "description": "Capture the whole scrollable page"
            },
            "required": false,
            "description": "Capture the whole scrollable page",
            "name": "fullPage",
            "in": "query"
          },
          {
            "schema": {
              "type": "string",
              "enum": [
                "png",
                "jpeg",
                "webp"
              ],
              "default": "png"
            },
            "required": false,
            "name": "format",
            "in": "query"
          },
          {
            "schema": {
              "type": "integer",
              "minimum": 1,
              "maximum": 100,
              "description": "JPEG/WebP quality"
            },
            "required": false,
            "description": "JPEG/WebP quality",
            "name": "quality",
            "in": "query"
          },
          {
            "schema": {
              "type": "string",
              "maxLength": 500,
              "description": "Screenshot only the first element matching this CSS selector"
            },
            "required": false,
            "description": "Screenshot only the first element matching this CSS selector",
            "name": "selector",
            "in": "query"
          },
          {
            "schema": {
              "type": "string",
              "enum": [
                "load",
                "domcontentloaded",
                "networkidle0",
                "networkidle2"
              ],
              "default": "load"
            },
            "required": false,
            "name": "waitUntil",
            "in": "query"
          },
          {
            "schema": {
              "type": "integer",
              "minimum": 0,
              "maximum": 10000,
              "default": 0,
              "description": "Extra wait after load, in ms. Counts toward the 15 seconds a render gets"
            },
            "required": false,
            "description": "Extra wait after load, in ms. Counts toward the 15 seconds a render gets",
            "name": "delay",
            "in": "query"
          }
        ],
        "responses": {
          "200": {
            "description": "The screenshot",
            "content": {
              "image/png": {
                "schema": {
                  "type": "string",
                  "format": "binary"
                }
              },
              "image/jpeg": {
                "schema": {
                  "type": "string",
                  "format": "binary"
                }
              },
              "image/webp": {
                "schema": {
                  "type": "string",
                  "format": "binary"
                }
              }
            }
          },
          "400": {
            "description": "The request was invalid",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "401": {
            "description": "The API key is missing, malformed, invalid, or revoked",
            "headers": {
              "WWW-Authenticate": {
                "schema": {
                  "type": "string"
                }
              }
            },
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "413": {
            "description": "The payload is too large",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "422": {
            "description": "The request was valid but could not be processed",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "429": {
            "description": "Too many requests",
            "headers": {
              "Retry-After": {
                "description": "Seconds until retry, when known",
                "schema": {
                  "type": "string"
                }
              }
            },
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "502": {
            "description": "An upstream provider failed",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "503": {
            "description": "The service is temporarily unavailable",
            "headers": {
              "Retry-After": {
                "description": "Suggested delay in seconds",
                "schema": {
                  "type": "string"
                }
              }
            },
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          }
        }
      },
      "post": {
        "summary": "Screenshot a URL or raw HTML",
        "description": "Needs an API key ([create one for free](https://app.kamineko.dev/keys)). Counts as a render toward your monthly quota, and so do failed renders once you've used the month's allowance for them; see Rate limits and Monthly quotas. Pages get 15 seconds to load and render, including `delay`.",
        "security": [
          {
            "ApiKey": []
          }
        ],
        "tags": [
          "Screenshots"
        ],
        "requestBody": {
          "required": true,
          "content": {
            "application/json": {
              "schema": {
                "$ref": "#/components/schemas/ScreenshotRequest"
              }
            }
          }
        },
        "responses": {
          "200": {
            "description": "The screenshot",
            "content": {
              "image/png": {
                "schema": {
                  "type": "string",
                  "format": "binary"
                }
              },
              "image/jpeg": {
                "schema": {
                  "type": "string",
                  "format": "binary"
                }
              },
              "image/webp": {
                "schema": {
                  "type": "string",
                  "format": "binary"
                }
              }
            }
          },
          "400": {
            "description": "The request was invalid",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "401": {
            "description": "The API key is missing, malformed, invalid, or revoked",
            "headers": {
              "WWW-Authenticate": {
                "schema": {
                  "type": "string"
                }
              }
            },
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "413": {
            "description": "The payload is too large",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "422": {
            "description": "The request was valid but could not be processed",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "429": {
            "description": "Too many requests",
            "headers": {
              "Retry-After": {
                "description": "Seconds until retry, when known",
                "schema": {
                  "type": "string"
                }
              }
            },
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "502": {
            "description": "An upstream provider failed",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "503": {
            "description": "The service is temporarily unavailable",
            "headers": {
              "Retry-After": {
                "description": "Suggested delay in seconds",
                "schema": {
                  "type": "string"
                }
              }
            },
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          }
        }
      }
    },
    "/v1/pdf": {
      "get": {
        "summary": "Print a web page to PDF",
        "description": "Needs an API key ([create one for free](https://app.kamineko.dev/keys)). Counts as a render toward your monthly quota, and so do failed renders once you've used the month's allowance for them; see Rate limits and Monthly quotas. Pages get 15 seconds to load and render, including `delay`.",
        "security": [
          {
            "ApiKey": []
          }
        ],
        "tags": [
          "PDF"
        ],
        "parameters": [
          {
            "schema": {
              "type": "string",
              "format": "uri",
              "example": "https://example.com"
            },
            "required": true,
            "name": "url",
            "in": "query"
          },
          {
            "schema": {
              "type": "string",
              "enum": [
                "letter",
                "legal",
                "tabloid",
                "ledger",
                "a0",
                "a1",
                "a2",
                "a3",
                "a4",
                "a5",
                "a6"
              ],
              "default": "letter",
              "description": "Paper size"
            },
            "required": false,
            "description": "Paper size",
            "name": "paper",
            "in": "query"
          },
          {
            "schema": {
              "type": "boolean",
              "default": false,
              "description": "Turn the paper sideways"
            },
            "required": false,
            "description": "Turn the paper sideways",
            "name": "landscape",
            "in": "query"
          },
          {
            "schema": {
              "type": "boolean",
              "default": true,
              "description": "Print background colors and images"
            },
            "required": false,
            "description": "Print background colors and images",
            "name": "printBackground",
            "in": "query"
          },
          {
            "schema": {
              "type": "number",
              "minimum": 0.1,
              "maximum": 2,
              "default": 1,
              "description": "Scale of the page's content (0.1–2)"
            },
            "required": false,
            "description": "Scale of the page's content (0.1–2)",
            "name": "scale",
            "in": "query"
          },
          {
            "schema": {
              "type": "string",
              "pattern": "^\\d{1,3}(\\.\\d{1,2})?(px|in|cm|mm)$",
              "description": "Margin on every side of each page, in `px`, `in`, `cm` or `mm`",
              "example": "1cm"
            },
            "required": false,
            "description": "Margin on every side of each page, in `px`, `in`, `cm` or `mm`",
            "name": "margin",
            "in": "query"
          },
          {
            "schema": {
              "type": "string",
              "maxLength": 100,
              "pattern": "^\\s*\\d+\\s*(-\\s*\\d+\\s*)?(,\\s*\\d+\\s*(-\\s*\\d+\\s*)?)*$",
              "description": "Only these pages, like `1-3, 5`",
              "example": "1-3, 5"
            },
            "required": false,
            "description": "Only these pages, like `1-3, 5`",
            "name": "pageRanges",
            "in": "query"
          },
          {
            "schema": {
              "type": "string",
              "enum": [
                "print",
                "screen"
              ],
              "default": "print",
              "description": "Lay the page out with its print styles or its screen styles"
            },
            "required": false,
            "description": "Lay the page out with its print styles or its screen styles",
            "name": "media",
            "in": "query"
          },
          {
            "schema": {
              "type": "boolean",
              "default": false,
              "description": "Use the page size from the page's CSS `@page` rule instead of `paper`"
            },
            "required": false,
            "description": "Use the page size from the page's CSS `@page` rule instead of `paper`",
            "name": "cssPageSize",
            "in": "query"
          },
          {
            "schema": {
              "type": "string",
              "enum": [
                "load",
                "domcontentloaded",
                "networkidle0",
                "networkidle2"
              ],
              "default": "load"
            },
            "required": false,
            "name": "waitUntil",
            "in": "query"
          },
          {
            "schema": {
              "type": "integer",
              "minimum": 0,
              "maximum": 10000,
              "default": 0,
              "description": "Extra wait after load, in ms. Counts toward the 15 seconds a render gets"
            },
            "required": false,
            "description": "Extra wait after load, in ms. Counts toward the 15 seconds a render gets",
            "name": "delay",
            "in": "query"
          }
        ],
        "responses": {
          "200": {
            "description": "The PDF",
            "content": {
              "application/pdf": {
                "schema": {
                  "type": "string",
                  "format": "binary"
                }
              }
            }
          },
          "400": {
            "description": "The request was invalid",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "401": {
            "description": "The API key is missing, malformed, invalid, or revoked",
            "headers": {
              "WWW-Authenticate": {
                "schema": {
                  "type": "string"
                }
              }
            },
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "413": {
            "description": "The payload is too large",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "422": {
            "description": "The request was valid but could not be processed",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "429": {
            "description": "Too many requests",
            "headers": {
              "Retry-After": {
                "description": "Seconds until retry, when known",
                "schema": {
                  "type": "string"
                }
              }
            },
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "502": {
            "description": "An upstream provider failed",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "503": {
            "description": "The service is temporarily unavailable",
            "headers": {
              "Retry-After": {
                "description": "Suggested delay in seconds",
                "schema": {
                  "type": "string"
                }
              }
            },
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          }
        }
      },
      "post": {
        "summary": "Print a URL or raw HTML to PDF",
        "description": "Needs an API key ([create one for free](https://app.kamineko.dev/keys)). Counts as a render toward your monthly quota, and so do failed renders once you've used the month's allowance for them; see Rate limits and Monthly quotas. Pages get 15 seconds to load and render, including `delay`.",
        "security": [
          {
            "ApiKey": []
          }
        ],
        "tags": [
          "PDF"
        ],
        "requestBody": {
          "required": true,
          "content": {
            "application/json": {
              "schema": {
                "$ref": "#/components/schemas/PdfRequest"
              }
            }
          }
        },
        "responses": {
          "200": {
            "description": "The PDF",
            "content": {
              "application/pdf": {
                "schema": {
                  "type": "string",
                  "format": "binary"
                }
              }
            }
          },
          "400": {
            "description": "The request was invalid",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "401": {
            "description": "The API key is missing, malformed, invalid, or revoked",
            "headers": {
              "WWW-Authenticate": {
                "schema": {
                  "type": "string"
                }
              }
            },
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "413": {
            "description": "The payload is too large",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "422": {
            "description": "The request was valid but could not be processed",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "429": {
            "description": "Too many requests",
            "headers": {
              "Retry-After": {
                "description": "Seconds until retry, when known",
                "schema": {
                  "type": "string"
                }
              }
            },
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "502": {
            "description": "An upstream provider failed",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "503": {
            "description": "The service is temporarily unavailable",
            "headers": {
              "Retry-After": {
                "description": "Suggested delay in seconds",
                "schema": {
                  "type": "string"
                }
              }
            },
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          }
        }
      }
    },
    "/v1/markdown": {
      "get": {
        "summary": "Convert a web page to Markdown",
        "description": "Needs an API key ([create one for free](https://app.kamineko.dev/keys)). Counts as a render toward your monthly quota, and so do failed renders once you've used the month's allowance for them; see Rate limits and Monthly quotas. Pages get 15 seconds to load and render, including `delay`.",
        "security": [
          {
            "ApiKey": []
          }
        ],
        "tags": [
          "Markdown"
        ],
        "parameters": [
          {
            "schema": {
              "type": "string",
              "format": "uri",
              "example": "https://example.com"
            },
            "required": true,
            "name": "url",
            "in": "query"
          },
          {
            "schema": {
              "type": "string",
              "enum": [
                "json",
                "markdown"
              ],
              "default": "json",
              "description": "`markdown` returns the Markdown alone, as `text/markdown`. It starts with YAML front matter holding the page's title, when the page has one"
            },
            "required": false,
            "description": "`markdown` returns the Markdown alone, as `text/markdown`. It starts with YAML front matter holding the page's title, when the page has one",
            "name": "format",
            "in": "query"
          },
          {
            "schema": {
              "type": "string",
              "enum": [
                "load",
                "domcontentloaded",
                "networkidle0",
                "networkidle2"
              ],
              "default": "load"
            },
            "required": false,
            "name": "waitUntil",
            "in": "query"
          },
          {
            "schema": {
              "type": "integer",
              "minimum": 0,
              "maximum": 10000,
              "default": 0,
              "description": "Extra wait after load, in ms. Counts toward the 15 seconds a render gets"
            },
            "required": false,
            "description": "Extra wait after load, in ms. Counts toward the 15 seconds a render gets",
            "name": "delay",
            "in": "query"
          }
        ],
        "responses": {
          "200": {
            "description": "The page as Markdown",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/PageMarkdown"
                }
              },
              "text/markdown": {
                "schema": {
                  "type": "string"
                }
              }
            }
          },
          "400": {
            "description": "The request was invalid",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "401": {
            "description": "The API key is missing, malformed, invalid, or revoked",
            "headers": {
              "WWW-Authenticate": {
                "schema": {
                  "type": "string"
                }
              }
            },
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "413": {
            "description": "The payload is too large",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "422": {
            "description": "The request was valid but could not be processed",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "429": {
            "description": "Too many requests",
            "headers": {
              "Retry-After": {
                "description": "Seconds until retry, when known",
                "schema": {
                  "type": "string"
                }
              }
            },
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "502": {
            "description": "An upstream provider failed",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "503": {
            "description": "The service is temporarily unavailable",
            "headers": {
              "Retry-After": {
                "description": "Suggested delay in seconds",
                "schema": {
                  "type": "string"
                }
              }
            },
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          }
        }
      },
      "post": {
        "summary": "Convert a URL or raw HTML to Markdown",
        "description": "Needs an API key ([create one for free](https://app.kamineko.dev/keys)). Counts as a render toward your monthly quota, and so do failed renders once you've used the month's allowance for them; see Rate limits and Monthly quotas. Pages get 15 seconds to load and render, including `delay`.",
        "security": [
          {
            "ApiKey": []
          }
        ],
        "tags": [
          "Markdown"
        ],
        "requestBody": {
          "required": true,
          "content": {
            "application/json": {
              "schema": {
                "$ref": "#/components/schemas/MarkdownRequest"
              }
            }
          }
        },
        "responses": {
          "200": {
            "description": "The page as Markdown",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/PageMarkdown"
                }
              },
              "text/markdown": {
                "schema": {
                  "type": "string"
                }
              }
            }
          },
          "400": {
            "description": "The request was invalid",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "401": {
            "description": "The API key is missing, malformed, invalid, or revoked",
            "headers": {
              "WWW-Authenticate": {
                "schema": {
                  "type": "string"
                }
              }
            },
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "413": {
            "description": "The payload is too large",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "422": {
            "description": "The request was valid but could not be processed",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "429": {
            "description": "Too many requests",
            "headers": {
              "Retry-After": {
                "description": "Seconds until retry, when known",
                "schema": {
                  "type": "string"
                }
              }
            },
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "502": {
            "description": "An upstream provider failed",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "503": {
            "description": "The service is temporarily unavailable",
            "headers": {
              "Retry-After": {
                "description": "Suggested delay in seconds",
                "schema": {
                  "type": "string"
                }
              }
            },
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          }
        }
      }
    },
    "/v1/uuid": {
      "get": {
        "summary": "Generate UUIDs",
        "description": "Random version 4 UUIDs from a cryptographically secure generator.\n\nWithout `count` the response is `{ \"uuid\": \"…\" }`. With `count` it is `{ \"data\": [\"…\"] }`, even for `count=1`, so the shape only depends on whether you asked for a list.",
        "tags": [
          "UUID"
        ],
        "parameters": [
          {
            "schema": {
              "type": "integer",
              "minimum": 1,
              "maximum": 10,
              "description": "Return a list of this many UUIDs (1–10)",
              "example": 5
            },
            "required": false,
            "description": "Return a list of this many UUIDs (1–10)",
            "name": "count",
            "in": "query"
          }
        ],
        "responses": {
          "200": {
            "description": "One UUID, or a list when `count` is set",
            "content": {
              "application/json": {
                "schema": {
                  "anyOf": [
                    {
                      "$ref": "#/components/schemas/Uuid"
                    },
                    {
                      "$ref": "#/components/schemas/UuidList"
                    }
                  ]
                }
              }
            }
          },
          "400": {
            "description": "The request was invalid",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "401": {
            "description": "The API key is missing, malformed, invalid, or revoked",
            "headers": {
              "WWW-Authenticate": {
                "schema": {
                  "type": "string"
                }
              }
            },
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "429": {
            "description": "Too many requests",
            "headers": {
              "Retry-After": {
                "description": "Seconds until retry, when known",
                "schema": {
                  "type": "string"
                }
              }
            },
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "503": {
            "description": "The service is temporarily unavailable",
            "headers": {
              "Retry-After": {
                "description": "Suggested delay in seconds",
                "schema": {
                  "type": "string"
                }
              }
            },
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          }
        }
      }
    },
    "/v1/validate/phone": {
      "get": {
        "summary": "Validate a phone number",
        "description": "Checks a phone number against its country's numbering plan, says what kind of line it is, and formats it for storage and display. Built on libphonenumber, the library Android uses.\n\nWrite the number in international form (`+44 7400 123456`), or in national form with `country` (`07400 123456` and `GB`). Spaces, dots, dashes, and parentheses are fine, and so is an extension (`ext. 12`). The whole value has to be the number, though: it won't search a sentence for one.\n\nAn invalid value isn't an error: the response is a `200` with `valid: false` and a `reason`. A `400` means the request itself was malformed.\n\n- `not_a_number`: the value doesn't look like a phone number.\n- `invalid_country`: no `+` calling code we know, and no `country` to read it as a national number.\n- `too_short`, `too_long`, `invalid_length`: no number in that country has this many digits.\n- `invalid_number`: the length works, but no numbers are assigned in that range.",
        "tags": [
          "Validate"
        ],
        "parameters": [
          {
            "schema": {
              "type": "string",
              "minLength": 1,
              "maxLength": 64,
              "example": "+44 7400 123456",
              "description": "The phone number"
            },
            "required": true,
            "description": "The phone number",
            "name": "value",
            "in": "query"
          },
          {
            "schema": {
              "type": "string",
              "example": "GB",
              "description": "Read numbers without a `+` as national numbers in this country (ISO 3166-1 alpha-2). Ignored when the number starts with `+`."
            },
            "required": false,
            "description": "Read numbers without a `+` as national numbers in this country (ISO 3166-1 alpha-2). Ignored when the number starts with `+`.",
            "name": "country",
            "in": "query"
          }
        ],
        "responses": {
          "200": {
            "description": "Whether the number is valid, and what's known about it",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/PhoneValidation"
                }
              }
            }
          },
          "400": {
            "description": "The request was invalid",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "401": {
            "description": "The API key is missing, malformed, invalid, or revoked",
            "headers": {
              "WWW-Authenticate": {
                "schema": {
                  "type": "string"
                }
              }
            },
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "429": {
            "description": "Too many requests",
            "headers": {
              "Retry-After": {
                "description": "Seconds until retry, when known",
                "schema": {
                  "type": "string"
                }
              }
            },
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "503": {
            "description": "The service is temporarily unavailable",
            "headers": {
              "Retry-After": {
                "description": "Suggested delay in seconds",
                "schema": {
                  "type": "string"
                }
              }
            },
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          }
        }
      }
    },
    "/v1/validate/iban": {
      "get": {
        "summary": "Validate an IBAN",
        "description": "Checks an International Bank Account Number: its country's length and account number format, the mod-97 check digits, and the national check digit some countries (Belgium, France, Spain, and others) put inside the account number. Then splits out the bank, branch, and account. Spaces and hyphens are ignored, and case doesn't matter.\n\nA valid IBAN is well formed, which catches typos. It doesn't prove the account exists.\n\nAn invalid value isn't an error: the response is a `200` with `valid: false` and a `reason`. A `400` means the request itself was malformed.\n\n- `invalid_characters`: something other than letters, digits, spaces, and hyphens.\n- `unknown_country`: the first two letters aren't a country that uses IBANs.\n- `wrong_length`, `wrong_format`: not the length or layout that country uses.\n- `invalid_check_digits`: characters 3 and 4 aren't digits.\n- `checksum_mismatch`: the mod-97 check failed, usually from a typo or two swapped characters.\n- `national_checksum_mismatch`: the country's own check digit inside the account number is wrong.",
        "tags": [
          "Validate"
        ],
        "parameters": [
          {
            "schema": {
              "type": "string",
              "minLength": 1,
              "maxLength": 64,
              "example": "GB82 WEST 1234 5698 7654 32",
              "description": "The IBAN"
            },
            "required": true,
            "description": "The IBAN",
            "name": "value",
            "in": "query"
          }
        ],
        "responses": {
          "200": {
            "description": "Whether the IBAN is valid, and its parts",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/IbanValidation"
                }
              }
            }
          },
          "400": {
            "description": "The request was invalid",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "401": {
            "description": "The API key is missing, malformed, invalid, or revoked",
            "headers": {
              "WWW-Authenticate": {
                "schema": {
                  "type": "string"
                }
              }
            },
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "429": {
            "description": "Too many requests",
            "headers": {
              "Retry-After": {
                "description": "Seconds until retry, when known",
                "schema": {
                  "type": "string"
                }
              }
            },
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "503": {
            "description": "The service is temporarily unavailable",
            "headers": {
              "Retry-After": {
                "description": "Suggested delay in seconds",
                "schema": {
                  "type": "string"
                }
              }
            },
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          }
        }
      }
    },
    "/v1/validate/luhn": {
      "get": {
        "summary": "Check a number with Luhn",
        "description": "Runs the Luhn (mod 10) checksum used by payment card numbers, IMEIs, and many national ID numbers, and gives the check digit the number should end with. For card numbers it also names the network.\n\nSpaces and hyphens are ignored. The number isn't stored and isn't returned. This only catches typos: it's not a card authorization.\n\nAn invalid value isn't an error: the response is a `200` with `valid: false` and a `reason`. A `400` means the request itself was malformed.\n\n- `invalid_characters`: something other than digits, spaces, and hyphens.\n- `too_short`: fewer than two digits.\n- `checksum_mismatch`: the last digit isn't `checkDigit`.",
        "tags": [
          "Validate"
        ],
        "parameters": [
          {
            "schema": {
              "type": "string",
              "minLength": 1,
              "maxLength": 64,
              "example": "4242 4242 4242 4242",
              "description": "The number"
            },
            "required": true,
            "description": "The number",
            "name": "value",
            "in": "query"
          }
        ],
        "responses": {
          "200": {
            "description": "Whether the number passes",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/LuhnValidation"
                }
              }
            }
          },
          "400": {
            "description": "The request was invalid",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "401": {
            "description": "The API key is missing, malformed, invalid, or revoked",
            "headers": {
              "WWW-Authenticate": {
                "schema": {
                  "type": "string"
                }
              }
            },
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "429": {
            "description": "Too many requests",
            "headers": {
              "Retry-After": {
                "description": "Seconds until retry, when known",
                "schema": {
                  "type": "string"
                }
              }
            },
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "503": {
            "description": "The service is temporarily unavailable",
            "headers": {
              "Retry-After": {
                "description": "Suggested delay in seconds",
                "schema": {
                  "type": "string"
                }
              }
            },
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          }
        }
      }
    },
    "/v1/validate/email": {
      "get": {
        "summary": "Validate an email address",
        "description": "Checks an address's syntax, then asks DNS whether its domain accepts mail. The lookup goes to Cloudflare's 1.1.1.1 resolver over HTTPS and sends only the domain.\n\nThe syntax is what mail servers accept in practice: a local part of letters, digits, and `!#$%&'*+/=?^_`{|}~-`, separated by single dots (plus non-ASCII letters, per RFC 6531), and a domain name, which can be internationalized. Quoted local parts and IP address literals are legal in RFC 5322 but refused here, since almost nothing delivers to them.\n\nThe domain accepts mail when it has MX records, or when it has none but has an address (A or AAAA) record, which mail servers fall back to. A null MX (`0 .`) says it never does. If the lookup fails, `dns.result` is `error` and `valid` reflects the syntax alone, so retry if you need to know. Pass `mx=false` to check only the syntax.\n\nA valid address can still bounce: this doesn't contact the mail server or check that the mailbox exists.\n\nAn invalid value isn't an error: the response is a `200` with `valid: false` and a `reason`. A `400` means the request itself was malformed.\n\n- `too_long`: over 254 octets.\n- `missing_at`: no `@`.\n- `invalid_local_part`, `local_part_too_long`: the part before the `@` (at most 64 octets).\n- `invalid_domain`: not a domain name that can receive mail.\n- `domain_not_found`: the domain doesn't exist.\n- `no_mail_server`: the domain has a null MX, or no MX or address records.",
        "tags": [
          "Validate"
        ],
        "parameters": [
          {
            "schema": {
              "type": "string",
              "minLength": 1,
              "maxLength": 512,
              "example": "someone@gmail.com",
              "description": "The email address"
            },
            "required": true,
            "description": "The email address",
            "name": "value",
            "in": "query"
          },
          {
            "schema": {
              "type": "boolean",
              "default": true,
              "description": "Look up the domain's mail servers"
            },
            "required": false,
            "description": "Look up the domain's mail servers",
            "name": "mx",
            "in": "query"
          }
        ],
        "responses": {
          "200": {
            "description": "Whether the address is valid",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/EmailValidation"
                }
              }
            }
          },
          "400": {
            "description": "The request was invalid",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "401": {
            "description": "The API key is missing, malformed, invalid, or revoked",
            "headers": {
              "WWW-Authenticate": {
                "schema": {
                  "type": "string"
                }
              }
            },
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "429": {
            "description": "Too many requests",
            "headers": {
              "Retry-After": {
                "description": "Seconds until retry, when known",
                "schema": {
                  "type": "string"
                }
              }
            },
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "503": {
            "description": "The service is temporarily unavailable",
            "headers": {
              "Retry-After": {
                "description": "Suggested delay in seconds",
                "schema": {
                  "type": "string"
                }
              }
            },
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          }
        }
      }
    },
    "/v1/validate/user-agent": {
      "get": {
        "summary": "Parse a user agent",
        "description": "Reads a `User-Agent` string into the browser, rendering engine, operating system, and device, and says whether it's a bot. Leave out `value` to parse the user agent of the request itself.\n\nUser agents are self-reported and easy to fake, and modern browsers freeze parts of them (Chrome reports every Android device as `K`), so treat the answer as a hint rather than proof.",
        "tags": [
          "Validate"
        ],
        "parameters": [
          {
            "schema": {
              "type": "string",
              "minLength": 1,
              "maxLength": 1024,
              "example": "Mozilla/5.0 (iPhone; CPU iPhone OS 17_5 like Mac OS X) AppleWebKit/605.1.15 (KHTML, like Gecko) Version/17.5 Mobile/15E148 Safari/604.1",
              "description": "The user agent. Defaults to this request's `User-Agent` header."
            },
            "required": false,
            "description": "The user agent. Defaults to this request's `User-Agent` header.",
            "name": "value",
            "in": "query"
          }
        ],
        "responses": {
          "200": {
            "description": "What the user agent says about the client",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/UserAgent"
                }
              }
            }
          },
          "400": {
            "description": "The request was invalid",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "401": {
            "description": "The API key is missing, malformed, invalid, or revoked",
            "headers": {
              "WWW-Authenticate": {
                "schema": {
                  "type": "string"
                }
              }
            },
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "429": {
            "description": "Too many requests",
            "headers": {
              "Retry-After": {
                "description": "Seconds until retry, when known",
                "schema": {
                  "type": "string"
                }
              }
            },
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "503": {
            "description": "The service is temporarily unavailable",
            "headers": {
              "Retry-After": {
                "description": "Suggested delay in seconds",
                "schema": {
                  "type": "string"
                }
              }
            },
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          }
        }
      }
    },
    "/v1/validate/json-schema": {
      "post": {
        "summary": "Validate JSON against a JSON Schema",
        "description": "Checks `data` against `schema` and lists every error: a JSON Pointer to the value that failed (`path`), where the failing keyword is in the schema (`schemaPath`), and a message. Data that doesn't match isn't an error: the response is a `200` with `valid: false`.\n\nReads drafts 4, 6, 7, 2019-09, and 2020-12, chosen by `$schema`. Without one, 2020-12 applies, and draft-07's tuple `items`, `dependencies`, and `#name` anchors work too. `$ref` follows references within the schema, including `$id`s, anchors, `$dynamicRef`, and `$recursiveRef`. A reference to another document gets a `422`: bundle what it points at under `$defs`.\n\n`pattern` and `patternProperties` run in a linear-time engine, so a pattern can't hang the check. It reads ECMAScript syntax and refuses lookaround, backreferences, and `\\p{…}` with a `422`.\n\n`format` is checked by default for date-time, date, time, duration, email, idn-email, hostname, idn-hostname, ipv4, ipv6, uri, uri-reference, iri, iri-reference, uri-template, uuid, json-pointer, relative-json-pointer, regex. Other formats pass. Host names are checked by RFC 1123 and IDNA labels by their characters; Punycode isn't decoded.\n\nThe request can be up to 512 KB. A schema that can't be used (malformed, or referring outside itself) gets a `422` that says where. Large checks, and schemas with many nested anyOf or oneOf branches, count as several requests (see Monthly quotas), and one that would take too long gets a `422`.",
        "tags": [
          "Validate"
        ],
        "requestBody": {
          "required": true,
          "content": {
            "application/json": {
              "schema": {
                "$ref": "#/components/schemas/JsonSchemaValidationRequest"
              }
            }
          }
        },
        "responses": {
          "200": {
            "description": "Whether the data matches, and every error if it doesn't",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/JsonSchemaValidation"
                }
              }
            }
          },
          "400": {
            "description": "The request was invalid",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "401": {
            "description": "The API key is missing, malformed, invalid, or revoked",
            "headers": {
              "WWW-Authenticate": {
                "schema": {
                  "type": "string"
                }
              }
            },
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "413": {
            "description": "The payload is too large",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "422": {
            "description": "The request was valid but could not be processed",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "429": {
            "description": "Too many requests",
            "headers": {
              "Retry-After": {
                "description": "Seconds until retry, when known",
                "schema": {
                  "type": "string"
                }
              }
            },
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "503": {
            "description": "The service is temporarily unavailable",
            "headers": {
              "Retry-After": {
                "description": "Suggested delay in seconds",
                "schema": {
                  "type": "string"
                }
              }
            },
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          }
        }
      }
    },
    "/v1/diff/text": {
      "post": {
        "summary": "Diff two texts line by line",
        "description": "Compares `old` and `new` line by line and returns the changes as hunks and as a unified diff. `\\n`, `\\r\\n`, and `\\r` all end a line, so line endings alone never count as a change. A missing line break at the end does, unless `ignoreWhitespace` is set. The diff is the smallest one (Myers' algorithm) unless the texts differ in so many places that searching would take too long: then `minimal` is false and the rest is replaced as a block. The request can be up to 512 KB. Large diffs count as several requests (see Monthly quotas).",
        "tags": [
          "Diff"
        ],
        "requestBody": {
          "required": true,
          "content": {
            "application/json": {
              "schema": {
                "$ref": "#/components/schemas/TextDiffRequest"
              }
            }
          }
        },
        "responses": {
          "200": {
            "description": "The differences",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/TextDiff"
                }
              }
            }
          },
          "400": {
            "description": "The request was invalid",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "401": {
            "description": "The API key is missing, malformed, invalid, or revoked",
            "headers": {
              "WWW-Authenticate": {
                "schema": {
                  "type": "string"
                }
              }
            },
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "413": {
            "description": "The payload is too large",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "429": {
            "description": "Too many requests",
            "headers": {
              "Retry-After": {
                "description": "Seconds until retry, when known",
                "schema": {
                  "type": "string"
                }
              }
            },
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "503": {
            "description": "The service is temporarily unavailable",
            "headers": {
              "Retry-After": {
                "description": "Suggested delay in seconds",
                "schema": {
                  "type": "string"
                }
              }
            },
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          }
        }
      }
    },
    "/v1/diff/json": {
      "post": {
        "summary": "Diff two JSON documents as a JSON Patch",
        "description": "Compares `old` and `new` structurally and returns an RFC 6902 JSON Patch of `add`, `remove`, and `replace` operations that turns one into the other. Object keys are compared regardless of order. Array items are matched by value, so inserting at the front is one `add`, not a `replace` for every item after it. Where an item was changed in place, the patch goes inside it: one changed field in an object is one `replace`. Moves are written as a `remove` and an `add`. Operations apply in order, so an array index is where the item is once the operations before it have run. If arrays differ in so many places that searching would take too long, `minimal` is false and the rest is compared position by position. The request can be up to 512 KB, nested up to 256 levels. Large diffs count as several requests (see Monthly quotas).",
        "tags": [
          "Diff"
        ],
        "requestBody": {
          "required": true,
          "content": {
            "application/json": {
              "schema": {
                "$ref": "#/components/schemas/JsonDiffRequest"
              }
            }
          }
        },
        "responses": {
          "200": {
            "description": "The patch",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/JsonDiff"
                }
              }
            }
          },
          "400": {
            "description": "The request was invalid",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "401": {
            "description": "The API key is missing, malformed, invalid, or revoked",
            "headers": {
              "WWW-Authenticate": {
                "schema": {
                  "type": "string"
                }
              }
            },
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "413": {
            "description": "The payload is too large",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "422": {
            "description": "The request was valid but could not be processed",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "429": {
            "description": "Too many requests",
            "headers": {
              "Retry-After": {
                "description": "Seconds until retry, when known",
                "schema": {
                  "type": "string"
                }
              }
            },
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "503": {
            "description": "The service is temporarily unavailable",
            "headers": {
              "Retry-After": {
                "description": "Suggested delay in seconds",
                "schema": {
                  "type": "string"
                }
              }
            },
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          }
        }
      }
    },
    "/v1/types": {
      "post": {
        "summary": "Generate types from sample JSON",
        "description": "Infers types from a JSON sample and writes them as TypeScript interfaces, zod 4 schemas, or a JSON Schema. The items of an array are merged into one type: a key that only some objects have is optional, a key that is sometimes null is nullable, and mixed values become a union. Nested objects get their own named types, after their keys (array items in the singular: `addresses` holds `Address`). Integers are `z.int()` and `integer`, other numbers `z.number()` and `number`. An empty array's items are `unknown`. JSON Schema output is inline, and its objects allow other keys. The request can be up to 512 KB, nested up to 256 levels. Large samples count as several requests (see Monthly quotas).",
        "tags": [
          "Types"
        ],
        "requestBody": {
          "required": true,
          "content": {
            "application/json": {
              "schema": {
                "$ref": "#/components/schemas/TypesRequest"
              }
            }
          }
        },
        "responses": {
          "200": {
            "description": "The generated types",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Types"
                }
              }
            }
          },
          "400": {
            "description": "The request was invalid",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "401": {
            "description": "The API key is missing, malformed, invalid, or revoked",
            "headers": {
              "WWW-Authenticate": {
                "schema": {
                  "type": "string"
                }
              }
            },
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "413": {
            "description": "The payload is too large",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "422": {
            "description": "The request was valid but could not be processed",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "429": {
            "description": "Too many requests",
            "headers": {
              "Retry-After": {
                "description": "Seconds until retry, when known",
                "schema": {
                  "type": "string"
                }
              }
            },
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "503": {
            "description": "The service is temporarily unavailable",
            "headers": {
              "Retry-After": {
                "description": "Suggested delay in seconds",
                "schema": {
                  "type": "string"
                }
              }
            },
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          }
        }
      }
    },
    "/v1/dns": {
      "get": {
        "summary": "Look up DNS records",
        "description": "Asks Cloudflare's public resolver, 1.1.1.1, for a name's records, the way `dig` would, and returns them as JSON. It sees what the rest of the internet sees, so it's good for checking that a change has spread.\n\n`type` takes one record type or several, separated by commas, up to 8: A, AAAA, CAA, CNAME, DNSKEY, DS, HTTPS, MX, NAPTR, NS, PTR, SOA, SRV, SSHFP, SVCB, TLSA, TXT. Without it, a lookup asks for A, AAAA, MX, NS, TXT.\n\nSend an IP address as `name` for a reverse lookup: `name=1.1.1.1` looks up `1.1.1.1.in-addr.arpa`, and `type` defaults to PTR.\n\nInternationalized names are converted to Punycode. A lookup that finds nothing isn't an error: check each type's `status`. The resolver caches answers for their TTL, so a change can take that long to show.",
        "tags": [
          "DNS and domains"
        ],
        "parameters": [
          {
            "schema": {
              "type": "string",
              "minLength": 1,
              "maxLength": 300,
              "example": "example.com",
              "description": "A domain name, or an IP address for a reverse lookup"
            },
            "required": true,
            "description": "A domain name, or an IP address for a reverse lookup",
            "name": "name",
            "in": "query"
          },
          {
            "schema": {
              "type": "string",
              "maxLength": 200,
              "example": "A,MX",
              "description": "Record types, separated by commas"
            },
            "required": false,
            "description": "Record types, separated by commas",
            "name": "type",
            "in": "query"
          }
        ],
        "responses": {
          "200": {
            "description": "One lookup per record type, in the order asked",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/DnsLookup"
                }
              }
            }
          },
          "400": {
            "description": "The request was invalid",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "401": {
            "description": "The API key is missing, malformed, invalid, or revoked",
            "headers": {
              "WWW-Authenticate": {
                "schema": {
                  "type": "string"
                }
              }
            },
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "429": {
            "description": "Too many requests",
            "headers": {
              "Retry-After": {
                "description": "Seconds until retry, when known",
                "schema": {
                  "type": "string"
                }
              }
            },
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "502": {
            "description": "An upstream provider failed",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "503": {
            "description": "The service is temporarily unavailable",
            "headers": {
              "Retry-After": {
                "description": "Suggested delay in seconds",
                "schema": {
                  "type": "string"
                }
              }
            },
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          }
        }
      }
    },
    "/v1/dns/rdap": {
      "get": {
        "summary": "Look up a domain's registration (RDAP)",
        "description": "WHOIS-style registration data for a domain: when it was registered and expires, its registrar and abuse contact, its status codes and nameservers, and whether it's signed with DNSSEC.\n\nIt comes from the domain's registry over RDAP, the JSON protocol that replaced WHOIS for generic top-level domains. Not every country-code registry offers RDAP: for those, the answer is a `422`.\n\nSend the registered domain (`example.com` or `example.co.uk`), not a subdomain. A `404` means the registry has no record of it: it's probably not registered, though RDAP can't promise a name is free to buy. Answers are cached for up to 6 hours, so a renewal or a nameserver change can take that long to show.\n\nRegistries publish this data under terms of use, linked in `terms`. They allow it for information, and forbid using it for unsolicited marketing or for high-volume, automated querying. Look domains up one at a time as you need them, not in bulk.\n\nNeeds an API key. Counts as a heavy request, which has a lower per-minute limit; see Rate limits.",
        "security": [
          {
            "ApiKey": []
          }
        ],
        "tags": [
          "DNS and domains"
        ],
        "parameters": [
          {
            "schema": {
              "type": "string",
              "minLength": 1,
              "maxLength": 300,
              "example": "example.com",
              "description": "A registered domain"
            },
            "required": true,
            "description": "A registered domain",
            "name": "domain",
            "in": "query"
          }
        ],
        "responses": {
          "200": {
            "description": "The registration",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/DomainRegistration"
                }
              }
            }
          },
          "400": {
            "description": "The request was invalid",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "401": {
            "description": "The API key is missing, malformed, invalid, or revoked",
            "headers": {
              "WWW-Authenticate": {
                "schema": {
                  "type": "string"
                }
              }
            },
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "404": {
            "description": "Not found",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "422": {
            "description": "The request was valid but could not be processed",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "429": {
            "description": "Too many requests",
            "headers": {
              "Retry-After": {
                "description": "Seconds until retry, when known",
                "schema": {
                  "type": "string"
                }
              }
            },
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "502": {
            "description": "An upstream provider failed",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "503": {
            "description": "The service is temporarily unavailable",
            "headers": {
              "Retry-After": {
                "description": "Suggested delay in seconds",
                "schema": {
                  "type": "string"
                }
              }
            },
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          }
        }
      }
    },
    "/v1/qr": {
      "get": {
        "summary": "Generate a QR code",
        "description": "URL-encode `data`. Colors work with or without the `#` (which a query string needs as `%23`).\n\nA code that counts as several requests (large, dense, or logo-heavy; see `X-Request-Units`) needs an API key. Without one, a code must count as a single request.",
        "tags": [
          "QR Codes"
        ],
        "parameters": [
          {
            "schema": {
              "type": "string",
              "minLength": 1,
              "maxLength": 7089,
              "description": "What the code encodes: a URL, text, or a `WIFI:`, `mailto:`, `tel:`, `BEGIN:VCARD` payload. Prefer POST for Wi-Fi credentials, contact details, or private URLs so they stay out of the request URL.",
              "example": "https://kamineko.dev"
            },
            "required": true,
            "description": "What the code encodes: a URL, text, or a `WIFI:`, `mailto:`, `tel:`, `BEGIN:VCARD` payload. Prefer POST for Wi-Fi credentials, contact details, or private URLs so they stay out of the request URL.",
            "name": "data",
            "in": "query"
          },
          {
            "schema": {
              "type": "string",
              "enum": [
                "png",
                "svg"
              ],
              "default": "png",
              "description": "PNG works anywhere; SVG scales cleanly for print"
            },
            "required": false,
            "description": "PNG works anywhere; SVG scales cleanly for print",
            "name": "format",
            "in": "query"
          },
          {
            "schema": {
              "type": "integer",
              "minimum": 64,
              "maximum": 2048,
              "default": 512,
              "description": "Width and height in pixels, quiet zone included. PNGs need at least one pixel per module. Use larger sizes for printed or styled codes."
            },
            "required": false,
            "description": "Width and height in pixels, quiet zone included. PNGs need at least one pixel per module. Use larger sizes for printed or styled codes.",
            "name": "size",
            "in": "query"
          },
          {
            "schema": {
              "type": "integer",
              "minimum": 0,
              "maximum": 16,
              "default": 4,
              "description": "Quiet zone around the code, in modules. The spec asks for 4"
            },
            "required": false,
            "description": "Quiet zone around the code, in modules. The spec asks for 4",
            "name": "margin",
            "in": "query"
          },
          {
            "schema": {
              "type": "string",
              "enum": [
                "L",
                "M",
                "Q",
                "H"
              ],
              "description": "Error correction: L, M, Q, or H recover 7, 15, 25, or 30% damage. Defaults to M, or H with a logo"
            },
            "required": false,
            "description": "Error correction: L, M, Q, or H recover 7, 15, 25, or 30% damage. Defaults to M, or H with a logo",
            "name": "ecc",
            "in": "query"
          },
          {
            "schema": {
              "type": "string",
              "example": "#1a1a2e",
              "default": "#000000",
              "description": "Color of the dark modules"
            },
            "required": false,
            "description": "Color of the dark modules",
            "name": "color",
            "in": "query"
          },
          {
            "schema": {
              "type": "string",
              "default": "#ffffff",
              "description": "Hex color, or `transparent`"
            },
            "required": false,
            "description": "Hex color, or `transparent`",
            "name": "background",
            "in": "query"
          },
          {
            "schema": {
              "type": "string",
              "enum": [
                "square",
                "dots",
                "rounded",
                "tiles",
                "bars"
              ],
              "default": "square",
              "description": "Module shape: `square`, `dots` (circles), `rounded` (neighbors merge into smooth shapes), `tiles` (separate rounded squares), or `bars` (vertical pills)"
            },
            "required": false,
            "description": "Module shape: `square`, `dots` (circles), `rounded` (neighbors merge into smooth shapes), `tiles` (separate rounded squares), or `bars` (vertical pills)",
            "name": "style",
            "in": "query"
          },
          {
            "schema": {
              "type": "string",
              "enum": [
                "square",
                "rounded",
                "circle"
              ],
              "default": "square",
              "description": "Outer ring of the three corner finder patterns"
            },
            "required": false,
            "description": "Outer ring of the three corner finder patterns",
            "name": "eyeFrame",
            "in": "query"
          },
          {
            "schema": {
              "type": "string",
              "enum": [
                "square",
                "rounded",
                "circle"
              ],
              "description": "Center of the three corner finder patterns. Defaults to `eyeFrame`. A `square` center inside a `circle` frame doesn't scan"
            },
            "required": false,
            "description": "Center of the three corner finder patterns. Defaults to `eyeFrame`. A `square` center inside a `circle` frame doesn't scan",
            "name": "eyeBall",
            "in": "query"
          },
          {
            "schema": {
              "type": "string",
              "example": "#1a1a2e",
              "description": "Color of the finder patterns. Defaults to `color`, gradient included"
            },
            "required": false,
            "description": "Color of the finder patterns. Defaults to `color`, gradient included",
            "name": "eyeColor",
            "in": "query"
          },
          {
            "schema": {
              "type": "string",
              "example": "#1a1a2e",
              "description": "Fade the dark modules from `color` to this color"
            },
            "required": false,
            "description": "Fade the dark modules from `color` to this color",
            "name": "gradientColor",
            "in": "query"
          },
          {
            "schema": {
              "type": "string",
              "enum": [
                "linear",
                "radial"
              ],
              "default": "linear",
              "description": "With `gradientColor`: `linear`, or `radial` to fade outward from the center"
            },
            "required": false,
            "description": "With `gradientColor`: `linear`, or `radial` to fade outward from the center",
            "name": "gradientType",
            "in": "query"
          },
          {
            "schema": {
              "type": "number",
              "minimum": 0,
              "maximum": 360,
              "default": 45,
              "description": "Direction of a linear gradient in degrees: 0 is left to right, 90 is top to bottom"
            },
            "required": false,
            "description": "Direction of a linear gradient in degrees: 0 is left to right, 90 is top to bottom",
            "name": "gradientAngle",
            "in": "query"
          },
          {
            "schema": {
              "type": "string",
              "maxLength": 1398230,
              "description": "Logo to put in the middle, as an http(s) URL or a data: URI (up to 1 MB). PNG, JPEG, or GIF (up to 4 megapixels in a PNG code). SVG logos need `format=svg`. Error correction defaults to H, and the code grows if it needs more room to stay scannable.",
              "example": "https://example.com/logo.png"
            },
            "required": false,
            "description": "Logo to put in the middle, as an http(s) URL or a data: URI (up to 1 MB). PNG, JPEG, or GIF (up to 4 megapixels in a PNG code). SVG logos need `format=svg`. Error correction defaults to H, and the code grows if it needs more room to stay scannable.",
            "name": "logo",
            "in": "query"
          },
          {
            "schema": {
              "type": "number",
              "minimum": 0.05,
              "maximum": 0.3,
              "default": 0.2,
              "description": "Logo width as a fraction of the code's width"
            },
            "required": false,
            "description": "Logo width as a fraction of the code's width",
            "name": "logoSize",
            "in": "query"
          },
          {
            "schema": {
              "type": "number",
              "minimum": 0,
              "maximum": 2,
              "default": 1,
              "description": "Empty space around the logo, in modules (rounded to fit the grid)"
            },
            "required": false,
            "description": "Empty space around the logo, in modules (rounded to fit the grid)",
            "name": "logoPadding",
            "in": "query"
          }
        ],
        "responses": {
          "200": {
            "description": "The QR code",
            "content": {
              "image/png": {
                "schema": {
                  "type": "string",
                  "format": "binary"
                }
              },
              "image/svg+xml": {
                "schema": {
                  "type": "string"
                }
              }
            }
          },
          "400": {
            "description": "The request was invalid",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "401": {
            "description": "The API key is missing, malformed, invalid, or revoked",
            "headers": {
              "WWW-Authenticate": {
                "schema": {
                  "type": "string"
                }
              }
            },
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "413": {
            "description": "The payload is too large",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "415": {
            "description": "Unsupported media type",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "422": {
            "description": "The request was valid but could not be processed",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "429": {
            "description": "Too many requests",
            "headers": {
              "Retry-After": {
                "description": "Seconds until retry, when known",
                "schema": {
                  "type": "string"
                }
              }
            },
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "502": {
            "description": "An upstream provider failed",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "503": {
            "description": "The service is temporarily unavailable",
            "headers": {
              "Retry-After": {
                "description": "Suggested delay in seconds",
                "schema": {
                  "type": "string"
                }
              }
            },
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          }
        }
      },
      "post": {
        "summary": "Generate a QR code from JSON",
        "description": "Same options and limits as the GET form, for long data or a logo sent inline as a data: URI.",
        "tags": [
          "QR Codes"
        ],
        "requestBody": {
          "required": true,
          "content": {
            "application/json": {
              "schema": {
                "$ref": "#/components/schemas/QrRequest"
              }
            }
          }
        },
        "responses": {
          "200": {
            "description": "The QR code",
            "content": {
              "image/png": {
                "schema": {
                  "type": "string",
                  "format": "binary"
                }
              },
              "image/svg+xml": {
                "schema": {
                  "type": "string"
                }
              }
            }
          },
          "400": {
            "description": "The request was invalid",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "401": {
            "description": "The API key is missing, malformed, invalid, or revoked",
            "headers": {
              "WWW-Authenticate": {
                "schema": {
                  "type": "string"
                }
              }
            },
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "413": {
            "description": "The payload is too large",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "415": {
            "description": "Unsupported media type",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "422": {
            "description": "The request was valid but could not be processed",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "429": {
            "description": "Too many requests",
            "headers": {
              "Retry-After": {
                "description": "Seconds until retry, when known",
                "schema": {
                  "type": "string"
                }
              }
            },
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "502": {
            "description": "An upstream provider failed",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "503": {
            "description": "The service is temporarily unavailable",
            "headers": {
              "Retry-After": {
                "description": "Suggested delay in seconds",
                "schema": {
                  "type": "string"
                }
              }
            },
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          }
        }
      }
    },
    "/v1/qr/batch": {
      "post": {
        "summary": "Generate QR codes in bulk",
        "description": "Renders up to 25 codes that share one style (and logo, fetched once). Very large or dense styled codes fit fewer to a batch; the 422 says how many.\nReturns a ZIP by default, or JSON with `output: \"json\"`.\nFile names come from each item's `name` (made safe for a file system, with duplicates numbered) or default to qr-001, qr-002, ….\n\nNeeds an API key. Counts as a heavy request, which has a lower per-minute limit, and as at least one request per code toward your quota (more for large or dense codes); see Rate limits and Monthly quotas.",
        "security": [
          {
            "ApiKey": []
          }
        ],
        "tags": [
          "QR Codes"
        ],
        "requestBody": {
          "required": true,
          "content": {
            "application/json": {
              "schema": {
                "$ref": "#/components/schemas/QrBatchRequest"
              }
            }
          }
        },
        "responses": {
          "200": {
            "description": "The codes",
            "content": {
              "application/zip": {
                "schema": {
                  "type": "string",
                  "format": "binary"
                }
              },
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/QrBatchResult"
                }
              }
            }
          },
          "400": {
            "description": "The request was invalid",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "401": {
            "description": "The API key is missing, malformed, invalid, or revoked",
            "headers": {
              "WWW-Authenticate": {
                "schema": {
                  "type": "string"
                }
              }
            },
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "413": {
            "description": "The payload is too large",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "415": {
            "description": "Unsupported media type",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "422": {
            "description": "The request was valid but could not be processed",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "429": {
            "description": "Too many requests",
            "headers": {
              "Retry-After": {
                "description": "Seconds until retry, when known",
                "schema": {
                  "type": "string"
                }
              }
            },
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "502": {
            "description": "An upstream provider failed",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "503": {
            "description": "The service is temporarily unavailable",
            "headers": {
              "Retry-After": {
                "description": "Suggested delay in seconds",
                "schema": {
                  "type": "string"
                }
              }
            },
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          }
        }
      }
    },
    "/v1/placeholder": {
      "get": {
        "summary": "Generate a placeholder image",
        "description": "Use the request URL directly as an image source. Colors accept three or six hex digits. Omit the leading `#` or encode it as `%23`.\n\nA large PNG counts as several requests (see `X-Request-Units`) and needs an API key. Without one, a PNG must count as a single request: up to about 1.2 megapixels solid, or 0.45 megapixels patterned. SVGs always count as one.",
        "tags": [
          "Placeholder Image"
        ],
        "parameters": [
          {
            "schema": {
              "type": "string",
              "enum": [
                "svg",
                "png"
              ],
              "default": "svg",
              "description": "SVG or raster PNG. A PNG can contain up to 8,388,608 pixels (width × height)."
            },
            "required": false,
            "description": "SVG or raster PNG. A PNG can contain up to 8,388,608 pixels (width × height).",
            "name": "format",
            "in": "query"
          },
          {
            "schema": {
              "type": "integer",
              "minimum": 1,
              "maximum": 4096,
              "default": 600,
              "description": "Image width in pixels"
            },
            "required": false,
            "description": "Image width in pixels",
            "name": "width",
            "in": "query"
          },
          {
            "schema": {
              "type": "integer",
              "minimum": 1,
              "maximum": 4096,
              "default": 400,
              "description": "Image height in pixels"
            },
            "required": false,
            "description": "Image height in pixels",
            "name": "height",
            "in": "query"
          },
          {
            "schema": {
              "type": "string",
              "enum": [
                "solid",
                "stripes",
                "checkerboard",
                "dots"
              ],
              "default": "solid"
            },
            "required": false,
            "name": "pattern",
            "in": "query"
          },
          {
            "schema": {
              "type": "string",
              "example": "#e5e7eb",
              "default": "#e5e7eb",
              "description": "Background hex color"
            },
            "required": false,
            "description": "Background hex color",
            "name": "background",
            "in": "query"
          },
          {
            "schema": {
              "type": "string",
              "example": "#cbd5e1",
              "default": "#cbd5e1",
              "description": "Hex color of the stripes, checks, or dots"
            },
            "required": false,
            "description": "Hex color of the stripes, checks, or dots",
            "name": "patternColor",
            "in": "query"
          },
          {
            "schema": {
              "type": "string",
              "example": "#334155",
              "default": "#334155",
              "description": "Caption hex color"
            },
            "required": false,
            "description": "Caption hex color",
            "name": "textColor",
            "in": "query"
          },
          {
            "schema": {
              "type": "string",
              "maxLength": 120,
              "description": "Single-line caption, up to 120 characters. Omit to show the dimensions, or pass an empty string to hide it.",
              "example": "Hero image"
            },
            "required": false,
            "description": "Single-line caption, up to 120 characters. Omit to show the dimensions, or pass an empty string to hide it.",
            "name": "text",
            "in": "query"
          }
        ],
        "responses": {
          "200": {
            "description": "One placeholder image at the requested dimensions",
            "content": {
              "image/svg+xml": {
                "schema": {
                  "type": "string"
                }
              },
              "image/png": {
                "schema": {
                  "type": "string",
                  "format": "binary"
                }
              }
            }
          },
          "400": {
            "description": "The request was invalid",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "401": {
            "description": "The API key is missing, malformed, invalid, or revoked",
            "headers": {
              "WWW-Authenticate": {
                "schema": {
                  "type": "string"
                }
              }
            },
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "422": {
            "description": "The request was valid but could not be processed",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "429": {
            "description": "Too many requests",
            "headers": {
              "Retry-After": {
                "description": "Seconds until retry, when known",
                "schema": {
                  "type": "string"
                }
              }
            },
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "503": {
            "description": "The service is temporarily unavailable",
            "headers": {
              "Retry-After": {
                "description": "Suggested delay in seconds",
                "schema": {
                  "type": "string"
                }
              }
            },
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          }
        }
      }
    }
  },
  "webhooks": {}
}
