{
  "openapi": "3.1.0",
  "info": {
    "title": "IPv64.net API",
    "version": "2.0.0",
    "description": "RESTful JSON-API für DynDNS, DNS, Healthchecks, DNS-Failover, CDN, Cloud Router und DNS64 von IPv64.net. Anmeldung mit einem API-Key aus dem Menü Account > API. Die ausführliche Anleitung steht unter https://ipv64.net/api/v2/docs.",
    "contact": {
      "name": "IPv64.net",
      "url": "https://ipv64.net"
    }
  },
  "servers": [
    {
      "url": "https://ipv64.net/api/v2",
      "description": "Produktion"
    }
  ],
  "security": [
    {
      "bearerAuth": []
    },
    {
      "apiKeyHeader": []
    }
  ],
  "tags": [
    {
      "name": "Meta",
      "description": "Öffentliche Endpunkte ohne Anmeldung."
    },
    {
      "name": "Account",
      "description": "Account, Nutzung, Logs und Account-Freigaben."
    },
    {
      "name": "API-Keys",
      "description": "Dieselben Keys wie im Menü Account > API."
    },
    {
      "name": "Domains",
      "description": "DynDNS-Domains und eigene Domains. Überall, wo {domain} steht, geht die ID oder der vollständige Name."
    },
    {
      "name": "DynDNS",
      "description": "IP-Updates über die API. Für Router und einfache Geräte bleibt update.php der richtige Weg."
    },
    {
      "name": "DNS-Records",
      "description": "Records einer Domain. {record} ist die ID oder der Record-Token."
    },
    {
      "name": "Healthchecks",
      "description": "Push-Checks (dein System meldet sich) und aktive Checks (ICMP, TCP, HTTP, Keyword). {token} ist der Healthcheck-Token."
    },
    {
      "name": "Benachrichtigungen",
      "description": "Integrationen für Healthchecks und DNS-Failover. Die ID 0 steht immer für die E-Mail-Adresse des Accounts."
    },
    {
      "name": "DNS-Failover",
      "description": "Policies schalten Records automatisch auf ein Ersatzziel, wenn Healthchecks ausfallen. {id} ist die Policy-ID."
    },
    {
      "name": "Statusseiten",
      "description": "Öffentliche Statusseiten unter https://ipv64.net/status/<slug>."
    },
    {
      "name": "Offline-Pages",
      "description": "Eigene Wartungsseiten als Ziel für den DNS-Failover. {id} ist die Offline-Page-ID."
    },
    {
      "name": "CDN",
      "description": "Reverse Proxy und Portmapper. {token} ist die CDN-ID. Viele Änderungen setzt der CDN-Dienst im Hintergrund um, die Antwort ist dann 202 und pending zeigt den Fortschritt."
    },
    {
      "name": "Cloud Router",
      "description": "WireGuard-Router mit Gateways, Routing, Firewall und öffentlichen IPv6-Adressen. Fast alle Änderungen setzt der VPN-Dienst im Hintergrund um (202)."
    },
    {
      "name": "Gateways",
      "description": "WireGuard-Gateways eines Cloud Routers. {token} ist die Gateway-ID. Während ein Gateway eingerichtet wird, antworten Änderungen mit 409 gateway_busy und retry_after."
    },
    {
      "name": "Peers",
      "description": "WireGuard-Peers. {token} ist die Peer-ID."
    },
    {
      "name": "DNS64",
      "description": "Persönliche DNS-Resolver mit DNS64, DoH, DoT, DoQ und Blocklisten. {token} ist die Client-ID."
    },
    {
      "name": "Healthchecks 2.0",
      "description": "Neue Healthcheck-Welt (ipv64-hub, Node64): Checks mit Messstellen (online bei ipv64, lokal auf einer Node, hybrid), Kanäle, Wartungsfenster, Störungen. Nur für Accounts der neuen Welt; die alten /healthchecks-Pfade bleiben unverändert."
    },
    {
      "name": "Nodes",
      "description": "Node64-Nodes: verknüpfen, umbenennen, Befehle, trennen."
    },
    {
      "name": "Honeypot64",
      "description": "Honeypot64-Sensoren (Node64) melden alle 10 Minuten Angriffe (Format schema 1); eigene Sensoren und eigener Beitrag. Aus den Meldungen mehrerer Accounts entsteht die v64 Blocklist."
    },
    {
      "name": "Threat",
      "description": "IP-Auskunft zur v64 Blocklist (Honeypot64): Warum ist eine IP gelistet? Ohne API-Key mit engem Limit je Client-IP (10 sofort, dann 1 je Minute), mit API-Key großzügiger (120 sofort, dann 2 je Sekunde je Account). Keine Angaben zu Sensoren oder meldenden Accounts."
    }
  ],
  "paths": {
    "/": {
      "get": {
        "tags": [
          "Meta"
        ],
        "summary": "API-Info",
        "operationId": "get",
        "responses": {
          "200": {
            "description": "Erfolgreich",
            "content": {
              "application/json": {
                "schema": {
                  "type": "object",
                  "properties": {
                    "data": {
                      "type": "object",
                      "properties": {
                        "name": {
                          "type": "string",
                          "description": "Name",
                          "example": "IPv64.net API"
                        },
                        "version": {
                          "type": "string",
                          "description": "Version",
                          "example": "2.0.0"
                        },
                        "documentation": {
                          "type": "string",
                          "description": "Doku",
                          "example": "https://ipv64.net/api/v2/docs"
                        },
                        "time": {
                          "type": "string",
                          "description": "Serverzeit",
                          "format": "date-time",
                          "example": "2026-10-10T12:00:00+02:00"
                        }
                      }
                    }
                  },
                  "required": [
                    "data"
                  ]
                }
              }
            }
          }
        },
        "security": []
      }
    },
    "/health": {
      "get": {
        "tags": [
          "Meta"
        ],
        "summary": "Verfügbarkeit der API",
        "operationId": "get_health",
        "description": "Prüft auch die Datenbankverbindung. Geeignet für Monitoring.",
        "responses": {
          "200": {
            "description": "Erfolgreich",
            "content": {
              "application/json": {
                "schema": {
                  "type": "object",
                  "properties": {
                    "data": {
                      "type": "object",
                      "properties": {
                        "status": {
                          "type": "string",
                          "description": "Status",
                          "example": "ok"
                        },
                        "version": {
                          "type": "string",
                          "description": "Version",
                          "example": "2.0.0"
                        }
                      }
                    }
                  },
                  "required": [
                    "data"
                  ]
                }
              }
            }
          }
        },
        "security": []
      }
    },
    "/ip": {
      "get": {
        "tags": [
          "Meta"
        ],
        "summary": "Eigene öffentliche IP",
        "operationId": "get_ip",
        "description": "Liefert die Adresse, mit der du die API erreichst.",
        "responses": {
          "200": {
            "description": "Erfolgreich",
            "content": {
              "application/json": {
                "schema": {
                  "type": "object",
                  "properties": {
                    "data": {
                      "type": "object",
                      "properties": {
                        "ip": {
                          "type": "string",
                          "description": "IP-Adresse",
                          "example": "203.0.113.10"
                        },
                        "family": {
                          "type": "string",
                          "description": "Familie",
                          "enum": [
                            "ipv4",
                            "ipv6"
                          ],
                          "example": "ipv4"
                        }
                      }
                    }
                  },
                  "required": [
                    "data"
                  ]
                }
              }
            }
          }
        },
        "security": []
      }
    },
    "/openapi.json": {
      "get": {
        "tags": [
          "Meta"
        ],
        "summary": "Diese Beschreibung als OpenAPI 3.1",
        "operationId": "get_openapi.json",
        "description": "Zum Import in Postman, Insomnia, Bruno oder für Code-Generatoren.",
        "responses": {
          "200": {
            "description": "Erfolgreich",
            "content": {
              "application/json": {
                "schema": {
                  "type": "object",
                  "properties": {
                    "data": {
                      "type": "object",
                      "description": "OpenAPI-Dokument (ohne data-Hülle)"
                    }
                  },
                  "required": [
                    "data"
                  ]
                }
              }
            }
          }
        },
        "security": []
      }
    },
    "/me": {
      "get": {
        "tags": [
          "Account"
        ],
        "summary": "Account und Nutzung",
        "operationId": "get_me",
        "description": "Zeigt Paket, Verbrauch und Limits sowie die verwendete Anmeldung.",
        "parameters": [
          {
            "$ref": "#/components/parameters/ActAs"
          }
        ],
        "responses": {
          "200": {
            "description": "Erfolgreich",
            "content": {
              "application/json": {
                "schema": {
                  "type": "object",
                  "properties": {
                    "data": {
                      "$ref": "#/components/schemas/Me"
                    }
                  },
                  "required": [
                    "data"
                  ]
                }
              }
            }
          },
          "401": {
            "$ref": "#/components/responses/E401"
          },
          "429": {
            "$ref": "#/components/responses/E429"
          }
        }
      }
    },
    "/me/logs": {
      "get": {
        "tags": [
          "Account"
        ],
        "summary": "Account-Log",
        "operationId": "get_me_logs",
        "description": "Neueste Einträge zuerst. Zum Weiterblättern meta.next_before als before übergeben. Es werden nur Einträge innerhalb der Aufbewahrungszeit des Pakets geliefert.",
        "parameters": [
          {
            "name": "limit",
            "in": "query",
            "required": false,
            "description": "Anzahl (1 bis 500)",
            "schema": {
              "type": "integer",
              "minimum": 1,
              "maximum": 500,
              "default": 50
            }
          },
          {
            "name": "before",
            "in": "query",
            "required": false,
            "description": "Nur Einträge mit kleinerer ID (Cursor)",
            "schema": {
              "type": "integer"
            }
          },
          {
            "name": "since",
            "in": "query",
            "required": false,
            "description": "Nur Einträge ab diesem Zeitpunkt (ISO 8601)",
            "schema": {
              "type": "string",
              "format": "date-time"
            },
            "example": "2026-10-01T00:00:00+02:00"
          },
          {
            "$ref": "#/components/parameters/ActAs"
          }
        ],
        "responses": {
          "200": {
            "description": "Erfolgreich",
            "content": {
              "application/json": {
                "schema": {
                  "type": "object",
                  "properties": {
                    "data": {
                      "type": "array",
                      "items": {
                        "$ref": "#/components/schemas/LogEntry"
                      }
                    },
                    "meta": {
                      "type": "object",
                      "properties": {
                        "limit": {
                          "type": "integer",
                          "description": "Limit",
                          "example": 50
                        },
                        "next_before": {
                          "type": [
                            "integer",
                            "null"
                          ],
                          "description": "Cursor für die nächste Seite, null = Ende",
                          "example": 83448900
                        },
                        "retention_days": {
                          "type": "integer",
                          "description": "Aufbewahrung",
                          "example": 90
                        }
                      }
                    }
                  },
                  "required": [
                    "data"
                  ]
                }
              }
            }
          },
          "400": {
            "$ref": "#/components/responses/E400"
          },
          "401": {
            "$ref": "#/components/responses/E401"
          },
          "429": {
            "$ref": "#/components/responses/E429"
          }
        }
      }
    },
    "/me/account-links": {
      "get": {
        "tags": [
          "Account"
        ],
        "summary": "Account-Freigaben",
        "operationId": "get_me_account_links",
        "description": "shared_with: wer deinen Account verwalten darf. managed: welche Accounts du verwalten darfst. Mit dem Header X-IPv64-Act-As handelst du für einen verwalteten Account.",
        "parameters": [
          {
            "$ref": "#/components/parameters/ActAs"
          }
        ],
        "responses": {
          "200": {
            "description": "Erfolgreich",
            "content": {
              "application/json": {
                "schema": {
                  "type": "object",
                  "properties": {
                    "data": {
                      "type": "object",
                      "properties": {
                        "shared_with": {
                          "type": "array",
                          "items": {
                            "$ref": "#/components/schemas/AccountLink"
                          }
                        },
                        "managed": {
                          "type": "array",
                          "items": {
                            "$ref": "#/components/schemas/AccountLink"
                          }
                        }
                      }
                    }
                  },
                  "required": [
                    "data"
                  ]
                }
              }
            }
          },
          "401": {
            "$ref": "#/components/responses/E401"
          },
          "429": {
            "$ref": "#/components/responses/E429"
          }
        }
      }
    },
    "/api-keys": {
      "get": {
        "tags": [
          "API-Keys"
        ],
        "summary": "Alle API-Keys",
        "operationId": "get_api_keys",
        "description": "Die Keys selbst werden nie wieder angezeigt, nur Anfang und Ende.",
        "parameters": [
          {
            "$ref": "#/components/parameters/ActAs"
          }
        ],
        "responses": {
          "200": {
            "description": "Erfolgreich",
            "content": {
              "application/json": {
                "schema": {
                  "type": "object",
                  "properties": {
                    "data": {
                      "type": "array",
                      "items": {
                        "$ref": "#/components/schemas/ApiKey"
                      }
                    }
                  },
                  "required": [
                    "data"
                  ]
                }
              }
            }
          },
          "401": {
            "$ref": "#/components/responses/E401"
          },
          "429": {
            "$ref": "#/components/responses/E429"
          }
        }
      },
      "post": {
        "tags": [
          "API-Keys"
        ],
        "summary": "API-Key anlegen",
        "operationId": "post_api_keys",
        "description": "Der vollständige Key steht nur in dieser Antwort.",
        "parameters": [
          {
            "$ref": "#/components/parameters/ActAs"
          }
        ],
        "requestBody": {
          "required": false,
          "content": {
            "application/json": {
              "schema": {
                "type": "object",
                "properties": {
                  "name": {
                    "type": "string",
                    "description": "Name",
                    "example": "Backup-Server"
                  },
                  "expires_in": {
                    "type": "integer",
                    "description": "Gültigkeit in Sekunden, 0 = unbegrenzt",
                    "minimum": 0,
                    "maximum": 315360000,
                    "example": 2592000
                  }
                }
              },
              "example": {
                "name": "Backup-Server",
                "expires_in": 2592000
              }
            }
          }
        },
        "responses": {
          "201": {
            "description": "Angelegt",
            "content": {
              "application/json": {
                "schema": {
                  "type": "object",
                  "properties": {
                    "data": {
                      "$ref": "#/components/schemas/ApiKeyCreated"
                    }
                  },
                  "required": [
                    "data"
                  ]
                }
              }
            }
          },
          "401": {
            "$ref": "#/components/responses/E401"
          },
          "422": {
            "$ref": "#/components/responses/E422"
          },
          "429": {
            "$ref": "#/components/responses/E429"
          }
        }
      }
    },
    "/api-keys/{id}": {
      "delete": {
        "tags": [
          "API-Keys"
        ],
        "summary": "API-Key löschen",
        "operationId": "delete_api_keys_id",
        "description": "Der Key, mit dem du gerade angemeldet bist, kann sich nicht selbst löschen.",
        "parameters": [
          {
            "name": "id",
            "in": "path",
            "required": true,
            "description": "ID der Ressource",
            "schema": {
              "type": "string"
            },
            "example": "12"
          },
          {
            "$ref": "#/components/parameters/ActAs"
          }
        ],
        "responses": {
          "204": {
            "description": "Erfolgreich, ohne Inhalt"
          },
          "401": {
            "$ref": "#/components/responses/E401"
          },
          "404": {
            "$ref": "#/components/responses/E404"
          },
          "409": {
            "$ref": "#/components/responses/E409"
          },
          "429": {
            "$ref": "#/components/responses/E429"
          }
        }
      }
    },
    "/domains": {
      "get": {
        "tags": [
          "Domains"
        ],
        "summary": "Alle Domains",
        "operationId": "get_domains",
        "parameters": [
          {
            "name": "kind",
            "in": "query",
            "required": false,
            "description": "Nur DynDNS- oder nur eigene Domains",
            "schema": {
              "type": "string",
              "enum": [
                "dyndns",
                "own"
              ]
            }
          },
          {
            "$ref": "#/components/parameters/ActAs"
          }
        ],
        "responses": {
          "200": {
            "description": "Erfolgreich",
            "content": {
              "application/json": {
                "schema": {
                  "type": "object",
                  "properties": {
                    "data": {
                      "type": "array",
                      "items": {
                        "$ref": "#/components/schemas/Domain"
                      }
                    }
                  },
                  "required": [
                    "data"
                  ]
                }
              }
            }
          },
          "400": {
            "$ref": "#/components/responses/E400"
          },
          "401": {
            "$ref": "#/components/responses/E401"
          },
          "429": {
            "$ref": "#/components/responses/E429"
          }
        }
      },
      "post": {
        "tags": [
          "Domains"
        ],
        "summary": "Domain anlegen",
        "operationId": "post_domains",
        "description": "DynDNS-Domain: name als <wunschname>.<zone>, Zonen: ipv64.net, ipv64.de, any64.de, api64.de, dns64.de, dyndns64.de, dynipv6.de, eth64.de, home64.de, iot64.de, lan64.de, nas64.de, root64.de, route64.de, srv64.de, tcp64.de, udp64.de, vpn64.de, wan64.de. Eigene Domain: own auf true setzen und danach die Nameserver ns1.ipv64.net und ns2.ipv64.net beim Registrar eintragen. Die Limits deines Pakets gelten.",
        "parameters": [
          {
            "$ref": "#/components/parameters/ActAs"
          }
        ],
        "requestBody": {
          "required": true,
          "content": {
            "application/json": {
              "schema": {
                "type": "object",
                "properties": {
                  "name": {
                    "type": "string",
                    "description": "Domainname",
                    "example": "meinname.ipv64.de"
                  },
                  "own": {
                    "type": "boolean",
                    "description": "Eigene Domain statt DynDNS",
                    "example": false
                  }
                },
                "required": [
                  "name"
                ]
              },
              "example": {
                "name": "meinname.ipv64.de"
              }
            }
          }
        },
        "responses": {
          "201": {
            "description": "Angelegt",
            "content": {
              "application/json": {
                "schema": {
                  "type": "object",
                  "properties": {
                    "data": {
                      "$ref": "#/components/schemas/DomainDetail"
                    }
                  },
                  "required": [
                    "data"
                  ]
                }
              }
            }
          },
          "401": {
            "$ref": "#/components/responses/E401"
          },
          "403": {
            "$ref": "#/components/responses/E403"
          },
          "409": {
            "$ref": "#/components/responses/E409"
          },
          "422": {
            "$ref": "#/components/responses/E422"
          },
          "429": {
            "$ref": "#/components/responses/E429"
          }
        }
      }
    },
    "/domains/{domain}": {
      "get": {
        "tags": [
          "Domains"
        ],
        "summary": "Domain mit Records",
        "operationId": "get_domains_domain",
        "parameters": [
          {
            "name": "domain",
            "in": "path",
            "required": true,
            "description": "Domain-ID oder vollständiger Name, z. B. beispiel.ipv64.de",
            "schema": {
              "type": "string"
            },
            "example": "beispiel.ipv64.de"
          },
          {
            "$ref": "#/components/parameters/ActAs"
          }
        ],
        "responses": {
          "200": {
            "description": "Erfolgreich",
            "content": {
              "application/json": {
                "schema": {
                  "type": "object",
                  "properties": {
                    "data": {
                      "$ref": "#/components/schemas/DomainDetail"
                    }
                  },
                  "required": [
                    "data"
                  ]
                }
              }
            }
          },
          "401": {
            "$ref": "#/components/responses/E401"
          },
          "404": {
            "$ref": "#/components/responses/E404"
          },
          "429": {
            "$ref": "#/components/responses/E429"
          }
        }
      },
      "patch": {
        "tags": [
          "Domains"
        ],
        "summary": "Domain-Einstellungen ändern",
        "operationId": "patch_domains_domain",
        "description": "Nur mitgeschickte Felder werden geändert.",
        "parameters": [
          {
            "name": "domain",
            "in": "path",
            "required": true,
            "description": "Domain-ID oder vollständiger Name, z. B. beispiel.ipv64.de",
            "schema": {
              "type": "string"
            },
            "example": "beispiel.ipv64.de"
          },
          {
            "$ref": "#/components/parameters/ActAs"
          }
        ],
        "requestBody": {
          "required": false,
          "content": {
            "application/json": {
              "schema": {
                "type": "object",
                "properties": {
                  "wildcard": {
                    "type": "boolean",
                    "description": "Wildcard *.name an oder aus",
                    "example": true
                  },
                  "ignore": {
                    "type": "string",
                    "description": "Adressfamilie bei DynDNS-Updates ignorieren",
                    "enum": [
                      "none",
                      "ipv4",
                      "ipv6"
                    ],
                    "example": "none"
                  },
                  "ipv6_prefix": {
                    "type": "string",
                    "description": "Fester IPv6-Präfix wie 2001:db8:1234:5600::/56, leer = aus",
                    "example": "2001:db8:1234:5600::/56"
                  }
                }
              },
              "example": {
                "wildcard": true,
                "ignore": "none"
              }
            }
          }
        },
        "responses": {
          "200": {
            "description": "Erfolgreich",
            "content": {
              "application/json": {
                "schema": {
                  "type": "object",
                  "properties": {
                    "data": {
                      "$ref": "#/components/schemas/DomainDetail"
                    }
                  },
                  "required": [
                    "data"
                  ]
                }
              }
            }
          },
          "401": {
            "$ref": "#/components/responses/E401"
          },
          "404": {
            "$ref": "#/components/responses/E404"
          },
          "422": {
            "$ref": "#/components/responses/E422"
          },
          "429": {
            "$ref": "#/components/responses/E429"
          }
        }
      },
      "delete": {
        "tags": [
          "Domains"
        ],
        "summary": "Domain löschen",
        "operationId": "delete_domains_domain",
        "description": "Löscht die Domain mit allen Records. Nicht möglich, solange ein DNS-Failover aktiv ist.",
        "parameters": [
          {
            "name": "domain",
            "in": "path",
            "required": true,
            "description": "Domain-ID oder vollständiger Name, z. B. beispiel.ipv64.de",
            "schema": {
              "type": "string"
            },
            "example": "beispiel.ipv64.de"
          },
          {
            "$ref": "#/components/parameters/ActAs"
          }
        ],
        "responses": {
          "204": {
            "description": "Erfolgreich, ohne Inhalt"
          },
          "401": {
            "$ref": "#/components/responses/E401"
          },
          "404": {
            "$ref": "#/components/responses/E404"
          },
          "409": {
            "$ref": "#/components/responses/E409"
          },
          "429": {
            "$ref": "#/components/responses/E429"
          }
        }
      }
    },
    "/domains/{domain}/rotate-token": {
      "post": {
        "tags": [
          "Domains"
        ],
        "summary": "Neuen Domain-Update-Token erzeugen",
        "operationId": "post_domains_domain_rotate_token",
        "description": "Der alte Token für update.php ist sofort ungültig.",
        "parameters": [
          {
            "name": "domain",
            "in": "path",
            "required": true,
            "description": "Domain-ID oder vollständiger Name, z. B. beispiel.ipv64.de",
            "schema": {
              "type": "string"
            },
            "example": "beispiel.ipv64.de"
          },
          {
            "$ref": "#/components/parameters/ActAs"
          }
        ],
        "responses": {
          "200": {
            "description": "Erfolgreich",
            "content": {
              "application/json": {
                "schema": {
                  "type": "object",
                  "properties": {
                    "data": {
                      "$ref": "#/components/schemas/Domain"
                    }
                  },
                  "required": [
                    "data"
                  ]
                }
              }
            }
          },
          "401": {
            "$ref": "#/components/responses/E401"
          },
          "404": {
            "$ref": "#/components/responses/E404"
          },
          "429": {
            "$ref": "#/components/responses/E429"
          }
        }
      }
    },
    "/domains/{domain}/reset": {
      "post": {
        "tags": [
          "Domains"
        ],
        "summary": "Domain zurücksetzen",
        "operationId": "post_domains_domain_reset",
        "description": "Löscht alle aktiven Records und setzt die Zone neu auf.",
        "parameters": [
          {
            "name": "domain",
            "in": "path",
            "required": true,
            "description": "Domain-ID oder vollständiger Name, z. B. beispiel.ipv64.de",
            "schema": {
              "type": "string"
            },
            "example": "beispiel.ipv64.de"
          },
          {
            "$ref": "#/components/parameters/ActAs"
          }
        ],
        "responses": {
          "200": {
            "description": "Erfolgreich",
            "content": {
              "application/json": {
                "schema": {
                  "type": "object",
                  "properties": {
                    "data": {
                      "$ref": "#/components/schemas/DomainDetail"
                    }
                  },
                  "required": [
                    "data"
                  ]
                }
              }
            }
          },
          "401": {
            "$ref": "#/components/responses/E401"
          },
          "404": {
            "$ref": "#/components/responses/E404"
          },
          "409": {
            "$ref": "#/components/responses/E409"
          },
          "429": {
            "$ref": "#/components/responses/E429"
          }
        }
      }
    },
    "/domains/{domain}/dyndns": {
      "post": {
        "tags": [
          "DynDNS"
        ],
        "summary": "IP aktualisieren",
        "operationId": "post_domains_domain_dyndns",
        "description": "Setzt A- und AAAA-Records einer Domain oder eines Präfixes. Ohne ipv4 und ipv6 wird die Absenderadresse verwendet. Nur öffentliche Adressen sind erlaubt. Fehlende Records werden angelegt. Das Update zählt in der Statistik, ist über die API aber nicht durch das Tageslimit begrenzt.",
        "parameters": [
          {
            "name": "domain",
            "in": "path",
            "required": true,
            "description": "Domain-ID oder vollständiger Name, z. B. beispiel.ipv64.de",
            "schema": {
              "type": "string"
            },
            "example": "beispiel.ipv64.de"
          },
          {
            "$ref": "#/components/parameters/ActAs"
          }
        ],
        "requestBody": {
          "required": false,
          "content": {
            "application/json": {
              "schema": {
                "type": "object",
                "properties": {
                  "ipv4": {
                    "type": "string",
                    "description": "IPv4-Adresse",
                    "example": "203.0.113.10"
                  },
                  "ipv6": {
                    "type": "string",
                    "description": "IPv6-Adresse",
                    "example": "2001:db8::10"
                  },
                  "prefix": {
                    "type": "string",
                    "description": "Präfix, leer = Domain selbst",
                    "example": "nas"
                  }
                }
              },
              "example": {
                "ipv4": "203.0.113.10",
                "ipv6": "2001:db8::10"
              }
            }
          }
        },
        "responses": {
          "200": {
            "description": "Erfolgreich",
            "content": {
              "application/json": {
                "schema": {
                  "type": "object",
                  "properties": {
                    "data": {
                      "$ref": "#/components/schemas/DynDnsResult"
                    }
                  },
                  "required": [
                    "data"
                  ]
                }
              }
            }
          },
          "401": {
            "$ref": "#/components/responses/E401"
          },
          "404": {
            "$ref": "#/components/responses/E404"
          },
          "409": {
            "$ref": "#/components/responses/E409"
          },
          "422": {
            "$ref": "#/components/responses/E422"
          },
          "429": {
            "$ref": "#/components/responses/E429"
          }
        }
      }
    },
    "/domains/{domain}/records": {
      "get": {
        "tags": [
          "DNS-Records"
        ],
        "summary": "Records einer Domain",
        "operationId": "get_domains_domain_records",
        "parameters": [
          {
            "name": "domain",
            "in": "path",
            "required": true,
            "description": "Domain-ID oder vollständiger Name, z. B. beispiel.ipv64.de",
            "schema": {
              "type": "string"
            },
            "example": "beispiel.ipv64.de"
          },
          {
            "name": "type",
            "in": "query",
            "required": false,
            "description": "Nur dieser Typ",
            "schema": {
              "type": "string",
              "enum": [
                "A",
                "AAAA",
                "CNAME",
                "MX",
                "TXT",
                "NS",
                "SRV",
                "TLSA",
                "CAA"
              ]
            }
          },
          {
            "name": "prefix",
            "in": "query",
            "required": false,
            "description": "Nur dieser Präfix",
            "schema": {
              "type": "string"
            },
            "example": "_acme-challenge"
          },
          {
            "$ref": "#/components/parameters/ActAs"
          }
        ],
        "responses": {
          "200": {
            "description": "Erfolgreich",
            "content": {
              "application/json": {
                "schema": {
                  "type": "object",
                  "properties": {
                    "data": {
                      "type": "array",
                      "items": {
                        "$ref": "#/components/schemas/Record"
                      }
                    }
                  },
                  "required": [
                    "data"
                  ]
                }
              }
            }
          },
          "400": {
            "$ref": "#/components/responses/E400"
          },
          "401": {
            "$ref": "#/components/responses/E401"
          },
          "404": {
            "$ref": "#/components/responses/E404"
          },
          "429": {
            "$ref": "#/components/responses/E429"
          }
        }
      },
      "post": {
        "tags": [
          "DNS-Records"
        ],
        "summary": "Record anlegen",
        "operationId": "post_domains_domain_records",
        "description": "TTL ist fest 60 Sekunden. Formate je Typ wie in der Weboberfläche, zum Beispiel MX als \"10 mail.example.com\".",
        "parameters": [
          {
            "name": "domain",
            "in": "path",
            "required": true,
            "description": "Domain-ID oder vollständiger Name, z. B. beispiel.ipv64.de",
            "schema": {
              "type": "string"
            },
            "example": "beispiel.ipv64.de"
          },
          {
            "$ref": "#/components/parameters/ActAs"
          }
        ],
        "requestBody": {
          "required": true,
          "content": {
            "application/json": {
              "schema": {
                "type": "object",
                "properties": {
                  "type": {
                    "type": "string",
                    "description": "Typ",
                    "enum": [
                      "A",
                      "AAAA",
                      "CNAME",
                      "MX",
                      "TXT",
                      "NS",
                      "SRV",
                      "TLSA",
                      "CAA"
                    ],
                    "example": "TXT"
                  },
                  "prefix": {
                    "type": "string",
                    "description": "Präfix, leer oder @ = Domain selbst",
                    "example": "_acme-challenge"
                  },
                  "content": {
                    "type": "string",
                    "description": "Inhalt",
                    "example": "abc123"
                  }
                },
                "required": [
                  "type",
                  "content"
                ]
              },
              "example": {
                "type": "TXT",
                "prefix": "_acme-challenge",
                "content": "gfj9Xq...Rg85nM"
              }
            }
          }
        },
        "responses": {
          "201": {
            "description": "Angelegt",
            "content": {
              "application/json": {
                "schema": {
                  "type": "object",
                  "properties": {
                    "data": {
                      "$ref": "#/components/schemas/Record"
                    }
                  },
                  "required": [
                    "data"
                  ]
                }
              }
            }
          },
          "401": {
            "$ref": "#/components/responses/E401"
          },
          "404": {
            "$ref": "#/components/responses/E404"
          },
          "409": {
            "$ref": "#/components/responses/E409"
          },
          "422": {
            "$ref": "#/components/responses/E422"
          },
          "429": {
            "$ref": "#/components/responses/E429"
          }
        }
      },
      "delete": {
        "tags": [
          "DNS-Records"
        ],
        "summary": "Record nach Inhalt löschen",
        "operationId": "delete_domains_domain_records",
        "description": "Praktisch für ACME-Clients: löscht den Record mit genau diesem Typ, Präfix und Inhalt.",
        "parameters": [
          {
            "name": "domain",
            "in": "path",
            "required": true,
            "description": "Domain-ID oder vollständiger Name, z. B. beispiel.ipv64.de",
            "schema": {
              "type": "string"
            },
            "example": "beispiel.ipv64.de"
          },
          {
            "name": "type",
            "in": "query",
            "required": true,
            "description": "Typ",
            "schema": {
              "type": "string",
              "enum": [
                "A",
                "AAAA",
                "CNAME",
                "MX",
                "TXT",
                "NS",
                "SRV",
                "TLSA",
                "CAA"
              ]
            },
            "example": "TXT"
          },
          {
            "name": "content",
            "in": "query",
            "required": true,
            "description": "Inhalt",
            "schema": {
              "type": "string"
            },
            "example": "gfj9Xq...Rg85nM"
          },
          {
            "name": "prefix",
            "in": "query",
            "required": false,
            "description": "Präfix",
            "schema": {
              "type": "string"
            },
            "example": "_acme-challenge"
          },
          {
            "$ref": "#/components/parameters/ActAs"
          }
        ],
        "responses": {
          "204": {
            "description": "Erfolgreich, ohne Inhalt"
          },
          "400": {
            "$ref": "#/components/responses/E400"
          },
          "401": {
            "$ref": "#/components/responses/E401"
          },
          "404": {
            "$ref": "#/components/responses/E404"
          },
          "429": {
            "$ref": "#/components/responses/E429"
          }
        }
      }
    },
    "/records/{record}": {
      "get": {
        "tags": [
          "DNS-Records"
        ],
        "summary": "Einzelner Record",
        "operationId": "get_records_record",
        "parameters": [
          {
            "name": "record",
            "in": "path",
            "required": true,
            "description": "Record-ID oder Record-Token",
            "schema": {
              "type": "string"
            },
            "example": "4711"
          },
          {
            "$ref": "#/components/parameters/ActAs"
          }
        ],
        "responses": {
          "200": {
            "description": "Erfolgreich",
            "content": {
              "application/json": {
                "schema": {
                  "type": "object",
                  "properties": {
                    "data": {
                      "$ref": "#/components/schemas/Record"
                    }
                  },
                  "required": [
                    "data"
                  ]
                }
              }
            }
          },
          "401": {
            "$ref": "#/components/responses/E401"
          },
          "404": {
            "$ref": "#/components/responses/E404"
          },
          "429": {
            "$ref": "#/components/responses/E429"
          }
        }
      },
      "patch": {
        "tags": [
          "DNS-Records"
        ],
        "summary": "Record ändern",
        "operationId": "patch_records_record",
        "description": "Ändert sich nur die IP eines A- oder AAAA-Records, bleiben ID und Token erhalten. Bei anderen Änderungen wird der Record ersetzt und bekommt eine neue ID und einen neuen Token. Records, die vom CDN oder DNS-Failover verwaltet werden, sind gesperrt.",
        "parameters": [
          {
            "name": "record",
            "in": "path",
            "required": true,
            "description": "Record-ID oder Record-Token",
            "schema": {
              "type": "string"
            },
            "example": "4711"
          },
          {
            "$ref": "#/components/parameters/ActAs"
          }
        ],
        "requestBody": {
          "required": false,
          "content": {
            "application/json": {
              "schema": {
                "type": "object",
                "properties": {
                  "type": {
                    "type": "string",
                    "description": "Typ",
                    "enum": [
                      "A",
                      "AAAA",
                      "CNAME",
                      "MX",
                      "TXT",
                      "NS",
                      "SRV",
                      "TLSA",
                      "CAA"
                    ],
                    "example": "A"
                  },
                  "prefix": {
                    "type": "string",
                    "description": "Präfix",
                    "example": "nas"
                  },
                  "content": {
                    "type": "string",
                    "description": "Inhalt",
                    "example": "203.0.113.20"
                  }
                }
              },
              "example": {
                "content": "203.0.113.20"
              }
            }
          }
        },
        "responses": {
          "200": {
            "description": "Erfolgreich",
            "content": {
              "application/json": {
                "schema": {
                  "type": "object",
                  "properties": {
                    "data": {
                      "$ref": "#/components/schemas/Record"
                    }
                  },
                  "required": [
                    "data"
                  ]
                }
              }
            }
          },
          "401": {
            "$ref": "#/components/responses/E401"
          },
          "404": {
            "$ref": "#/components/responses/E404"
          },
          "409": {
            "$ref": "#/components/responses/E409"
          },
          "422": {
            "$ref": "#/components/responses/E422"
          },
          "429": {
            "$ref": "#/components/responses/E429"
          }
        }
      },
      "delete": {
        "tags": [
          "DNS-Records"
        ],
        "summary": "Record löschen",
        "operationId": "delete_records_record",
        "parameters": [
          {
            "name": "record",
            "in": "path",
            "required": true,
            "description": "Record-ID oder Record-Token",
            "schema": {
              "type": "string"
            },
            "example": "4711"
          },
          {
            "$ref": "#/components/parameters/ActAs"
          }
        ],
        "responses": {
          "204": {
            "description": "Erfolgreich, ohne Inhalt"
          },
          "401": {
            "$ref": "#/components/responses/E401"
          },
          "404": {
            "$ref": "#/components/responses/E404"
          },
          "409": {
            "$ref": "#/components/responses/E409"
          },
          "429": {
            "$ref": "#/components/responses/E429"
          }
        }
      }
    },
    "/healthchecks": {
      "get": {
        "tags": [
          "Healthchecks"
        ],
        "summary": "Alle Healthchecks",
        "operationId": "get_healthchecks",
        "parameters": [
          {
            "name": "type",
            "in": "query",
            "required": false,
            "description": "Nur diese Art",
            "schema": {
              "type": "string",
              "enum": [
                "push",
                "icmp",
                "tcp",
                "http",
                "keyword"
              ]
            }
          },
          {
            "name": "status",
            "in": "query",
            "required": false,
            "description": "Nur dieser Status",
            "schema": {
              "type": "string",
              "enum": [
                "new",
                "up",
                "paused",
                "warning",
                "down",
                "stabilizing"
              ]
            }
          },
          {
            "$ref": "#/components/parameters/ActAs"
          }
        ],
        "responses": {
          "200": {
            "description": "Erfolgreich",
            "content": {
              "application/json": {
                "schema": {
                  "type": "object",
                  "properties": {
                    "data": {
                      "type": "array",
                      "items": {
                        "$ref": "#/components/schemas/Healthcheck"
                      }
                    }
                  },
                  "required": [
                    "data"
                  ]
                }
              }
            }
          },
          "400": {
            "$ref": "#/components/responses/E400"
          },
          "401": {
            "$ref": "#/components/responses/E401"
          },
          "429": {
            "$ref": "#/components/responses/E429"
          }
        }
      },
      "post": {
        "tags": [
          "Healthchecks"
        ],
        "summary": "Healthcheck anlegen",
        "operationId": "post_healthchecks",
        "description": "Push-Check: Danach push.url aus der Antwort regelmäßig aufrufen. Aktive Checks: target bzw. url ist Pflicht.",
        "parameters": [
          {
            "$ref": "#/components/parameters/ActAs"
          }
        ],
        "requestBody": {
          "required": true,
          "content": {
            "application/json": {
              "schema": {
                "type": "object",
                "properties": {
                  "name": {
                    "type": "string",
                    "description": "Name",
                    "example": "Backup NAS"
                  },
                  "type": {
                    "type": "string",
                    "description": "Art. Erlaubt sind auch die Namen der Weboberfläche: health, ping, web.",
                    "enum": [
                      "push",
                      "icmp",
                      "tcp",
                      "http",
                      "keyword"
                    ],
                    "example": "push"
                  },
                  "integrations": {
                    "type": "array",
                    "items": {
                      "type": "integer",
                      "example": 0
                    },
                    "description": "Integrationen für Benachrichtigungen, 0 = Account-E-Mail"
                  },
                  "notify_on_down": {
                    "type": "boolean",
                    "description": "Bei DOWN benachrichtigen",
                    "example": true
                  },
                  "notify_on_up": {
                    "type": "boolean",
                    "description": "Bei UP benachrichtigen",
                    "example": true
                  },
                  "period_seconds": {
                    "type": "integer",
                    "description": "push: erwarteter Abstand der Pings. Ganze Minuten, Stunden oder Tage.",
                    "minimum": 60,
                    "example": 3600
                  },
                  "grace_seconds": {
                    "type": "integer",
                    "description": "push: Kulanzzeit nach Ablauf der Periode. Ganze Minuten, Stunden oder Tage.",
                    "minimum": 60,
                    "example": 600
                  },
                  "target": {
                    "type": "string",
                    "description": "icmp und tcp: Hostname oder IP",
                    "example": "nas.beispiel.ipv64.de"
                  },
                  "prefer_ipv4": {
                    "type": "boolean",
                    "description": "icmp und tcp: IPv4 bevorzugen",
                    "example": false
                  },
                  "port": {
                    "type": "integer",
                    "description": "tcp: Port",
                    "minimum": 1,
                    "maximum": 65535,
                    "example": 443
                  },
                  "url": {
                    "type": "string",
                    "description": "http und keyword: URL",
                    "example": "https://example.com/health"
                  },
                  "verify_tls": {
                    "type": "boolean",
                    "description": "http und keyword: Zertifikat prüfen",
                    "example": true
                  },
                  "keyword": {
                    "type": "string",
                    "description": "keyword: Text, der auf der Seite stehen muss",
                    "example": "OK"
                  },
                  "interval_seconds": {
                    "type": "integer",
                    "description": "Aktive Checks: Prüfintervall. Free-Paket mindestens 120 Sekunden.",
                    "minimum": 1,
                    "maximum": 86400,
                    "example": 300
                  },
                  "retry_interval_seconds": {
                    "type": "integer",
                    "description": "Aktive Checks: Intervall nach einem Fehler, mindestens 10 Sekunden",
                    "minimum": 1,
                    "maximum": 86400,
                    "example": 60
                  },
                  "failures_before_alarm": {
                    "type": "integer",
                    "description": "Aktive Checks: Fehlschläge bis zum Alarm",
                    "minimum": 1,
                    "maximum": 60,
                    "example": 3
                  }
                },
                "required": [
                  "name"
                ]
              },
              "example": {
                "name": "Webseite",
                "type": "http",
                "url": "https://example.com/",
                "interval_seconds": 300,
                "integrations": [
                  0
                ]
              }
            }
          }
        },
        "responses": {
          "201": {
            "description": "Angelegt",
            "content": {
              "application/json": {
                "schema": {
                  "type": "object",
                  "properties": {
                    "data": {
                      "$ref": "#/components/schemas/HealthcheckDetail"
                    }
                  },
                  "required": [
                    "data"
                  ]
                }
              }
            }
          },
          "401": {
            "$ref": "#/components/responses/E401"
          },
          "403": {
            "$ref": "#/components/responses/E403"
          },
          "422": {
            "$ref": "#/components/responses/E422"
          },
          "429": {
            "$ref": "#/components/responses/E429"
          }
        }
      }
    },
    "/healthchecks/{token}": {
      "get": {
        "tags": [
          "Healthchecks"
        ],
        "summary": "Healthcheck mit den letzten Events",
        "operationId": "get_healthchecks_token",
        "parameters": [
          {
            "name": "token",
            "in": "path",
            "required": true,
            "description": "Token bzw. ID der Ressource (32 Zeichen)",
            "schema": {
              "type": "string"
            },
            "example": "Ab3dEf6hIj9kLm2nOp5qRs8tUv1wXy4z"
          },
          {
            "$ref": "#/components/parameters/ActAs"
          }
        ],
        "responses": {
          "200": {
            "description": "Erfolgreich",
            "content": {
              "application/json": {
                "schema": {
                  "type": "object",
                  "properties": {
                    "data": {
                      "$ref": "#/components/schemas/HealthcheckDetail"
                    }
                  },
                  "required": [
                    "data"
                  ]
                }
              }
            }
          },
          "401": {
            "$ref": "#/components/responses/E401"
          },
          "404": {
            "$ref": "#/components/responses/E404"
          },
          "429": {
            "$ref": "#/components/responses/E429"
          }
        }
      },
      "patch": {
        "tags": [
          "Healthchecks"
        ],
        "summary": "Healthcheck ändern",
        "operationId": "patch_healthchecks_token",
        "description": "Nur mitgeschickte Felder werden geändert. Ein Wechsel von type setzt die Prüf-Einstellungen zurück.",
        "parameters": [
          {
            "name": "token",
            "in": "path",
            "required": true,
            "description": "Token bzw. ID der Ressource (32 Zeichen)",
            "schema": {
              "type": "string"
            },
            "example": "Ab3dEf6hIj9kLm2nOp5qRs8tUv1wXy4z"
          },
          {
            "$ref": "#/components/parameters/ActAs"
          }
        ],
        "requestBody": {
          "required": false,
          "content": {
            "application/json": {
              "schema": {
                "type": "object",
                "properties": {
                  "name": {
                    "type": "string",
                    "description": "Name",
                    "example": "Backup NAS"
                  },
                  "type": {
                    "type": "string",
                    "description": "Art. Erlaubt sind auch die Namen der Weboberfläche: health, ping, web.",
                    "enum": [
                      "push",
                      "icmp",
                      "tcp",
                      "http",
                      "keyword"
                    ],
                    "example": "push"
                  },
                  "integrations": {
                    "type": "array",
                    "items": {
                      "type": "integer",
                      "example": 0
                    },
                    "description": "Integrationen für Benachrichtigungen, 0 = Account-E-Mail"
                  },
                  "notify_on_down": {
                    "type": "boolean",
                    "description": "Bei DOWN benachrichtigen",
                    "example": true
                  },
                  "notify_on_up": {
                    "type": "boolean",
                    "description": "Bei UP benachrichtigen",
                    "example": true
                  },
                  "period_seconds": {
                    "type": "integer",
                    "description": "push: erwarteter Abstand der Pings. Ganze Minuten, Stunden oder Tage.",
                    "minimum": 60,
                    "example": 3600
                  },
                  "grace_seconds": {
                    "type": "integer",
                    "description": "push: Kulanzzeit nach Ablauf der Periode. Ganze Minuten, Stunden oder Tage.",
                    "minimum": 60,
                    "example": 600
                  },
                  "target": {
                    "type": "string",
                    "description": "icmp und tcp: Hostname oder IP",
                    "example": "nas.beispiel.ipv64.de"
                  },
                  "prefer_ipv4": {
                    "type": "boolean",
                    "description": "icmp und tcp: IPv4 bevorzugen",
                    "example": false
                  },
                  "port": {
                    "type": "integer",
                    "description": "tcp: Port",
                    "minimum": 1,
                    "maximum": 65535,
                    "example": 443
                  },
                  "url": {
                    "type": "string",
                    "description": "http und keyword: URL",
                    "example": "https://example.com/health"
                  },
                  "verify_tls": {
                    "type": "boolean",
                    "description": "http und keyword: Zertifikat prüfen",
                    "example": true
                  },
                  "keyword": {
                    "type": "string",
                    "description": "keyword: Text, der auf der Seite stehen muss",
                    "example": "OK"
                  },
                  "interval_seconds": {
                    "type": "integer",
                    "description": "Aktive Checks: Prüfintervall. Free-Paket mindestens 120 Sekunden.",
                    "minimum": 1,
                    "maximum": 86400,
                    "example": 300
                  },
                  "retry_interval_seconds": {
                    "type": "integer",
                    "description": "Aktive Checks: Intervall nach einem Fehler, mindestens 10 Sekunden",
                    "minimum": 1,
                    "maximum": 86400,
                    "example": 60
                  },
                  "failures_before_alarm": {
                    "type": "integer",
                    "description": "Aktive Checks: Fehlschläge bis zum Alarm",
                    "minimum": 1,
                    "maximum": 60,
                    "example": 3
                  }
                }
              },
              "example": {
                "interval_seconds": 60,
                "failures_before_alarm": 2
              }
            }
          }
        },
        "responses": {
          "200": {
            "description": "Erfolgreich",
            "content": {
              "application/json": {
                "schema": {
                  "type": "object",
                  "properties": {
                    "data": {
                      "$ref": "#/components/schemas/HealthcheckDetail"
                    }
                  },
                  "required": [
                    "data"
                  ]
                }
              }
            }
          },
          "401": {
            "$ref": "#/components/responses/E401"
          },
          "404": {
            "$ref": "#/components/responses/E404"
          },
          "422": {
            "$ref": "#/components/responses/E422"
          },
          "429": {
            "$ref": "#/components/responses/E429"
          }
        }
      },
      "delete": {
        "tags": [
          "Healthchecks"
        ],
        "summary": "Healthcheck löschen",
        "operationId": "delete_healthchecks_token",
        "description": "Nicht möglich, solange der Check einen aktiven DNS-Failover steuert.",
        "parameters": [
          {
            "name": "token",
            "in": "path",
            "required": true,
            "description": "Token bzw. ID der Ressource (32 Zeichen)",
            "schema": {
              "type": "string"
            },
            "example": "Ab3dEf6hIj9kLm2nOp5qRs8tUv1wXy4z"
          },
          {
            "$ref": "#/components/parameters/ActAs"
          }
        ],
        "responses": {
          "204": {
            "description": "Erfolgreich, ohne Inhalt"
          },
          "401": {
            "$ref": "#/components/responses/E401"
          },
          "404": {
            "$ref": "#/components/responses/E404"
          },
          "409": {
            "$ref": "#/components/responses/E409"
          },
          "429": {
            "$ref": "#/components/responses/E429"
          }
        }
      }
    },
    "/healthchecks/{token}/pause": {
      "post": {
        "tags": [
          "Healthchecks"
        ],
        "summary": "Pausieren",
        "operationId": "post_healthchecks_token_pause",
        "parameters": [
          {
            "name": "token",
            "in": "path",
            "required": true,
            "description": "Token bzw. ID der Ressource (32 Zeichen)",
            "schema": {
              "type": "string"
            },
            "example": "Ab3dEf6hIj9kLm2nOp5qRs8tUv1wXy4z"
          },
          {
            "$ref": "#/components/parameters/ActAs"
          }
        ],
        "responses": {
          "200": {
            "description": "Erfolgreich",
            "content": {
              "application/json": {
                "schema": {
                  "type": "object",
                  "properties": {
                    "data": {
                      "$ref": "#/components/schemas/Healthcheck"
                    }
                  },
                  "required": [
                    "data"
                  ]
                }
              }
            }
          },
          "401": {
            "$ref": "#/components/responses/E401"
          },
          "404": {
            "$ref": "#/components/responses/E404"
          },
          "409": {
            "$ref": "#/components/responses/E409"
          },
          "429": {
            "$ref": "#/components/responses/E429"
          }
        }
      }
    },
    "/healthchecks/{token}/resume": {
      "post": {
        "tags": [
          "Healthchecks"
        ],
        "summary": "Fortsetzen",
        "operationId": "post_healthchecks_token_resume",
        "parameters": [
          {
            "name": "token",
            "in": "path",
            "required": true,
            "description": "Token bzw. ID der Ressource (32 Zeichen)",
            "schema": {
              "type": "string"
            },
            "example": "Ab3dEf6hIj9kLm2nOp5qRs8tUv1wXy4z"
          },
          {
            "$ref": "#/components/parameters/ActAs"
          }
        ],
        "responses": {
          "200": {
            "description": "Erfolgreich",
            "content": {
              "application/json": {
                "schema": {
                  "type": "object",
                  "properties": {
                    "data": {
                      "$ref": "#/components/schemas/Healthcheck"
                    }
                  },
                  "required": [
                    "data"
                  ]
                }
              }
            }
          },
          "401": {
            "$ref": "#/components/responses/E401"
          },
          "403": {
            "$ref": "#/components/responses/E403"
          },
          "404": {
            "$ref": "#/components/responses/E404"
          },
          "429": {
            "$ref": "#/components/responses/E429"
          }
        }
      }
    },
    "/healthchecks/{token}/rotate-token": {
      "post": {
        "tags": [
          "Healthchecks"
        ],
        "summary": "Neuen Token erzeugen",
        "operationId": "post_healthchecks_token_rotate_token",
        "description": "Die Push-URL ändert sich dadurch. Events, Incidents und Failover-Monitore werden mitgenommen.",
        "parameters": [
          {
            "name": "token",
            "in": "path",
            "required": true,
            "description": "Token bzw. ID der Ressource (32 Zeichen)",
            "schema": {
              "type": "string"
            },
            "example": "Ab3dEf6hIj9kLm2nOp5qRs8tUv1wXy4z"
          },
          {
            "$ref": "#/components/parameters/ActAs"
          }
        ],
        "responses": {
          "200": {
            "description": "Erfolgreich",
            "content": {
              "application/json": {
                "schema": {
                  "type": "object",
                  "properties": {
                    "data": {
                      "$ref": "#/components/schemas/Healthcheck"
                    }
                  },
                  "required": [
                    "data"
                  ]
                }
              }
            }
          },
          "401": {
            "$ref": "#/components/responses/E401"
          },
          "404": {
            "$ref": "#/components/responses/E404"
          },
          "429": {
            "$ref": "#/components/responses/E429"
          }
        }
      }
    },
    "/healthchecks/{token}/events": {
      "get": {
        "tags": [
          "Healthchecks"
        ],
        "summary": "Events",
        "operationId": "get_healthchecks_token_events",
        "description": "Ohne Cursor die neuesten zuerst. Mit after werden ältere zuerst geliefert, ideal zum fortlaufenden Abholen neuer Events.",
        "parameters": [
          {
            "name": "token",
            "in": "path",
            "required": true,
            "description": "Token bzw. ID der Ressource (32 Zeichen)",
            "schema": {
              "type": "string"
            },
            "example": "Ab3dEf6hIj9kLm2nOp5qRs8tUv1wXy4z"
          },
          {
            "name": "limit",
            "in": "query",
            "required": false,
            "description": "Anzahl (1 bis 1000)",
            "schema": {
              "type": "integer",
              "minimum": 1,
              "maximum": 1000,
              "default": 100
            }
          },
          {
            "name": "before",
            "in": "query",
            "required": false,
            "description": "Nur Events mit kleinerer ID",
            "schema": {
              "type": "integer"
            }
          },
          {
            "name": "after",
            "in": "query",
            "required": false,
            "description": "Nur Events mit größerer ID, aufsteigend sortiert",
            "schema": {
              "type": "integer"
            }
          },
          {
            "name": "since",
            "in": "query",
            "required": false,
            "description": "Nur Events ab diesem Zeitpunkt (ISO 8601)",
            "schema": {
              "type": "string",
              "format": "date-time"
            }
          },
          {
            "$ref": "#/components/parameters/ActAs"
          }
        ],
        "responses": {
          "200": {
            "description": "Erfolgreich",
            "content": {
              "application/json": {
                "schema": {
                  "type": "object",
                  "properties": {
                    "data": {
                      "type": "array",
                      "items": {
                        "$ref": "#/components/schemas/HealthcheckEvent"
                      }
                    },
                    "meta": {
                      "type": "object",
                      "properties": {
                        "limit": {
                          "type": "integer",
                          "description": "Limit",
                          "example": 100
                        },
                        "has_more": {
                          "type": "boolean",
                          "description": "Weitere Events vorhanden",
                          "example": false
                        },
                        "next_before": {
                          "type": [
                            "integer",
                            "null"
                          ],
                          "description": "Cursor ohne after"
                        },
                        "next_after": {
                          "type": [
                            "integer",
                            "null"
                          ],
                          "description": "Cursor mit after"
                        }
                      }
                    }
                  },
                  "required": [
                    "data"
                  ]
                }
              }
            }
          },
          "400": {
            "$ref": "#/components/responses/E400"
          },
          "401": {
            "$ref": "#/components/responses/E401"
          },
          "404": {
            "$ref": "#/components/responses/E404"
          },
          "429": {
            "$ref": "#/components/responses/E429"
          }
        }
      }
    },
    "/healthchecks/{token}/incidents": {
      "get": {
        "tags": [
          "Healthchecks"
        ],
        "summary": "Incidents",
        "operationId": "get_healthchecks_token_incidents",
        "parameters": [
          {
            "name": "token",
            "in": "path",
            "required": true,
            "description": "Token bzw. ID der Ressource (32 Zeichen)",
            "schema": {
              "type": "string"
            },
            "example": "Ab3dEf6hIj9kLm2nOp5qRs8tUv1wXy4z"
          },
          {
            "name": "limit",
            "in": "query",
            "required": false,
            "description": "Anzahl (1 bis 500)",
            "schema": {
              "type": "integer",
              "minimum": 1,
              "maximum": 500,
              "default": 50
            }
          },
          {
            "$ref": "#/components/parameters/ActAs"
          }
        ],
        "responses": {
          "200": {
            "description": "Erfolgreich",
            "content": {
              "application/json": {
                "schema": {
                  "type": "object",
                  "properties": {
                    "data": {
                      "type": "array",
                      "items": {
                        "$ref": "#/components/schemas/Incident"
                      }
                    }
                  },
                  "required": [
                    "data"
                  ]
                }
              }
            }
          },
          "400": {
            "$ref": "#/components/responses/E400"
          },
          "401": {
            "$ref": "#/components/responses/E401"
          },
          "404": {
            "$ref": "#/components/responses/E404"
          },
          "429": {
            "$ref": "#/components/responses/E429"
          }
        }
      }
    },
    "/healthchecks/{token}/stats": {
      "get": {
        "tags": [
          "Healthchecks"
        ],
        "summary": "Verfügbarkeit und Latenz",
        "operationId": "get_healthchecks_token_stats",
        "description": "Berechnet aus den gespeicherten Events, mit Zeitreihe.",
        "parameters": [
          {
            "name": "token",
            "in": "path",
            "required": true,
            "description": "Token bzw. ID der Ressource (32 Zeichen)",
            "schema": {
              "type": "string"
            },
            "example": "Ab3dEf6hIj9kLm2nOp5qRs8tUv1wXy4z"
          },
          {
            "name": "range",
            "in": "query",
            "required": false,
            "description": "Zeitraum",
            "schema": {
              "type": "string",
              "enum": [
                "1h",
                "24h",
                "7d",
                "30d"
              ],
              "default": "24h"
            }
          },
          {
            "$ref": "#/components/parameters/ActAs"
          }
        ],
        "responses": {
          "200": {
            "description": "Erfolgreich",
            "content": {
              "application/json": {
                "schema": {
                  "type": "object",
                  "properties": {
                    "data": {
                      "$ref": "#/components/schemas/HealthcheckStats"
                    }
                  },
                  "required": [
                    "data"
                  ]
                }
              }
            }
          },
          "400": {
            "$ref": "#/components/responses/E400"
          },
          "401": {
            "$ref": "#/components/responses/E401"
          },
          "404": {
            "$ref": "#/components/responses/E404"
          },
          "429": {
            "$ref": "#/components/responses/E429"
          }
        }
      }
    },
    "/healthchecks/{token}/test-notification": {
      "post": {
        "tags": [
          "Healthchecks"
        ],
        "summary": "Testnachricht senden",
        "operationId": "post_healthchecks_token_test_notification",
        "description": "An alle Integrationen des Checks. Höchstens eine pro 30 Sekunden.",
        "parameters": [
          {
            "name": "token",
            "in": "path",
            "required": true,
            "description": "Token bzw. ID der Ressource (32 Zeichen)",
            "schema": {
              "type": "string"
            },
            "example": "Ab3dEf6hIj9kLm2nOp5qRs8tUv1wXy4z"
          },
          {
            "$ref": "#/components/parameters/ActAs"
          }
        ],
        "responses": {
          "200": {
            "description": "Erfolgreich",
            "content": {
              "application/json": {
                "schema": {
                  "type": "object",
                  "properties": {
                    "data": {
                      "type": "object",
                      "properties": {
                        "sent": {
                          "type": "boolean",
                          "description": "Gesendet",
                          "example": true
                        }
                      }
                    }
                  },
                  "required": [
                    "data"
                  ]
                }
              }
            }
          },
          "401": {
            "$ref": "#/components/responses/E401"
          },
          "404": {
            "$ref": "#/components/responses/E404"
          },
          "429": {
            "$ref": "#/components/responses/E429"
          }
        }
      }
    },
    "/integrations": {
      "get": {
        "tags": [
          "Benachrichtigungen"
        ],
        "summary": "Alle Integrationen",
        "operationId": "get_integrations",
        "parameters": [
          {
            "name": "include_secrets",
            "in": "query",
            "required": false,
            "description": "Tokens und URLs vollständig anzeigen",
            "schema": {
              "type": "string",
              "enum": [
                "true",
                "false"
              ]
            }
          },
          {
            "$ref": "#/components/parameters/ActAs"
          }
        ],
        "responses": {
          "200": {
            "description": "Erfolgreich",
            "content": {
              "application/json": {
                "schema": {
                  "type": "object",
                  "properties": {
                    "data": {
                      "type": "array",
                      "items": {
                        "$ref": "#/components/schemas/Integration"
                      }
                    }
                  },
                  "required": [
                    "data"
                  ]
                }
              }
            }
          },
          "400": {
            "$ref": "#/components/responses/E400"
          },
          "401": {
            "$ref": "#/components/responses/E401"
          },
          "429": {
            "$ref": "#/components/responses/E429"
          }
        }
      },
      "post": {
        "tags": [
          "Benachrichtigungen"
        ],
        "summary": "Integration anlegen",
        "operationId": "post_integrations",
        "description": "Je nach type sind andere Felder nötig:\n\n- telegram: chat_id, api_token\n- gotify: server_url, app_token, priority (0 bis 10)\n- ntfy: server_url (inklusive Topic), priority_down und priority_up (1 bis 5)\n- pushover: user_token, app_token, device, priority (-2 bis 1)\n- discord: webhook_url, ping_user, ping_group\n- webhook: url_down und/oder url_up\n- email: email. Es wird ein Bestätigungslink verschickt.\n- sms: number (deutsche Mobilnummer), country_code 0049. Es wird ein Bestätigungslink per SMS verschickt.\n- app: device_token der IPv64-App\n\nURLs müssen mit http oder https beginnen und auf öffentliche Adressen zeigen. E-Mail- und SMS-Bestätigungen sind auf wenige pro Stunde begrenzt.",
        "parameters": [
          {
            "$ref": "#/components/parameters/ActAs"
          }
        ],
        "requestBody": {
          "required": true,
          "content": {
            "application/json": {
              "schema": {
                "type": "object",
                "properties": {
                  "type": {
                    "type": "string",
                    "description": "Art",
                    "enum": [
                      "telegram",
                      "gotify",
                      "ntfy",
                      "pushover",
                      "discord",
                      "webhook",
                      "email",
                      "sms",
                      "app"
                    ],
                    "example": "telegram"
                  },
                  "name": {
                    "type": "string",
                    "description": "Name",
                    "example": "Mein Telegram"
                  },
                  "default": {
                    "type": "boolean",
                    "description": "Bei neuen Healthchecks vorauswählen",
                    "example": false
                  },
                  "chat_id": {
                    "type": "string",
                    "description": "telegram",
                    "example": "123456789"
                  },
                  "api_token": {
                    "type": "string",
                    "description": "telegram: Bot-Token",
                    "example": "123456:ABC-DEF"
                  },
                  "server_url": {
                    "type": "string",
                    "description": "gotify, ntfy",
                    "example": "https://ntfy.sh/mein-topic"
                  },
                  "app_token": {
                    "type": "string",
                    "description": "gotify, pushover"
                  },
                  "user_token": {
                    "type": "string",
                    "description": "pushover"
                  },
                  "device": {
                    "type": "string",
                    "description": "pushover"
                  },
                  "priority": {
                    "type": "integer",
                    "description": "gotify (0 bis 10), pushover (-2 bis 1)"
                  },
                  "priority_down": {
                    "type": "integer",
                    "description": "ntfy (1 bis 5)",
                    "example": 4
                  },
                  "priority_up": {
                    "type": "integer",
                    "description": "ntfy (1 bis 5)",
                    "example": 3
                  },
                  "webhook_url": {
                    "type": "string",
                    "description": "discord"
                  },
                  "ping_user": {
                    "type": "string",
                    "description": "discord: User-ID"
                  },
                  "ping_group": {
                    "type": "string",
                    "description": "discord: Rollen-ID"
                  },
                  "url_down": {
                    "type": "string",
                    "description": "webhook: wird bei DOWN aufgerufen"
                  },
                  "url_up": {
                    "type": "string",
                    "description": "webhook: wird bei UP aufgerufen"
                  },
                  "email": {
                    "type": "string",
                    "description": "email",
                    "example": "alarm@example.com"
                  },
                  "number": {
                    "type": "string",
                    "description": "sms",
                    "example": "01701234567"
                  },
                  "country_code": {
                    "type": "string",
                    "description": "sms",
                    "example": "0049"
                  },
                  "device_token": {
                    "type": "string",
                    "description": "app"
                  }
                },
                "required": [
                  "type",
                  "name"
                ]
              },
              "example": {
                "type": "telegram",
                "name": "Mein Telegram",
                "chat_id": "123456789",
                "api_token": "123456:ABC-DEF"
              }
            }
          }
        },
        "responses": {
          "201": {
            "description": "Angelegt",
            "content": {
              "application/json": {
                "schema": {
                  "type": "object",
                  "properties": {
                    "data": {
                      "$ref": "#/components/schemas/Integration"
                    }
                  },
                  "required": [
                    "data"
                  ]
                }
              }
            }
          },
          "401": {
            "$ref": "#/components/responses/E401"
          },
          "403": {
            "$ref": "#/components/responses/E403"
          },
          "422": {
            "$ref": "#/components/responses/E422"
          },
          "429": {
            "$ref": "#/components/responses/E429"
          }
        }
      }
    },
    "/integrations/{id}": {
      "get": {
        "tags": [
          "Benachrichtigungen"
        ],
        "summary": "Einzelne Integration",
        "operationId": "get_integrations_id",
        "parameters": [
          {
            "name": "id",
            "in": "path",
            "required": true,
            "description": "ID der Ressource",
            "schema": {
              "type": "string"
            },
            "example": "12"
          },
          {
            "name": "include_secrets",
            "in": "query",
            "required": false,
            "description": "Tokens und URLs vollständig anzeigen",
            "schema": {
              "type": "string",
              "enum": [
                "true",
                "false"
              ]
            }
          },
          {
            "$ref": "#/components/parameters/ActAs"
          }
        ],
        "responses": {
          "200": {
            "description": "Erfolgreich",
            "content": {
              "application/json": {
                "schema": {
                  "type": "object",
                  "properties": {
                    "data": {
                      "$ref": "#/components/schemas/Integration"
                    }
                  },
                  "required": [
                    "data"
                  ]
                }
              }
            }
          },
          "400": {
            "$ref": "#/components/responses/E400"
          },
          "401": {
            "$ref": "#/components/responses/E401"
          },
          "404": {
            "$ref": "#/components/responses/E404"
          },
          "429": {
            "$ref": "#/components/responses/E429"
          }
        }
      },
      "patch": {
        "tags": [
          "Benachrichtigungen"
        ],
        "summary": "Name oder Vorauswahl ändern",
        "operationId": "patch_integrations_id",
        "description": "Für andere Änderungen die Integration neu anlegen.",
        "parameters": [
          {
            "name": "id",
            "in": "path",
            "required": true,
            "description": "ID der Ressource",
            "schema": {
              "type": "string"
            },
            "example": "12"
          },
          {
            "$ref": "#/components/parameters/ActAs"
          }
        ],
        "requestBody": {
          "required": false,
          "content": {
            "application/json": {
              "schema": {
                "type": "object",
                "properties": {
                  "name": {
                    "type": "string",
                    "description": "Name",
                    "example": "Telegram Gruppe"
                  },
                  "default": {
                    "type": "boolean",
                    "description": "Vorauswahl",
                    "example": true
                  }
                }
              },
              "example": {
                "default": true
              }
            }
          }
        },
        "responses": {
          "200": {
            "description": "Erfolgreich",
            "content": {
              "application/json": {
                "schema": {
                  "type": "object",
                  "properties": {
                    "data": {
                      "$ref": "#/components/schemas/Integration"
                    }
                  },
                  "required": [
                    "data"
                  ]
                }
              }
            }
          },
          "401": {
            "$ref": "#/components/responses/E401"
          },
          "404": {
            "$ref": "#/components/responses/E404"
          },
          "422": {
            "$ref": "#/components/responses/E422"
          },
          "429": {
            "$ref": "#/components/responses/E429"
          }
        }
      },
      "delete": {
        "tags": [
          "Benachrichtigungen"
        ],
        "summary": "Integration löschen",
        "operationId": "delete_integrations_id",
        "parameters": [
          {
            "name": "id",
            "in": "path",
            "required": true,
            "description": "ID der Ressource",
            "schema": {
              "type": "string"
            },
            "example": "12"
          },
          {
            "$ref": "#/components/parameters/ActAs"
          }
        ],
        "responses": {
          "204": {
            "description": "Erfolgreich, ohne Inhalt"
          },
          "401": {
            "$ref": "#/components/responses/E401"
          },
          "404": {
            "$ref": "#/components/responses/E404"
          },
          "429": {
            "$ref": "#/components/responses/E429"
          }
        }
      }
    },
    "/integrations/{id}/test": {
      "post": {
        "tags": [
          "Benachrichtigungen"
        ],
        "summary": "Testnachricht senden",
        "operationId": "post_integrations_id_test",
        "description": "Mit der ID 0 geht die Nachricht an die Account-E-Mail. Höchstens eine pro 30 Sekunden und Integration.",
        "parameters": [
          {
            "name": "id",
            "in": "path",
            "required": true,
            "description": "ID der Ressource",
            "schema": {
              "type": "string"
            },
            "example": "12"
          },
          {
            "$ref": "#/components/parameters/ActAs"
          }
        ],
        "responses": {
          "200": {
            "description": "Erfolgreich",
            "content": {
              "application/json": {
                "schema": {
                  "type": "object",
                  "properties": {
                    "data": {
                      "type": "object",
                      "properties": {
                        "sent": {
                          "type": "boolean",
                          "description": "Gesendet",
                          "example": true
                        }
                      }
                    }
                  },
                  "required": [
                    "data"
                  ]
                }
              }
            }
          },
          "401": {
            "$ref": "#/components/responses/E401"
          },
          "404": {
            "$ref": "#/components/responses/E404"
          },
          "409": {
            "$ref": "#/components/responses/E409"
          },
          "429": {
            "$ref": "#/components/responses/E429"
          }
        }
      }
    },
    "/failover/policies": {
      "get": {
        "tags": [
          "DNS-Failover"
        ],
        "summary": "Alle Policies",
        "operationId": "get_failover_policies",
        "parameters": [
          {
            "$ref": "#/components/parameters/ActAs"
          }
        ],
        "responses": {
          "200": {
            "description": "Erfolgreich",
            "content": {
              "application/json": {
                "schema": {
                  "type": "object",
                  "properties": {
                    "data": {
                      "type": "array",
                      "items": {
                        "$ref": "#/components/schemas/FailoverPolicy"
                      }
                    }
                  },
                  "required": [
                    "data"
                  ]
                }
              }
            }
          },
          "401": {
            "$ref": "#/components/responses/E401"
          },
          "429": {
            "$ref": "#/components/responses/E429"
          }
        }
      },
      "post": {
        "tags": [
          "DNS-Failover"
        ],
        "summary": "Policy anlegen",
        "operationId": "post_failover_policies",
        "parameters": [
          {
            "$ref": "#/components/parameters/ActAs"
          }
        ],
        "requestBody": {
          "required": false,
          "content": {
            "application/json": {
              "schema": {
                "type": "object",
                "properties": {
                  "name": {
                    "type": "string",
                    "description": "Name",
                    "example": "Webserver"
                  },
                  "mode": {
                    "type": "string",
                    "description": "Umschaltverhalten",
                    "enum": [
                      "auto_failover",
                      "auto_failover_and_fallback",
                      "manual"
                    ],
                    "example": "auto_failover"
                  },
                  "fallback_requires_all": {
                    "type": "boolean",
                    "description": "Rückschaltung erst, wenn alle Monitore UP sind",
                    "example": false
                  },
                  "linking": {
                    "type": "string",
                    "description": "Verknüpfung der Monitore",
                    "enum": [
                      "and",
                      "or"
                    ],
                    "example": "or"
                  },
                  "notifications_enabled": {
                    "type": "boolean",
                    "description": "Benachrichtigungen",
                    "example": true
                  },
                  "integrations": {
                    "type": "array",
                    "items": {
                      "type": "integer",
                      "example": 0
                    },
                    "description": "Integrationen, 0 = Account-E-Mail"
                  }
                }
              },
              "example": {
                "name": "Webserver",
                "mode": "auto_failover_and_fallback"
              }
            }
          }
        },
        "responses": {
          "201": {
            "description": "Angelegt",
            "content": {
              "application/json": {
                "schema": {
                  "type": "object",
                  "properties": {
                    "data": {
                      "$ref": "#/components/schemas/FailoverPolicy"
                    }
                  },
                  "required": [
                    "data"
                  ]
                }
              }
            }
          },
          "401": {
            "$ref": "#/components/responses/E401"
          },
          "403": {
            "$ref": "#/components/responses/E403"
          },
          "422": {
            "$ref": "#/components/responses/E422"
          },
          "429": {
            "$ref": "#/components/responses/E429"
          }
        }
      }
    },
    "/failover/policies/{id}": {
      "get": {
        "tags": [
          "DNS-Failover"
        ],
        "summary": "Einzelne Policy",
        "operationId": "get_failover_policies_id",
        "parameters": [
          {
            "name": "id",
            "in": "path",
            "required": true,
            "description": "ID der Ressource",
            "schema": {
              "type": "string"
            },
            "example": "12"
          },
          {
            "$ref": "#/components/parameters/ActAs"
          }
        ],
        "responses": {
          "200": {
            "description": "Erfolgreich",
            "content": {
              "application/json": {
                "schema": {
                  "type": "object",
                  "properties": {
                    "data": {
                      "$ref": "#/components/schemas/FailoverPolicy"
                    }
                  },
                  "required": [
                    "data"
                  ]
                }
              }
            }
          },
          "401": {
            "$ref": "#/components/responses/E401"
          },
          "404": {
            "$ref": "#/components/responses/E404"
          },
          "429": {
            "$ref": "#/components/responses/E429"
          }
        }
      },
      "patch": {
        "tags": [
          "DNS-Failover"
        ],
        "summary": "Policy ändern",
        "operationId": "patch_failover_policies_id",
        "description": "linking kann während eines aktiven Failovers nicht geändert werden.",
        "parameters": [
          {
            "name": "id",
            "in": "path",
            "required": true,
            "description": "ID der Ressource",
            "schema": {
              "type": "string"
            },
            "example": "12"
          },
          {
            "$ref": "#/components/parameters/ActAs"
          }
        ],
        "requestBody": {
          "required": false,
          "content": {
            "application/json": {
              "schema": {
                "type": "object",
                "properties": {
                  "name": {
                    "type": "string",
                    "description": "Name",
                    "example": "Webserver"
                  },
                  "mode": {
                    "type": "string",
                    "description": "Umschaltverhalten",
                    "enum": [
                      "auto_failover",
                      "auto_failover_and_fallback",
                      "manual"
                    ],
                    "example": "auto_failover"
                  },
                  "fallback_requires_all": {
                    "type": "boolean",
                    "description": "Rückschaltung erst, wenn alle Monitore UP sind",
                    "example": false
                  },
                  "linking": {
                    "type": "string",
                    "description": "Verknüpfung der Monitore",
                    "enum": [
                      "and",
                      "or"
                    ],
                    "example": "or"
                  },
                  "notifications_enabled": {
                    "type": "boolean",
                    "description": "Benachrichtigungen",
                    "example": true
                  },
                  "integrations": {
                    "type": "array",
                    "items": {
                      "type": "integer",
                      "example": 0
                    },
                    "description": "Integrationen, 0 = Account-E-Mail"
                  }
                }
              },
              "example": {
                "notifications_enabled": false
              }
            }
          }
        },
        "responses": {
          "200": {
            "description": "Erfolgreich",
            "content": {
              "application/json": {
                "schema": {
                  "type": "object",
                  "properties": {
                    "data": {
                      "$ref": "#/components/schemas/FailoverPolicy"
                    }
                  },
                  "required": [
                    "data"
                  ]
                }
              }
            }
          },
          "401": {
            "$ref": "#/components/responses/E401"
          },
          "404": {
            "$ref": "#/components/responses/E404"
          },
          "409": {
            "$ref": "#/components/responses/E409"
          },
          "422": {
            "$ref": "#/components/responses/E422"
          },
          "429": {
            "$ref": "#/components/responses/E429"
          }
        }
      },
      "delete": {
        "tags": [
          "DNS-Failover"
        ],
        "summary": "Policy löschen",
        "operationId": "delete_failover_policies_id",
        "description": "Nicht möglich, solange der Failover aktiv ist.",
        "parameters": [
          {
            "name": "id",
            "in": "path",
            "required": true,
            "description": "ID der Ressource",
            "schema": {
              "type": "string"
            },
            "example": "12"
          },
          {
            "$ref": "#/components/parameters/ActAs"
          }
        ],
        "responses": {
          "204": {
            "description": "Erfolgreich, ohne Inhalt"
          },
          "401": {
            "$ref": "#/components/responses/E401"
          },
          "404": {
            "$ref": "#/components/responses/E404"
          },
          "409": {
            "$ref": "#/components/responses/E409"
          },
          "429": {
            "$ref": "#/components/responses/E429"
          }
        }
      }
    },
    "/failover/policies/{id}/pause": {
      "post": {
        "tags": [
          "DNS-Failover"
        ],
        "summary": "Pausieren",
        "operationId": "post_failover_policies_id_pause",
        "parameters": [
          {
            "name": "id",
            "in": "path",
            "required": true,
            "description": "ID der Ressource",
            "schema": {
              "type": "string"
            },
            "example": "12"
          },
          {
            "$ref": "#/components/parameters/ActAs"
          }
        ],
        "responses": {
          "200": {
            "description": "Erfolgreich",
            "content": {
              "application/json": {
                "schema": {
                  "type": "object",
                  "properties": {
                    "data": {
                      "$ref": "#/components/schemas/FailoverPolicy"
                    }
                  },
                  "required": [
                    "data"
                  ]
                }
              }
            }
          },
          "401": {
            "$ref": "#/components/responses/E401"
          },
          "404": {
            "$ref": "#/components/responses/E404"
          },
          "409": {
            "$ref": "#/components/responses/E409"
          },
          "429": {
            "$ref": "#/components/responses/E429"
          }
        }
      }
    },
    "/failover/policies/{id}/resume": {
      "post": {
        "tags": [
          "DNS-Failover"
        ],
        "summary": "Fortsetzen",
        "operationId": "post_failover_policies_id_resume",
        "parameters": [
          {
            "name": "id",
            "in": "path",
            "required": true,
            "description": "ID der Ressource",
            "schema": {
              "type": "string"
            },
            "example": "12"
          },
          {
            "$ref": "#/components/parameters/ActAs"
          }
        ],
        "responses": {
          "200": {
            "description": "Erfolgreich",
            "content": {
              "application/json": {
                "schema": {
                  "type": "object",
                  "properties": {
                    "data": {
                      "$ref": "#/components/schemas/FailoverPolicy"
                    }
                  },
                  "required": [
                    "data"
                  ]
                }
              }
            }
          },
          "401": {
            "$ref": "#/components/responses/E401"
          },
          "404": {
            "$ref": "#/components/responses/E404"
          },
          "429": {
            "$ref": "#/components/responses/E429"
          }
        }
      }
    },
    "/failover/policies/{id}/failover": {
      "post": {
        "tags": [
          "DNS-Failover"
        ],
        "summary": "Manuell umschalten",
        "operationId": "post_failover_policies_id_failover",
        "description": "Nur im Status active.",
        "parameters": [
          {
            "name": "id",
            "in": "path",
            "required": true,
            "description": "ID der Ressource",
            "schema": {
              "type": "string"
            },
            "example": "12"
          },
          {
            "$ref": "#/components/parameters/ActAs"
          }
        ],
        "responses": {
          "202": {
            "description": "Angenommen. Die Änderung wird in den nächsten Sekunden vom Hintergrunddienst umgesetzt.",
            "content": {
              "application/json": {
                "schema": {
                  "type": "object",
                  "properties": {
                    "data": {
                      "$ref": "#/components/schemas/FailoverPolicy"
                    }
                  },
                  "required": [
                    "data"
                  ]
                }
              }
            }
          },
          "401": {
            "$ref": "#/components/responses/E401"
          },
          "404": {
            "$ref": "#/components/responses/E404"
          },
          "409": {
            "$ref": "#/components/responses/E409"
          },
          "429": {
            "$ref": "#/components/responses/E429"
          }
        },
        "x-async": true
      }
    },
    "/failover/policies/{id}/fallback": {
      "post": {
        "tags": [
          "DNS-Failover"
        ],
        "summary": "Manuell zurückschalten",
        "operationId": "post_failover_policies_id_fallback",
        "description": "Nur im Status failed_over.",
        "parameters": [
          {
            "name": "id",
            "in": "path",
            "required": true,
            "description": "ID der Ressource",
            "schema": {
              "type": "string"
            },
            "example": "12"
          },
          {
            "$ref": "#/components/parameters/ActAs"
          }
        ],
        "responses": {
          "202": {
            "description": "Angenommen. Die Änderung wird in den nächsten Sekunden vom Hintergrunddienst umgesetzt.",
            "content": {
              "application/json": {
                "schema": {
                  "type": "object",
                  "properties": {
                    "data": {
                      "$ref": "#/components/schemas/FailoverPolicy"
                    }
                  },
                  "required": [
                    "data"
                  ]
                }
              }
            }
          },
          "401": {
            "$ref": "#/components/responses/E401"
          },
          "404": {
            "$ref": "#/components/responses/E404"
          },
          "409": {
            "$ref": "#/components/responses/E409"
          },
          "429": {
            "$ref": "#/components/responses/E429"
          }
        },
        "x-async": true
      }
    },
    "/failover/policies/{id}/monitors": {
      "post": {
        "tags": [
          "DNS-Failover"
        ],
        "summary": "Monitor hinzufügen",
        "operationId": "post_failover_policies_id_monitors",
        "description": "Ein Healthcheck, der den Failover auslöst.",
        "parameters": [
          {
            "name": "id",
            "in": "path",
            "required": true,
            "description": "ID der Ressource",
            "schema": {
              "type": "string"
            },
            "example": "12"
          },
          {
            "$ref": "#/components/parameters/ActAs"
          }
        ],
        "requestBody": {
          "required": true,
          "content": {
            "application/json": {
              "schema": {
                "type": "object",
                "properties": {
                  "healthcheck": {
                    "type": "string",
                    "description": "Healthcheck-Token",
                    "example": "Ab3dEf6hIj9kLm2nOp5qRs8tUv1wXy4z"
                  },
                  "negate": {
                    "type": "boolean",
                    "description": "Umgekehrt werten",
                    "example": false
                  }
                },
                "required": [
                  "healthcheck"
                ]
              },
              "example": {
                "healthcheck": "Ab3dEf6hIj9kLm2nOp5qRs8tUv1wXy4z"
              }
            }
          }
        },
        "responses": {
          "201": {
            "description": "Angelegt",
            "content": {
              "application/json": {
                "schema": {
                  "type": "object",
                  "properties": {
                    "data": {
                      "$ref": "#/components/schemas/FailoverPolicy"
                    }
                  },
                  "required": [
                    "data"
                  ]
                }
              }
            }
          },
          "401": {
            "$ref": "#/components/responses/E401"
          },
          "403": {
            "$ref": "#/components/responses/E403"
          },
          "404": {
            "$ref": "#/components/responses/E404"
          },
          "409": {
            "$ref": "#/components/responses/E409"
          },
          "422": {
            "$ref": "#/components/responses/E422"
          },
          "429": {
            "$ref": "#/components/responses/E429"
          }
        }
      }
    },
    "/failover/policies/{id}/monitors/{token}": {
      "delete": {
        "tags": [
          "DNS-Failover"
        ],
        "summary": "Monitor entfernen",
        "operationId": "delete_failover_policies_id_monitors_token",
        "parameters": [
          {
            "name": "id",
            "in": "path",
            "required": true,
            "description": "ID der Ressource",
            "schema": {
              "type": "string"
            },
            "example": "12"
          },
          {
            "name": "token",
            "in": "path",
            "required": true,
            "description": "Token bzw. ID der Ressource (32 Zeichen)",
            "schema": {
              "type": "string"
            },
            "example": "Ab3dEf6hIj9kLm2nOp5qRs8tUv1wXy4z"
          },
          {
            "$ref": "#/components/parameters/ActAs"
          }
        ],
        "responses": {
          "204": {
            "description": "Erfolgreich, ohne Inhalt"
          },
          "401": {
            "$ref": "#/components/responses/E401"
          },
          "404": {
            "$ref": "#/components/responses/E404"
          },
          "409": {
            "$ref": "#/components/responses/E409"
          },
          "429": {
            "$ref": "#/components/responses/E429"
          }
        }
      }
    },
    "/failover/policies/{id}/rules": {
      "post": {
        "tags": [
          "DNS-Failover"
        ],
        "summary": "Regel hinzufügen",
        "operationId": "post_failover_policies_id_rules",
        "description": "Schützt einen A- oder AAAA-Record. Als Ziel genau eines angeben: target_ip, target_record oder offline_page. Bei offline_page zeigt der Record im Failover auf die IPv64-Offline-Seite.",
        "parameters": [
          {
            "name": "id",
            "in": "path",
            "required": true,
            "description": "ID der Ressource",
            "schema": {
              "type": "string"
            },
            "example": "12"
          },
          {
            "$ref": "#/components/parameters/ActAs"
          }
        ],
        "requestBody": {
          "required": true,
          "content": {
            "application/json": {
              "schema": {
                "type": "object",
                "properties": {
                  "record": {
                    "type": "string",
                    "description": "Record-ID oder -Token des geschützten Records",
                    "example": "4711"
                  },
                  "target_ip": {
                    "type": "string",
                    "description": "Ersatz-IP derselben Familie",
                    "example": "198.51.100.5"
                  },
                  "target_record": {
                    "type": "string",
                    "description": "Anderer eigener Record, dessen IP übernommen wird",
                    "example": "4712"
                  },
                  "offline_page": {
                    "type": "string",
                    "description": "default oder Offline-Page-ID",
                    "example": "default"
                  }
                },
                "required": [
                  "record"
                ]
              },
              "example": {
                "record": "4711",
                "target_ip": "198.51.100.5"
              }
            }
          }
        },
        "responses": {
          "201": {
            "description": "Angelegt",
            "content": {
              "application/json": {
                "schema": {
                  "type": "object",
                  "properties": {
                    "data": {
                      "$ref": "#/components/schemas/FailoverPolicy"
                    }
                  },
                  "required": [
                    "data"
                  ]
                }
              }
            }
          },
          "401": {
            "$ref": "#/components/responses/E401"
          },
          "403": {
            "$ref": "#/components/responses/E403"
          },
          "404": {
            "$ref": "#/components/responses/E404"
          },
          "409": {
            "$ref": "#/components/responses/E409"
          },
          "422": {
            "$ref": "#/components/responses/E422"
          },
          "429": {
            "$ref": "#/components/responses/E429"
          }
        }
      }
    },
    "/failover/policies/{id}/rules/{record}": {
      "delete": {
        "tags": [
          "DNS-Failover"
        ],
        "summary": "Regel entfernen",
        "operationId": "delete_failover_policies_id_rules_record",
        "parameters": [
          {
            "name": "id",
            "in": "path",
            "required": true,
            "description": "ID der Ressource",
            "schema": {
              "type": "string"
            },
            "example": "12"
          },
          {
            "name": "record",
            "in": "path",
            "required": true,
            "description": "Record-ID oder Record-Token",
            "schema": {
              "type": "string"
            },
            "example": "4711"
          },
          {
            "$ref": "#/components/parameters/ActAs"
          }
        ],
        "responses": {
          "204": {
            "description": "Erfolgreich, ohne Inhalt"
          },
          "401": {
            "$ref": "#/components/responses/E401"
          },
          "404": {
            "$ref": "#/components/responses/E404"
          },
          "409": {
            "$ref": "#/components/responses/E409"
          },
          "429": {
            "$ref": "#/components/responses/E429"
          }
        }
      }
    },
    "/status-pages": {
      "get": {
        "tags": [
          "Statusseiten"
        ],
        "summary": "Alle Statusseiten",
        "operationId": "get_status_pages",
        "parameters": [
          {
            "$ref": "#/components/parameters/ActAs"
          }
        ],
        "responses": {
          "200": {
            "description": "Erfolgreich",
            "content": {
              "application/json": {
                "schema": {
                  "type": "object",
                  "properties": {
                    "data": {
                      "type": "array",
                      "items": {
                        "$ref": "#/components/schemas/StatusPage"
                      }
                    }
                  },
                  "required": [
                    "data"
                  ]
                }
              }
            }
          },
          "401": {
            "$ref": "#/components/responses/E401"
          },
          "429": {
            "$ref": "#/components/responses/E429"
          }
        }
      },
      "post": {
        "tags": [
          "Statusseiten"
        ],
        "summary": "Statusseite anlegen",
        "operationId": "post_status_pages",
        "description": "Ohne slug wird eine zufällige Adresse vergeben.",
        "parameters": [
          {
            "$ref": "#/components/parameters/ActAs"
          }
        ],
        "requestBody": {
          "required": false,
          "content": {
            "application/json": {
              "schema": {
                "type": "object",
                "properties": {
                  "name": {
                    "type": "string",
                    "description": "Titel",
                    "example": "Mein Status"
                  },
                  "description": {
                    "type": "string",
                    "description": "Beschreibung"
                  },
                  "slug": {
                    "type": "string",
                    "description": "Adresse, 3 bis 128 Zeichen a-z, A-Z, 0-9",
                    "example": "meinstatus"
                  },
                  "password": {
                    "type": "string",
                    "description": "Passwort, leer = öffentlich"
                  },
                  "design": {
                    "type": "integer",
                    "description": "Design",
                    "minimum": 1,
                    "maximum": 4,
                    "example": 1
                  },
                  "autorefresh": {
                    "type": "boolean",
                    "description": "Automatisch neu laden",
                    "example": true
                  },
                  "healthchecks": {
                    "type": "array",
                    "items": {
                      "type": "string",
                      "description": "Healthcheck-Token",
                      "example": "Ab3dEf6hIj9kLm2nOp5qRs8tUv1wXy4z"
                    },
                    "description": "Angezeigte Healthchecks"
                  }
                }
              },
              "example": {
                "name": "Mein Status",
                "healthchecks": [
                  "Ab3dEf6hIj9kLm2nOp5qRs8tUv1wXy4z"
                ]
              }
            }
          }
        },
        "responses": {
          "201": {
            "description": "Angelegt",
            "content": {
              "application/json": {
                "schema": {
                  "type": "object",
                  "properties": {
                    "data": {
                      "$ref": "#/components/schemas/StatusPage"
                    }
                  },
                  "required": [
                    "data"
                  ]
                }
              }
            }
          },
          "401": {
            "$ref": "#/components/responses/E401"
          },
          "409": {
            "$ref": "#/components/responses/E409"
          },
          "422": {
            "$ref": "#/components/responses/E422"
          },
          "429": {
            "$ref": "#/components/responses/E429"
          }
        }
      }
    },
    "/status-pages/{id}": {
      "get": {
        "tags": [
          "Statusseiten"
        ],
        "summary": "Einzelne Statusseite",
        "operationId": "get_status_pages_id",
        "parameters": [
          {
            "name": "id",
            "in": "path",
            "required": true,
            "description": "ID der Ressource",
            "schema": {
              "type": "string"
            },
            "example": "12"
          },
          {
            "$ref": "#/components/parameters/ActAs"
          }
        ],
        "responses": {
          "200": {
            "description": "Erfolgreich",
            "content": {
              "application/json": {
                "schema": {
                  "type": "object",
                  "properties": {
                    "data": {
                      "$ref": "#/components/schemas/StatusPage"
                    }
                  },
                  "required": [
                    "data"
                  ]
                }
              }
            }
          },
          "401": {
            "$ref": "#/components/responses/E401"
          },
          "404": {
            "$ref": "#/components/responses/E404"
          },
          "429": {
            "$ref": "#/components/responses/E429"
          }
        }
      },
      "patch": {
        "tags": [
          "Statusseiten"
        ],
        "summary": "Statusseite ändern",
        "operationId": "patch_status_pages_id",
        "parameters": [
          {
            "name": "id",
            "in": "path",
            "required": true,
            "description": "ID der Ressource",
            "schema": {
              "type": "string"
            },
            "example": "12"
          },
          {
            "$ref": "#/components/parameters/ActAs"
          }
        ],
        "requestBody": {
          "required": false,
          "content": {
            "application/json": {
              "schema": {
                "type": "object",
                "properties": {
                  "name": {
                    "type": "string",
                    "description": "Titel",
                    "example": "Mein Status"
                  },
                  "description": {
                    "type": "string",
                    "description": "Beschreibung"
                  },
                  "slug": {
                    "type": "string",
                    "description": "Adresse, 3 bis 128 Zeichen a-z, A-Z, 0-9",
                    "example": "meinstatus"
                  },
                  "password": {
                    "type": "string",
                    "description": "Passwort, leer = öffentlich"
                  },
                  "design": {
                    "type": "integer",
                    "description": "Design",
                    "minimum": 1,
                    "maximum": 4,
                    "example": 1
                  },
                  "autorefresh": {
                    "type": "boolean",
                    "description": "Automatisch neu laden",
                    "example": true
                  },
                  "healthchecks": {
                    "type": "array",
                    "items": {
                      "type": "string",
                      "description": "Healthcheck-Token",
                      "example": "Ab3dEf6hIj9kLm2nOp5qRs8tUv1wXy4z"
                    },
                    "description": "Angezeigte Healthchecks"
                  }
                }
              },
              "example": {
                "slug": "meinstatus",
                "design": 2
              }
            }
          }
        },
        "responses": {
          "200": {
            "description": "Erfolgreich",
            "content": {
              "application/json": {
                "schema": {
                  "type": "object",
                  "properties": {
                    "data": {
                      "$ref": "#/components/schemas/StatusPage"
                    }
                  },
                  "required": [
                    "data"
                  ]
                }
              }
            }
          },
          "401": {
            "$ref": "#/components/responses/E401"
          },
          "404": {
            "$ref": "#/components/responses/E404"
          },
          "409": {
            "$ref": "#/components/responses/E409"
          },
          "422": {
            "$ref": "#/components/responses/E422"
          },
          "429": {
            "$ref": "#/components/responses/E429"
          }
        }
      },
      "delete": {
        "tags": [
          "Statusseiten"
        ],
        "summary": "Statusseite löschen",
        "operationId": "delete_status_pages_id",
        "parameters": [
          {
            "name": "id",
            "in": "path",
            "required": true,
            "description": "ID der Ressource",
            "schema": {
              "type": "string"
            },
            "example": "12"
          },
          {
            "$ref": "#/components/parameters/ActAs"
          }
        ],
        "responses": {
          "204": {
            "description": "Erfolgreich, ohne Inhalt"
          },
          "401": {
            "$ref": "#/components/responses/E401"
          },
          "404": {
            "$ref": "#/components/responses/E404"
          },
          "429": {
            "$ref": "#/components/responses/E429"
          }
        }
      }
    },
    "/offline-pages": {
      "get": {
        "tags": [
          "Offline-Pages"
        ],
        "summary": "Alle Offline-Pages",
        "operationId": "get_offline_pages",
        "parameters": [
          {
            "$ref": "#/components/parameters/ActAs"
          }
        ],
        "responses": {
          "200": {
            "description": "Erfolgreich",
            "content": {
              "application/json": {
                "schema": {
                  "type": "object",
                  "properties": {
                    "data": {
                      "type": "array",
                      "items": {
                        "$ref": "#/components/schemas/OfflinePage"
                      }
                    }
                  },
                  "required": [
                    "data"
                  ]
                }
              }
            }
          },
          "401": {
            "$ref": "#/components/responses/E401"
          },
          "429": {
            "$ref": "#/components/responses/E429"
          }
        }
      },
      "post": {
        "tags": [
          "Offline-Pages"
        ],
        "summary": "Offline-Page anlegen",
        "operationId": "post_offline_pages",
        "parameters": [
          {
            "$ref": "#/components/parameters/ActAs"
          }
        ],
        "requestBody": {
          "required": false,
          "content": {
            "application/json": {
              "schema": {
                "type": "object",
                "properties": {
                  "name": {
                    "type": "string",
                    "description": "Überschrift",
                    "example": "Wartungsarbeiten"
                  },
                  "domain": {
                    "type": "string",
                    "description": "Domain, für die die Seite gilt",
                    "example": "www.example.com"
                  },
                  "email": {
                    "type": "string",
                    "description": "Kontakt-E-Mail"
                  },
                  "phone": {
                    "type": "string",
                    "description": "Telefon, Ziffern und optional führendes +"
                  },
                  "alternative_url": {
                    "type": "string",
                    "description": "Ausweichadresse"
                  },
                  "text": {
                    "type": "string",
                    "description": "Text. Zeilenumbrüche bleiben erhalten, HTML wird maskiert."
                  }
                }
              },
              "example": {
                "name": "Wartungsarbeiten",
                "domain": "www.example.com",
                "text": "Wir sind gleich wieder da."
              }
            }
          }
        },
        "responses": {
          "201": {
            "description": "Angelegt",
            "content": {
              "application/json": {
                "schema": {
                  "type": "object",
                  "properties": {
                    "data": {
                      "$ref": "#/components/schemas/OfflinePage"
                    }
                  },
                  "required": [
                    "data"
                  ]
                }
              }
            }
          },
          "401": {
            "$ref": "#/components/responses/E401"
          },
          "403": {
            "$ref": "#/components/responses/E403"
          },
          "422": {
            "$ref": "#/components/responses/E422"
          },
          "429": {
            "$ref": "#/components/responses/E429"
          }
        }
      }
    },
    "/offline-pages/{id}": {
      "get": {
        "tags": [
          "Offline-Pages"
        ],
        "summary": "Einzelne Offline-Page",
        "operationId": "get_offline_pages_id",
        "parameters": [
          {
            "name": "id",
            "in": "path",
            "required": true,
            "description": "ID der Ressource",
            "schema": {
              "type": "string"
            },
            "example": "12"
          },
          {
            "$ref": "#/components/parameters/ActAs"
          }
        ],
        "responses": {
          "200": {
            "description": "Erfolgreich",
            "content": {
              "application/json": {
                "schema": {
                  "type": "object",
                  "properties": {
                    "data": {
                      "$ref": "#/components/schemas/OfflinePage"
                    }
                  },
                  "required": [
                    "data"
                  ]
                }
              }
            }
          },
          "401": {
            "$ref": "#/components/responses/E401"
          },
          "404": {
            "$ref": "#/components/responses/E404"
          },
          "429": {
            "$ref": "#/components/responses/E429"
          }
        }
      },
      "patch": {
        "tags": [
          "Offline-Pages"
        ],
        "summary": "Offline-Page ändern",
        "operationId": "patch_offline_pages_id",
        "parameters": [
          {
            "name": "id",
            "in": "path",
            "required": true,
            "description": "ID der Ressource",
            "schema": {
              "type": "string"
            },
            "example": "12"
          },
          {
            "$ref": "#/components/parameters/ActAs"
          }
        ],
        "requestBody": {
          "required": false,
          "content": {
            "application/json": {
              "schema": {
                "type": "object",
                "properties": {
                  "name": {
                    "type": "string",
                    "description": "Überschrift",
                    "example": "Wartungsarbeiten"
                  },
                  "domain": {
                    "type": "string",
                    "description": "Domain, für die die Seite gilt",
                    "example": "www.example.com"
                  },
                  "email": {
                    "type": "string",
                    "description": "Kontakt-E-Mail"
                  },
                  "phone": {
                    "type": "string",
                    "description": "Telefon, Ziffern und optional führendes +"
                  },
                  "alternative_url": {
                    "type": "string",
                    "description": "Ausweichadresse"
                  },
                  "text": {
                    "type": "string",
                    "description": "Text. Zeilenumbrüche bleiben erhalten, HTML wird maskiert."
                  }
                }
              },
              "example": {
                "text": "Wartung bis 14 Uhr."
              }
            }
          }
        },
        "responses": {
          "200": {
            "description": "Erfolgreich",
            "content": {
              "application/json": {
                "schema": {
                  "type": "object",
                  "properties": {
                    "data": {
                      "$ref": "#/components/schemas/OfflinePage"
                    }
                  },
                  "required": [
                    "data"
                  ]
                }
              }
            }
          },
          "401": {
            "$ref": "#/components/responses/E401"
          },
          "404": {
            "$ref": "#/components/responses/E404"
          },
          "422": {
            "$ref": "#/components/responses/E422"
          },
          "429": {
            "$ref": "#/components/responses/E429"
          }
        }
      },
      "delete": {
        "tags": [
          "Offline-Pages"
        ],
        "summary": "Offline-Page löschen",
        "operationId": "delete_offline_pages_id",
        "description": "Nicht möglich, solange eine Failover-Regel sie nutzt.",
        "parameters": [
          {
            "name": "id",
            "in": "path",
            "required": true,
            "description": "ID der Ressource",
            "schema": {
              "type": "string"
            },
            "example": "12"
          },
          {
            "$ref": "#/components/parameters/ActAs"
          }
        ],
        "responses": {
          "204": {
            "description": "Erfolgreich, ohne Inhalt"
          },
          "401": {
            "$ref": "#/components/responses/E401"
          },
          "404": {
            "$ref": "#/components/responses/E404"
          },
          "409": {
            "$ref": "#/components/responses/E409"
          },
          "429": {
            "$ref": "#/components/responses/E429"
          }
        }
      }
    },
    "/offline-pages/{id}/icon": {
      "post": {
        "tags": [
          "Offline-Pages"
        ],
        "summary": "Logo hochladen",
        "operationId": "post_offline_pages_id_icon",
        "description": "Als multipart/form-data im Feld icon. JPEG, PNG oder WebP, höchstens 1 MB und 1024 x 1024 Pixel.",
        "parameters": [
          {
            "name": "id",
            "in": "path",
            "required": true,
            "description": "ID der Ressource",
            "schema": {
              "type": "string"
            },
            "example": "12"
          },
          {
            "$ref": "#/components/parameters/ActAs"
          }
        ],
        "requestBody": {
          "required": true,
          "content": {
            "multipart/form-data": {
              "schema": {
                "type": "object",
                "properties": {
                  "icon": {
                    "type": "string",
                    "description": "Bilddatei",
                    "format": "binary"
                  }
                },
                "required": [
                  "icon"
                ]
              }
            }
          }
        },
        "responses": {
          "200": {
            "description": "Erfolgreich",
            "content": {
              "application/json": {
                "schema": {
                  "type": "object",
                  "properties": {
                    "data": {
                      "$ref": "#/components/schemas/OfflinePage"
                    }
                  },
                  "required": [
                    "data"
                  ]
                }
              }
            }
          },
          "401": {
            "$ref": "#/components/responses/E401"
          },
          "404": {
            "$ref": "#/components/responses/E404"
          },
          "413": {
            "$ref": "#/components/responses/E413"
          },
          "415": {
            "$ref": "#/components/responses/E415"
          },
          "422": {
            "$ref": "#/components/responses/E422"
          },
          "429": {
            "$ref": "#/components/responses/E429"
          }
        }
      },
      "delete": {
        "tags": [
          "Offline-Pages"
        ],
        "summary": "Logo löschen",
        "operationId": "delete_offline_pages_id_icon",
        "parameters": [
          {
            "name": "id",
            "in": "path",
            "required": true,
            "description": "ID der Ressource",
            "schema": {
              "type": "string"
            },
            "example": "12"
          },
          {
            "$ref": "#/components/parameters/ActAs"
          }
        ],
        "responses": {
          "204": {
            "description": "Erfolgreich, ohne Inhalt"
          },
          "401": {
            "$ref": "#/components/responses/E401"
          },
          "404": {
            "$ref": "#/components/responses/E404"
          },
          "429": {
            "$ref": "#/components/responses/E429"
          }
        }
      }
    },
    "/cdn": {
      "get": {
        "tags": [
          "CDN"
        ],
        "summary": "Alle CDN-Domains",
        "operationId": "get_cdn",
        "parameters": [
          {
            "$ref": "#/components/parameters/ActAs"
          }
        ],
        "responses": {
          "200": {
            "description": "Erfolgreich",
            "content": {
              "application/json": {
                "schema": {
                  "type": "object",
                  "properties": {
                    "data": {
                      "type": "array",
                      "items": {
                        "$ref": "#/components/schemas/CdnDomain"
                      }
                    }
                  },
                  "required": [
                    "data"
                  ]
                }
              }
            }
          },
          "401": {
            "$ref": "#/components/responses/E401"
          },
          "429": {
            "$ref": "#/components/responses/E429"
          }
        }
      },
      "post": {
        "tags": [
          "CDN"
        ],
        "summary": "Domain ins CDN aufnehmen",
        "operationId": "post_cdn",
        "deprecated": true,
        "description": "Seit 2026-11-04 geschlossen: antwortet immer 410 old_cdn_closed. Das alte CDN wird am 22.11.2026 abgeschaltet, neue Namen über POST /cdn64o/hosts (CDN64).",
        "parameters": [
          {
            "$ref": "#/components/parameters/ActAs"
          }
        ],
        "requestBody": {
          "required": true,
          "content": {
            "application/json": {
              "schema": {
                "type": "object",
                "properties": {
                  "domain": {
                    "type": "string",
                    "description": "Domain-ID oder Name",
                    "example": "beispiel.ipv64.de"
                  }
                },
                "required": [
                  "domain"
                ]
              },
              "example": {
                "domain": "beispiel.ipv64.de"
              }
            }
          }
        },
        "responses": {
          "201": {
            "description": "Angelegt",
            "content": {
              "application/json": {
                "schema": {
                  "type": "object",
                  "properties": {
                    "data": {
                      "$ref": "#/components/schemas/CdnDomainDetail"
                    }
                  },
                  "required": [
                    "data"
                  ]
                }
              }
            }
          },
          "401": {
            "$ref": "#/components/responses/E401"
          },
          "403": {
            "$ref": "#/components/responses/E403"
          },
          "409": {
            "$ref": "#/components/responses/E409"
          },
          "422": {
            "$ref": "#/components/responses/E422"
          },
          "429": {
            "$ref": "#/components/responses/E429"
          }
        }
      }
    },
    "/cdn/{token}": {
      "get": {
        "tags": [
          "CDN"
        ],
        "summary": "CDN-Domain mit Mappings",
        "operationId": "get_cdn_token",
        "parameters": [
          {
            "name": "token",
            "in": "path",
            "required": true,
            "description": "Token bzw. ID der Ressource (32 Zeichen)",
            "schema": {
              "type": "string"
            },
            "example": "Ab3dEf6hIj9kLm2nOp5qRs8tUv1wXy4z"
          },
          {
            "$ref": "#/components/parameters/ActAs"
          }
        ],
        "responses": {
          "200": {
            "description": "Erfolgreich",
            "content": {
              "application/json": {
                "schema": {
                  "type": "object",
                  "properties": {
                    "data": {
                      "$ref": "#/components/schemas/CdnDomainDetail"
                    }
                  },
                  "required": [
                    "data"
                  ]
                }
              }
            }
          },
          "401": {
            "$ref": "#/components/responses/E401"
          },
          "404": {
            "$ref": "#/components/responses/E404"
          },
          "429": {
            "$ref": "#/components/responses/E429"
          }
        }
      },
      "patch": {
        "tags": [
          "CDN"
        ],
        "summary": "Proxy-Einstellungen ändern",
        "operationId": "patch_cdn_token",
        "description": "Nur mitgeschickte Felder werden geändert. HTTPS im Frontend stösst automatisch ein Let's-Encrypt-Zertifikat an.",
        "parameters": [
          {
            "name": "token",
            "in": "path",
            "required": true,
            "description": "Token bzw. ID der Ressource (32 Zeichen)",
            "schema": {
              "type": "string"
            },
            "example": "Ab3dEf6hIj9kLm2nOp5qRs8tUv1wXy4z"
          },
          {
            "$ref": "#/components/parameters/ActAs"
          }
        ],
        "requestBody": {
          "required": false,
          "content": {
            "application/json": {
              "schema": {
                "type": "object",
                "properties": {
                  "frontend": {
                    "type": "string",
                    "description": "Frontend",
                    "enum": [
                      "http",
                      "https_redirect",
                      "http_and_https"
                    ],
                    "example": "https_redirect"
                  },
                  "backend_scheme": {
                    "type": "string",
                    "description": "Protokoll zu deinem Server",
                    "enum": [
                      "http",
                      "https"
                    ],
                    "example": "http"
                  },
                  "backend_port": {
                    "type": "integer",
                    "description": "Port deines Servers",
                    "minimum": 1,
                    "maximum": 65535,
                    "example": 8080
                  },
                  "websocket": {
                    "type": "boolean",
                    "description": "WebSocket, nur bei aktivem Proxy",
                    "example": false
                  },
                  "caching": {
                    "type": "object",
                    "properties": {
                      "enabled": {
                        "type": "boolean",
                        "description": "Cache"
                      },
                      "time_minutes": {
                        "type": "integer",
                        "description": "1 bis 600"
                      },
                      "size_mb": {
                        "type": "integer",
                        "description": "1 bis Paketlimit"
                      }
                    }
                  },
                  "access_list": {
                    "type": "object",
                    "properties": {
                      "enabled": {
                        "type": "boolean",
                        "description": "Zugriffsliste"
                      },
                      "mode": {
                        "type": "string",
                        "description": "allowlist oder denylist",
                        "enum": [
                          "allowlist",
                          "denylist"
                        ]
                      }
                    }
                  }
                }
              },
              "example": {
                "frontend": "https_redirect",
                "backend_port": 8080,
                "caching": {
                  "enabled": true,
                  "time_minutes": 60,
                  "size_mb": 100
                }
              }
            }
          }
        },
        "responses": {
          "200": {
            "description": "Erfolgreich",
            "content": {
              "application/json": {
                "schema": {
                  "type": "object",
                  "properties": {
                    "data": {
                      "$ref": "#/components/schemas/CdnDomainDetail"
                    }
                  },
                  "required": [
                    "data"
                  ]
                }
              }
            }
          },
          "401": {
            "$ref": "#/components/responses/E401"
          },
          "403": {
            "$ref": "#/components/responses/E403"
          },
          "404": {
            "$ref": "#/components/responses/E404"
          },
          "409": {
            "$ref": "#/components/responses/E409"
          },
          "422": {
            "$ref": "#/components/responses/E422"
          },
          "429": {
            "$ref": "#/components/responses/E429"
          }
        }
      },
      "delete": {
        "tags": [
          "CDN"
        ],
        "summary": "Domain aus dem CDN entfernen",
        "operationId": "delete_cdn_token",
        "description": "Vorher das CDN für alle Records abschalten.",
        "parameters": [
          {
            "name": "token",
            "in": "path",
            "required": true,
            "description": "Token bzw. ID der Ressource (32 Zeichen)",
            "schema": {
              "type": "string"
            },
            "example": "Ab3dEf6hIj9kLm2nOp5qRs8tUv1wXy4z"
          },
          {
            "$ref": "#/components/parameters/ActAs"
          }
        ],
        "responses": {
          "202": {
            "description": "Angenommen. Die Änderung wird in den nächsten Sekunden vom Hintergrunddienst umgesetzt.",
            "content": {
              "application/json": {
                "schema": {
                  "type": "object",
                  "properties": {
                    "data": {
                      "$ref": "#/components/schemas/CdnDomain"
                    }
                  },
                  "required": [
                    "data"
                  ]
                }
              }
            }
          },
          "401": {
            "$ref": "#/components/responses/E401"
          },
          "404": {
            "$ref": "#/components/responses/E404"
          },
          "409": {
            "$ref": "#/components/responses/E409"
          },
          "429": {
            "$ref": "#/components/responses/E429"
          }
        },
        "x-async": true
      }
    },
    "/cdn/{token}/proxy/enable": {
      "post": {
        "tags": [
          "CDN"
        ],
        "summary": "Reverse Proxy einschalten",
        "operationId": "post_cdn_token_proxy_enable",
        "description": "Mindestens ein Record muss über das CDN laufen.",
        "parameters": [
          {
            "name": "token",
            "in": "path",
            "required": true,
            "description": "Token bzw. ID der Ressource (32 Zeichen)",
            "schema": {
              "type": "string"
            },
            "example": "Ab3dEf6hIj9kLm2nOp5qRs8tUv1wXy4z"
          },
          {
            "$ref": "#/components/parameters/ActAs"
          }
        ],
        "responses": {
          "202": {
            "description": "Angenommen. Die Änderung wird in den nächsten Sekunden vom Hintergrunddienst umgesetzt.",
            "content": {
              "application/json": {
                "schema": {
                  "type": "object",
                  "properties": {
                    "data": {
                      "$ref": "#/components/schemas/CdnDomain"
                    }
                  },
                  "required": [
                    "data"
                  ]
                }
              }
            }
          },
          "401": {
            "$ref": "#/components/responses/E401"
          },
          "403": {
            "$ref": "#/components/responses/E403"
          },
          "404": {
            "$ref": "#/components/responses/E404"
          },
          "409": {
            "$ref": "#/components/responses/E409"
          },
          "429": {
            "$ref": "#/components/responses/E429"
          }
        },
        "x-async": true
      }
    },
    "/cdn/{token}/proxy/disable": {
      "post": {
        "tags": [
          "CDN"
        ],
        "summary": "Reverse Proxy ausschalten",
        "operationId": "post_cdn_token_proxy_disable",
        "parameters": [
          {
            "name": "token",
            "in": "path",
            "required": true,
            "description": "Token bzw. ID der Ressource (32 Zeichen)",
            "schema": {
              "type": "string"
            },
            "example": "Ab3dEf6hIj9kLm2nOp5qRs8tUv1wXy4z"
          },
          {
            "$ref": "#/components/parameters/ActAs"
          }
        ],
        "responses": {
          "202": {
            "description": "Angenommen. Die Änderung wird in den nächsten Sekunden vom Hintergrunddienst umgesetzt.",
            "content": {
              "application/json": {
                "schema": {
                  "type": "object",
                  "properties": {
                    "data": {
                      "$ref": "#/components/schemas/CdnDomain"
                    }
                  },
                  "required": [
                    "data"
                  ]
                }
              }
            }
          },
          "401": {
            "$ref": "#/components/responses/E401"
          },
          "403": {
            "$ref": "#/components/responses/E403"
          },
          "404": {
            "$ref": "#/components/responses/E404"
          },
          "409": {
            "$ref": "#/components/responses/E409"
          },
          "429": {
            "$ref": "#/components/responses/E429"
          }
        },
        "x-async": true
      }
    },
    "/cdn/{token}/portmapper/enable": {
      "post": {
        "tags": [
          "CDN"
        ],
        "summary": "Portmapper einschalten",
        "operationId": "post_cdn_token_portmapper_enable",
        "description": "Mindestens ein Record muss über das CDN laufen.",
        "parameters": [
          {
            "name": "token",
            "in": "path",
            "required": true,
            "description": "Token bzw. ID der Ressource (32 Zeichen)",
            "schema": {
              "type": "string"
            },
            "example": "Ab3dEf6hIj9kLm2nOp5qRs8tUv1wXy4z"
          },
          {
            "$ref": "#/components/parameters/ActAs"
          }
        ],
        "responses": {
          "202": {
            "description": "Angenommen. Die Änderung wird in den nächsten Sekunden vom Hintergrunddienst umgesetzt.",
            "content": {
              "application/json": {
                "schema": {
                  "type": "object",
                  "properties": {
                    "data": {
                      "$ref": "#/components/schemas/CdnDomain"
                    }
                  },
                  "required": [
                    "data"
                  ]
                }
              }
            }
          },
          "401": {
            "$ref": "#/components/responses/E401"
          },
          "403": {
            "$ref": "#/components/responses/E403"
          },
          "404": {
            "$ref": "#/components/responses/E404"
          },
          "409": {
            "$ref": "#/components/responses/E409"
          },
          "429": {
            "$ref": "#/components/responses/E429"
          }
        },
        "x-async": true
      }
    },
    "/cdn/{token}/portmapper/disable": {
      "post": {
        "tags": [
          "CDN"
        ],
        "summary": "Portmapper ausschalten",
        "operationId": "post_cdn_token_portmapper_disable",
        "parameters": [
          {
            "name": "token",
            "in": "path",
            "required": true,
            "description": "Token bzw. ID der Ressource (32 Zeichen)",
            "schema": {
              "type": "string"
            },
            "example": "Ab3dEf6hIj9kLm2nOp5qRs8tUv1wXy4z"
          },
          {
            "$ref": "#/components/parameters/ActAs"
          }
        ],
        "responses": {
          "202": {
            "description": "Angenommen. Die Änderung wird in den nächsten Sekunden vom Hintergrunddienst umgesetzt.",
            "content": {
              "application/json": {
                "schema": {
                  "type": "object",
                  "properties": {
                    "data": {
                      "$ref": "#/components/schemas/CdnDomain"
                    }
                  },
                  "required": [
                    "data"
                  ]
                }
              }
            }
          },
          "401": {
            "$ref": "#/components/responses/E401"
          },
          "403": {
            "$ref": "#/components/responses/E403"
          },
          "404": {
            "$ref": "#/components/responses/E404"
          },
          "409": {
            "$ref": "#/components/responses/E409"
          },
          "429": {
            "$ref": "#/components/responses/E429"
          }
        },
        "x-async": true
      }
    },
    "/cdn/{token}/redeploy": {
      "post": {
        "tags": [
          "CDN"
        ],
        "summary": "Konfiguration neu ausrollen",
        "operationId": "post_cdn_token_redeploy",
        "parameters": [
          {
            "name": "token",
            "in": "path",
            "required": true,
            "description": "Token bzw. ID der Ressource (32 Zeichen)",
            "schema": {
              "type": "string"
            },
            "example": "Ab3dEf6hIj9kLm2nOp5qRs8tUv1wXy4z"
          },
          {
            "$ref": "#/components/parameters/ActAs"
          }
        ],
        "responses": {
          "202": {
            "description": "Angenommen. Die Änderung wird in den nächsten Sekunden vom Hintergrunddienst umgesetzt.",
            "content": {
              "application/json": {
                "schema": {
                  "type": "object",
                  "properties": {
                    "data": {
                      "$ref": "#/components/schemas/CdnDomain"
                    }
                  },
                  "required": [
                    "data"
                  ]
                }
              }
            }
          },
          "401": {
            "$ref": "#/components/responses/E401"
          },
          "403": {
            "$ref": "#/components/responses/E403"
          },
          "404": {
            "$ref": "#/components/responses/E404"
          },
          "409": {
            "$ref": "#/components/responses/E409"
          },
          "429": {
            "$ref": "#/components/responses/E429"
          }
        },
        "x-async": true
      }
    },
    "/cdn/{token}/reset-traffic": {
      "post": {
        "tags": [
          "CDN"
        ],
        "summary": "Traffic-Zähler der Domain zurücksetzen",
        "operationId": "post_cdn_token_reset_traffic",
        "parameters": [
          {
            "name": "token",
            "in": "path",
            "required": true,
            "description": "Token bzw. ID der Ressource (32 Zeichen)",
            "schema": {
              "type": "string"
            },
            "example": "Ab3dEf6hIj9kLm2nOp5qRs8tUv1wXy4z"
          },
          {
            "$ref": "#/components/parameters/ActAs"
          }
        ],
        "responses": {
          "200": {
            "description": "Erfolgreich",
            "content": {
              "application/json": {
                "schema": {
                  "type": "object",
                  "properties": {
                    "data": {
                      "$ref": "#/components/schemas/CdnDomain"
                    }
                  },
                  "required": [
                    "data"
                  ]
                }
              }
            }
          },
          "401": {
            "$ref": "#/components/responses/E401"
          },
          "404": {
            "$ref": "#/components/responses/E404"
          },
          "429": {
            "$ref": "#/components/responses/E429"
          }
        }
      }
    },
    "/cdn/{token}/move": {
      "post": {
        "tags": [
          "CDN"
        ],
        "summary": "Auf einen anderen CDN-Server umziehen",
        "operationId": "post_cdn_token_move",
        "parameters": [
          {
            "name": "token",
            "in": "path",
            "required": true,
            "description": "Token bzw. ID der Ressource (32 Zeichen)",
            "schema": {
              "type": "string"
            },
            "example": "Ab3dEf6hIj9kLm2nOp5qRs8tUv1wXy4z"
          },
          {
            "$ref": "#/components/parameters/ActAs"
          }
        ],
        "responses": {
          "202": {
            "description": "Angenommen. Die Änderung wird in den nächsten Sekunden vom Hintergrunddienst umgesetzt.",
            "content": {
              "application/json": {
                "schema": {
                  "type": "object",
                  "properties": {
                    "data": {
                      "$ref": "#/components/schemas/CdnDomain"
                    }
                  },
                  "required": [
                    "data"
                  ]
                }
              }
            }
          },
          "401": {
            "$ref": "#/components/responses/E401"
          },
          "403": {
            "$ref": "#/components/responses/E403"
          },
          "404": {
            "$ref": "#/components/responses/E404"
          },
          "409": {
            "$ref": "#/components/responses/E409"
          },
          "429": {
            "$ref": "#/components/responses/E429"
          }
        },
        "x-async": true
      }
    },
    "/cdn/{token}/renew-certificate": {
      "post": {
        "tags": [
          "CDN"
        ],
        "summary": "Zertifikat neu ausstellen",
        "operationId": "post_cdn_token_renew_certificate",
        "description": "Nur bei aktivem Proxy mit HTTPS-Frontend.",
        "parameters": [
          {
            "name": "token",
            "in": "path",
            "required": true,
            "description": "Token bzw. ID der Ressource (32 Zeichen)",
            "schema": {
              "type": "string"
            },
            "example": "Ab3dEf6hIj9kLm2nOp5qRs8tUv1wXy4z"
          },
          {
            "$ref": "#/components/parameters/ActAs"
          }
        ],
        "responses": {
          "202": {
            "description": "Angenommen. Die Änderung wird in den nächsten Sekunden vom Hintergrunddienst umgesetzt.",
            "content": {
              "application/json": {
                "schema": {
                  "type": "object",
                  "properties": {
                    "data": {
                      "$ref": "#/components/schemas/CdnDomain"
                    }
                  },
                  "required": [
                    "data"
                  ]
                }
              }
            }
          },
          "401": {
            "$ref": "#/components/responses/E401"
          },
          "404": {
            "$ref": "#/components/responses/E404"
          },
          "409": {
            "$ref": "#/components/responses/E409"
          },
          "429": {
            "$ref": "#/components/responses/E429"
          }
        },
        "x-async": true
      }
    },
    "/cdn/{token}/records": {
      "get": {
        "tags": [
          "CDN"
        ],
        "summary": "A- und AAAA-Records der Domain mit CDN-Zustand",
        "operationId": "get_cdn_token_records",
        "parameters": [
          {
            "name": "token",
            "in": "path",
            "required": true,
            "description": "Token bzw. ID der Ressource (32 Zeichen)",
            "schema": {
              "type": "string"
            },
            "example": "Ab3dEf6hIj9kLm2nOp5qRs8tUv1wXy4z"
          },
          {
            "$ref": "#/components/parameters/ActAs"
          }
        ],
        "responses": {
          "200": {
            "description": "Erfolgreich",
            "content": {
              "application/json": {
                "schema": {
                  "type": "object",
                  "properties": {
                    "data": {
                      "type": "array",
                      "items": {
                        "$ref": "#/components/schemas/Record"
                      }
                    }
                  },
                  "required": [
                    "data"
                  ]
                }
              }
            }
          },
          "401": {
            "$ref": "#/components/responses/E401"
          },
          "404": {
            "$ref": "#/components/responses/E404"
          },
          "429": {
            "$ref": "#/components/responses/E429"
          }
        }
      }
    },
    "/cdn/{token}/records/{record}/enable": {
      "post": {
        "tags": [
          "CDN"
        ],
        "summary": "Record über das CDN leiten",
        "operationId": "post_cdn_token_records_record_enable",
        "description": "full: der Name zeigt komplett auf das CDN. other_family_only: der Record bleibt direkt erreichbar und das CDN liefert nur die andere Adressfamilie, zum Beispiel IPv4 für einen reinen IPv6-Anschluss. other_family_only geht nur, wenn der Record der einzige auf seinem Präfix ist.",
        "parameters": [
          {
            "name": "token",
            "in": "path",
            "required": true,
            "description": "Token bzw. ID der Ressource (32 Zeichen)",
            "schema": {
              "type": "string"
            },
            "example": "Ab3dEf6hIj9kLm2nOp5qRs8tUv1wXy4z"
          },
          {
            "name": "record",
            "in": "path",
            "required": true,
            "description": "Record-ID oder Record-Token",
            "schema": {
              "type": "string"
            },
            "example": "4711"
          },
          {
            "$ref": "#/components/parameters/ActAs"
          }
        ],
        "requestBody": {
          "required": false,
          "content": {
            "application/json": {
              "schema": {
                "type": "object",
                "properties": {
                  "mode": {
                    "type": "string",
                    "description": "Modus",
                    "enum": [
                      "full",
                      "other_family_only"
                    ],
                    "example": "full"
                  }
                }
              },
              "example": {
                "mode": "other_family_only"
              }
            }
          }
        },
        "responses": {
          "202": {
            "description": "Angenommen. Die Änderung wird in den nächsten Sekunden vom Hintergrunddienst umgesetzt.",
            "content": {
              "application/json": {
                "schema": {
                  "type": "object",
                  "properties": {
                    "data": {
                      "$ref": "#/components/schemas/Record"
                    }
                  },
                  "required": [
                    "data"
                  ]
                }
              }
            }
          },
          "401": {
            "$ref": "#/components/responses/E401"
          },
          "404": {
            "$ref": "#/components/responses/E404"
          },
          "409": {
            "$ref": "#/components/responses/E409"
          },
          "422": {
            "$ref": "#/components/responses/E422"
          },
          "429": {
            "$ref": "#/components/responses/E429"
          }
        },
        "x-async": true
      }
    },
    "/cdn/{token}/records/{record}/disable": {
      "post": {
        "tags": [
          "CDN"
        ],
        "summary": "Record wieder direkt ausliefern",
        "operationId": "post_cdn_token_records_record_disable",
        "parameters": [
          {
            "name": "token",
            "in": "path",
            "required": true,
            "description": "Token bzw. ID der Ressource (32 Zeichen)",
            "schema": {
              "type": "string"
            },
            "example": "Ab3dEf6hIj9kLm2nOp5qRs8tUv1wXy4z"
          },
          {
            "name": "record",
            "in": "path",
            "required": true,
            "description": "Record-ID oder Record-Token",
            "schema": {
              "type": "string"
            },
            "example": "4711"
          },
          {
            "$ref": "#/components/parameters/ActAs"
          }
        ],
        "responses": {
          "202": {
            "description": "Angenommen. Die Änderung wird in den nächsten Sekunden vom Hintergrunddienst umgesetzt.",
            "content": {
              "application/json": {
                "schema": {
                  "type": "object",
                  "properties": {
                    "data": {
                      "$ref": "#/components/schemas/Record"
                    }
                  },
                  "required": [
                    "data"
                  ]
                }
              }
            }
          },
          "401": {
            "$ref": "#/components/responses/E401"
          },
          "404": {
            "$ref": "#/components/responses/E404"
          },
          "409": {
            "$ref": "#/components/responses/E409"
          },
          "429": {
            "$ref": "#/components/responses/E429"
          }
        },
        "x-async": true
      }
    },
    "/cdn/{token}/mappings": {
      "get": {
        "tags": [
          "CDN"
        ],
        "summary": "Port-Mappings",
        "operationId": "get_cdn_token_mappings",
        "parameters": [
          {
            "name": "token",
            "in": "path",
            "required": true,
            "description": "Token bzw. ID der Ressource (32 Zeichen)",
            "schema": {
              "type": "string"
            },
            "example": "Ab3dEf6hIj9kLm2nOp5qRs8tUv1wXy4z"
          },
          {
            "$ref": "#/components/parameters/ActAs"
          }
        ],
        "responses": {
          "200": {
            "description": "Erfolgreich",
            "content": {
              "application/json": {
                "schema": {
                  "type": "object",
                  "properties": {
                    "data": {
                      "type": "array",
                      "items": {
                        "$ref": "#/components/schemas/CdnMapping"
                      }
                    }
                  },
                  "required": [
                    "data"
                  ]
                }
              }
            }
          },
          "401": {
            "$ref": "#/components/responses/E401"
          },
          "404": {
            "$ref": "#/components/responses/E404"
          },
          "429": {
            "$ref": "#/components/responses/E429"
          }
        }
      },
      "post": {
        "tags": [
          "CDN"
        ],
        "summary": "Port-Mapping anlegen",
        "operationId": "post_cdn_token_mappings",
        "description": "Leitet einen öffentlichen Port des CDN-Servers auf einen Port bei dir weiter. Ohne listen_port wird ein freier Port zwischen 50000 und 62000 vergeben. Für A und AAAA desselben Namens mit gleichem Ziel-Port wird derselbe Port verwendet.",
        "parameters": [
          {
            "name": "token",
            "in": "path",
            "required": true,
            "description": "Token bzw. ID der Ressource (32 Zeichen)",
            "schema": {
              "type": "string"
            },
            "example": "Ab3dEf6hIj9kLm2nOp5qRs8tUv1wXy4z"
          },
          {
            "$ref": "#/components/parameters/ActAs"
          }
        ],
        "requestBody": {
          "required": true,
          "content": {
            "application/json": {
              "schema": {
                "type": "object",
                "properties": {
                  "record": {
                    "type": "string",
                    "description": "Record-ID oder -Token, der über das CDN läuft",
                    "example": "4711"
                  },
                  "target_port": {
                    "type": "integer",
                    "description": "Port bei dir",
                    "minimum": 1,
                    "maximum": 65535,
                    "example": 25565
                  },
                  "transport": {
                    "type": "string",
                    "description": "Protokoll",
                    "enum": [
                      "tcp",
                      "udp"
                    ],
                    "example": "tcp"
                  },
                  "name": {
                    "type": "string",
                    "description": "Name",
                    "example": "Minecraft"
                  },
                  "listen_port": {
                    "type": "integer",
                    "description": "Wunsch-Port",
                    "minimum": 50000,
                    "maximum": 62000
                  }
                },
                "required": [
                  "record",
                  "target_port"
                ]
              },
              "example": {
                "record": "4711",
                "target_port": 25565,
                "transport": "tcp",
                "name": "Minecraft"
              }
            }
          }
        },
        "responses": {
          "201": {
            "description": "Angelegt",
            "content": {
              "application/json": {
                "schema": {
                  "type": "object",
                  "properties": {
                    "data": {
                      "$ref": "#/components/schemas/CdnMapping"
                    }
                  },
                  "required": [
                    "data"
                  ]
                }
              }
            }
          },
          "401": {
            "$ref": "#/components/responses/E401"
          },
          "403": {
            "$ref": "#/components/responses/E403"
          },
          "404": {
            "$ref": "#/components/responses/E404"
          },
          "409": {
            "$ref": "#/components/responses/E409"
          },
          "422": {
            "$ref": "#/components/responses/E422"
          },
          "429": {
            "$ref": "#/components/responses/E429"
          }
        }
      }
    },
    "/cdn/{token}/mappings/{mapping}": {
      "delete": {
        "tags": [
          "CDN"
        ],
        "summary": "Port-Mapping löschen",
        "operationId": "delete_cdn_token_mappings_mapping",
        "parameters": [
          {
            "name": "token",
            "in": "path",
            "required": true,
            "description": "Token bzw. ID der Ressource (32 Zeichen)",
            "schema": {
              "type": "string"
            },
            "example": "Ab3dEf6hIj9kLm2nOp5qRs8tUv1wXy4z"
          },
          {
            "name": "mapping",
            "in": "path",
            "required": true,
            "description": "Mapping-ID",
            "schema": {
              "type": "string"
            },
            "example": "Ab3dEf6hIj9kLm2nOp5qRs8tUv1wXy4z"
          },
          {
            "$ref": "#/components/parameters/ActAs"
          }
        ],
        "responses": {
          "204": {
            "description": "Erfolgreich, ohne Inhalt"
          },
          "401": {
            "$ref": "#/components/responses/E401"
          },
          "404": {
            "$ref": "#/components/responses/E404"
          },
          "429": {
            "$ref": "#/components/responses/E429"
          }
        }
      }
    },
    "/cdn/{token}/access-list": {
      "get": {
        "tags": [
          "CDN"
        ],
        "summary": "Zugriffsliste",
        "operationId": "get_cdn_token_access_list",
        "parameters": [
          {
            "name": "token",
            "in": "path",
            "required": true,
            "description": "Token bzw. ID der Ressource (32 Zeichen)",
            "schema": {
              "type": "string"
            },
            "example": "Ab3dEf6hIj9kLm2nOp5qRs8tUv1wXy4z"
          },
          {
            "$ref": "#/components/parameters/ActAs"
          }
        ],
        "responses": {
          "200": {
            "description": "Erfolgreich",
            "content": {
              "application/json": {
                "schema": {
                  "type": "object",
                  "properties": {
                    "data": {
                      "type": "array",
                      "items": {
                        "$ref": "#/components/schemas/AccessListEntry"
                      }
                    }
                  },
                  "required": [
                    "data"
                  ]
                }
              }
            }
          },
          "401": {
            "$ref": "#/components/responses/E401"
          },
          "404": {
            "$ref": "#/components/responses/E404"
          },
          "429": {
            "$ref": "#/components/responses/E429"
          }
        }
      },
      "post": {
        "tags": [
          "CDN"
        ],
        "summary": "Eintrag hinzufügen",
        "operationId": "post_cdn_token_access_list",
        "description": "Ob die Liste erlaubt oder sperrt, steht in proxy.access_list.mode.",
        "parameters": [
          {
            "name": "token",
            "in": "path",
            "required": true,
            "description": "Token bzw. ID der Ressource (32 Zeichen)",
            "schema": {
              "type": "string"
            },
            "example": "Ab3dEf6hIj9kLm2nOp5qRs8tUv1wXy4z"
          },
          {
            "$ref": "#/components/parameters/ActAs"
          }
        ],
        "requestBody": {
          "required": true,
          "content": {
            "application/json": {
              "schema": {
                "type": "object",
                "properties": {
                  "address": {
                    "type": "string",
                    "description": "IP oder Netz in CIDR",
                    "example": "198.51.100.0/24"
                  }
                },
                "required": [
                  "address"
                ]
              },
              "example": {
                "address": "198.51.100.0/24"
              }
            }
          }
        },
        "responses": {
          "201": {
            "description": "Angelegt",
            "content": {
              "application/json": {
                "schema": {
                  "type": "object",
                  "properties": {
                    "data": {
                      "$ref": "#/components/schemas/AccessListEntry"
                    }
                  },
                  "required": [
                    "data"
                  ]
                }
              }
            }
          },
          "401": {
            "$ref": "#/components/responses/E401"
          },
          "404": {
            "$ref": "#/components/responses/E404"
          },
          "409": {
            "$ref": "#/components/responses/E409"
          },
          "422": {
            "$ref": "#/components/responses/E422"
          },
          "429": {
            "$ref": "#/components/responses/E429"
          }
        }
      }
    },
    "/cdn/{token}/access-list/{id}": {
      "delete": {
        "tags": [
          "CDN"
        ],
        "summary": "Eintrag entfernen",
        "operationId": "delete_cdn_token_access_list_id",
        "parameters": [
          {
            "name": "token",
            "in": "path",
            "required": true,
            "description": "Token bzw. ID der Ressource (32 Zeichen)",
            "schema": {
              "type": "string"
            },
            "example": "Ab3dEf6hIj9kLm2nOp5qRs8tUv1wXy4z"
          },
          {
            "name": "id",
            "in": "path",
            "required": true,
            "description": "ID der Ressource",
            "schema": {
              "type": "string"
            },
            "example": "12"
          },
          {
            "$ref": "#/components/parameters/ActAs"
          }
        ],
        "responses": {
          "204": {
            "description": "Erfolgreich, ohne Inhalt"
          },
          "401": {
            "$ref": "#/components/responses/E401"
          },
          "404": {
            "$ref": "#/components/responses/E404"
          },
          "429": {
            "$ref": "#/components/responses/E429"
          }
        }
      }
    },
    "/cloud-routers": {
      "get": {
        "tags": [
          "Cloud Router"
        ],
        "summary": "Alle Cloud Router",
        "operationId": "get_cloud_routers",
        "parameters": [
          {
            "$ref": "#/components/parameters/ActAs"
          }
        ],
        "responses": {
          "200": {
            "description": "Erfolgreich",
            "content": {
              "application/json": {
                "schema": {
                  "type": "object",
                  "properties": {
                    "data": {
                      "type": "array",
                      "items": {
                        "$ref": "#/components/schemas/CloudRouter"
                      }
                    }
                  },
                  "required": [
                    "data"
                  ]
                }
              }
            }
          },
          "401": {
            "$ref": "#/components/responses/E401"
          },
          "429": {
            "$ref": "#/components/responses/E429"
          }
        }
      },
      "post": {
        "tags": [
          "Cloud Router"
        ],
        "summary": "Cloud Router anlegen",
        "operationId": "post_cloud_routers",
        "description": "Legt Router und erstes Gateway an.",
        "parameters": [
          {
            "$ref": "#/components/parameters/ActAs"
          }
        ],
        "requestBody": {
          "required": false,
          "content": {
            "application/json": {
              "schema": {
                "type": "object",
                "properties": {
                  "name": {
                    "type": "string",
                    "description": "Name",
                    "example": "Home Lab"
                  }
                }
              },
              "example": {
                "name": "Home Lab"
              }
            }
          }
        },
        "responses": {
          "202": {
            "description": "Angenommen. Die Änderung wird in den nächsten Sekunden vom Hintergrunddienst umgesetzt.",
            "content": {
              "application/json": {
                "schema": {
                  "type": "object",
                  "properties": {
                    "data": {
                      "$ref": "#/components/schemas/CloudRouter"
                    }
                  },
                  "required": [
                    "data"
                  ]
                }
              }
            }
          },
          "401": {
            "$ref": "#/components/responses/E401"
          },
          "403": {
            "$ref": "#/components/responses/E403"
          },
          "422": {
            "$ref": "#/components/responses/E422"
          },
          "429": {
            "$ref": "#/components/responses/E429"
          }
        },
        "x-async": true
      }
    },
    "/cloud-routers/{token}": {
      "get": {
        "tags": [
          "Cloud Router"
        ],
        "summary": "Cloud Router mit Gateways, Peers und IPs",
        "operationId": "get_cloud_routers_token",
        "parameters": [
          {
            "name": "token",
            "in": "path",
            "required": true,
            "description": "Token bzw. ID der Ressource (32 Zeichen)",
            "schema": {
              "type": "string"
            },
            "example": "Ab3dEf6hIj9kLm2nOp5qRs8tUv1wXy4z"
          },
          {
            "$ref": "#/components/parameters/ActAs"
          }
        ],
        "responses": {
          "200": {
            "description": "Erfolgreich",
            "content": {
              "application/json": {
                "schema": {
                  "type": "object",
                  "properties": {
                    "data": {
                      "$ref": "#/components/schemas/CloudRouter"
                    }
                  },
                  "required": [
                    "data"
                  ]
                }
              }
            }
          },
          "401": {
            "$ref": "#/components/responses/E401"
          },
          "404": {
            "$ref": "#/components/responses/E404"
          },
          "429": {
            "$ref": "#/components/responses/E429"
          }
        }
      },
      "patch": {
        "tags": [
          "Cloud Router"
        ],
        "summary": "Router umbenennen",
        "operationId": "patch_cloud_routers_token",
        "parameters": [
          {
            "name": "token",
            "in": "path",
            "required": true,
            "description": "Token bzw. ID der Ressource (32 Zeichen)",
            "schema": {
              "type": "string"
            },
            "example": "Ab3dEf6hIj9kLm2nOp5qRs8tUv1wXy4z"
          },
          {
            "$ref": "#/components/parameters/ActAs"
          }
        ],
        "requestBody": {
          "required": false,
          "content": {
            "application/json": {
              "schema": {
                "type": "object",
                "properties": {
                  "name": {
                    "type": "string",
                    "description": "Name",
                    "example": "Home Lab"
                  }
                }
              },
              "example": {
                "name": "Buero"
              }
            }
          }
        },
        "responses": {
          "200": {
            "description": "Erfolgreich",
            "content": {
              "application/json": {
                "schema": {
                  "type": "object",
                  "properties": {
                    "data": {
                      "$ref": "#/components/schemas/CloudRouter"
                    }
                  },
                  "required": [
                    "data"
                  ]
                }
              }
            }
          },
          "401": {
            "$ref": "#/components/responses/E401"
          },
          "404": {
            "$ref": "#/components/responses/E404"
          },
          "422": {
            "$ref": "#/components/responses/E422"
          },
          "429": {
            "$ref": "#/components/responses/E429"
          }
        }
      }
    },
    "/cloud-routers/{token}/gateways": {
      "post": {
        "tags": [
          "Cloud Router"
        ],
        "summary": "Weiteres Gateway anlegen",
        "operationId": "post_cloud_routers_token_gateways",
        "parameters": [
          {
            "name": "token",
            "in": "path",
            "required": true,
            "description": "Token bzw. ID der Ressource (32 Zeichen)",
            "schema": {
              "type": "string"
            },
            "example": "Ab3dEf6hIj9kLm2nOp5qRs8tUv1wXy4z"
          },
          {
            "$ref": "#/components/parameters/ActAs"
          }
        ],
        "requestBody": {
          "required": false,
          "content": {
            "application/json": {
              "schema": {
                "type": "object",
                "properties": {
                  "name": {
                    "type": "string",
                    "description": "Name",
                    "example": "Gateway 2"
                  }
                }
              },
              "example": {
                "name": "Gateway 2"
              }
            }
          }
        },
        "responses": {
          "202": {
            "description": "Angenommen. Die Änderung wird in den nächsten Sekunden vom Hintergrunddienst umgesetzt.",
            "content": {
              "application/json": {
                "schema": {
                  "type": "object",
                  "properties": {
                    "data": {
                      "$ref": "#/components/schemas/Gateway"
                    }
                  },
                  "required": [
                    "data"
                  ]
                }
              }
            }
          },
          "401": {
            "$ref": "#/components/responses/E401"
          },
          "403": {
            "$ref": "#/components/responses/E403"
          },
          "404": {
            "$ref": "#/components/responses/E404"
          },
          "422": {
            "$ref": "#/components/responses/E422"
          },
          "429": {
            "$ref": "#/components/responses/E429"
          }
        },
        "x-async": true
      }
    },
    "/cloud-routers/{token}/routes": {
      "get": {
        "tags": [
          "Cloud Router"
        ],
        "summary": "Routen",
        "operationId": "get_cloud_routers_token_routes",
        "parameters": [
          {
            "name": "token",
            "in": "path",
            "required": true,
            "description": "Token bzw. ID der Ressource (32 Zeichen)",
            "schema": {
              "type": "string"
            },
            "example": "Ab3dEf6hIj9kLm2nOp5qRs8tUv1wXy4z"
          },
          {
            "$ref": "#/components/parameters/ActAs"
          }
        ],
        "responses": {
          "200": {
            "description": "Erfolgreich",
            "content": {
              "application/json": {
                "schema": {
                  "type": "object",
                  "properties": {
                    "data": {
                      "type": "array",
                      "items": {
                        "$ref": "#/components/schemas/Route"
                      }
                    }
                  },
                  "required": [
                    "data"
                  ]
                }
              }
            }
          },
          "401": {
            "$ref": "#/components/responses/E401"
          },
          "404": {
            "$ref": "#/components/responses/E404"
          },
          "429": {
            "$ref": "#/components/responses/E429"
          }
        }
      },
      "post": {
        "tags": [
          "Cloud Router"
        ],
        "summary": "Route anlegen",
        "operationId": "post_cloud_routers_token_routes",
        "description": "Statische Route in ein Netz hinter einem Peer.",
        "parameters": [
          {
            "name": "token",
            "in": "path",
            "required": true,
            "description": "Token bzw. ID der Ressource (32 Zeichen)",
            "schema": {
              "type": "string"
            },
            "example": "Ab3dEf6hIj9kLm2nOp5qRs8tUv1wXy4z"
          },
          {
            "$ref": "#/components/parameters/ActAs"
          }
        ],
        "requestBody": {
          "required": true,
          "content": {
            "application/json": {
              "schema": {
                "type": "object",
                "properties": {
                  "destination": {
                    "type": "string",
                    "description": "Zielnetz in CIDR",
                    "example": "192.168.50.0/24"
                  },
                  "gateway": {
                    "type": "string",
                    "description": "Next Hop, gleiche Familie",
                    "example": "10.7.0.2"
                  },
                  "peer": {
                    "type": "string",
                    "description": "Peer-ID",
                    "example": "Ab3dEf6hIj9kLm2nOp5qRs8tUv1wXy4z"
                  },
                  "distance": {
                    "type": "integer",
                    "description": "Distanz",
                    "minimum": 1,
                    "maximum": 255,
                    "example": 1
                  }
                },
                "required": [
                  "destination",
                  "gateway",
                  "peer"
                ]
              },
              "example": {
                "destination": "192.168.50.0/24",
                "gateway": "10.7.0.2",
                "peer": "Ab3dEf6hIj9kLm2nOp5qRs8tUv1wXy4z"
              }
            }
          }
        },
        "responses": {
          "202": {
            "description": "Angenommen. Die Änderung wird in den nächsten Sekunden vom Hintergrunddienst umgesetzt.",
            "content": {
              "application/json": {
                "schema": {
                  "type": "object",
                  "properties": {
                    "data": {
                      "$ref": "#/components/schemas/Route"
                    }
                  },
                  "required": [
                    "data"
                  ]
                }
              }
            }
          },
          "401": {
            "$ref": "#/components/responses/E401"
          },
          "404": {
            "$ref": "#/components/responses/E404"
          },
          "422": {
            "$ref": "#/components/responses/E422"
          },
          "429": {
            "$ref": "#/components/responses/E429"
          }
        },
        "x-async": true
      }
    },
    "/cloud-routers/{token}/routes/{id}": {
      "patch": {
        "tags": [
          "Cloud Router"
        ],
        "summary": "Route ein- oder ausschalten",
        "operationId": "patch_cloud_routers_token_routes_id",
        "parameters": [
          {
            "name": "token",
            "in": "path",
            "required": true,
            "description": "Token bzw. ID der Ressource (32 Zeichen)",
            "schema": {
              "type": "string"
            },
            "example": "Ab3dEf6hIj9kLm2nOp5qRs8tUv1wXy4z"
          },
          {
            "name": "id",
            "in": "path",
            "required": true,
            "description": "ID der Ressource",
            "schema": {
              "type": "string"
            },
            "example": "12"
          },
          {
            "$ref": "#/components/parameters/ActAs"
          }
        ],
        "requestBody": {
          "required": false,
          "content": {
            "application/json": {
              "schema": {
                "type": "object",
                "properties": {
                  "disabled": {
                    "type": "boolean",
                    "description": "Deaktiviert",
                    "example": true
                  }
                }
              },
              "example": {
                "disabled": true
              }
            }
          }
        },
        "responses": {
          "202": {
            "description": "Angenommen. Die Änderung wird in den nächsten Sekunden vom Hintergrunddienst umgesetzt.",
            "content": {
              "application/json": {
                "schema": {
                  "type": "object",
                  "properties": {
                    "data": {
                      "$ref": "#/components/schemas/Route"
                    }
                  },
                  "required": [
                    "data"
                  ]
                }
              }
            }
          },
          "401": {
            "$ref": "#/components/responses/E401"
          },
          "404": {
            "$ref": "#/components/responses/E404"
          },
          "409": {
            "$ref": "#/components/responses/E409"
          },
          "422": {
            "$ref": "#/components/responses/E422"
          },
          "429": {
            "$ref": "#/components/responses/E429"
          }
        },
        "x-async": true
      },
      "delete": {
        "tags": [
          "Cloud Router"
        ],
        "summary": "Route löschen",
        "operationId": "delete_cloud_routers_token_routes_id",
        "description": "Systemrouten können nicht gelöscht werden.",
        "parameters": [
          {
            "name": "token",
            "in": "path",
            "required": true,
            "description": "Token bzw. ID der Ressource (32 Zeichen)",
            "schema": {
              "type": "string"
            },
            "example": "Ab3dEf6hIj9kLm2nOp5qRs8tUv1wXy4z"
          },
          {
            "name": "id",
            "in": "path",
            "required": true,
            "description": "ID der Ressource",
            "schema": {
              "type": "string"
            },
            "example": "12"
          },
          {
            "$ref": "#/components/parameters/ActAs"
          }
        ],
        "responses": {
          "202": {
            "description": "Angenommen. Die Änderung wird in den nächsten Sekunden vom Hintergrunddienst umgesetzt.",
            "content": {
              "application/json": {
                "schema": {
                  "type": "object",
                  "properties": {
                    "data": {
                      "type": "object",
                      "properties": {
                        "id": {
                          "type": "integer",
                          "description": "ID",
                          "example": 21
                        },
                        "state": {
                          "type": "string",
                          "description": "Zustand",
                          "example": "deleting"
                        }
                      }
                    }
                  },
                  "required": [
                    "data"
                  ]
                }
              }
            }
          },
          "401": {
            "$ref": "#/components/responses/E401"
          },
          "404": {
            "$ref": "#/components/responses/E404"
          },
          "409": {
            "$ref": "#/components/responses/E409"
          },
          "429": {
            "$ref": "#/components/responses/E429"
          }
        },
        "x-async": true
      }
    },
    "/cloud-routers/{token}/firewall": {
      "get": {
        "tags": [
          "Cloud Router"
        ],
        "summary": "Firewall-Regeln",
        "operationId": "get_cloud_routers_token_firewall",
        "parameters": [
          {
            "name": "token",
            "in": "path",
            "required": true,
            "description": "Token bzw. ID der Ressource (32 Zeichen)",
            "schema": {
              "type": "string"
            },
            "example": "Ab3dEf6hIj9kLm2nOp5qRs8tUv1wXy4z"
          },
          {
            "$ref": "#/components/parameters/ActAs"
          }
        ],
        "responses": {
          "200": {
            "description": "Erfolgreich",
            "content": {
              "application/json": {
                "schema": {
                  "type": "object",
                  "properties": {
                    "data": {
                      "type": "array",
                      "items": {
                        "$ref": "#/components/schemas/FirewallRule"
                      }
                    }
                  },
                  "required": [
                    "data"
                  ]
                }
              }
            }
          },
          "401": {
            "$ref": "#/components/responses/E401"
          },
          "404": {
            "$ref": "#/components/responses/E404"
          },
          "429": {
            "$ref": "#/components/responses/E429"
          }
        }
      },
      "post": {
        "tags": [
          "Cloud Router"
        ],
        "summary": "Firewall-Regel anlegen",
        "operationId": "post_cloud_routers_token_firewall",
        "description": "source und destination müssen zur selben Familie gehören. Mindestens eines davon ist Pflicht.",
        "parameters": [
          {
            "name": "token",
            "in": "path",
            "required": true,
            "description": "Token bzw. ID der Ressource (32 Zeichen)",
            "schema": {
              "type": "string"
            },
            "example": "Ab3dEf6hIj9kLm2nOp5qRs8tUv1wXy4z"
          },
          {
            "$ref": "#/components/parameters/ActAs"
          }
        ],
        "requestBody": {
          "required": true,
          "content": {
            "application/json": {
              "schema": {
                "type": "object",
                "properties": {
                  "chain": {
                    "type": "string",
                    "description": "Kette",
                    "enum": [
                      "forward",
                      "input",
                      "output"
                    ],
                    "example": "forward"
                  },
                  "action": {
                    "type": "string",
                    "description": "Aktion",
                    "enum": [
                      "accept",
                      "drop"
                    ],
                    "example": "drop"
                  },
                  "source": {
                    "type": "string",
                    "description": "Quelle als IP oder CIDR",
                    "example": "10.7.0.0/24"
                  },
                  "destination": {
                    "type": "string",
                    "description": "Ziel als IP oder CIDR",
                    "example": "192.168.50.10"
                  }
                },
                "required": [
                  "chain",
                  "action"
                ]
              },
              "example": {
                "chain": "forward",
                "action": "drop",
                "source": "10.7.0.5",
                "destination": "192.168.50.0/24"
              }
            }
          }
        },
        "responses": {
          "202": {
            "description": "Angenommen. Die Änderung wird in den nächsten Sekunden vom Hintergrunddienst umgesetzt.",
            "content": {
              "application/json": {
                "schema": {
                  "type": "object",
                  "properties": {
                    "data": {
                      "$ref": "#/components/schemas/FirewallRule"
                    }
                  },
                  "required": [
                    "data"
                  ]
                }
              }
            }
          },
          "401": {
            "$ref": "#/components/responses/E401"
          },
          "404": {
            "$ref": "#/components/responses/E404"
          },
          "422": {
            "$ref": "#/components/responses/E422"
          },
          "429": {
            "$ref": "#/components/responses/E429"
          }
        },
        "x-async": true
      }
    },
    "/cloud-routers/{token}/firewall/{id}": {
      "patch": {
        "tags": [
          "Cloud Router"
        ],
        "summary": "Regel ein- oder ausschalten",
        "operationId": "patch_cloud_routers_token_firewall_id",
        "parameters": [
          {
            "name": "token",
            "in": "path",
            "required": true,
            "description": "Token bzw. ID der Ressource (32 Zeichen)",
            "schema": {
              "type": "string"
            },
            "example": "Ab3dEf6hIj9kLm2nOp5qRs8tUv1wXy4z"
          },
          {
            "name": "id",
            "in": "path",
            "required": true,
            "description": "ID der Ressource",
            "schema": {
              "type": "string"
            },
            "example": "12"
          },
          {
            "$ref": "#/components/parameters/ActAs"
          }
        ],
        "requestBody": {
          "required": false,
          "content": {
            "application/json": {
              "schema": {
                "type": "object",
                "properties": {
                  "disabled": {
                    "type": "boolean",
                    "description": "Deaktiviert",
                    "example": true
                  }
                }
              },
              "example": {
                "disabled": true
              }
            }
          }
        },
        "responses": {
          "202": {
            "description": "Angenommen. Die Änderung wird in den nächsten Sekunden vom Hintergrunddienst umgesetzt.",
            "content": {
              "application/json": {
                "schema": {
                  "type": "object",
                  "properties": {
                    "data": {
                      "$ref": "#/components/schemas/FirewallRule"
                    }
                  },
                  "required": [
                    "data"
                  ]
                }
              }
            }
          },
          "401": {
            "$ref": "#/components/responses/E401"
          },
          "404": {
            "$ref": "#/components/responses/E404"
          },
          "409": {
            "$ref": "#/components/responses/E409"
          },
          "422": {
            "$ref": "#/components/responses/E422"
          },
          "429": {
            "$ref": "#/components/responses/E429"
          }
        },
        "x-async": true
      },
      "delete": {
        "tags": [
          "Cloud Router"
        ],
        "summary": "Regel löschen",
        "operationId": "delete_cloud_routers_token_firewall_id",
        "parameters": [
          {
            "name": "token",
            "in": "path",
            "required": true,
            "description": "Token bzw. ID der Ressource (32 Zeichen)",
            "schema": {
              "type": "string"
            },
            "example": "Ab3dEf6hIj9kLm2nOp5qRs8tUv1wXy4z"
          },
          {
            "name": "id",
            "in": "path",
            "required": true,
            "description": "ID der Ressource",
            "schema": {
              "type": "string"
            },
            "example": "12"
          },
          {
            "$ref": "#/components/parameters/ActAs"
          }
        ],
        "responses": {
          "202": {
            "description": "Angenommen. Die Änderung wird in den nächsten Sekunden vom Hintergrunddienst umgesetzt.",
            "content": {
              "application/json": {
                "schema": {
                  "type": "object",
                  "properties": {
                    "data": {
                      "type": "object",
                      "properties": {
                        "id": {
                          "type": "integer",
                          "description": "ID",
                          "example": 4
                        },
                        "state": {
                          "type": "string",
                          "description": "Zustand",
                          "example": "deleting"
                        }
                      }
                    }
                  },
                  "required": [
                    "data"
                  ]
                }
              }
            }
          },
          "401": {
            "$ref": "#/components/responses/E401"
          },
          "404": {
            "$ref": "#/components/responses/E404"
          },
          "409": {
            "$ref": "#/components/responses/E409"
          },
          "429": {
            "$ref": "#/components/responses/E429"
          }
        },
        "x-async": true
      }
    },
    "/cloud-routers/{token}/public-ips": {
      "get": {
        "tags": [
          "Cloud Router"
        ],
        "summary": "Öffentliche IPs",
        "operationId": "get_cloud_routers_token_public_ips",
        "parameters": [
          {
            "name": "token",
            "in": "path",
            "required": true,
            "description": "Token bzw. ID der Ressource (32 Zeichen)",
            "schema": {
              "type": "string"
            },
            "example": "Ab3dEf6hIj9kLm2nOp5qRs8tUv1wXy4z"
          },
          {
            "$ref": "#/components/parameters/ActAs"
          }
        ],
        "responses": {
          "200": {
            "description": "Erfolgreich",
            "content": {
              "application/json": {
                "schema": {
                  "type": "object",
                  "properties": {
                    "data": {
                      "type": "array",
                      "items": {
                        "$ref": "#/components/schemas/PublicIp"
                      }
                    }
                  },
                  "required": [
                    "data"
                  ]
                }
              }
            }
          },
          "401": {
            "$ref": "#/components/responses/E401"
          },
          "404": {
            "$ref": "#/components/responses/E404"
          },
          "429": {
            "$ref": "#/components/responses/E429"
          }
        }
      },
      "post": {
        "tags": [
          "Cloud Router"
        ],
        "summary": "Öffentliche IPv6 anlegen",
        "operationId": "post_cloud_routers_token_public_ips",
        "description": "Höchstens eine IPv6 je Router. Die Adresse wird zufällig aus dem Netz des VPN-Servers vergeben.",
        "parameters": [
          {
            "name": "token",
            "in": "path",
            "required": true,
            "description": "Token bzw. ID der Ressource (32 Zeichen)",
            "schema": {
              "type": "string"
            },
            "example": "Ab3dEf6hIj9kLm2nOp5qRs8tUv1wXy4z"
          },
          {
            "$ref": "#/components/parameters/ActAs"
          }
        ],
        "responses": {
          "202": {
            "description": "Angenommen. Die Änderung wird in den nächsten Sekunden vom Hintergrunddienst umgesetzt.",
            "content": {
              "application/json": {
                "schema": {
                  "type": "object",
                  "properties": {
                    "data": {
                      "$ref": "#/components/schemas/PublicIp"
                    }
                  },
                  "required": [
                    "data"
                  ]
                }
              }
            }
          },
          "401": {
            "$ref": "#/components/responses/E401"
          },
          "404": {
            "$ref": "#/components/responses/E404"
          },
          "409": {
            "$ref": "#/components/responses/E409"
          },
          "429": {
            "$ref": "#/components/responses/E429"
          }
        },
        "x-async": true
      }
    },
    "/cloud-routers/{token}/public-ips/{id}": {
      "patch": {
        "tags": [
          "Cloud Router"
        ],
        "summary": "IP ein- oder ausschalten",
        "operationId": "patch_cloud_routers_token_public_ips_id",
        "parameters": [
          {
            "name": "token",
            "in": "path",
            "required": true,
            "description": "Token bzw. ID der Ressource (32 Zeichen)",
            "schema": {
              "type": "string"
            },
            "example": "Ab3dEf6hIj9kLm2nOp5qRs8tUv1wXy4z"
          },
          {
            "name": "id",
            "in": "path",
            "required": true,
            "description": "ID der Ressource",
            "schema": {
              "type": "string"
            },
            "example": "12"
          },
          {
            "$ref": "#/components/parameters/ActAs"
          }
        ],
        "requestBody": {
          "required": false,
          "content": {
            "application/json": {
              "schema": {
                "type": "object",
                "properties": {
                  "disabled": {
                    "type": "boolean",
                    "description": "Deaktiviert",
                    "example": true
                  }
                }
              },
              "example": {
                "disabled": true
              }
            }
          }
        },
        "responses": {
          "202": {
            "description": "Angenommen. Die Änderung wird in den nächsten Sekunden vom Hintergrunddienst umgesetzt.",
            "content": {
              "application/json": {
                "schema": {
                  "type": "object",
                  "properties": {
                    "data": {
                      "$ref": "#/components/schemas/PublicIp"
                    }
                  },
                  "required": [
                    "data"
                  ]
                }
              }
            }
          },
          "401": {
            "$ref": "#/components/responses/E401"
          },
          "404": {
            "$ref": "#/components/responses/E404"
          },
          "409": {
            "$ref": "#/components/responses/E409"
          },
          "422": {
            "$ref": "#/components/responses/E422"
          },
          "429": {
            "$ref": "#/components/responses/E429"
          }
        },
        "x-async": true
      },
      "delete": {
        "tags": [
          "Cloud Router"
        ],
        "summary": "IP löschen",
        "operationId": "delete_cloud_routers_token_public_ips_id",
        "description": "Port-Forwards auf diese IP werden neu eingerichtet.",
        "parameters": [
          {
            "name": "token",
            "in": "path",
            "required": true,
            "description": "Token bzw. ID der Ressource (32 Zeichen)",
            "schema": {
              "type": "string"
            },
            "example": "Ab3dEf6hIj9kLm2nOp5qRs8tUv1wXy4z"
          },
          {
            "name": "id",
            "in": "path",
            "required": true,
            "description": "ID der Ressource",
            "schema": {
              "type": "string"
            },
            "example": "12"
          },
          {
            "$ref": "#/components/parameters/ActAs"
          }
        ],
        "responses": {
          "202": {
            "description": "Angenommen. Die Änderung wird in den nächsten Sekunden vom Hintergrunddienst umgesetzt.",
            "content": {
              "application/json": {
                "schema": {
                  "type": "object",
                  "properties": {
                    "data": {
                      "type": "object",
                      "properties": {
                        "id": {
                          "type": "integer",
                          "description": "ID",
                          "example": 5
                        },
                        "state": {
                          "type": "string",
                          "description": "Zustand",
                          "example": "deleting"
                        }
                      }
                    }
                  },
                  "required": [
                    "data"
                  ]
                }
              }
            }
          },
          "401": {
            "$ref": "#/components/responses/E401"
          },
          "404": {
            "$ref": "#/components/responses/E404"
          },
          "409": {
            "$ref": "#/components/responses/E409"
          },
          "429": {
            "$ref": "#/components/responses/E429"
          }
        },
        "x-async": true
      }
    },
    "/gateways/{token}": {
      "get": {
        "tags": [
          "Gateways"
        ],
        "summary": "Gateway mit Peers",
        "operationId": "get_gateways_token",
        "parameters": [
          {
            "name": "token",
            "in": "path",
            "required": true,
            "description": "Token bzw. ID der Ressource (32 Zeichen)",
            "schema": {
              "type": "string"
            },
            "example": "Ab3dEf6hIj9kLm2nOp5qRs8tUv1wXy4z"
          },
          {
            "$ref": "#/components/parameters/ActAs"
          }
        ],
        "responses": {
          "200": {
            "description": "Erfolgreich",
            "content": {
              "application/json": {
                "schema": {
                  "type": "object",
                  "properties": {
                    "data": {
                      "$ref": "#/components/schemas/Gateway"
                    }
                  },
                  "required": [
                    "data"
                  ]
                }
              }
            }
          },
          "401": {
            "$ref": "#/components/responses/E401"
          },
          "404": {
            "$ref": "#/components/responses/E404"
          },
          "429": {
            "$ref": "#/components/responses/E429"
          }
        }
      },
      "patch": {
        "tags": [
          "Gateways"
        ],
        "summary": "Gateway ändern",
        "operationId": "patch_gateways_token",
        "description": "Adressen in CIDR-Schreibweise. Leerer String entfernt die Adresse.",
        "parameters": [
          {
            "name": "token",
            "in": "path",
            "required": true,
            "description": "Token bzw. ID der Ressource (32 Zeichen)",
            "schema": {
              "type": "string"
            },
            "example": "Ab3dEf6hIj9kLm2nOp5qRs8tUv1wXy4z"
          },
          {
            "$ref": "#/components/parameters/ActAs"
          }
        ],
        "requestBody": {
          "required": false,
          "content": {
            "application/json": {
              "schema": {
                "type": "object",
                "properties": {
                  "name": {
                    "type": "string",
                    "description": "Name",
                    "example": "Gateway Frankfurt"
                  },
                  "ipv4": {
                    "type": "string",
                    "description": "Gateway-Adresse IPv4",
                    "example": "10.7.0.1/24"
                  },
                  "ipv6": {
                    "type": "string",
                    "description": "Gateway-Adresse IPv6",
                    "example": "fd64::1/64"
                  },
                  "disabled": {
                    "type": "boolean",
                    "description": "Gateway deaktivieren",
                    "example": false
                  }
                }
              },
              "example": {
                "ipv4": "10.7.0.1/24"
              }
            }
          }
        },
        "responses": {
          "200": {
            "description": "Erfolgreich",
            "content": {
              "application/json": {
                "schema": {
                  "type": "object",
                  "properties": {
                    "data": {
                      "$ref": "#/components/schemas/Gateway"
                    }
                  },
                  "required": [
                    "data"
                  ]
                }
              }
            }
          },
          "401": {
            "$ref": "#/components/responses/E401"
          },
          "404": {
            "$ref": "#/components/responses/E404"
          },
          "409": {
            "$ref": "#/components/responses/E409"
          },
          "422": {
            "$ref": "#/components/responses/E422"
          },
          "429": {
            "$ref": "#/components/responses/E429"
          }
        }
      },
      "delete": {
        "tags": [
          "Gateways"
        ],
        "summary": "Gateway mit allen Peers löschen",
        "operationId": "delete_gateways_token",
        "parameters": [
          {
            "name": "token",
            "in": "path",
            "required": true,
            "description": "Token bzw. ID der Ressource (32 Zeichen)",
            "schema": {
              "type": "string"
            },
            "example": "Ab3dEf6hIj9kLm2nOp5qRs8tUv1wXy4z"
          },
          {
            "$ref": "#/components/parameters/ActAs"
          }
        ],
        "responses": {
          "202": {
            "description": "Angenommen. Die Änderung wird in den nächsten Sekunden vom Hintergrunddienst umgesetzt.",
            "content": {
              "application/json": {
                "schema": {
                  "type": "object",
                  "properties": {
                    "data": {
                      "$ref": "#/components/schemas/Gateway"
                    }
                  },
                  "required": [
                    "data"
                  ]
                }
              }
            }
          },
          "401": {
            "$ref": "#/components/responses/E401"
          },
          "404": {
            "$ref": "#/components/responses/E404"
          },
          "409": {
            "$ref": "#/components/responses/E409"
          },
          "429": {
            "$ref": "#/components/responses/E429"
          }
        },
        "x-async": true
      }
    },
    "/gateways/{token}/rotate-keys": {
      "post": {
        "tags": [
          "Gateways"
        ],
        "summary": "Neues Schlüsselpaar für das Gateway",
        "operationId": "post_gateways_token_rotate_keys",
        "description": "Danach müssen alle Peers die neue Konfiguration erhalten.",
        "parameters": [
          {
            "name": "token",
            "in": "path",
            "required": true,
            "description": "Token bzw. ID der Ressource (32 Zeichen)",
            "schema": {
              "type": "string"
            },
            "example": "Ab3dEf6hIj9kLm2nOp5qRs8tUv1wXy4z"
          },
          {
            "$ref": "#/components/parameters/ActAs"
          }
        ],
        "responses": {
          "202": {
            "description": "Angenommen. Die Änderung wird in den nächsten Sekunden vom Hintergrunddienst umgesetzt.",
            "content": {
              "application/json": {
                "schema": {
                  "type": "object",
                  "properties": {
                    "data": {
                      "$ref": "#/components/schemas/Gateway"
                    }
                  },
                  "required": [
                    "data"
                  ]
                }
              }
            }
          },
          "401": {
            "$ref": "#/components/responses/E401"
          },
          "404": {
            "$ref": "#/components/responses/E404"
          },
          "409": {
            "$ref": "#/components/responses/E409"
          },
          "429": {
            "$ref": "#/components/responses/E429"
          }
        },
        "x-async": true
      }
    },
    "/gateways/{token}/reset-traffic": {
      "post": {
        "tags": [
          "Gateways"
        ],
        "summary": "Traffic-Zähler zurücksetzen",
        "operationId": "post_gateways_token_reset_traffic",
        "parameters": [
          {
            "name": "token",
            "in": "path",
            "required": true,
            "description": "Token bzw. ID der Ressource (32 Zeichen)",
            "schema": {
              "type": "string"
            },
            "example": "Ab3dEf6hIj9kLm2nOp5qRs8tUv1wXy4z"
          },
          {
            "$ref": "#/components/parameters/ActAs"
          }
        ],
        "responses": {
          "200": {
            "description": "Erfolgreich",
            "content": {
              "application/json": {
                "schema": {
                  "type": "object",
                  "properties": {
                    "data": {
                      "$ref": "#/components/schemas/Gateway"
                    }
                  },
                  "required": [
                    "data"
                  ]
                }
              }
            }
          },
          "401": {
            "$ref": "#/components/responses/E401"
          },
          "404": {
            "$ref": "#/components/responses/E404"
          },
          "429": {
            "$ref": "#/components/responses/E429"
          }
        }
      }
    },
    "/gateways/{token}/ospf": {
      "put": {
        "tags": [
          "Gateways"
        ],
        "summary": "OSPF einschalten oder einstellen",
        "operationId": "put_gateways_token_ospf",
        "parameters": [
          {
            "name": "token",
            "in": "path",
            "required": true,
            "description": "Token bzw. ID der Ressource (32 Zeichen)",
            "schema": {
              "type": "string"
            },
            "example": "Ab3dEf6hIj9kLm2nOp5qRs8tUv1wXy4z"
          },
          {
            "$ref": "#/components/parameters/ActAs"
          }
        ],
        "requestBody": {
          "required": false,
          "content": {
            "application/json": {
              "schema": {
                "type": "object",
                "properties": {
                  "area_id": {
                    "type": "string",
                    "description": "Area",
                    "example": "0.0.0.0"
                  },
                  "version": {
                    "type": "integer",
                    "description": "OSPF-Version",
                    "minimum": 2,
                    "maximum": 3,
                    "example": 2
                  },
                  "cost": {
                    "type": "integer",
                    "description": "Kosten",
                    "minimum": 1,
                    "maximum": 256,
                    "example": 10
                  }
                }
              },
              "example": {
                "area_id": "0.0.0.0",
                "version": 2,
                "cost": 10
              }
            }
          }
        },
        "responses": {
          "202": {
            "description": "Angenommen. Die Änderung wird in den nächsten Sekunden vom Hintergrunddienst umgesetzt.",
            "content": {
              "application/json": {
                "schema": {
                  "type": "object",
                  "properties": {
                    "data": {
                      "$ref": "#/components/schemas/Gateway"
                    }
                  },
                  "required": [
                    "data"
                  ]
                }
              }
            }
          },
          "401": {
            "$ref": "#/components/responses/E401"
          },
          "404": {
            "$ref": "#/components/responses/E404"
          },
          "409": {
            "$ref": "#/components/responses/E409"
          },
          "422": {
            "$ref": "#/components/responses/E422"
          },
          "429": {
            "$ref": "#/components/responses/E429"
          }
        },
        "x-async": true
      },
      "delete": {
        "tags": [
          "Gateways"
        ],
        "summary": "OSPF ausschalten",
        "operationId": "delete_gateways_token_ospf",
        "parameters": [
          {
            "name": "token",
            "in": "path",
            "required": true,
            "description": "Token bzw. ID der Ressource (32 Zeichen)",
            "schema": {
              "type": "string"
            },
            "example": "Ab3dEf6hIj9kLm2nOp5qRs8tUv1wXy4z"
          },
          {
            "$ref": "#/components/parameters/ActAs"
          }
        ],
        "responses": {
          "202": {
            "description": "Angenommen. Die Änderung wird in den nächsten Sekunden vom Hintergrunddienst umgesetzt.",
            "content": {
              "application/json": {
                "schema": {
                  "type": "object",
                  "properties": {
                    "data": {
                      "$ref": "#/components/schemas/Gateway"
                    }
                  },
                  "required": [
                    "data"
                  ]
                }
              }
            }
          },
          "401": {
            "$ref": "#/components/responses/E401"
          },
          "404": {
            "$ref": "#/components/responses/E404"
          },
          "409": {
            "$ref": "#/components/responses/E409"
          },
          "429": {
            "$ref": "#/components/responses/E429"
          }
        },
        "x-async": true
      }
    },
    "/gateways/{token}/port-forwards": {
      "get": {
        "tags": [
          "Gateways"
        ],
        "summary": "Port-Forwards",
        "operationId": "get_gateways_token_port_forwards",
        "parameters": [
          {
            "name": "token",
            "in": "path",
            "required": true,
            "description": "Token bzw. ID der Ressource (32 Zeichen)",
            "schema": {
              "type": "string"
            },
            "example": "Ab3dEf6hIj9kLm2nOp5qRs8tUv1wXy4z"
          },
          {
            "$ref": "#/components/parameters/ActAs"
          }
        ],
        "responses": {
          "200": {
            "description": "Erfolgreich",
            "content": {
              "application/json": {
                "schema": {
                  "type": "object",
                  "properties": {
                    "data": {
                      "type": "array",
                      "items": {
                        "$ref": "#/components/schemas/PortForward"
                      }
                    }
                  },
                  "required": [
                    "data"
                  ]
                }
              }
            }
          },
          "401": {
            "$ref": "#/components/responses/E401"
          },
          "404": {
            "$ref": "#/components/responses/E404"
          },
          "429": {
            "$ref": "#/components/responses/E429"
          }
        }
      },
      "post": {
        "tags": [
          "Gateways"
        ],
        "summary": "Port-Forward anlegen",
        "operationId": "post_gateways_token_port_forwards",
        "description": "Den öffentlichen Port vergibt der Server, er steht danach in public_port.",
        "parameters": [
          {
            "name": "token",
            "in": "path",
            "required": true,
            "description": "Token bzw. ID der Ressource (32 Zeichen)",
            "schema": {
              "type": "string"
            },
            "example": "Ab3dEf6hIj9kLm2nOp5qRs8tUv1wXy4z"
          },
          {
            "$ref": "#/components/parameters/ActAs"
          }
        ],
        "requestBody": {
          "required": true,
          "content": {
            "application/json": {
              "schema": {
                "type": "object",
                "properties": {
                  "destination": {
                    "type": "string",
                    "description": "Ziel-IP im Tunnel",
                    "example": "10.7.0.2"
                  },
                  "target_port": {
                    "type": "integer",
                    "description": "Ziel-Port",
                    "minimum": 1,
                    "maximum": 65499,
                    "example": 443
                  },
                  "protocol": {
                    "type": "string",
                    "description": "Protokoll",
                    "enum": [
                      "tcp",
                      "udp"
                    ],
                    "example": "tcp"
                  },
                  "name": {
                    "type": "string",
                    "description": "Name",
                    "example": "Webserver"
                  },
                  "public_ip": {
                    "type": "string",
                    "description": "server oder router (öffentliche IP des Routers, vorher anlegen)",
                    "enum": [
                      "server",
                      "router"
                    ],
                    "example": "server"
                  }
                },
                "required": [
                  "destination",
                  "target_port",
                  "protocol"
                ]
              },
              "example": {
                "destination": "10.7.0.2",
                "target_port": 443,
                "protocol": "tcp",
                "name": "Webserver"
              }
            }
          }
        },
        "responses": {
          "202": {
            "description": "Angenommen. Die Änderung wird in den nächsten Sekunden vom Hintergrunddienst umgesetzt.",
            "content": {
              "application/json": {
                "schema": {
                  "type": "object",
                  "properties": {
                    "data": {
                      "$ref": "#/components/schemas/PortForward"
                    }
                  },
                  "required": [
                    "data"
                  ]
                }
              }
            }
          },
          "401": {
            "$ref": "#/components/responses/E401"
          },
          "404": {
            "$ref": "#/components/responses/E404"
          },
          "409": {
            "$ref": "#/components/responses/E409"
          },
          "422": {
            "$ref": "#/components/responses/E422"
          },
          "429": {
            "$ref": "#/components/responses/E429"
          }
        },
        "x-async": true
      }
    },
    "/gateways/{token}/port-forwards/{id}": {
      "patch": {
        "tags": [
          "Gateways"
        ],
        "summary": "Port-Forward ein- oder ausschalten",
        "operationId": "patch_gateways_token_port_forwards_id",
        "parameters": [
          {
            "name": "token",
            "in": "path",
            "required": true,
            "description": "Token bzw. ID der Ressource (32 Zeichen)",
            "schema": {
              "type": "string"
            },
            "example": "Ab3dEf6hIj9kLm2nOp5qRs8tUv1wXy4z"
          },
          {
            "name": "id",
            "in": "path",
            "required": true,
            "description": "ID der Ressource",
            "schema": {
              "type": "string"
            },
            "example": "12"
          },
          {
            "$ref": "#/components/parameters/ActAs"
          }
        ],
        "requestBody": {
          "required": false,
          "content": {
            "application/json": {
              "schema": {
                "type": "object",
                "properties": {
                  "disabled": {
                    "type": "boolean",
                    "description": "Deaktiviert",
                    "example": true
                  }
                }
              },
              "example": {
                "disabled": true
              }
            }
          }
        },
        "responses": {
          "202": {
            "description": "Angenommen. Die Änderung wird in den nächsten Sekunden vom Hintergrunddienst umgesetzt.",
            "content": {
              "application/json": {
                "schema": {
                  "type": "object",
                  "properties": {
                    "data": {
                      "$ref": "#/components/schemas/PortForward"
                    }
                  },
                  "required": [
                    "data"
                  ]
                }
              }
            }
          },
          "401": {
            "$ref": "#/components/responses/E401"
          },
          "404": {
            "$ref": "#/components/responses/E404"
          },
          "409": {
            "$ref": "#/components/responses/E409"
          },
          "422": {
            "$ref": "#/components/responses/E422"
          },
          "429": {
            "$ref": "#/components/responses/E429"
          }
        },
        "x-async": true
      },
      "delete": {
        "tags": [
          "Gateways"
        ],
        "summary": "Port-Forward löschen",
        "operationId": "delete_gateways_token_port_forwards_id",
        "parameters": [
          {
            "name": "token",
            "in": "path",
            "required": true,
            "description": "Token bzw. ID der Ressource (32 Zeichen)",
            "schema": {
              "type": "string"
            },
            "example": "Ab3dEf6hIj9kLm2nOp5qRs8tUv1wXy4z"
          },
          {
            "name": "id",
            "in": "path",
            "required": true,
            "description": "ID der Ressource",
            "schema": {
              "type": "string"
            },
            "example": "12"
          },
          {
            "$ref": "#/components/parameters/ActAs"
          }
        ],
        "responses": {
          "202": {
            "description": "Angenommen. Die Änderung wird in den nächsten Sekunden vom Hintergrunddienst umgesetzt.",
            "content": {
              "application/json": {
                "schema": {
                  "type": "object",
                  "properties": {
                    "data": {
                      "type": "object",
                      "properties": {
                        "id": {
                          "type": "integer",
                          "description": "ID",
                          "example": 9
                        },
                        "state": {
                          "type": "string",
                          "description": "Zustand",
                          "example": "deleting"
                        }
                      }
                    }
                  },
                  "required": [
                    "data"
                  ]
                }
              }
            }
          },
          "401": {
            "$ref": "#/components/responses/E401"
          },
          "404": {
            "$ref": "#/components/responses/E404"
          },
          "409": {
            "$ref": "#/components/responses/E409"
          },
          "429": {
            "$ref": "#/components/responses/E429"
          }
        },
        "x-async": true
      }
    },
    "/gateways/{token}/peers": {
      "get": {
        "tags": [
          "Gateways"
        ],
        "summary": "Peers des Gateways",
        "operationId": "get_gateways_token_peers",
        "parameters": [
          {
            "name": "token",
            "in": "path",
            "required": true,
            "description": "Token bzw. ID der Ressource (32 Zeichen)",
            "schema": {
              "type": "string"
            },
            "example": "Ab3dEf6hIj9kLm2nOp5qRs8tUv1wXy4z"
          },
          {
            "$ref": "#/components/parameters/ActAs"
          }
        ],
        "responses": {
          "200": {
            "description": "Erfolgreich",
            "content": {
              "application/json": {
                "schema": {
                  "type": "object",
                  "properties": {
                    "data": {
                      "type": "array",
                      "items": {
                        "$ref": "#/components/schemas/Peer"
                      }
                    }
                  },
                  "required": [
                    "data"
                  ]
                }
              }
            }
          },
          "401": {
            "$ref": "#/components/responses/E401"
          },
          "404": {
            "$ref": "#/components/responses/E404"
          },
          "429": {
            "$ref": "#/components/responses/E429"
          }
        }
      },
      "post": {
        "tags": [
          "Gateways"
        ],
        "summary": "Peer anlegen",
        "operationId": "post_gateways_token_peers",
        "description": "Schlüssel und Adressen werden automatisch vergeben.",
        "parameters": [
          {
            "name": "token",
            "in": "path",
            "required": true,
            "description": "Token bzw. ID der Ressource (32 Zeichen)",
            "schema": {
              "type": "string"
            },
            "example": "Ab3dEf6hIj9kLm2nOp5qRs8tUv1wXy4z"
          },
          {
            "$ref": "#/components/parameters/ActAs"
          }
        ],
        "requestBody": {
          "required": false,
          "content": {
            "application/json": {
              "schema": {
                "type": "object",
                "properties": {
                  "name": {
                    "type": "string",
                    "description": "Name",
                    "example": "Laptop"
                  }
                }
              },
              "example": {
                "name": "Laptop"
              }
            }
          }
        },
        "responses": {
          "202": {
            "description": "Angenommen. Die Änderung wird in den nächsten Sekunden vom Hintergrunddienst umgesetzt.",
            "content": {
              "application/json": {
                "schema": {
                  "type": "object",
                  "properties": {
                    "data": {
                      "$ref": "#/components/schemas/Peer"
                    }
                  },
                  "required": [
                    "data"
                  ]
                }
              }
            }
          },
          "401": {
            "$ref": "#/components/responses/E401"
          },
          "403": {
            "$ref": "#/components/responses/E403"
          },
          "404": {
            "$ref": "#/components/responses/E404"
          },
          "409": {
            "$ref": "#/components/responses/E409"
          },
          "422": {
            "$ref": "#/components/responses/E422"
          },
          "429": {
            "$ref": "#/components/responses/E429"
          }
        },
        "x-async": true
      }
    },
    "/peers/{token}": {
      "get": {
        "tags": [
          "Peers"
        ],
        "summary": "Peer mit AllowedIPs",
        "operationId": "get_peers_token",
        "parameters": [
          {
            "name": "token",
            "in": "path",
            "required": true,
            "description": "Token bzw. ID der Ressource (32 Zeichen)",
            "schema": {
              "type": "string"
            },
            "example": "Ab3dEf6hIj9kLm2nOp5qRs8tUv1wXy4z"
          },
          {
            "$ref": "#/components/parameters/ActAs"
          }
        ],
        "responses": {
          "200": {
            "description": "Erfolgreich",
            "content": {
              "application/json": {
                "schema": {
                  "type": "object",
                  "properties": {
                    "data": {
                      "$ref": "#/components/schemas/Peer"
                    }
                  },
                  "required": [
                    "data"
                  ]
                }
              }
            }
          },
          "401": {
            "$ref": "#/components/responses/E401"
          },
          "404": {
            "$ref": "#/components/responses/E404"
          },
          "429": {
            "$ref": "#/components/responses/E429"
          }
        }
      },
      "patch": {
        "tags": [
          "Peers"
        ],
        "summary": "Peer ändern",
        "operationId": "patch_peers_token",
        "description": "name und dns_server wirken sofort (200). Alle anderen Felder werden am Gateway umgesetzt (202).",
        "parameters": [
          {
            "name": "token",
            "in": "path",
            "required": true,
            "description": "Token bzw. ID der Ressource (32 Zeichen)",
            "schema": {
              "type": "string"
            },
            "example": "Ab3dEf6hIj9kLm2nOp5qRs8tUv1wXy4z"
          },
          {
            "$ref": "#/components/parameters/ActAs"
          }
        ],
        "requestBody": {
          "required": false,
          "content": {
            "application/json": {
              "schema": {
                "type": "object",
                "properties": {
                  "name": {
                    "type": "string",
                    "description": "Name",
                    "example": "Laptop"
                  },
                  "dns_server": {
                    "type": "string",
                    "description": "DNS-Server für die Client-Config, leer = keiner",
                    "example": "1.1.1.1"
                  },
                  "keepalive": {
                    "type": "string",
                    "description": "Keepalive hh:mm:ss",
                    "example": "00:00:25"
                  },
                  "endpoint": {
                    "type": "string",
                    "description": "Fester Endpunkt (IP oder Hostname)",
                    "example": "site-b.example.com"
                  },
                  "endpoint_port": {
                    "type": "integer",
                    "description": "Port des Endpunkts",
                    "minimum": 0,
                    "maximum": 65535,
                    "example": 51820
                  },
                  "ipv4": {
                    "type": "string",
                    "description": "Tunnel-IPv4 in CIDR",
                    "example": "10.7.0.5/32"
                  },
                  "ipv6": {
                    "type": "string",
                    "description": "Tunnel-IPv6 in CIDR",
                    "example": "fd64::5/128"
                  },
                  "disabled": {
                    "type": "boolean",
                    "description": "Deaktiviert",
                    "example": false
                  },
                  "site_to_site": {
                    "type": "boolean",
                    "description": "Site-to-Site",
                    "example": false
                  }
                }
              },
              "example": {
                "keepalive": "00:00:25",
                "dns_server": "1.1.1.1"
              }
            }
          }
        },
        "responses": {
          "200": {
            "description": "Erfolgreich",
            "content": {
              "application/json": {
                "schema": {
                  "type": "object",
                  "properties": {
                    "data": {
                      "$ref": "#/components/schemas/Peer"
                    }
                  },
                  "required": [
                    "data"
                  ]
                }
              }
            }
          },
          "202": {
            "description": "Angenommen, wird am Gateway umgesetzt",
            "content": {
              "application/json": {
                "schema": {
                  "type": "object",
                  "properties": {
                    "data": {
                      "$ref": "#/components/schemas/Peer"
                    }
                  },
                  "required": [
                    "data"
                  ]
                }
              }
            }
          },
          "401": {
            "$ref": "#/components/responses/E401"
          },
          "404": {
            "$ref": "#/components/responses/E404"
          },
          "409": {
            "$ref": "#/components/responses/E409"
          },
          "422": {
            "$ref": "#/components/responses/E422"
          },
          "429": {
            "$ref": "#/components/responses/E429"
          }
        }
      },
      "delete": {
        "tags": [
          "Peers"
        ],
        "summary": "Peer löschen",
        "operationId": "delete_peers_token",
        "parameters": [
          {
            "name": "token",
            "in": "path",
            "required": true,
            "description": "Token bzw. ID der Ressource (32 Zeichen)",
            "schema": {
              "type": "string"
            },
            "example": "Ab3dEf6hIj9kLm2nOp5qRs8tUv1wXy4z"
          },
          {
            "$ref": "#/components/parameters/ActAs"
          }
        ],
        "responses": {
          "202": {
            "description": "Angenommen. Die Änderung wird in den nächsten Sekunden vom Hintergrunddienst umgesetzt.",
            "content": {
              "application/json": {
                "schema": {
                  "type": "object",
                  "properties": {
                    "data": {
                      "$ref": "#/components/schemas/Peer"
                    }
                  },
                  "required": [
                    "data"
                  ]
                }
              }
            }
          },
          "401": {
            "$ref": "#/components/responses/E401"
          },
          "404": {
            "$ref": "#/components/responses/E404"
          },
          "409": {
            "$ref": "#/components/responses/E409"
          },
          "429": {
            "$ref": "#/components/responses/E429"
          }
        },
        "x-async": true
      }
    },
    "/peers/{token}/config": {
      "get": {
        "tags": [
          "Peers"
        ],
        "summary": "WireGuard-Konfiguration",
        "operationId": "get_peers_token_config",
        "description": "Mit dem Header Accept: text/plain kommt die .conf-Datei direkt als Download. Sie enthält den privaten Schlüssel des Peers.",
        "parameters": [
          {
            "name": "token",
            "in": "path",
            "required": true,
            "description": "Token bzw. ID der Ressource (32 Zeichen)",
            "schema": {
              "type": "string"
            },
            "example": "Ab3dEf6hIj9kLm2nOp5qRs8tUv1wXy4z"
          },
          {
            "$ref": "#/components/parameters/ActAs"
          }
        ],
        "responses": {
          "200": {
            "description": "Konfiguration",
            "content": {
              "application/json": {
                "schema": {
                  "type": "object",
                  "properties": {
                    "data": {
                      "type": "object",
                      "properties": {
                        "peer": {
                          "type": "string",
                          "description": "Peer-ID",
                          "example": "Ab3dEf6hIj9kLm2nOp5qRs8tUv1wXy4z"
                        },
                        "config": {
                          "type": "string",
                          "description": "Inhalt der .conf-Datei"
                        }
                      }
                    }
                  },
                  "required": [
                    "data"
                  ]
                }
              },
              "text/plain": {
                "schema": {
                  "type": "string",
                  "description": "WireGuard-Konfiguration"
                }
              }
            }
          },
          "401": {
            "$ref": "#/components/responses/E401"
          },
          "404": {
            "$ref": "#/components/responses/E404"
          },
          "409": {
            "$ref": "#/components/responses/E409"
          },
          "429": {
            "$ref": "#/components/responses/E429"
          }
        }
      }
    },
    "/peers/{token}/rotate-keys": {
      "post": {
        "tags": [
          "Peers"
        ],
        "summary": "Neues Schlüsselpaar",
        "operationId": "post_peers_token_rotate_keys",
        "parameters": [
          {
            "name": "token",
            "in": "path",
            "required": true,
            "description": "Token bzw. ID der Ressource (32 Zeichen)",
            "schema": {
              "type": "string"
            },
            "example": "Ab3dEf6hIj9kLm2nOp5qRs8tUv1wXy4z"
          },
          {
            "$ref": "#/components/parameters/ActAs"
          }
        ],
        "responses": {
          "202": {
            "description": "Angenommen. Die Änderung wird in den nächsten Sekunden vom Hintergrunddienst umgesetzt.",
            "content": {
              "application/json": {
                "schema": {
                  "type": "object",
                  "properties": {
                    "data": {
                      "$ref": "#/components/schemas/Peer"
                    }
                  },
                  "required": [
                    "data"
                  ]
                }
              }
            }
          },
          "401": {
            "$ref": "#/components/responses/E401"
          },
          "404": {
            "$ref": "#/components/responses/E404"
          },
          "409": {
            "$ref": "#/components/responses/E409"
          },
          "429": {
            "$ref": "#/components/responses/E429"
          }
        },
        "x-async": true
      }
    },
    "/peers/{token}/rotate-preshared-key": {
      "post": {
        "tags": [
          "Peers"
        ],
        "summary": "Neuer Preshared Key",
        "operationId": "post_peers_token_rotate_preshared_key",
        "parameters": [
          {
            "name": "token",
            "in": "path",
            "required": true,
            "description": "Token bzw. ID der Ressource (32 Zeichen)",
            "schema": {
              "type": "string"
            },
            "example": "Ab3dEf6hIj9kLm2nOp5qRs8tUv1wXy4z"
          },
          {
            "$ref": "#/components/parameters/ActAs"
          }
        ],
        "responses": {
          "202": {
            "description": "Angenommen. Die Änderung wird in den nächsten Sekunden vom Hintergrunddienst umgesetzt.",
            "content": {
              "application/json": {
                "schema": {
                  "type": "object",
                  "properties": {
                    "data": {
                      "$ref": "#/components/schemas/Peer"
                    }
                  },
                  "required": [
                    "data"
                  ]
                }
              }
            }
          },
          "401": {
            "$ref": "#/components/responses/E401"
          },
          "404": {
            "$ref": "#/components/responses/E404"
          },
          "409": {
            "$ref": "#/components/responses/E409"
          },
          "429": {
            "$ref": "#/components/responses/E429"
          }
        },
        "x-async": true
      }
    },
    "/peers/{token}/keys": {
      "put": {
        "tags": [
          "Peers"
        ],
        "summary": "Eigene Schlüssel setzen",
        "operationId": "put_peers_token_keys",
        "description": "Ohne private_key wird nur der öffentliche Schlüssel hinterlegt. Die Config enthält dann keinen privaten Schlüssel.",
        "parameters": [
          {
            "name": "token",
            "in": "path",
            "required": true,
            "description": "Token bzw. ID der Ressource (32 Zeichen)",
            "schema": {
              "type": "string"
            },
            "example": "Ab3dEf6hIj9kLm2nOp5qRs8tUv1wXy4z"
          },
          {
            "$ref": "#/components/parameters/ActAs"
          }
        ],
        "requestBody": {
          "required": true,
          "content": {
            "application/json": {
              "schema": {
                "type": "object",
                "properties": {
                  "public_key": {
                    "type": "string",
                    "description": "Öffentlicher Schlüssel (Base64)",
                    "example": "xTIBA5rboUvnH4htodjb6e697QjLERt1NAB4mZqp8Dg="
                  },
                  "private_key": {
                    "type": "string",
                    "description": "Privater Schlüssel, muss passen"
                  },
                  "preshared_key": {
                    "type": "string",
                    "description": "Preshared Key (Base64)"
                  }
                },
                "required": [
                  "public_key"
                ]
              },
              "example": {
                "public_key": "xTIBA5rboUvnH4htodjb6e697QjLERt1NAB4mZqp8Dg="
              }
            }
          }
        },
        "responses": {
          "202": {
            "description": "Angenommen. Die Änderung wird in den nächsten Sekunden vom Hintergrunddienst umgesetzt.",
            "content": {
              "application/json": {
                "schema": {
                  "type": "object",
                  "properties": {
                    "data": {
                      "$ref": "#/components/schemas/Peer"
                    }
                  },
                  "required": [
                    "data"
                  ]
                }
              }
            }
          },
          "401": {
            "$ref": "#/components/responses/E401"
          },
          "404": {
            "$ref": "#/components/responses/E404"
          },
          "409": {
            "$ref": "#/components/responses/E409"
          },
          "422": {
            "$ref": "#/components/responses/E422"
          },
          "429": {
            "$ref": "#/components/responses/E429"
          }
        },
        "x-async": true
      }
    },
    "/peers/{token}/allowed-ips": {
      "post": {
        "tags": [
          "Peers"
        ],
        "summary": "AllowedIP hinzufügen",
        "operationId": "post_peers_token_allowed_ips",
        "description": "Zusätzliches Netz in der Client-Config, zum Beispiel ein Netz hinter einem anderen Peer.",
        "parameters": [
          {
            "name": "token",
            "in": "path",
            "required": true,
            "description": "Token bzw. ID der Ressource (32 Zeichen)",
            "schema": {
              "type": "string"
            },
            "example": "Ab3dEf6hIj9kLm2nOp5qRs8tUv1wXy4z"
          },
          {
            "$ref": "#/components/parameters/ActAs"
          }
        ],
        "requestBody": {
          "required": true,
          "content": {
            "application/json": {
              "schema": {
                "type": "object",
                "properties": {
                  "network": {
                    "type": "string",
                    "description": "IP oder Netz in CIDR",
                    "example": "192.168.50.0/24"
                  }
                },
                "required": [
                  "network"
                ]
              },
              "example": {
                "network": "192.168.50.0/24"
              }
            }
          }
        },
        "responses": {
          "201": {
            "description": "Angelegt",
            "content": {
              "application/json": {
                "schema": {
                  "type": "object",
                  "properties": {
                    "data": {
                      "$ref": "#/components/schemas/Peer"
                    }
                  },
                  "required": [
                    "data"
                  ]
                }
              }
            }
          },
          "401": {
            "$ref": "#/components/responses/E401"
          },
          "404": {
            "$ref": "#/components/responses/E404"
          },
          "409": {
            "$ref": "#/components/responses/E409"
          },
          "422": {
            "$ref": "#/components/responses/E422"
          },
          "429": {
            "$ref": "#/components/responses/E429"
          }
        }
      }
    },
    "/peers/{token}/allowed-ips/{id}": {
      "delete": {
        "tags": [
          "Peers"
        ],
        "summary": "AllowedIP entfernen",
        "operationId": "delete_peers_token_allowed_ips_id",
        "parameters": [
          {
            "name": "token",
            "in": "path",
            "required": true,
            "description": "Token bzw. ID der Ressource (32 Zeichen)",
            "schema": {
              "type": "string"
            },
            "example": "Ab3dEf6hIj9kLm2nOp5qRs8tUv1wXy4z"
          },
          {
            "name": "id",
            "in": "path",
            "required": true,
            "description": "ID der Ressource",
            "schema": {
              "type": "string"
            },
            "example": "12"
          },
          {
            "$ref": "#/components/parameters/ActAs"
          }
        ],
        "responses": {
          "204": {
            "description": "Erfolgreich, ohne Inhalt"
          },
          "401": {
            "$ref": "#/components/responses/E401"
          },
          "404": {
            "$ref": "#/components/responses/E404"
          },
          "429": {
            "$ref": "#/components/responses/E429"
          }
        }
      }
    },
    "/dns64/clients": {
      "get": {
        "tags": [
          "DNS64"
        ],
        "summary": "Alle DNS64-Clients",
        "operationId": "get_dns64_clients",
        "parameters": [
          {
            "$ref": "#/components/parameters/ActAs"
          }
        ],
        "responses": {
          "200": {
            "description": "Erfolgreich",
            "content": {
              "application/json": {
                "schema": {
                  "type": "object",
                  "properties": {
                    "data": {
                      "type": "array",
                      "items": {
                        "$ref": "#/components/schemas/Dns64Client"
                      }
                    }
                  },
                  "required": [
                    "data"
                  ]
                }
              }
            }
          },
          "401": {
            "$ref": "#/components/responses/E401"
          },
          "429": {
            "$ref": "#/components/responses/E429"
          }
        }
      },
      "post": {
        "tags": [
          "DNS64"
        ],
        "summary": "Client anlegen",
        "operationId": "post_dns64_clients",
        "description": "Resolver-Adressen und client_id stehen bereit, sobald state ready ist.",
        "parameters": [
          {
            "$ref": "#/components/parameters/ActAs"
          }
        ],
        "requestBody": {
          "required": false,
          "content": {
            "application/json": {
              "schema": {
                "type": "object",
                "properties": {
                  "name": {
                    "type": "string",
                    "description": "Name",
                    "example": "Familie"
                  }
                }
              },
              "example": {
                "name": "Familie"
              }
            }
          }
        },
        "responses": {
          "202": {
            "description": "Angenommen. Die Änderung wird in den nächsten Sekunden vom Hintergrunddienst umgesetzt.",
            "content": {
              "application/json": {
                "schema": {
                  "type": "object",
                  "properties": {
                    "data": {
                      "$ref": "#/components/schemas/Dns64Client"
                    }
                  },
                  "required": [
                    "data"
                  ]
                }
              }
            }
          },
          "401": {
            "$ref": "#/components/responses/E401"
          },
          "403": {
            "$ref": "#/components/responses/E403"
          },
          "422": {
            "$ref": "#/components/responses/E422"
          },
          "429": {
            "$ref": "#/components/responses/E429"
          }
        },
        "x-async": true
      }
    },
    "/dns64/clients/{token}": {
      "get": {
        "tags": [
          "DNS64"
        ],
        "summary": "Client mit Regeln, Quellen und DNS-Stamps",
        "operationId": "get_dns64_clients_token",
        "parameters": [
          {
            "name": "token",
            "in": "path",
            "required": true,
            "description": "Token bzw. ID der Ressource (32 Zeichen)",
            "schema": {
              "type": "string"
            },
            "example": "Ab3dEf6hIj9kLm2nOp5qRs8tUv1wXy4z"
          },
          {
            "$ref": "#/components/parameters/ActAs"
          }
        ],
        "responses": {
          "200": {
            "description": "Erfolgreich",
            "content": {
              "application/json": {
                "schema": {
                  "type": "object",
                  "properties": {
                    "data": {
                      "$ref": "#/components/schemas/Dns64Client"
                    }
                  },
                  "required": [
                    "data"
                  ]
                }
              }
            }
          },
          "401": {
            "$ref": "#/components/responses/E401"
          },
          "404": {
            "$ref": "#/components/responses/E404"
          },
          "429": {
            "$ref": "#/components/responses/E429"
          }
        }
      },
      "patch": {
        "tags": [
          "DNS64"
        ],
        "summary": "Client ändern",
        "operationId": "patch_dns64_clients_token",
        "description": "Die Blocklisten adult und threats gibt es nicht im Free-Paket.",
        "parameters": [
          {
            "name": "token",
            "in": "path",
            "required": true,
            "description": "Token bzw. ID der Ressource (32 Zeichen)",
            "schema": {
              "type": "string"
            },
            "example": "Ab3dEf6hIj9kLm2nOp5qRs8tUv1wXy4z"
          },
          {
            "$ref": "#/components/parameters/ActAs"
          }
        ],
        "requestBody": {
          "required": false,
          "content": {
            "application/json": {
              "schema": {
                "type": "object",
                "properties": {
                  "name": {
                    "type": "string",
                    "description": "Name",
                    "example": "Familie"
                  },
                  "blocking_enabled": {
                    "type": "boolean",
                    "description": "Filter aktiv",
                    "example": true
                  },
                  "blocklists": {
                    "type": "array",
                    "items": {
                      "type": "string",
                      "enum": [
                        "ads",
                        "adult",
                        "threats"
                      ],
                      "example": "ads"
                    },
                    "description": "Aktive Blocklisten"
                  }
                }
              },
              "example": {
                "blocklists": [
                  "ads",
                  "threats"
                ]
              }
            }
          }
        },
        "responses": {
          "200": {
            "description": "Erfolgreich",
            "content": {
              "application/json": {
                "schema": {
                  "type": "object",
                  "properties": {
                    "data": {
                      "$ref": "#/components/schemas/Dns64Client"
                    }
                  },
                  "required": [
                    "data"
                  ]
                }
              }
            }
          },
          "202": {
            "description": "Angenommen, Filter werden neu ausgerollt",
            "content": {
              "application/json": {
                "schema": {
                  "type": "object",
                  "properties": {
                    "data": {
                      "$ref": "#/components/schemas/Dns64Client"
                    }
                  },
                  "required": [
                    "data"
                  ]
                }
              }
            }
          },
          "401": {
            "$ref": "#/components/responses/E401"
          },
          "403": {
            "$ref": "#/components/responses/E403"
          },
          "404": {
            "$ref": "#/components/responses/E404"
          },
          "422": {
            "$ref": "#/components/responses/E422"
          },
          "429": {
            "$ref": "#/components/responses/E429"
          }
        }
      },
      "delete": {
        "tags": [
          "DNS64"
        ],
        "summary": "Client löschen",
        "operationId": "delete_dns64_clients_token",
        "parameters": [
          {
            "name": "token",
            "in": "path",
            "required": true,
            "description": "Token bzw. ID der Ressource (32 Zeichen)",
            "schema": {
              "type": "string"
            },
            "example": "Ab3dEf6hIj9kLm2nOp5qRs8tUv1wXy4z"
          },
          {
            "$ref": "#/components/parameters/ActAs"
          }
        ],
        "responses": {
          "202": {
            "description": "Angenommen. Die Änderung wird in den nächsten Sekunden vom Hintergrunddienst umgesetzt.",
            "content": {
              "application/json": {
                "schema": {
                  "type": "object",
                  "properties": {
                    "data": {
                      "type": "object",
                      "properties": {
                        "id": {
                          "type": "string",
                          "description": "Client-ID",
                          "example": "Ab3dEf6hIj9kLm2nOp5qRs8tUv1wXy4z"
                        },
                        "state": {
                          "type": "string",
                          "description": "Zustand",
                          "example": "deleting"
                        }
                      }
                    }
                  },
                  "required": [
                    "data"
                  ]
                }
              }
            }
          },
          "401": {
            "$ref": "#/components/responses/E401"
          },
          "404": {
            "$ref": "#/components/responses/E404"
          },
          "429": {
            "$ref": "#/components/responses/E429"
          }
        },
        "x-async": true
      }
    },
    "/dns64/clients/{token}/rules": {
      "post": {
        "tags": [
          "DNS64"
        ],
        "summary": "Domain erlauben oder sperren",
        "operationId": "post_dns64_clients_token_rules",
        "parameters": [
          {
            "name": "token",
            "in": "path",
            "required": true,
            "description": "Token bzw. ID der Ressource (32 Zeichen)",
            "schema": {
              "type": "string"
            },
            "example": "Ab3dEf6hIj9kLm2nOp5qRs8tUv1wXy4z"
          },
          {
            "$ref": "#/components/parameters/ActAs"
          }
        ],
        "requestBody": {
          "required": true,
          "content": {
            "application/json": {
              "schema": {
                "type": "object",
                "properties": {
                  "domain": {
                    "type": "string",
                    "description": "Domain",
                    "example": "example.com"
                  },
                  "action": {
                    "type": "string",
                    "description": "Aktion",
                    "enum": [
                      "allow",
                      "block"
                    ],
                    "example": "block"
                  }
                },
                "required": [
                  "domain"
                ]
              },
              "example": {
                "domain": "example.com",
                "action": "block"
              }
            }
          }
        },
        "responses": {
          "202": {
            "description": "Angenommen. Die Änderung wird in den nächsten Sekunden vom Hintergrunddienst umgesetzt.",
            "content": {
              "application/json": {
                "schema": {
                  "type": "object",
                  "properties": {
                    "data": {
                      "$ref": "#/components/schemas/Dns64Client"
                    }
                  },
                  "required": [
                    "data"
                  ]
                }
              }
            }
          },
          "401": {
            "$ref": "#/components/responses/E401"
          },
          "404": {
            "$ref": "#/components/responses/E404"
          },
          "409": {
            "$ref": "#/components/responses/E409"
          },
          "422": {
            "$ref": "#/components/responses/E422"
          },
          "429": {
            "$ref": "#/components/responses/E429"
          }
        },
        "x-async": true
      }
    },
    "/dns64/clients/{token}/rules/{id}": {
      "delete": {
        "tags": [
          "DNS64"
        ],
        "summary": "Regel entfernen",
        "operationId": "delete_dns64_clients_token_rules_id",
        "parameters": [
          {
            "name": "token",
            "in": "path",
            "required": true,
            "description": "Token bzw. ID der Ressource (32 Zeichen)",
            "schema": {
              "type": "string"
            },
            "example": "Ab3dEf6hIj9kLm2nOp5qRs8tUv1wXy4z"
          },
          {
            "name": "id",
            "in": "path",
            "required": true,
            "description": "ID der Ressource",
            "schema": {
              "type": "string"
            },
            "example": "12"
          },
          {
            "$ref": "#/components/parameters/ActAs"
          }
        ],
        "responses": {
          "204": {
            "description": "Erfolgreich, ohne Inhalt"
          },
          "401": {
            "$ref": "#/components/responses/E401"
          },
          "404": {
            "$ref": "#/components/responses/E404"
          },
          "429": {
            "$ref": "#/components/responses/E429"
          }
        }
      }
    },
    "/dns64/clients/{token}/sources": {
      "post": {
        "tags": [
          "DNS64"
        ],
        "summary": "Quell-Adresse hinzufügen",
        "operationId": "post_dns64_clients_token_sources",
        "description": "Damit die gemeinsamen Resolver-IPs Anfragen deinem Client zuordnen. Entweder eine feste ip oder ein eigener A/AAAA-Record, dessen DynDNS-Adresse verfolgt wird. Je Art höchstens 5.",
        "parameters": [
          {
            "name": "token",
            "in": "path",
            "required": true,
            "description": "Token bzw. ID der Ressource (32 Zeichen)",
            "schema": {
              "type": "string"
            },
            "example": "Ab3dEf6hIj9kLm2nOp5qRs8tUv1wXy4z"
          },
          {
            "$ref": "#/components/parameters/ActAs"
          }
        ],
        "requestBody": {
          "required": false,
          "content": {
            "application/json": {
              "schema": {
                "type": "object",
                "properties": {
                  "ip": {
                    "type": "string",
                    "description": "Feste IP",
                    "example": "203.0.113.10"
                  },
                  "record": {
                    "type": "string",
                    "description": "Record-ID oder -Token",
                    "example": "4711"
                  }
                }
              },
              "example": {
                "record": "4711"
              }
            }
          }
        },
        "responses": {
          "202": {
            "description": "Angenommen. Die Änderung wird in den nächsten Sekunden vom Hintergrunddienst umgesetzt.",
            "content": {
              "application/json": {
                "schema": {
                  "type": "object",
                  "properties": {
                    "data": {
                      "$ref": "#/components/schemas/Dns64Client"
                    }
                  },
                  "required": [
                    "data"
                  ]
                }
              }
            }
          },
          "401": {
            "$ref": "#/components/responses/E401"
          },
          "403": {
            "$ref": "#/components/responses/E403"
          },
          "404": {
            "$ref": "#/components/responses/E404"
          },
          "409": {
            "$ref": "#/components/responses/E409"
          },
          "422": {
            "$ref": "#/components/responses/E422"
          },
          "429": {
            "$ref": "#/components/responses/E429"
          }
        },
        "x-async": true
      }
    },
    "/dns64/clients/{token}/sources/{id}": {
      "delete": {
        "tags": [
          "DNS64"
        ],
        "summary": "Quell-Adresse entfernen",
        "operationId": "delete_dns64_clients_token_sources_id",
        "description": "{id} ist die numerische ID bei festen IPs oder der Record-Token bei Records.",
        "parameters": [
          {
            "name": "token",
            "in": "path",
            "required": true,
            "description": "Token bzw. ID der Ressource (32 Zeichen)",
            "schema": {
              "type": "string"
            },
            "example": "Ab3dEf6hIj9kLm2nOp5qRs8tUv1wXy4z"
          },
          {
            "name": "id",
            "in": "path",
            "required": true,
            "description": "ID der Ressource",
            "schema": {
              "type": "string"
            },
            "example": "12"
          },
          {
            "$ref": "#/components/parameters/ActAs"
          }
        ],
        "responses": {
          "204": {
            "description": "Erfolgreich, ohne Inhalt"
          },
          "401": {
            "$ref": "#/components/responses/E401"
          },
          "404": {
            "$ref": "#/components/responses/E404"
          },
          "429": {
            "$ref": "#/components/responses/E429"
          }
        }
      }
    },
    "/hc2/account": {
      "get": {
        "tags": [
          "Healthchecks 2.0"
        ],
        "summary": "Account: Paket, Limits, Standorte",
        "operationId": "get_hc2_account",
        "parameters": [
          {
            "$ref": "#/components/parameters/ActAs"
          }
        ],
        "responses": {
          "200": {
            "description": "Erfolgreich",
            "content": {
              "application/json": {
                "schema": {
                  "type": "object",
                  "properties": {
                    "data": {
                      "$ref": "#/components/schemas/Hc2Account"
                    }
                  },
                  "required": [
                    "data"
                  ]
                }
              }
            }
          },
          "401": {
            "$ref": "#/components/responses/E401"
          },
          "429": {
            "$ref": "#/components/responses/E429"
          }
        }
      }
    },
    "/hc2/settings": {
      "get": {
        "tags": [
          "Healthchecks 2.0"
        ],
        "summary": "Benachrichtigungs-Einstellungen (Ruhezeiten, Sammelmeldung)",
        "operationId": "get_hc2_settings",
        "parameters": [
          {
            "$ref": "#/components/parameters/ActAs"
          }
        ],
        "responses": {
          "200": {
            "description": "Erfolgreich",
            "content": {
              "application/json": {
                "schema": {
                  "type": "object",
                  "properties": {
                    "data": {
                      "type": "object",
                      "additionalProperties": {
                        "type": "string"
                      }
                    }
                  },
                  "required": [
                    "data"
                  ]
                }
              }
            }
          },
          "401": {
            "$ref": "#/components/responses/E401"
          },
          "429": {
            "$ref": "#/components/responses/E429"
          }
        }
      },
      "patch": {
        "tags": [
          "Healthchecks 2.0"
        ],
        "summary": "Einstellungen ändern",
        "operationId": "patch_hc2_settings",
        "parameters": [
          {
            "$ref": "#/components/parameters/ActAs"
          }
        ],
        "responses": {
          "200": {
            "description": "Erfolgreich",
            "content": {
              "application/json": {
                "schema": {
                  "type": "object",
                  "properties": {
                    "data": {
                      "type": "object",
                      "additionalProperties": {
                        "type": "string"
                      }
                    }
                  },
                  "required": [
                    "data"
                  ]
                }
              }
            }
          },
          "401": {
            "$ref": "#/components/responses/E401"
          },
          "422": {
            "$ref": "#/components/responses/E422"
          },
          "429": {
            "$ref": "#/components/responses/E429"
          }
        },
        "requestBody": {
          "required": true,
          "content": {
            "application/json": {
              "schema": {
                "type": "object",
                "properties": {
                  "notify.quiet_enabled": {
                    "type": "boolean",
                    "description": ""
                  },
                  "notify.quiet_from": {
                    "type": "string",
                    "description": "HH:MM"
                  },
                  "notify.quiet_to": {
                    "type": "string",
                    "description": "HH:MM"
                  },
                  "notify.quiet_days": {
                    "type": "string",
                    "description": "1-7, Komma"
                  },
                  "notify.rate_per_hour": {
                    "type": "integer",
                    "description": "0 = unbegrenzt"
                  },
                  "notify.batch_threshold": {
                    "type": "integer",
                    "description": ""
                  },
                  "notify.batch_window_seconds": {
                    "type": "integer",
                    "description": ""
                  }
                }
              }
            }
          }
        }
      }
    },
    "/hc2/checks": {
      "get": {
        "tags": [
          "Healthchecks 2.0"
        ],
        "summary": "Checks auflisten",
        "operationId": "get_hc2_checks",
        "parameters": [
          {
            "name": "type",
            "in": "query",
            "required": false,
            "description": "",
            "schema": {
              "type": "string"
            }
          },
          {
            "name": "state",
            "in": "query",
            "required": false,
            "description": "up, down, degraded, flapping, paused, pending",
            "schema": {
              "type": "string"
            }
          },
          {
            "name": "execution",
            "in": "query",
            "required": false,
            "description": "online, local, both",
            "schema": {
              "type": "string"
            }
          },
          {
            "name": "node_id",
            "in": "query",
            "required": false,
            "description": "",
            "schema": {
              "type": "string"
            }
          },
          {
            "name": "tag",
            "in": "query",
            "required": false,
            "description": "",
            "schema": {
              "type": "string"
            }
          },
          {
            "name": "group",
            "in": "query",
            "required": false,
            "description": "Gruppe",
            "schema": {
              "type": "string"
            }
          },
          {
            "name": "q",
            "in": "query",
            "required": false,
            "description": "Suche in Name/Ziel",
            "schema": {
              "type": "string"
            }
          },
          {
            "$ref": "#/components/parameters/ActAs"
          }
        ],
        "responses": {
          "200": {
            "description": "Erfolgreich",
            "content": {
              "application/json": {
                "schema": {
                  "type": "object",
                  "properties": {
                    "data": {
                      "type": "array",
                      "items": {
                        "$ref": "#/components/schemas/Hc2Check"
                      }
                    }
                  },
                  "required": [
                    "data"
                  ]
                }
              }
            }
          },
          "401": {
            "$ref": "#/components/responses/E401"
          },
          "429": {
            "$ref": "#/components/responses/E429"
          }
        }
      },
      "post": {
        "tags": [
          "Healthchecks 2.0"
        ],
        "summary": "Check anlegen",
        "operationId": "post_hc2_checks",
        "parameters": [
          {
            "$ref": "#/components/parameters/ActAs"
          }
        ],
        "responses": {
          "201": {
            "description": "Angelegt",
            "content": {
              "application/json": {
                "schema": {
                  "type": "object",
                  "properties": {
                    "data": {
                      "$ref": "#/components/schemas/Hc2CheckDetail"
                    }
                  },
                  "required": [
                    "data"
                  ]
                }
              }
            }
          },
          "401": {
            "$ref": "#/components/responses/E401"
          },
          "403": {
            "$ref": "#/components/responses/E403"
          },
          "422": {
            "$ref": "#/components/responses/E422"
          },
          "429": {
            "$ref": "#/components/responses/E429"
          }
        },
        "description": "Online-Checks zählen je Standort gegen das Limit und dürfen keine privaten Ziele haben; lokale Checks brauchen eine verknüpfte Node.",
        "requestBody": {
          "required": true,
          "content": {
            "application/json": {
              "schema": {
                "$ref": "#/components/schemas/Hc2CheckInput"
              }
            }
          }
        }
      }
    },
    "/hc2/checks/{token}": {
      "get": {
        "tags": [
          "Healthchecks 2.0"
        ],
        "summary": "Check mit Messstellen und Verfügbarkeit",
        "operationId": "get_hc2_check",
        "parameters": [
          {
            "name": "token",
            "in": "path",
            "required": true,
            "description": "Token des Checks (32 Zeichen)",
            "schema": {
              "type": "string"
            },
            "example": "Ab3dEf6hIj9kLm2nOp5qRs8tUv1wXy4z"
          },
          {
            "$ref": "#/components/parameters/ActAs"
          }
        ],
        "responses": {
          "200": {
            "description": "Erfolgreich",
            "content": {
              "application/json": {
                "schema": {
                  "type": "object",
                  "properties": {
                    "data": {
                      "$ref": "#/components/schemas/Hc2CheckDetail"
                    }
                  },
                  "required": [
                    "data"
                  ]
                }
              }
            }
          },
          "401": {
            "$ref": "#/components/responses/E401"
          },
          "404": {
            "$ref": "#/components/responses/E404"
          },
          "429": {
            "$ref": "#/components/responses/E429"
          }
        }
      },
      "patch": {
        "tags": [
          "Healthchecks 2.0"
        ],
        "summary": "Check ändern",
        "operationId": "patch_hc2_check",
        "parameters": [
          {
            "name": "token",
            "in": "path",
            "required": true,
            "description": "Token des Checks (32 Zeichen)",
            "schema": {
              "type": "string"
            },
            "example": "Ab3dEf6hIj9kLm2nOp5qRs8tUv1wXy4z"
          },
          {
            "$ref": "#/components/parameters/ActAs"
          }
        ],
        "responses": {
          "200": {
            "description": "Erfolgreich",
            "content": {
              "application/json": {
                "schema": {
                  "type": "object",
                  "properties": {
                    "data": {
                      "$ref": "#/components/schemas/Hc2CheckDetail"
                    }
                  },
                  "required": [
                    "data"
                  ]
                }
              }
            }
          },
          "401": {
            "$ref": "#/components/responses/E401"
          },
          "403": {
            "$ref": "#/components/responses/E403"
          },
          "404": {
            "$ref": "#/components/responses/E404"
          },
          "409": {
            "$ref": "#/components/responses/E409"
          },
          "422": {
            "$ref": "#/components/responses/E422"
          },
          "429": {
            "$ref": "#/components/responses/E429"
          }
        },
        "description": "Nur mitgeschickte Felder werden geändert. Eine Änderung von execution/node_id/locations wird nicht direkt übernommen (409 move_requires_test): dafür POST .../move mit Testlauf, oder force_move=true.",
        "requestBody": {
          "required": true,
          "content": {
            "application/json": {
              "schema": {
                "$ref": "#/components/schemas/Hc2CheckInput"
              }
            }
          }
        }
      },
      "delete": {
        "tags": [
          "Healthchecks 2.0"
        ],
        "summary": "Check löschen",
        "operationId": "delete_hc2_check",
        "parameters": [
          {
            "name": "token",
            "in": "path",
            "required": true,
            "description": "Token des Checks (32 Zeichen)",
            "schema": {
              "type": "string"
            },
            "example": "Ab3dEf6hIj9kLm2nOp5qRs8tUv1wXy4z"
          },
          {
            "$ref": "#/components/parameters/ActAs"
          }
        ],
        "responses": {
          "204": {
            "description": "Gelöscht"
          },
          "401": {
            "$ref": "#/components/responses/E401"
          },
          "404": {
            "$ref": "#/components/responses/E404"
          },
          "429": {
            "$ref": "#/components/responses/E429"
          }
        }
      }
    },
    "/hc2/checks/{token}/pause": {
      "post": {
        "tags": [
          "Healthchecks 2.0"
        ],
        "summary": "Pausieren",
        "operationId": "post_hc2_check_pause",
        "parameters": [
          {
            "name": "token",
            "in": "path",
            "required": true,
            "description": "Token des Checks (32 Zeichen)",
            "schema": {
              "type": "string"
            },
            "example": "Ab3dEf6hIj9kLm2nOp5qRs8tUv1wXy4z"
          },
          {
            "$ref": "#/components/parameters/ActAs"
          }
        ],
        "responses": {
          "200": {
            "description": "Erfolgreich",
            "content": {
              "application/json": {
                "schema": {
                  "type": "object",
                  "properties": {
                    "data": {
                      "$ref": "#/components/schemas/Hc2Check"
                    }
                  },
                  "required": [
                    "data"
                  ]
                }
              }
            }
          },
          "401": {
            "$ref": "#/components/responses/E401"
          },
          "404": {
            "$ref": "#/components/responses/E404"
          },
          "429": {
            "$ref": "#/components/responses/E429"
          }
        }
      }
    },
    "/hc2/checks/{token}/resume": {
      "post": {
        "tags": [
          "Healthchecks 2.0"
        ],
        "summary": "Fortsetzen",
        "operationId": "post_hc2_check_resume",
        "parameters": [
          {
            "name": "token",
            "in": "path",
            "required": true,
            "description": "Token des Checks (32 Zeichen)",
            "schema": {
              "type": "string"
            },
            "example": "Ab3dEf6hIj9kLm2nOp5qRs8tUv1wXy4z"
          },
          {
            "$ref": "#/components/parameters/ActAs"
          }
        ],
        "responses": {
          "200": {
            "description": "Erfolgreich",
            "content": {
              "application/json": {
                "schema": {
                  "type": "object",
                  "properties": {
                    "data": {
                      "$ref": "#/components/schemas/Hc2Check"
                    }
                  },
                  "required": [
                    "data"
                  ]
                }
              }
            }
          },
          "401": {
            "$ref": "#/components/responses/E401"
          },
          "404": {
            "$ref": "#/components/responses/E404"
          },
          "429": {
            "$ref": "#/components/responses/E429"
          }
        }
      }
    },
    "/hc2/checks/{token}/run": {
      "post": {
        "tags": [
          "Healthchecks 2.0"
        ],
        "summary": "Sofort prüfen (Node-Checks: Befehl an die Node)",
        "operationId": "post_hc2_check_run",
        "parameters": [
          {
            "name": "token",
            "in": "path",
            "required": true,
            "description": "Token des Checks (32 Zeichen)",
            "schema": {
              "type": "string"
            },
            "example": "Ab3dEf6hIj9kLm2nOp5qRs8tUv1wXy4z"
          },
          {
            "$ref": "#/components/parameters/ActAs"
          }
        ],
        "responses": {
          "202": {
            "description": "Angestoßen",
            "content": {
              "application/json": {
                "schema": {
                  "type": "object",
                  "properties": {
                    "data": {
                      "type": "object",
                      "properties": {
                        "queued": {
                          "type": "boolean",
                          "description": ""
                        },
                        "command_id": {
                          "type": "integer",
                          "description": ""
                        },
                        "node_id": {
                          "type": "string",
                          "description": ""
                        },
                        "detail": {
                          "type": "string",
                          "description": ""
                        }
                      }
                    }
                  },
                  "required": [
                    "data"
                  ]
                }
              }
            }
          },
          "200": {
            "description": "Erfolgreich",
            "content": {
              "application/json": {
                "schema": {
                  "type": "object",
                  "properties": {
                    "data": {
                      "type": "object",
                      "properties": {
                        "queued": {
                          "type": "boolean",
                          "description": ""
                        },
                        "detail": {
                          "type": "string",
                          "description": ""
                        }
                      }
                    }
                  },
                  "required": [
                    "data"
                  ]
                }
              }
            }
          },
          "401": {
            "$ref": "#/components/responses/E401"
          },
          "404": {
            "$ref": "#/components/responses/E404"
          },
          "422": {
            "$ref": "#/components/responses/E422"
          },
          "429": {
            "$ref": "#/components/responses/E429"
          }
        }
      }
    },
    "/hc2/checks/{token}/move": {
      "post": {
        "tags": [
          "Healthchecks 2.0"
        ],
        "summary": "Umhängen: Ausführungsort mit Testlauf ändern",
        "operationId": "post_hc2_check_move",
        "parameters": [
          {
            "name": "token",
            "in": "path",
            "required": true,
            "description": "Token des Checks (32 Zeichen)",
            "schema": {
              "type": "string"
            },
            "example": "Ab3dEf6hIj9kLm2nOp5qRs8tUv1wXy4z"
          },
          {
            "$ref": "#/components/parameters/ActAs"
          }
        ],
        "responses": {
          "202": {
            "description": "Testlauf gestartet",
            "content": {
              "application/json": {
                "schema": {
                  "type": "object",
                  "properties": {
                    "data": {
                      "$ref": "#/components/schemas/Hc2Testrun"
                    }
                  },
                  "required": [
                    "data"
                  ]
                }
              }
            }
          },
          "401": {
            "$ref": "#/components/responses/E401"
          },
          "404": {
            "$ref": "#/components/responses/E404"
          },
          "409": {
            "$ref": "#/components/responses/E409"
          },
          "422": {
            "$ref": "#/components/responses/E422"
          },
          "429": {
            "$ref": "#/components/responses/E429"
          }
        },
        "description": "Der hub misst je Standort, die Node per Befehl. Status mit GET /hc2/testruns/{id} abfragen (alle 2 s, höchstens 60 s). Bei status ok ist der Wechsel übernommen; der Token und die Messhistorie bleiben.",
        "requestBody": {
          "required": true,
          "content": {
            "application/json": {
              "schema": {
                "type": "object",
                "properties": {
                  "execution": {
                    "type": "string",
                    "description": "local, online, both",
                    "example": "local",
                    "enum": [
                      "local",
                      "online",
                      "both"
                    ]
                  },
                  "node_id": {
                    "type": "string",
                    "description": "Besitzer-Node für local/both (bearbeitet in der Node, benachrichtigt ohne Verbindung); allein angegeben = eine messende Node"
                  },
                  "nodes": {
                    "type": "array",
                    "items": {
                      "type": "string"
                    },
                    "description": "Messende Nodes (IDs) für local/both; mehrere möglich. Ausgabe: Liste {node_id, name}"
                  },
                  "locations": {
                    "type": "array",
                    "items": {
                      "type": "string"
                    },
                    "description": "Standorte für online/both"
                  }
                },
                "required": [
                  "execution"
                ]
              }
            }
          }
        }
      }
    },
    "/hc2/testruns/{id}": {
      "get": {
        "tags": [
          "Healthchecks 2.0"
        ],
        "summary": "Status eines Testlaufs",
        "operationId": "get_hc2_testrun",
        "parameters": [
          {
            "name": "id",
            "in": "path",
            "required": true,
            "description": "Nummer",
            "schema": {
              "type": "integer"
            },
            "example": 7
          },
          {
            "$ref": "#/components/parameters/ActAs"
          }
        ],
        "responses": {
          "200": {
            "description": "Erfolgreich",
            "content": {
              "application/json": {
                "schema": {
                  "type": "object",
                  "properties": {
                    "data": {
                      "$ref": "#/components/schemas/Hc2Testrun"
                    }
                  },
                  "required": [
                    "data"
                  ]
                }
              }
            }
          },
          "401": {
            "$ref": "#/components/responses/E401"
          },
          "404": {
            "$ref": "#/components/responses/E404"
          },
          "429": {
            "$ref": "#/components/responses/E429"
          }
        }
      }
    },
    "/hc2/checks/{token}/measurements": {
      "get": {
        "tags": [
          "Healthchecks 2.0"
        ],
        "summary": "Rohmesspunkte (neueste zuerst, 7 Tage)",
        "operationId": "get_hc2_check_measurements",
        "parameters": [
          {
            "name": "token",
            "in": "path",
            "required": true,
            "description": "Token des Checks (32 Zeichen)",
            "schema": {
              "type": "string"
            },
            "example": "Ab3dEf6hIj9kLm2nOp5qRs8tUv1wXy4z"
          },
          {
            "name": "limit",
            "in": "query",
            "required": false,
            "description": "höchstens 5000",
            "schema": {
              "type": "integer"
            }
          },
          {
            "name": "since",
            "in": "query",
            "required": false,
            "description": "ISO 8601",
            "schema": {
              "type": "string"
            }
          },
          {
            "name": "until",
            "in": "query",
            "required": false,
            "description": "ISO 8601",
            "schema": {
              "type": "string"
            }
          },
          {
            "name": "source",
            "in": "query",
            "required": false,
            "description": "loc:nbg, loc:fsn, node:<id>",
            "schema": {
              "type": "string"
            }
          },
          {
            "$ref": "#/components/parameters/ActAs"
          }
        ],
        "responses": {
          "200": {
            "description": "Erfolgreich",
            "content": {
              "application/json": {
                "schema": {
                  "type": "object",
                  "properties": {
                    "data": {
                      "type": "array",
                      "items": {
                        "$ref": "#/components/schemas/Hc2Measurement"
                      }
                    }
                  },
                  "required": [
                    "data"
                  ]
                }
              }
            }
          },
          "401": {
            "$ref": "#/components/responses/E401"
          },
          "404": {
            "$ref": "#/components/responses/E404"
          },
          "429": {
            "$ref": "#/components/responses/E429"
          }
        }
      }
    },
    "/hc2/checks/{token}/events": {
      "get": {
        "tags": [
          "Healthchecks 2.0"
        ],
        "summary": "Ereignisse eines Checks",
        "operationId": "get_hc2_check_events",
        "parameters": [
          {
            "name": "token",
            "in": "path",
            "required": true,
            "description": "Token des Checks (32 Zeichen)",
            "schema": {
              "type": "string"
            },
            "example": "Ab3dEf6hIj9kLm2nOp5qRs8tUv1wXy4z"
          },
          {
            "name": "limit",
            "in": "query",
            "required": false,
            "description": "höchstens 100",
            "schema": {
              "type": "integer"
            }
          },
          {
            "name": "before",
            "in": "query",
            "required": false,
            "description": "nur IDs kleiner (ältere)",
            "schema": {
              "type": "integer"
            }
          },
          {
            "name": "after",
            "in": "query",
            "required": false,
            "description": "nur IDs größer (neuere, aufsteigend)",
            "schema": {
              "type": "integer"
            }
          },
          {
            "name": "since",
            "in": "query",
            "required": false,
            "description": "ab Zeitpunkt (ISO 8601)",
            "schema": {
              "type": "string"
            }
          },
          {
            "$ref": "#/components/parameters/ActAs"
          }
        ],
        "responses": {
          "200": {
            "description": "Erfolgreich",
            "content": {
              "application/json": {
                "schema": {
                  "type": "object",
                  "properties": {
                    "data": {
                      "type": "array",
                      "items": {
                        "$ref": "#/components/schemas/Hc2Event"
                      }
                    },
                    "meta": {
                      "$ref": "#/components/schemas/Hc2PageMeta"
                    }
                  },
                  "required": [
                    "data"
                  ]
                }
              }
            }
          },
          "401": {
            "$ref": "#/components/responses/E401"
          },
          "404": {
            "$ref": "#/components/responses/E404"
          },
          "429": {
            "$ref": "#/components/responses/E429"
          }
        }
      }
    },
    "/hc2/events": {
      "get": {
        "tags": [
          "Healthchecks 2.0"
        ],
        "summary": "Ereignisse aller Checks",
        "operationId": "get_hc2_events",
        "parameters": [
          {
            "name": "limit",
            "in": "query",
            "required": false,
            "description": "höchstens 100",
            "schema": {
              "type": "integer"
            }
          },
          {
            "name": "before",
            "in": "query",
            "required": false,
            "description": "nur IDs kleiner (ältere)",
            "schema": {
              "type": "integer"
            }
          },
          {
            "name": "after",
            "in": "query",
            "required": false,
            "description": "nur IDs größer (neuere, aufsteigend)",
            "schema": {
              "type": "integer"
            }
          },
          {
            "name": "since",
            "in": "query",
            "required": false,
            "description": "ab Zeitpunkt (ISO 8601)",
            "schema": {
              "type": "string"
            }
          },
          {
            "$ref": "#/components/parameters/ActAs"
          }
        ],
        "responses": {
          "200": {
            "description": "Erfolgreich",
            "content": {
              "application/json": {
                "schema": {
                  "type": "object",
                  "properties": {
                    "data": {
                      "type": "array",
                      "items": {
                        "$ref": "#/components/schemas/Hc2Event"
                      }
                    },
                    "meta": {
                      "$ref": "#/components/schemas/Hc2PageMeta"
                    }
                  },
                  "required": [
                    "data"
                  ]
                }
              }
            }
          },
          "401": {
            "$ref": "#/components/responses/E401"
          },
          "429": {
            "$ref": "#/components/responses/E429"
          }
        }
      }
    },
    "/hc2/checks/{token}/incidents": {
      "get": {
        "tags": [
          "Healthchecks 2.0"
        ],
        "summary": "Störungen eines Checks",
        "operationId": "get_hc2_check_incidents",
        "parameters": [
          {
            "name": "token",
            "in": "path",
            "required": true,
            "description": "Token des Checks (32 Zeichen)",
            "schema": {
              "type": "string"
            },
            "example": "Ab3dEf6hIj9kLm2nOp5qRs8tUv1wXy4z"
          },
          {
            "name": "limit",
            "in": "query",
            "required": false,
            "description": "höchstens 500",
            "schema": {
              "type": "integer"
            }
          },
          {
            "$ref": "#/components/parameters/ActAs"
          }
        ],
        "responses": {
          "200": {
            "description": "Erfolgreich",
            "content": {
              "application/json": {
                "schema": {
                  "type": "object",
                  "properties": {
                    "data": {
                      "type": "array",
                      "items": {
                        "$ref": "#/components/schemas/Hc2Incident"
                      }
                    }
                  },
                  "required": [
                    "data"
                  ]
                }
              }
            }
          },
          "401": {
            "$ref": "#/components/responses/E401"
          },
          "404": {
            "$ref": "#/components/responses/E404"
          },
          "429": {
            "$ref": "#/components/responses/E429"
          }
        }
      }
    },
    "/hc2/incidents": {
      "get": {
        "tags": [
          "Healthchecks 2.0"
        ],
        "summary": "Störungen des Accounts",
        "operationId": "get_hc2_incidents",
        "parameters": [
          {
            "name": "limit",
            "in": "query",
            "required": false,
            "description": "höchstens 1000",
            "schema": {
              "type": "integer"
            }
          },
          {
            "name": "open",
            "in": "query",
            "required": false,
            "description": "true = nur offene",
            "schema": {
              "type": "boolean"
            }
          },
          {
            "name": "since",
            "in": "query",
            "required": false,
            "description": "ISO 8601",
            "schema": {
              "type": "string"
            }
          },
          {
            "$ref": "#/components/parameters/ActAs"
          }
        ],
        "responses": {
          "200": {
            "description": "Erfolgreich",
            "content": {
              "application/json": {
                "schema": {
                  "type": "object",
                  "properties": {
                    "data": {
                      "type": "array",
                      "items": {
                        "$ref": "#/components/schemas/Hc2Incident"
                      }
                    }
                  },
                  "required": [
                    "data"
                  ]
                }
              }
            }
          },
          "401": {
            "$ref": "#/components/responses/E401"
          },
          "429": {
            "$ref": "#/components/responses/E429"
          }
        }
      }
    },
    "/hc2/checks/{token}/stats": {
      "get": {
        "tags": [
          "Healthchecks 2.0"
        ],
        "summary": "Verfügbarkeit und Latenz (aus Stunden-/Tageswerten)",
        "operationId": "get_hc2_check_stats",
        "parameters": [
          {
            "name": "token",
            "in": "path",
            "required": true,
            "description": "Token des Checks (32 Zeichen)",
            "schema": {
              "type": "string"
            },
            "example": "Ab3dEf6hIj9kLm2nOp5qRs8tUv1wXy4z"
          },
          {
            "name": "range",
            "in": "query",
            "required": false,
            "description": "24h, 7d, 30d, 1y",
            "schema": {
              "type": "string",
              "enum": [
                "24h",
                "7d",
                "30d",
                "1y"
              ]
            }
          },
          {
            "$ref": "#/components/parameters/ActAs"
          }
        ],
        "responses": {
          "200": {
            "description": "Erfolgreich",
            "content": {
              "application/json": {
                "schema": {
                  "type": "object",
                  "properties": {
                    "data": {
                      "$ref": "#/components/schemas/Hc2Stats"
                    }
                  },
                  "required": [
                    "data"
                  ]
                }
              }
            }
          },
          "400": {
            "$ref": "#/components/responses/E400"
          },
          "401": {
            "$ref": "#/components/responses/E401"
          },
          "404": {
            "$ref": "#/components/responses/E404"
          },
          "429": {
            "$ref": "#/components/responses/E429"
          }
        }
      }
    },
    "/hc2/channel-types": {
      "get": {
        "tags": [
          "Healthchecks 2.0"
        ],
        "summary": "Kanaltypen mit Feldern",
        "operationId": "get_hc2_channel_types",
        "parameters": [
          {
            "$ref": "#/components/parameters/ActAs"
          }
        ],
        "responses": {
          "200": {
            "description": "Erfolgreich",
            "content": {
              "application/json": {
                "schema": {
                  "type": "object",
                  "properties": {
                    "data": {
                      "type": "array",
                      "items": {
                        "$ref": "#/components/schemas/Hc2ChannelType"
                      }
                    }
                  },
                  "required": [
                    "data"
                  ]
                }
              }
            }
          },
          "401": {
            "$ref": "#/components/responses/E401"
          },
          "429": {
            "$ref": "#/components/responses/E429"
          }
        }
      }
    },
    "/hc2/channels": {
      "get": {
        "tags": [
          "Healthchecks 2.0"
        ],
        "summary": "Kanäle auflisten",
        "operationId": "get_hc2_channels",
        "parameters": [
          {
            "$ref": "#/components/parameters/ActAs"
          }
        ],
        "responses": {
          "200": {
            "description": "Erfolgreich",
            "content": {
              "application/json": {
                "schema": {
                  "type": "object",
                  "properties": {
                    "data": {
                      "type": "array",
                      "items": {
                        "$ref": "#/components/schemas/Hc2Channel"
                      }
                    }
                  },
                  "required": [
                    "data"
                  ]
                }
              }
            }
          },
          "401": {
            "$ref": "#/components/responses/E401"
          },
          "429": {
            "$ref": "#/components/responses/E429"
          }
        }
      },
      "post": {
        "tags": [
          "Healthchecks 2.0"
        ],
        "summary": "Kanal anlegen",
        "operationId": "post_hc2_channels",
        "parameters": [
          {
            "$ref": "#/components/parameters/ActAs"
          }
        ],
        "responses": {
          "201": {
            "description": "Angelegt",
            "content": {
              "application/json": {
                "schema": {
                  "type": "object",
                  "properties": {
                    "data": {
                      "$ref": "#/components/schemas/Hc2Channel"
                    }
                  },
                  "required": [
                    "data"
                  ]
                }
              }
            }
          },
          "401": {
            "$ref": "#/components/responses/E401"
          },
          "403": {
            "$ref": "#/components/responses/E403"
          },
          "422": {
            "$ref": "#/components/responses/E422"
          },
          "429": {
            "$ref": "#/components/responses/E429"
          }
        },
        "description": "Mail- und SMS-Kanäle müssen danach im Portal per Code bestätigt werden (verification_required), vorher wird nicht gesendet.",
        "requestBody": {
          "required": true,
          "content": {
            "application/json": {
              "schema": {
                "$ref": "#/components/schemas/Hc2ChannelInput"
              }
            }
          }
        }
      }
    },
    "/hc2/channels/{id}": {
      "get": {
        "tags": [
          "Healthchecks 2.0"
        ],
        "summary": "Kanal",
        "operationId": "get_hc2_channel",
        "parameters": [
          {
            "name": "id",
            "in": "path",
            "required": true,
            "description": "Nummer",
            "schema": {
              "type": "integer"
            },
            "example": 7
          },
          {
            "$ref": "#/components/parameters/ActAs"
          }
        ],
        "responses": {
          "200": {
            "description": "Erfolgreich",
            "content": {
              "application/json": {
                "schema": {
                  "type": "object",
                  "properties": {
                    "data": {
                      "$ref": "#/components/schemas/Hc2Channel"
                    }
                  },
                  "required": [
                    "data"
                  ]
                }
              }
            }
          },
          "401": {
            "$ref": "#/components/responses/E401"
          },
          "404": {
            "$ref": "#/components/responses/E404"
          },
          "429": {
            "$ref": "#/components/responses/E429"
          }
        }
      },
      "patch": {
        "tags": [
          "Healthchecks 2.0"
        ],
        "summary": "Kanal ändern",
        "operationId": "patch_hc2_channel",
        "parameters": [
          {
            "name": "id",
            "in": "path",
            "required": true,
            "description": "Nummer",
            "schema": {
              "type": "integer"
            },
            "example": 7
          },
          {
            "$ref": "#/components/parameters/ActAs"
          }
        ],
        "responses": {
          "200": {
            "description": "Erfolgreich",
            "content": {
              "application/json": {
                "schema": {
                  "type": "object",
                  "properties": {
                    "data": {
                      "$ref": "#/components/schemas/Hc2Channel"
                    }
                  },
                  "required": [
                    "data"
                  ]
                }
              }
            }
          },
          "401": {
            "$ref": "#/components/responses/E401"
          },
          "404": {
            "$ref": "#/components/responses/E404"
          },
          "409": {
            "$ref": "#/components/responses/E409"
          },
          "422": {
            "$ref": "#/components/responses/E422"
          },
          "429": {
            "$ref": "#/components/responses/E429"
          }
        },
        "requestBody": {
          "required": true,
          "content": {
            "application/json": {
              "schema": {
                "$ref": "#/components/schemas/Hc2ChannelInput"
              }
            }
          }
        }
      },
      "delete": {
        "tags": [
          "Healthchecks 2.0"
        ],
        "summary": "Kanal löschen",
        "operationId": "delete_hc2_channel",
        "parameters": [
          {
            "name": "id",
            "in": "path",
            "required": true,
            "description": "Nummer",
            "schema": {
              "type": "integer"
            },
            "example": 7
          },
          {
            "$ref": "#/components/parameters/ActAs"
          }
        ],
        "responses": {
          "204": {
            "description": "Gelöscht"
          },
          "401": {
            "$ref": "#/components/responses/E401"
          },
          "404": {
            "$ref": "#/components/responses/E404"
          },
          "409": {
            "$ref": "#/components/responses/E409"
          },
          "429": {
            "$ref": "#/components/responses/E429"
          }
        }
      }
    },
    "/hc2/channels/{id}/test": {
      "post": {
        "tags": [
          "Healthchecks 2.0"
        ],
        "summary": "Testnachricht senden",
        "operationId": "post_hc2_channel_test",
        "parameters": [
          {
            "name": "id",
            "in": "path",
            "required": true,
            "description": "Nummer",
            "schema": {
              "type": "integer"
            },
            "example": 7
          },
          {
            "$ref": "#/components/parameters/ActAs"
          }
        ],
        "responses": {
          "200": {
            "description": "Erfolgreich",
            "content": {
              "application/json": {
                "schema": {
                  "type": "object",
                  "properties": {
                    "data": {
                      "type": "object",
                      "properties": {
                        "sent": {
                          "type": "boolean",
                          "description": ""
                        },
                        "queued_at_node": {
                          "type": "boolean",
                          "description": "Node-Kanal: die Node sendet selbst"
                        }
                      }
                    }
                  },
                  "required": [
                    "data"
                  ]
                }
              }
            }
          },
          "401": {
            "$ref": "#/components/responses/E401"
          },
          "404": {
            "$ref": "#/components/responses/E404"
          },
          "409": {
            "$ref": "#/components/responses/E409"
          },
          "429": {
            "$ref": "#/components/responses/E429"
          }
        }
      }
    },
    "/hc2/maintenance": {
      "get": {
        "tags": [
          "Healthchecks 2.0"
        ],
        "summary": "Wartungsfenster",
        "operationId": "get_hc2_maintenance",
        "parameters": [
          {
            "$ref": "#/components/parameters/ActAs"
          }
        ],
        "responses": {
          "200": {
            "description": "Erfolgreich",
            "content": {
              "application/json": {
                "schema": {
                  "type": "object",
                  "properties": {
                    "data": {
                      "type": "array",
                      "items": {
                        "$ref": "#/components/schemas/Hc2Maintenance"
                      }
                    }
                  },
                  "required": [
                    "data"
                  ]
                }
              }
            }
          },
          "401": {
            "$ref": "#/components/responses/E401"
          },
          "429": {
            "$ref": "#/components/responses/E429"
          }
        }
      },
      "post": {
        "tags": [
          "Healthchecks 2.0"
        ],
        "summary": "Wartungsfenster anlegen",
        "operationId": "post_hc2_maintenance",
        "parameters": [
          {
            "$ref": "#/components/parameters/ActAs"
          }
        ],
        "responses": {
          "201": {
            "description": "Angelegt",
            "content": {
              "application/json": {
                "schema": {
                  "type": "object",
                  "properties": {
                    "data": {
                      "$ref": "#/components/schemas/Hc2Maintenance"
                    }
                  },
                  "required": [
                    "data"
                  ]
                }
              }
            }
          },
          "401": {
            "$ref": "#/components/responses/E401"
          },
          "422": {
            "$ref": "#/components/responses/E422"
          },
          "429": {
            "$ref": "#/components/responses/E429"
          }
        },
        "requestBody": {
          "required": true,
          "content": {
            "application/json": {
              "schema": {
                "$ref": "#/components/schemas/Hc2MaintenanceInput"
              }
            }
          }
        }
      }
    },
    "/hc2/maintenance/{id}": {
      "get": {
        "tags": [
          "Healthchecks 2.0"
        ],
        "summary": "Wartungsfenster",
        "operationId": "get_hc2_maintenance_id",
        "parameters": [
          {
            "name": "id",
            "in": "path",
            "required": true,
            "description": "Nummer",
            "schema": {
              "type": "integer"
            },
            "example": 7
          },
          {
            "$ref": "#/components/parameters/ActAs"
          }
        ],
        "responses": {
          "200": {
            "description": "Erfolgreich",
            "content": {
              "application/json": {
                "schema": {
                  "type": "object",
                  "properties": {
                    "data": {
                      "$ref": "#/components/schemas/Hc2Maintenance"
                    }
                  },
                  "required": [
                    "data"
                  ]
                }
              }
            }
          },
          "401": {
            "$ref": "#/components/responses/E401"
          },
          "404": {
            "$ref": "#/components/responses/E404"
          },
          "429": {
            "$ref": "#/components/responses/E429"
          }
        }
      },
      "patch": {
        "tags": [
          "Healthchecks 2.0"
        ],
        "summary": "Wartungsfenster ändern",
        "operationId": "patch_hc2_maintenance",
        "parameters": [
          {
            "name": "id",
            "in": "path",
            "required": true,
            "description": "Nummer",
            "schema": {
              "type": "integer"
            },
            "example": 7
          },
          {
            "$ref": "#/components/parameters/ActAs"
          }
        ],
        "responses": {
          "200": {
            "description": "Erfolgreich",
            "content": {
              "application/json": {
                "schema": {
                  "type": "object",
                  "properties": {
                    "data": {
                      "$ref": "#/components/schemas/Hc2Maintenance"
                    }
                  },
                  "required": [
                    "data"
                  ]
                }
              }
            }
          },
          "401": {
            "$ref": "#/components/responses/E401"
          },
          "404": {
            "$ref": "#/components/responses/E404"
          },
          "422": {
            "$ref": "#/components/responses/E422"
          },
          "429": {
            "$ref": "#/components/responses/E429"
          }
        },
        "requestBody": {
          "required": true,
          "content": {
            "application/json": {
              "schema": {
                "$ref": "#/components/schemas/Hc2MaintenanceInput"
              }
            }
          }
        }
      },
      "delete": {
        "tags": [
          "Healthchecks 2.0"
        ],
        "summary": "Wartungsfenster löschen",
        "operationId": "delete_hc2_maintenance",
        "parameters": [
          {
            "name": "id",
            "in": "path",
            "required": true,
            "description": "Nummer",
            "schema": {
              "type": "integer"
            },
            "example": 7
          },
          {
            "$ref": "#/components/parameters/ActAs"
          }
        ],
        "responses": {
          "204": {
            "description": "Gelöscht"
          },
          "401": {
            "$ref": "#/components/responses/E401"
          },
          "404": {
            "$ref": "#/components/responses/E404"
          },
          "429": {
            "$ref": "#/components/responses/E429"
          }
        }
      }
    },
    "/node64/hello": {
      "post": {
        "tags": [
          "Nodes"
        ],
        "summary": "Node64-Container meldet sich an (Node-Übersicht)",
        "operationId": "post_node64_hello",
        "description": "Wird vom Node64-Container beim Start, nach Änderungen und alle 15 Minuten aufgerufen. Header X-Node64-Node muss der node_id im Body entsprechen. Ist die Node in der Übersicht entfernt, antwortet der Server mit 403 node_removed.",
        "requestBody": {
          "required": true,
          "content": {
            "application/json": {
              "schema": {
                "type": "object",
                "required": [
                  "node_id"
                ],
                "properties": {
                  "node_id": {
                    "type": "string"
                  },
                  "name": {
                    "type": "string"
                  },
                  "location": {
                    "type": "string"
                  },
                  "version": {
                    "type": "string"
                  },
                  "os_arch": {
                    "type": "string"
                  },
                  "mode": {
                    "type": "string"
                  },
                  "modules": {
                    "type": "array",
                    "items": {
                      "type": "string"
                    }
                  },
                  "features": {
                    "type": "object",
                    "properties": {
                      "hc_sync_linked": {
                        "type": "boolean"
                      },
                      "hub_node_id": {
                        "type": "string"
                      },
                      "honeypot_sensor_id": {
                        "type": "string"
                      },
                      "cdn64_tunnel": {
                        "type": "string"
                      },
                      "dyndns": {
                        "type": "boolean"
                      }
                    }
                  }
                }
              }
            }
          }
        },
        "responses": {
          "200": {
            "description": "Erfolgreich"
          },
          "401": {
            "$ref": "#/components/responses/E401"
          },
          "403": {
            "description": "node_removed: Node wurde in der Node-Übersicht entfernt"
          },
          "429": {
            "$ref": "#/components/responses/E429"
          }
        }
      }
    },
    "/node64/nodes": {
      "get": {
        "tags": [
          "Nodes"
        ],
        "summary": "Alle Node64-Container des Accounts (Node-Übersicht)",
        "operationId": "get_node64_nodes",
        "responses": {
          "200": {
            "description": "Erfolgreich"
          },
          "401": {
            "$ref": "#/components/responses/E401"
          },
          "429": {
            "$ref": "#/components/responses/E429"
          }
        }
      }
    },
    "/hc2/nodes": {
      "get": {
        "tags": [
          "Nodes"
        ],
        "summary": "Nodes auflisten",
        "operationId": "get_hc2_nodes",
        "parameters": [
          {
            "$ref": "#/components/parameters/ActAs"
          }
        ],
        "responses": {
          "200": {
            "description": "Erfolgreich",
            "content": {
              "application/json": {
                "schema": {
                  "type": "object",
                  "properties": {
                    "data": {
                      "type": "array",
                      "items": {
                        "$ref": "#/components/schemas/Hc2Node"
                      }
                    }
                  },
                  "required": [
                    "data"
                  ]
                }
              }
            }
          },
          "401": {
            "$ref": "#/components/responses/E401"
          },
          "429": {
            "$ref": "#/components/responses/E429"
          }
        }
      }
    },
    "/hc2/nodes/link": {
      "post": {
        "tags": [
          "Nodes"
        ],
        "summary": "Node per Code verknüpfen",
        "operationId": "post_hc2_nodes_link",
        "parameters": [
          {
            "$ref": "#/components/parameters/ActAs"
          }
        ],
        "responses": {
          "202": {
            "description": "Code angenommen",
            "content": {
              "application/json": {
                "schema": {
                  "type": "object",
                  "properties": {
                    "data": {
                      "type": "object",
                      "properties": {
                        "accepted": {
                          "type": "boolean",
                          "description": ""
                        },
                        "detail": {
                          "type": "string",
                          "description": ""
                        }
                      }
                    }
                  },
                  "required": [
                    "data"
                  ]
                }
              }
            }
          },
          "401": {
            "$ref": "#/components/responses/E401"
          },
          "404": {
            "$ref": "#/components/responses/E404"
          },
          "422": {
            "$ref": "#/components/responses/E422"
          },
          "429": {
            "$ref": "#/components/responses/E429"
          }
        },
        "description": "Die Node zeigt unter „ipv64-Verknüpfung“ einen Code; nach dem Einlösen holt sie sich ihren Token selbst.",
        "requestBody": {
          "required": true,
          "content": {
            "application/json": {
              "schema": {
                "type": "object",
                "properties": {
                  "code": {
                    "type": "string",
                    "description": "8 Zeichen aus der Node",
                    "example": "ABCD-EFGH"
                  },
                  "location": {
                    "type": "string",
                    "description": "Standort (frei)"
                  },
                  "remote_mgmt": {
                    "type": "string",
                    "description": "off, read, full (Standard: full)",
                    "example": "full"
                  }
                },
                "required": [
                  "code"
                ]
              }
            }
          }
        }
      }
    },
    "/hc2/nodes/{node_id}": {
      "get": {
        "tags": [
          "Nodes"
        ],
        "summary": "Node mit ihren Checks",
        "operationId": "get_hc2_node",
        "parameters": [
          {
            "name": "node_id",
            "in": "path",
            "required": true,
            "description": "Kennung der Node (32 Zeichen)",
            "schema": {
              "type": "string"
            },
            "example": "nz5EcCnDHtOXEprvZMXP9L8u58wguMKE"
          },
          {
            "$ref": "#/components/parameters/ActAs"
          }
        ],
        "responses": {
          "200": {
            "description": "Erfolgreich",
            "content": {
              "application/json": {
                "schema": {
                  "type": "object",
                  "properties": {
                    "data": {
                      "$ref": "#/components/schemas/Hc2NodeDetail"
                    }
                  },
                  "required": [
                    "data"
                  ]
                }
              }
            }
          },
          "401": {
            "$ref": "#/components/responses/E401"
          },
          "404": {
            "$ref": "#/components/responses/E404"
          },
          "429": {
            "$ref": "#/components/responses/E429"
          }
        }
      },
      "patch": {
        "tags": [
          "Nodes"
        ],
        "summary": "Node umbenennen, Standort, Fernverwaltung",
        "operationId": "patch_hc2_node",
        "parameters": [
          {
            "name": "node_id",
            "in": "path",
            "required": true,
            "description": "Kennung der Node (32 Zeichen)",
            "schema": {
              "type": "string"
            },
            "example": "nz5EcCnDHtOXEprvZMXP9L8u58wguMKE"
          },
          {
            "$ref": "#/components/parameters/ActAs"
          }
        ],
        "responses": {
          "200": {
            "description": "Erfolgreich",
            "content": {
              "application/json": {
                "schema": {
                  "type": "object",
                  "properties": {
                    "data": {
                      "$ref": "#/components/schemas/Hc2Node"
                    }
                  },
                  "required": [
                    "data"
                  ]
                }
              }
            }
          },
          "401": {
            "$ref": "#/components/responses/E401"
          },
          "404": {
            "$ref": "#/components/responses/E404"
          },
          "422": {
            "$ref": "#/components/responses/E422"
          },
          "429": {
            "$ref": "#/components/responses/E429"
          }
        },
        "requestBody": {
          "required": true,
          "content": {
            "application/json": {
              "schema": {
                "type": "object",
                "properties": {
                  "name": {
                    "type": "string",
                    "description": ""
                  },
                  "location": {
                    "type": "string",
                    "description": ""
                  },
                  "remote_mgmt": {
                    "type": "string",
                    "description": "off, read, full"
                  }
                }
              }
            }
          }
        }
      },
      "delete": {
        "tags": [
          "Nodes"
        ],
        "summary": "Node trennen (Token widerrufen)",
        "operationId": "delete_hc2_node",
        "parameters": [
          {
            "name": "node_id",
            "in": "path",
            "required": true,
            "description": "Kennung der Node (32 Zeichen)",
            "schema": {
              "type": "string"
            },
            "example": "nz5EcCnDHtOXEprvZMXP9L8u58wguMKE"
          },
          {
            "$ref": "#/components/parameters/ActAs"
          }
        ],
        "responses": {
          "200": {
            "description": "Erfolgreich",
            "content": {
              "application/json": {
                "schema": {
                  "type": "object",
                  "properties": {
                    "data": {
                      "type": "object",
                      "properties": {
                        "unlinked": {
                          "type": "boolean",
                          "description": ""
                        },
                        "checks_kept_online": {
                          "type": "integer",
                          "description": ""
                        },
                        "checks_deleted": {
                          "type": "integer",
                          "description": ""
                        }
                      }
                    }
                  },
                  "required": [
                    "data"
                  ]
                }
              }
            }
          },
          "401": {
            "$ref": "#/components/responses/E401"
          },
          "404": {
            "$ref": "#/components/responses/E404"
          },
          "429": {
            "$ref": "#/components/responses/E429"
          }
        },
        "description": "Die Node läuft danach standalone weiter.",
        "requestBody": {
          "required": true,
          "content": {
            "application/json": {
              "schema": {
                "type": "object",
                "properties": {
                  "keep_checks": {
                    "type": "boolean",
                    "description": "Checks mit öffentlichem Ziel als Online-Checks weiterführen (Standard true)"
                  }
                }
              }
            }
          }
        }
      }
    },
    "/hc2/nodes/{node_id}/commands": {
      "get": {
        "tags": [
          "Nodes"
        ],
        "summary": "Letzte Befehle",
        "operationId": "get_hc2_node_commands",
        "parameters": [
          {
            "name": "node_id",
            "in": "path",
            "required": true,
            "description": "Kennung der Node (32 Zeichen)",
            "schema": {
              "type": "string"
            },
            "example": "nz5EcCnDHtOXEprvZMXP9L8u58wguMKE"
          },
          {
            "name": "limit",
            "in": "query",
            "required": false,
            "description": "höchstens 200",
            "schema": {
              "type": "integer"
            }
          },
          {
            "$ref": "#/components/parameters/ActAs"
          }
        ],
        "responses": {
          "200": {
            "description": "Erfolgreich",
            "content": {
              "application/json": {
                "schema": {
                  "type": "object",
                  "properties": {
                    "data": {
                      "type": "array",
                      "items": {
                        "$ref": "#/components/schemas/Hc2Command"
                      }
                    }
                  },
                  "required": [
                    "data"
                  ]
                }
              }
            }
          },
          "401": {
            "$ref": "#/components/responses/E401"
          },
          "404": {
            "$ref": "#/components/responses/E404"
          },
          "429": {
            "$ref": "#/components/responses/E429"
          }
        }
      },
      "post": {
        "tags": [
          "Nodes"
        ],
        "summary": "Befehl an die Node",
        "operationId": "post_hc2_node_commands",
        "parameters": [
          {
            "name": "node_id",
            "in": "path",
            "required": true,
            "description": "Kennung der Node (32 Zeichen)",
            "schema": {
              "type": "string"
            },
            "example": "nz5EcCnDHtOXEprvZMXP9L8u58wguMKE"
          },
          {
            "$ref": "#/components/parameters/ActAs"
          }
        ],
        "responses": {
          "202": {
            "description": "Angenommen",
            "content": {
              "application/json": {
                "schema": {
                  "type": "object",
                  "properties": {
                    "data": {
                      "$ref": "#/components/schemas/Hc2Command"
                    }
                  },
                  "required": [
                    "data"
                  ]
                }
              }
            }
          },
          "401": {
            "$ref": "#/components/responses/E401"
          },
          "404": {
            "$ref": "#/components/responses/E404"
          },
          "422": {
            "$ref": "#/components/responses/E422"
          },
          "429": {
            "$ref": "#/components/responses/E429"
          }
        },
        "description": "Die Node nimmt Befehle nur an, wenn ihre Fernverwaltung es erlaubt.",
        "requestBody": {
          "required": true,
          "content": {
            "application/json": {
              "schema": {
                "type": "object",
                "properties": {
                  "name": {
                    "type": "string",
                    "description": "run_check, repair, pause, resume, resolve_conflict",
                    "example": "run_check"
                  },
                  "args": {
                    "type": "object",
                    "properties": {
                      "token": {
                        "type": "string",
                        "description": "Check-Token (run_check, pause, resume)"
                      },
                      "id": {
                        "type": "integer",
                        "description": "Konflikt-Nr. (resolve_conflict)"
                      },
                      "keep": {
                        "type": "string",
                        "description": "server|local (resolve_conflict)"
                      }
                    }
                  }
                },
                "required": [
                  "name"
                ]
              }
            }
          }
        }
      }
    },
    "/hc2/channels/{id}/send": {
      "post": {
        "tags": [
          "Healthchecks 2.0"
        ],
        "summary": "Nachricht über einen ipv64-Kanal senden",
        "description": "Verschickt eine Nachricht über einen verifizierten, aktiven ipv64-Kanal (ipv64_mail, ipv64_sms, app) direkt, ohne hub, z. B. für Meldungen der Node-Module (DynDNS). Der Empfänger kommt nur aus dem Kanal. Mails werden im ipv64-Design gesetzt. SMS zählen gegen das Tageslimit des Tarifs. Rate-Limit: 30 auf einmal, danach 30 je Stunde, höchstens 200 je Tag. Eine event_id, die innerhalb von 24 h schon erfolgreich verschickt wurde, wird nicht erneut gesendet (duplicate=true).",
        "operationId": "post_hc2_channel_send",
        "parameters": [
          {
            "name": "id",
            "in": "path",
            "required": true,
            "description": "Nummer",
            "schema": {
              "type": "integer"
            },
            "example": 7
          },
          {
            "$ref": "#/components/parameters/ActAs"
          }
        ],
        "requestBody": {
          "required": true,
          "content": {
            "application/json": {
              "schema": {
                "type": "object",
                "required": [
                  "subject",
                  "text"
                ],
                "properties": {
                  "subject": {
                    "type": "string",
                    "maxLength": 200,
                    "example": "DynDNS: neue IPv4-Adresse"
                  },
                  "text": {
                    "type": "string",
                    "maxLength": 4000,
                    "description": "Text; Zeilen \"Bezeichnung: Wert\" erscheinen in der Mail als Tabelle",
                    "example": "Domain: home.ipv64.net\nAlt: 192.0.2.1\nNeu: 192.0.2.7"
                  },
                  "kind": {
                    "type": "string",
                    "maxLength": 40,
                    "description": "Art der Meldung, z. B. dyndns_ip, dyndns_fail (steuert Farbe und Status der Mail)",
                    "example": "dyndns_ip"
                  },
                  "event_id": {
                    "type": "string",
                    "maxLength": 100,
                    "description": "Kennung zum Erkennen doppelter Meldungen (24 h)"
                  },
                  "source": {
                    "type": "string",
                    "maxLength": 60,
                    "example": "node64"
                  }
                }
              }
            }
          }
        },
        "responses": {
          "200": {
            "description": "Verschickt oder schon verschickt",
            "content": {
              "application/json": {
                "schema": {
                  "type": "object",
                  "properties": {
                    "data": {
                      "type": "object",
                      "properties": {
                        "sent": {
                          "type": "boolean"
                        },
                        "duplicate": {
                          "type": "boolean"
                        },
                        "sms_left": {
                          "type": "integer",
                          "nullable": true,
                          "description": "SMS heute noch übrig (nur bei SMS-Kanälen, null = unbegrenzt)"
                        }
                      }
                    }
                  }
                }
              }
            }
          },
          "404": {
            "description": "Kanal nicht gefunden (detail \"Channel not found.\")",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Problem"
                }
              }
            }
          },
          "409": {
            "description": "Kanal nicht verifiziert oder deaktiviert (not_verified, disabled)",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Problem"
                }
              }
            }
          },
          "422": {
            "description": "Kein ipv64-Kanal oder ungültige Eingaben (not_server_channel, invalid_number)",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Problem"
                }
              }
            }
          },
          "429": {
            "description": "SMS-Tageslimit oder Rate-Limit erreicht (sms_limit, rate_limited)",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Problem"
                }
              }
            }
          },
          "502": {
            "description": "Zustellung fehlgeschlagen (delivery_failed)",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Problem"
                }
              }
            }
          }
        }
      }
    },
    "/honeypot/reports": {
      "post": {
        "tags": [
          "Honeypot64"
        ],
        "summary": "Meldung eines Sensors annehmen",
        "operationId": "post_honeypot_reports",
        "description": "Nur für Node64 (Modul honeypot bzw. NODE64_MODE=honeypot). Body JSON, optional mit Content-Encoding: gzip, höchstens 2 MiB entpackt. report_id = <sensor.id>-<period.start unix>; schon bekannte report_id: 200 mit duplicate. Höchstens eine Meldung je Sensor in 2 Minuten (429 mit Retry-After), neue Sensoren je Account höchstens 5 (Klasse Standard) bzw. 25 (andere Klassen), es zählen Sensoren mit Meldung in den letzten 30 Tagen (sonst 403 sensor_limit). Ein Sensor wechselt den Account (anderer Key, anonym ↔ Key) nur aus dem Netz seiner letzten Meldung (IPv4-Adresse bzw. IPv6-/64) oder nach 24 h ohne Meldung (sonst 403 sensor_owned mit Retry-After). Quellen mit privater/reservierter IP, der IP eines eigenen Sensors oder unbekannter Art/Dienst werden verworfen und in rejected gezählt. 400/413/422: nicht wiederholen; 401/403: Key bzw. Sensor prüfen; 429/5xx: später erneut.",
        "parameters": [
          {
            "$ref": "#/components/parameters/ActAs"
          },
          {
            "name": "Content-Encoding",
            "in": "header",
            "required": false,
            "schema": {
              "type": "string",
              "enum": [
                "gzip",
                "identity"
              ]
            }
          }
        ],
        "requestBody": {
          "required": true,
          "content": {
            "application/json": {
              "schema": {
                "$ref": "#/components/schemas/HoneypotReport"
              }
            }
          }
        },
        "responses": {
          "202": {
            "description": "Angenommen",
            "content": {
              "application/json": {
                "schema": {
                  "type": "object",
                  "properties": {
                    "data": {
                      "$ref": "#/components/schemas/HoneypotReportAccepted"
                    }
                  },
                  "required": [
                    "data"
                  ]
                }
              }
            }
          },
          "200": {
            "description": "report_id schon bekannt (zählt als Erfolg)",
            "content": {
              "application/json": {
                "schema": {
                  "type": "object",
                  "properties": {
                    "data": {
                      "type": "object",
                      "properties": {
                        "duplicate": {
                          "type": "boolean",
                          "const": true
                        },
                        "report_id": {
                          "type": "string"
                        }
                      }
                    }
                  },
                  "required": [
                    "data"
                  ]
                }
              }
            }
          },
          "400": {
            "$ref": "#/components/responses/E400"
          },
          "401": {
            "$ref": "#/components/responses/E401"
          },
          "403": {
            "$ref": "#/components/responses/E403"
          },
          "413": {
            "description": "Body größer als 2 MiB (auch entpackt), mehr als 5000 Quellen oder 500 Proben je Art",
            "content": {
              "application/problem+json": {
                "schema": {
                  "$ref": "#/components/schemas/Problem"
                }
              }
            }
          },
          "415": {
            "$ref": "#/components/responses/E415"
          },
          "422": {
            "$ref": "#/components/responses/E422"
          },
          "429": {
            "$ref": "#/components/responses/E429"
          }
        }
      }
    },
    "/honeypot/sensors": {
      "get": {
        "tags": [
          "Honeypot64"
        ],
        "summary": "Eigene Sensoren",
        "operationId": "get_honeypot_sensors",
        "description": "Sensoren des Accounts mit Beitrag 24 h / 7 d. Die IP eines Sensors wird nie ausgegeben.",
        "parameters": [
          {
            "$ref": "#/components/parameters/ActAs"
          }
        ],
        "responses": {
          "200": {
            "description": "Erfolgreich",
            "content": {
              "application/json": {
                "schema": {
                  "type": "object",
                  "properties": {
                    "data": {
                      "type": "array",
                      "items": {
                        "$ref": "#/components/schemas/HoneypotSensor"
                      }
                    }
                  },
                  "required": [
                    "data"
                  ]
                }
              }
            }
          },
          "401": {
            "$ref": "#/components/responses/E401"
          },
          "429": {
            "$ref": "#/components/responses/E429"
          }
        }
      }
    },
    "/honeypot/list-token": {
      "get": {
        "tags": [
          "Honeypot64"
        ],
        "summary": "Listen-Token für den Live-Stand der v64 Blocklist",
        "operationId": "get_honeypot_list_token",
        "description": "Persönliches Listen-Token (wie unter /honeypot/token.php). Fehlt es, wird es angelegt; ein vorhandenes bleibt. Abruf dann über base + Dateiname (z. B. ipv64_blocklist_v64.txt). live = Berechtigung jetzt (Klasse außer Standard oder Beitragende/r); ohne Berechtigung liefert die Live-Adresse den Tagesstand (Kopfzeile X-IPv64-List: daily). Token geheim halten.",
        "parameters": [
          {
            "$ref": "#/components/parameters/ActAs"
          }
        ],
        "responses": {
          "200": {
            "description": "Erfolgreich",
            "content": {
              "application/json": {
                "schema": {
                  "type": "object",
                  "properties": {
                    "data": {
                      "type": "object",
                      "properties": {
                        "token": {
                          "type": "string",
                          "pattern": "^[A-Za-z0-9]{32}$"
                        },
                        "live": {
                          "type": "boolean"
                        },
                        "base": {
                          "type": "string",
                          "example": "https://ipv64.net/blocklists/live/<token>/"
                        }
                      },
                      "required": [
                        "token",
                        "live",
                        "base"
                      ]
                    }
                  },
                  "required": [
                    "data"
                  ]
                }
              }
            }
          },
          "401": {
            "$ref": "#/components/responses/E401"
          },
          "429": {
            "$ref": "#/components/responses/E429"
          }
        }
      }
    },
    "/honeypot/stats": {
      "get": {
        "tags": [
          "Honeypot64"
        ],
        "summary": "Eigener Beitrag",
        "operationId": "get_honeypot_stats",
        "description": "Ereignisse und verschiedene Quell-IPs 24 h / 7 d, Top-Arten und Top-Ports (7 Tage), Verlauf je Tag (UTC, 7 Tage).",
        "parameters": [
          {
            "$ref": "#/components/parameters/ActAs"
          }
        ],
        "responses": {
          "200": {
            "description": "Erfolgreich",
            "content": {
              "application/json": {
                "schema": {
                  "type": "object",
                  "properties": {
                    "data": {
                      "$ref": "#/components/schemas/HoneypotStats"
                    }
                  },
                  "required": [
                    "data"
                  ]
                }
              }
            }
          },
          "401": {
            "$ref": "#/components/responses/E401"
          },
          "429": {
            "$ref": "#/components/responses/E429"
          }
        }
      }
    },
    "/threat/ip/{ip}": {
      "get": {
        "tags": [
          "Threat"
        ],
        "summary": "IP-Auskunft",
        "operationId": "get_threat_ip",
        "description": "„Warum ist diese IP gelistet?“ Gelistet ja/nein, Status (auch Freigabe), Vertrauenswert, Listen, Arten, Ports (nur von mindestens 2 Accounts gemeldet), erste/letzte Sichtung (Tag, UTC), Anzahl meldender Accounts, Land/ASN (falls vorhanden, sonst null). Für nicht gelistete IPs keine Einzelheiten. Freigaben wirken hier sofort, in den Listen mit der nächsten Bewertung. Ein angegebener, aber ungültiger API-Key ergibt 401.",
        "parameters": [
          {
            "name": "ip",
            "in": "path",
            "required": true,
            "description": "Genau eine öffentliche IPv4- oder IPv6-Adresse (kein Netz)",
            "schema": {
              "type": "string",
              "example": "203.0.113.7"
            }
          }
        ],
        "responses": {
          "200": {
            "description": "Erfolgreich",
            "content": {
              "application/json": {
                "schema": {
                  "type": "object",
                  "properties": {
                    "data": {
                      "$ref": "#/components/schemas/ThreatIp"
                    }
                  },
                  "required": [
                    "data"
                  ]
                }
              }
            }
          },
          "401": {
            "$ref": "#/components/responses/E401"
          },
          "422": {
            "$ref": "#/components/responses/E422"
          },
          "429": {
            "$ref": "#/components/responses/E429"
          }
        },
        "security": [
          {},
          {
            "bearerAuth": []
          },
          {
            "apiKeyHeader": []
          }
        ]
      }
    },
    "/threat/stats": {
      "get": {
        "tags": [
          "Threat"
        ],
        "summary": "Statistik Honeypot64 (Überblick)",
        "operationId": "get_threat_stats",
        "description": "Öffentlicher Überblick wie auf https://ipv64.net/honeypot/stats.php: aktive Sensoren, Angriffe 24 h, Verlauf 30 Tage, Top 10 Ports und Arten, Größe der Listen, Top 10 Benutzernamen, Passwörter, Pfade und User-Agents, Top 10 Herkunftsländer der v64 Blocklist (top.countries). Ranglisten enthalten nur Einträge, die mindestens threshold.accounts unabhängige Accounts in den letzten 30 Tagen gemeldet haben (bereinigt: keine E-Mail-Adressen, Steuerzeichen, zufälligen Zeichenketten). Antwort aus dem Cache, höchstens alle 10 Minuten neu berechnet. Limit wie /threat/ip: ohne API-Key je Client-IP 10 sofort, dann 1 je Minute; mit API-Key je Account 120 sofort, dann 2 je Sekunde. Ein angegebener, aber ungültiger API-Key ergibt 401.",
        "responses": {
          "200": {
            "description": "Erfolgreich",
            "content": {
              "application/json": {
                "schema": {
                  "type": "object",
                  "properties": {
                    "data": {
                      "$ref": "#/components/schemas/ThreatStats"
                    }
                  },
                  "required": [
                    "data"
                  ]
                }
              }
            }
          },
          "401": {
            "$ref": "#/components/responses/E401"
          },
          "429": {
            "$ref": "#/components/responses/E429"
          },
          "503": {
            "description": "Statistik gerade nicht verfügbar",
            "content": {
              "application/problem+json": {
                "schema": {
                  "$ref": "#/components/schemas/Problem"
                }
              }
            }
          }
        },
        "security": [
          {},
          {
            "bearerAuth": []
          },
          {
            "apiKeyHeader": []
          }
        ]
      }
    },
    "/threat/watch": {
      "get": {
        "tags": [
          "Threat"
        ],
        "summary": "Frühwarnung: Netze und Limits",
        "operationId": "get_threat_watch",
        "description": "Frühwarnung für eigene Netze (Honeypot64): Limits deiner Klasse, eingetragene Netze und die automatisch überwachten DynDNS-IPs des Accounts (aktuelle öffentliche A/AAAA-Einträge deiner Domains). Limit wie GET /threat/ip mit API-Key (eigener Topf).",
        "parameters": [
          {
            "$ref": "#/components/parameters/ActAs"
          }
        ],
        "responses": {
          "200": {
            "description": "Erfolgreich",
            "content": {
              "application/json": {
                "schema": {
                  "type": "object",
                  "properties": {
                    "data": {
                      "$ref": "#/components/schemas/ThreatWatch"
                    }
                  },
                  "required": [
                    "data"
                  ]
                }
              }
            }
          },
          "401": {
            "$ref": "#/components/responses/E401"
          },
          "429": {
            "$ref": "#/components/responses/E429"
          }
        }
      },
      "post": {
        "tags": [
          "Threat"
        ],
        "summary": "Frühwarnung: Netz eintragen",
        "operationId": "post_threat_watch",
        "description": "Trägt ein öffentliches Netz (CIDR) oder eine einzelne IP ein; Host-Bits werden entfernt (203.0.113.7/24 → 203.0.113.0/24). Ohne Nachweis (verified false, setzt nur ipv64) gibt es Treffer nur für IPs, die auf der v64 Blocklist stehen. Fehler: 422 invalid_cidr, prefix_too_large (größer als limits.min_prefix_v4/v6), not_public; 409 duplicate; 403 limit_reached (limits.max erreicht).",
        "parameters": [
          {
            "$ref": "#/components/parameters/ActAs"
          }
        ],
        "requestBody": {
          "required": true,
          "content": {
            "application/json": {
              "schema": {
                "type": "object",
                "properties": {
                  "cidr": {
                    "type": "string",
                    "description": "Netz in CIDR-Form oder einzelne IP (IPv4 bis /16, IPv6 bis /32)",
                    "example": "203.0.113.0/24"
                  },
                  "label": {
                    "type": "string",
                    "maxLength": 100,
                    "description": "Bezeichnung (optional)",
                    "example": "Büro"
                  }
                },
                "required": [
                  "cidr"
                ]
              },
              "example": {
                "cidr": "203.0.113.0/24",
                "label": "Büro"
              }
            }
          }
        },
        "responses": {
          "201": {
            "description": "Angelegt",
            "content": {
              "application/json": {
                "schema": {
                  "type": "object",
                  "properties": {
                    "data": {
                      "$ref": "#/components/schemas/ThreatWatchNetwork"
                    }
                  },
                  "required": [
                    "data"
                  ]
                }
              }
            }
          },
          "401": {
            "$ref": "#/components/responses/E401"
          },
          "403": {
            "$ref": "#/components/responses/E403"
          },
          "409": {
            "$ref": "#/components/responses/E409"
          },
          "422": {
            "$ref": "#/components/responses/E422"
          },
          "429": {
            "$ref": "#/components/responses/E429"
          }
        }
      }
    },
    "/threat/watch/{id}": {
      "delete": {
        "tags": [
          "Threat"
        ],
        "summary": "Frühwarnung: Netz löschen",
        "operationId": "delete_threat_watch_id",
        "description": "Entfernt ein eigenes Netz. Frühere Treffer bleiben (mit network_id) erhalten.",
        "parameters": [
          {
            "name": "id",
            "in": "path",
            "required": true,
            "description": "ID des Netzes",
            "schema": {
              "type": "string"
            },
            "example": "12"
          },
          {
            "$ref": "#/components/parameters/ActAs"
          }
        ],
        "responses": {
          "204": {
            "description": "Erfolgreich, ohne Inhalt"
          },
          "401": {
            "$ref": "#/components/responses/E401"
          },
          "404": {
            "$ref": "#/components/responses/E404"
          },
          "429": {
            "$ref": "#/components/responses/E429"
          }
        }
      }
    },
    "/threat/watch/alerts": {
      "get": {
        "tags": [
          "Threat"
        ],
        "summary": "Frühwarnung: Treffer",
        "operationId": "get_threat_watch_alerts",
        "description": "Treffer der Frühwarnung: eine IP aus einem eigenen Netz bzw. eine DynDNS-IP des Accounts ist bei der Bewertung (alle 30 Minuten) als Angreifer aufgefallen. Netze ohne Nachweis nur mit gelisteten IPs, DynDNS-IPs mit jeder Sichtung. Dieselbe IP höchstens einmal je 24 h, außer sie wird neu gelistet. Älteste zuerst (created_at, id), höchstens 100 je Abruf. next ist ein Cursor (für den Client undurchsichtig, derzeit \"<RFC 3339>_<id>\"): unverändert als since des nächsten Abrufs verwenden; doppelte IDs verwerfen. Ohne neue Treffer ist next der übergebene Stand, bei leerem since die aktuelle Zeit (minus 5 Minuten). Treffer werden 90 Tage aufgehoben.",
        "parameters": [
          {
            "name": "since",
            "in": "query",
            "required": false,
            "description": "Cursor aus next der vorigen Antwort ((created_at, id) danach) oder ein RFC-3339-Zeitpunkt (created_at danach); ohne: alle",
            "schema": {
              "type": "string"
            },
            "example": "2026-10-20T12:12:03Z_42"
          },
          {
            "$ref": "#/components/parameters/ActAs"
          }
        ],
        "responses": {
          "200": {
            "description": "Erfolgreich",
            "content": {
              "application/json": {
                "schema": {
                  "type": "object",
                  "properties": {
                    "data": {
                      "$ref": "#/components/schemas/ThreatWatchAlerts"
                    }
                  },
                  "required": [
                    "data"
                  ]
                }
              }
            }
          },
          "400": {
            "$ref": "#/components/responses/E400"
          },
          "401": {
            "$ref": "#/components/responses/E401"
          },
          "429": {
            "$ref": "#/components/responses/E429"
          }
        }
      }
    },
    "/threat/passwords/range/{prefix}": {
      "get": {
        "tags": [
          "Threat"
        ],
        "summary": "Passwortprüfung mit k-Anonymität",
        "operationId": "get_threat_passwords_range",
        "description": "Wie die Range-API von Have I Been Pwned: SHA-1 des Passworts lokal berechnen, nur die ersten 5 Hex-Zeichen schicken, die Antwort lokal vergleichen. Antwort text/plain, je Zeile \"<restliche 35 Hex-Zeichen, groß>:<Anzahl>\" (CRLF, sortiert) für alle Passwörter, die Angreifer in den letzten 365 Tagen an Honeypot64-Sensoren probiert haben und die mindestens 2 bzw. 3 unabhängige Accounts gemeldet haben (Schwelle wie die Ranglisten). Immer mindestens 64 Zeilen: fehlende werden mit Zufallszeilen mit Anzahl 0 aufgefüllt, damit die Größe der Antwort nichts verrät. Cache 1 h. Limit wie /threat/ip: ohne API-Key je Client-IP 10 sofort, dann 1 je Minute; mit API-Key je Account 120 sofort, dann 2 je Sekunde. Seite für Menschen: https://ipv64.net/honeypot/password.php",
        "parameters": [
          {
            "name": "prefix",
            "in": "path",
            "required": true,
            "description": "Die ersten 5 Hex-Zeichen von SHA-1(Passwort), groß oder klein",
            "schema": {
              "type": "string",
              "pattern": "^[0-9A-Fa-f]{5}$",
              "example": "5BAA6"
            }
          }
        ],
        "responses": {
          "200": {
            "description": "Hash-Enden mit Anzahl (Anzahl 0 = Füllzeile)",
            "content": {
              "text/plain": {
                "schema": {
                  "type": "string"
                },
                "example": "1E4C9B93F3F0682250B6CF8331B7EE68FD8:4211\r\n2F1A0C4B7E9D3A5C6B8E0F1D2C3B4A5968F:0\r\n"
              }
            }
          },
          "401": {
            "$ref": "#/components/responses/E401"
          },
          "422": {
            "$ref": "#/components/responses/E422"
          },
          "429": {
            "$ref": "#/components/responses/E429"
          },
          "503": {
            "description": "Prüfung gerade nicht verfügbar",
            "content": {
              "application/problem+json": {
                "schema": {
                  "$ref": "#/components/schemas/Problem"
                }
              }
            }
          }
        },
        "security": [
          {},
          {
            "bearerAuth": []
          },
          {
            "apiKeyHeader": []
          }
        ]
      }
    },
    "/threat/feed": {
      "get": {
        "tags": [
          "Threat"
        ],
        "summary": "Änderungs-Feed der v64 Blocklist",
        "operationId": "get_threat_feed",
        "description": "Änderungen der v64 Blocklist und ihrer Teillisten (Live-Stand, nach jeder Bewertung alle 30 Minuten) nach dem Cursor since, älteste zuerst, höchstens 10 000 je Abruf (more = true: sofort mit next weiter). Vorgehen: einmal die Live-Liste vollständig laden und /threat/feed ohne since abrufen (liefert nur den aktuellen Cursor), danach regelmäßig mit since = next. ETag/If-None-Match: ohne Änderungen 304. Änderungen bleiben 30 Tage; ist ein Cursor älter und sind Änderungen danach schon gelöscht, kommt 410 (Liste neu laden, ohne since beginnen). Für alle Klassen außer Standard und für Beitragende (ein Honeypot64-Sensor des Accounts hat in den letzten 7 Tagen gemeldet), sonst 403 feed_not_available. Limit je Account 120 sofort, dann 2 je Sekunde.",
        "parameters": [
          {
            "name": "since",
            "in": "query",
            "required": false,
            "description": "Cursor aus next der vorigen Antwort; ohne: aktueller Cursor ohne Einträge",
            "schema": {
              "type": "string"
            },
            "example": "AAAAAGkGJcwAAAAAAAAAKg"
          },
          {
            "name": "If-None-Match",
            "in": "header",
            "required": false,
            "description": "ETag der vorigen Antwort mit demselben since",
            "schema": {
              "type": "string"
            }
          },
          {
            "$ref": "#/components/parameters/ActAs"
          }
        ],
        "responses": {
          "200": {
            "description": "Erfolgreich (Kopfzeile ETag)",
            "content": {
              "application/json": {
                "schema": {
                  "type": "object",
                  "properties": {
                    "data": {
                      "$ref": "#/components/schemas/ThreatFeed"
                    }
                  },
                  "required": [
                    "data"
                  ]
                }
              }
            }
          },
          "304": {
            "description": "Keine Änderungen seit dem Abruf mit diesem ETag"
          },
          "400": {
            "$ref": "#/components/responses/E400"
          },
          "401": {
            "$ref": "#/components/responses/E401"
          },
          "403": {
            "$ref": "#/components/responses/E403"
          },
          "410": {
            "description": "Cursor abgelaufen (cursor_expired): Live-Liste neu laden und ohne since beginnen",
            "content": {
              "application/problem+json": {
                "schema": {
                  "$ref": "#/components/schemas/Problem"
                }
              }
            }
          },
          "429": {
            "$ref": "#/components/responses/E429"
          },
          "503": {
            "description": "Feed gerade nicht verfügbar",
            "content": {
              "application/problem+json": {
                "schema": {
                  "$ref": "#/components/schemas/Problem"
                }
              }
            }
          }
        }
      }
    },
    "/hc2/channels/{id}/verify/send": {
      "post": {
        "tags": [
          "Healthchecks 2.0"
        ],
        "summary": "Bestätigungscode senden",
        "description": "Schickt einen 6-stelligen Code an die E-Mail-Adresse bzw. Handynummer des Kanals (15 Minuten gültig, höchstens 5 je Stunde). Schon bestätigte Kanäle: verified true, nichts gesendet.",
        "parameters": [
          {
            "name": "id",
            "in": "path",
            "required": true,
            "description": "Nummer",
            "schema": {
              "type": "integer"
            },
            "example": 7
          },
          {
            "$ref": "#/components/parameters/ActAs"
          }
        ],
        "responses": {
          "200": {
            "description": "OK"
          },
          "404": {
            "description": "Channel not found"
          },
          "429": {
            "description": "Rate limited"
          }
        }
      }
    },
    "/hc2/channels/{id}/verify": {
      "post": {
        "tags": [
          "Healthchecks 2.0"
        ],
        "summary": "Kanal mit Code bestätigen",
        "description": "Bestätigt den Kanal mit dem Code aus /verify/send; danach stellt ipv64 über ihn zu. Falscher oder abgelaufener Code: 422 invalid_code.",
        "parameters": [
          {
            "name": "id",
            "in": "path",
            "required": true,
            "description": "Nummer",
            "schema": {
              "type": "integer"
            },
            "example": 7
          },
          {
            "$ref": "#/components/parameters/ActAs"
          }
        ],
        "responses": {
          "200": {
            "description": "OK"
          },
          "404": {
            "description": "Channel not found"
          },
          "429": {
            "description": "Rate limited"
          }
        },
        "requestBody": {
          "required": true,
          "content": {
            "application/json": {
              "schema": {
                "type": "object",
                "required": [
                  "code"
                ],
                "properties": {
                  "code": {
                    "type": "string",
                    "example": "123456"
                  }
                }
              }
            }
          }
        }
      }
    },
    "/hc2/status-pages": {
      "get": {
        "tags": [
          "Healthchecks 2.0"
        ],
        "summary": "Statusseiten",
        "operationId": "get_hc2_status_pages",
        "parameters": [
          {
            "$ref": "#/components/parameters/ActAs"
          }
        ],
        "responses": {
          "200": {
            "description": "Erfolgreich",
            "content": {
              "application/json": {
                "schema": {
                  "type": "object",
                  "properties": {
                    "data": {
                      "type": "array",
                      "items": {
                        "$ref": "#/components/schemas/Hc2StatusPage"
                      }
                    }
                  },
                  "required": [
                    "data"
                  ]
                }
              }
            }
          },
          "401": {
            "$ref": "#/components/responses/E401"
          },
          "429": {
            "$ref": "#/components/responses/E429"
          }
        },
        "description": "Statusseiten der Healthchecks 2.0 im Portal (getrennt von den Statusseiten in Node64 und den alten Statusseiten unter /status-pages)."
      },
      "post": {
        "tags": [
          "Healthchecks 2.0"
        ],
        "summary": "Statusseite anlegen",
        "operationId": "post_hc2_status_pages",
        "parameters": [
          {
            "$ref": "#/components/parameters/ActAs"
          }
        ],
        "responses": {
          "201": {
            "description": "Angelegt",
            "content": {
              "application/json": {
                "schema": {
                  "type": "object",
                  "properties": {
                    "data": {
                      "$ref": "#/components/schemas/Hc2StatusPage"
                    }
                  },
                  "required": [
                    "data"
                  ]
                }
              }
            }
          },
          "401": {
            "$ref": "#/components/responses/E401"
          },
          "409": {
            "$ref": "#/components/responses/E409"
          },
          "422": {
            "$ref": "#/components/responses/E422"
          },
          "429": {
            "$ref": "#/components/responses/E429"
          }
        },
        "description": "Höchstens 10 Statusseiten je Account (409 limit_reached); vergebene Adresse 409 slug_taken.",
        "requestBody": {
          "required": true,
          "content": {
            "application/json": {
              "schema": {
                "$ref": "#/components/schemas/Hc2StatusPageInput"
              }
            }
          }
        }
      }
    },
    "/hc2/status-pages/{id}": {
      "get": {
        "tags": [
          "Healthchecks 2.0"
        ],
        "summary": "Statusseite",
        "operationId": "get_hc2_status_page",
        "parameters": [
          {
            "name": "id",
            "in": "path",
            "required": true,
            "schema": {
              "type": "integer"
            }
          },
          {
            "$ref": "#/components/parameters/ActAs"
          }
        ],
        "responses": {
          "200": {
            "description": "Erfolgreich",
            "content": {
              "application/json": {
                "schema": {
                  "type": "object",
                  "properties": {
                    "data": {
                      "$ref": "#/components/schemas/Hc2StatusPage"
                    }
                  },
                  "required": [
                    "data"
                  ]
                }
              }
            }
          },
          "401": {
            "$ref": "#/components/responses/E401"
          },
          "404": {
            "$ref": "#/components/responses/E404"
          },
          "429": {
            "$ref": "#/components/responses/E429"
          }
        }
      },
      "patch": {
        "tags": [
          "Healthchecks 2.0"
        ],
        "summary": "Statusseite ändern",
        "operationId": "patch_hc2_status_page",
        "parameters": [
          {
            "name": "id",
            "in": "path",
            "required": true,
            "schema": {
              "type": "integer"
            }
          },
          {
            "$ref": "#/components/parameters/ActAs"
          }
        ],
        "responses": {
          "200": {
            "description": "Geändert",
            "content": {
              "application/json": {
                "schema": {
                  "type": "object",
                  "properties": {
                    "data": {
                      "$ref": "#/components/schemas/Hc2StatusPage"
                    }
                  },
                  "required": [
                    "data"
                  ]
                }
              }
            }
          },
          "401": {
            "$ref": "#/components/responses/E401"
          },
          "404": {
            "$ref": "#/components/responses/E404"
          },
          "409": {
            "$ref": "#/components/responses/E409"
          },
          "422": {
            "$ref": "#/components/responses/E422"
          },
          "429": {
            "$ref": "#/components/responses/E429"
          }
        },
        "requestBody": {
          "required": true,
          "content": {
            "application/json": {
              "schema": {
                "$ref": "#/components/schemas/Hc2StatusPageInput"
              }
            }
          }
        }
      },
      "delete": {
        "tags": [
          "Healthchecks 2.0"
        ],
        "summary": "Statusseite löschen",
        "operationId": "delete_hc2_status_page",
        "parameters": [
          {
            "name": "id",
            "in": "path",
            "required": true,
            "schema": {
              "type": "integer"
            }
          },
          {
            "$ref": "#/components/parameters/ActAs"
          }
        ],
        "responses": {
          "204": {
            "description": "Gelöscht (mit Ankündigungen; die Adresse wird frei)"
          },
          "401": {
            "$ref": "#/components/responses/E401"
          },
          "404": {
            "$ref": "#/components/responses/E404"
          },
          "429": {
            "$ref": "#/components/responses/E429"
          }
        }
      }
    },
    "/hc2/status-pages/{id}/notices": {
      "get": {
        "tags": [
          "Healthchecks 2.0"
        ],
        "summary": "Ankündigungen einer Statusseite",
        "operationId": "get_hc2_status_notices",
        "parameters": [
          {
            "name": "id",
            "in": "path",
            "required": true,
            "schema": {
              "type": "integer"
            }
          },
          {
            "$ref": "#/components/parameters/ActAs"
          }
        ],
        "responses": {
          "200": {
            "description": "Erfolgreich",
            "content": {
              "application/json": {
                "schema": {
                  "type": "object",
                  "properties": {
                    "data": {
                      "type": "array",
                      "items": {
                        "$ref": "#/components/schemas/Hc2StatusNotice"
                      }
                    }
                  },
                  "required": [
                    "data"
                  ]
                }
              }
            }
          },
          "401": {
            "$ref": "#/components/responses/E401"
          },
          "404": {
            "$ref": "#/components/responses/E404"
          },
          "429": {
            "$ref": "#/components/responses/E429"
          }
        }
      },
      "post": {
        "tags": [
          "Healthchecks 2.0"
        ],
        "summary": "Ankündigung veröffentlichen",
        "operationId": "post_hc2_status_notice",
        "parameters": [
          {
            "name": "id",
            "in": "path",
            "required": true,
            "schema": {
              "type": "integer"
            }
          },
          {
            "$ref": "#/components/parameters/ActAs"
          }
        ],
        "responses": {
          "201": {
            "description": "Angelegt",
            "content": {
              "application/json": {
                "schema": {
                  "type": "object",
                  "properties": {
                    "data": {
                      "$ref": "#/components/schemas/Hc2StatusNotice"
                    }
                  },
                  "required": [
                    "data"
                  ]
                }
              }
            }
          },
          "401": {
            "$ref": "#/components/responses/E401"
          },
          "404": {
            "$ref": "#/components/responses/E404"
          },
          "409": {
            "$ref": "#/components/responses/E409"
          },
          "422": {
            "$ref": "#/components/responses/E422"
          },
          "429": {
            "$ref": "#/components/responses/E429"
          }
        },
        "requestBody": {
          "required": true,
          "content": {
            "application/json": {
              "schema": {
                "$ref": "#/components/schemas/Hc2StatusNoticeInput"
              }
            }
          }
        }
      }
    },
    "/hc2/status-pages/{id}/notices/{nid}": {
      "patch": {
        "tags": [
          "Healthchecks 2.0"
        ],
        "summary": "Ankündigung ändern bzw. erledigen",
        "operationId": "patch_hc2_status_notice",
        "parameters": [
          {
            "name": "id",
            "in": "path",
            "required": true,
            "schema": {
              "type": "integer"
            }
          },
          {
            "name": "nid",
            "in": "path",
            "required": true,
            "schema": {
              "type": "integer"
            }
          },
          {
            "$ref": "#/components/parameters/ActAs"
          }
        ],
        "responses": {
          "200": {
            "description": "Geändert",
            "content": {
              "application/json": {
                "schema": {
                  "type": "object",
                  "properties": {
                    "data": {
                      "$ref": "#/components/schemas/Hc2StatusNotice"
                    }
                  },
                  "required": [
                    "data"
                  ]
                }
              }
            }
          },
          "401": {
            "$ref": "#/components/responses/E401"
          },
          "404": {
            "$ref": "#/components/responses/E404"
          },
          "422": {
            "$ref": "#/components/responses/E422"
          },
          "429": {
            "$ref": "#/components/responses/E429"
          }
        },
        "requestBody": {
          "required": true,
          "content": {
            "application/json": {
              "schema": {
                "$ref": "#/components/schemas/Hc2StatusNoticeInput"
              }
            }
          }
        }
      },
      "delete": {
        "tags": [
          "Healthchecks 2.0"
        ],
        "summary": "Ankündigung löschen",
        "operationId": "delete_hc2_status_notice",
        "parameters": [
          {
            "name": "id",
            "in": "path",
            "required": true,
            "schema": {
              "type": "integer"
            }
          },
          {
            "name": "nid",
            "in": "path",
            "required": true,
            "schema": {
              "type": "integer"
            }
          },
          {
            "$ref": "#/components/parameters/ActAs"
          }
        ],
        "responses": {
          "204": {
            "description": "Gelöscht"
          },
          "401": {
            "$ref": "#/components/responses/E401"
          },
          "404": {
            "$ref": "#/components/responses/E404"
          },
          "429": {
            "$ref": "#/components/responses/E429"
          }
        }
      }
    }
  },
  "components": {
    "securitySchemes": {
      "bearerAuth": {
        "type": "http",
        "scheme": "bearer",
        "description": "Authorization: Bearer <API-Key>"
      },
      "apiKeyHeader": {
        "type": "apiKey",
        "in": "header",
        "name": "X-API-Key",
        "description": "Alternativ der Header X-API-Key"
      }
    },
    "parameters": {
      "ActAs": {
        "name": "X-IPv64-Act-As",
        "in": "header",
        "required": false,
        "schema": {
          "type": "string"
        },
        "description": "Optional: Account-ID oder E-Mail eines Accounts, der dir per Account-Freigabe die Verwaltung erlaubt hat. Die Anfrage läuft dann in diesem Account."
      }
    },
    "responses": {
      "E400": {
        "description": "Ungültige Anfrage oder Parameter",
        "content": {
          "application/problem+json": {
            "schema": {
              "$ref": "#/components/schemas/Problem"
            },
            "example": {
              "type": "https://ipv64.net/api/v2/errors#invalid_parameter",
              "title": "Bad Request",
              "status": 400,
              "detail": "Query parameter 'limit' must be a positive integer.",
              "code": "invalid_parameter"
            }
          }
        }
      },
      "E401": {
        "description": "Kein oder ungültiger API-Key",
        "content": {
          "application/problem+json": {
            "schema": {
              "$ref": "#/components/schemas/Problem"
            },
            "example": {
              "type": "https://ipv64.net/api/v2/errors#invalid_token",
              "title": "Unauthorized",
              "status": 401,
              "detail": "The API key is invalid, expired or the account is not active.",
              "code": "invalid_token"
            }
          }
        }
      },
      "E403": {
        "description": "Limit des Pakets erreicht oder keine Berechtigung",
        "content": {
          "application/problem+json": {
            "schema": {
              "$ref": "#/components/schemas/Problem"
            },
            "example": {
              "type": "https://ipv64.net/api/v2/errors#limit_reached",
              "title": "Forbidden",
              "status": 403,
              "detail": "Your plan allows no further domains of this kind.",
              "code": "limit_reached"
            }
          }
        }
      },
      "E404": {
        "description": "Nicht gefunden",
        "content": {
          "application/problem+json": {
            "schema": {
              "$ref": "#/components/schemas/Problem"
            },
            "example": {
              "type": "https://ipv64.net/api/v2/errors#not_found",
              "title": "Not Found",
              "status": 404,
              "detail": "Unknown endpoint /beispiel.",
              "code": "not_found"
            }
          }
        }
      },
      "E409": {
        "description": "Konflikt mit dem aktuellen Zustand",
        "content": {
          "application/problem+json": {
            "schema": {
              "$ref": "#/components/schemas/Problem"
            },
            "example": {
              "type": "https://ipv64.net/api/v2/errors#failover_active",
              "title": "Conflict",
              "status": 409,
              "detail": "A DNS failover is active on this domain. Fall back first.",
              "code": "failover_active"
            }
          }
        }
      },
      "E413": {
        "description": "Body größer als 1 MB",
        "content": {
          "application/problem+json": {
            "schema": {
              "$ref": "#/components/schemas/Problem"
            },
            "example": {
              "type": "https://ipv64.net/api/v2/errors#payload_too_large",
              "title": "Payload Too Large",
              "status": 413,
              "detail": "Request body exceeds 1 MB.",
              "code": "payload_too_large"
            }
          }
        }
      },
      "E415": {
        "description": "Falscher Content-Type",
        "content": {
          "application/problem+json": {
            "schema": {
              "$ref": "#/components/schemas/Problem"
            },
            "example": {
              "type": "https://ipv64.net/api/v2/errors#unsupported_media_type",
              "title": "Unsupported Media Type",
              "status": 415,
              "detail": "Use Content-Type application/json.",
              "code": "unsupported_media_type"
            }
          }
        }
      },
      "E422": {
        "description": "Eingaben ungültig",
        "content": {
          "application/problem+json": {
            "schema": {
              "$ref": "#/components/schemas/Problem"
            },
            "example": {
              "type": "https://ipv64.net/api/v2/errors#missing_field",
              "title": "Unprocessable Content",
              "status": 422,
              "detail": "Field 'name' is required.",
              "code": "missing_field"
            }
          }
        }
      },
      "E429": {
        "description": "Zu viele Anfragen",
        "content": {
          "application/problem+json": {
            "schema": {
              "$ref": "#/components/schemas/Problem"
            },
            "example": {
              "type": "https://ipv64.net/api/v2/errors#rate_limited",
              "title": "Too Many Requests",
              "status": 429,
              "detail": "Too many requests (account). Retry in 3 seconds.",
              "code": "rate_limited"
            }
          }
        }
      }
    },
    "schemas": {
      "Problem": {
        "type": "object",
        "properties": {
          "type": {
            "type": "string",
            "description": "Link auf die Fehlerbeschreibung",
            "example": "https://ipv64.net/api/v2/errors#domain_not_found"
          },
          "title": {
            "type": "string",
            "description": "HTTP-Statustext",
            "example": "Not Found"
          },
          "status": {
            "type": "integer",
            "description": "HTTP-Status",
            "example": 404
          },
          "detail": {
            "type": "string",
            "description": "Verständliche Fehlermeldung",
            "example": "Domain 'beispiel.ipv64.de' not found."
          },
          "code": {
            "type": "string",
            "description": "Maschinenlesbarer Fehlercode",
            "example": "domain_not_found"
          },
          "field": {
            "type": "string",
            "description": "Betroffenes Eingabefeld, falls vorhanden",
            "example": "name"
          },
          "retry_after": {
            "type": "integer",
            "description": "Sekunden bis zum nächsten Versuch (bei 429 und manchen 409)",
            "example": 10
          }
        },
        "required": [
          "type",
          "title",
          "status",
          "detail",
          "code"
        ],
        "description": "Fehler nach RFC 9457 (application/problem+json)"
      },
      "Me": {
        "type": "object",
        "properties": {
          "id": {
            "type": "integer",
            "description": "Account-ID",
            "example": 522
          },
          "email": {
            "type": "string",
            "description": "E-Mail-Adresse",
            "example": "max@example.com"
          },
          "username": {
            "type": [
              "string",
              "null"
            ],
            "description": "Benutzername"
          },
          "registered_at": {
            "type": [
              "string",
              "null"
            ],
            "description": "Registriert seit",
            "format": "date-time",
            "example": "2026-10-10T12:00:00+02:00"
          },
          "last_login_at": {
            "type": [
              "string",
              "null"
            ],
            "description": "Letzter Login auf der Webseite",
            "format": "date-time",
            "example": "2026-10-10T12:00:00+02:00"
          },
          "plan": {
            "type": "object",
            "properties": {
              "id": {
                "type": "integer",
                "description": "Paket-ID",
                "example": 2
              },
              "name": {
                "type": "string",
                "description": "Paketname",
                "example": "VIP"
              },
              "valid_until": {
                "type": [
                  "string",
                  "null"
                ],
                "description": "Laufzeitende, null beim Free-Paket",
                "format": "date-time",
                "example": "2026-10-10T12:00:00+02:00"
              }
            }
          },
          "usage": {
            "type": "object",
            "properties": {
              "dyndns_domains": {
                "type": "object",
                "properties": {
                  "used": {
                    "type": "number",
                    "description": "Verbraucht",
                    "example": 2
                  },
                  "limit": {
                    "type": [
                      "integer",
                      "null"
                    ],
                    "description": "Limit des Pakets, null = unbegrenzt",
                    "example": 10
                  }
                },
                "description": "DynDNS-Domains"
              },
              "own_domains": {
                "type": "object",
                "properties": {
                  "used": {
                    "type": "number",
                    "description": "Verbraucht",
                    "example": 2
                  },
                  "limit": {
                    "type": [
                      "integer",
                      "null"
                    ],
                    "description": "Limit des Pakets, null = unbegrenzt",
                    "example": 10
                  }
                },
                "description": "Eigene Domains"
              },
              "dyndns_updates_24h": {
                "type": "object",
                "properties": {
                  "used": {
                    "type": "number",
                    "description": "Verbraucht",
                    "example": 2
                  },
                  "limit": {
                    "type": [
                      "integer",
                      "null"
                    ],
                    "description": "Limit des Pakets, null = unbegrenzt",
                    "example": 10
                  }
                },
                "description": "DynDNS-Updates der letzten 24 Stunden"
              },
              "healthchecks": {
                "type": "object",
                "properties": {
                  "used": {
                    "type": "number",
                    "description": "Verbraucht",
                    "example": 2
                  },
                  "limit": {
                    "type": [
                      "integer",
                      "null"
                    ],
                    "description": "Limit des Pakets, null = unbegrenzt",
                    "example": 10
                  }
                },
                "description": "Healthchecks"
              },
              "healthcheck_pings_24h": {
                "type": "object",
                "properties": {
                  "used": {
                    "type": "number",
                    "description": "Verbraucht",
                    "example": 2
                  },
                  "limit": {
                    "type": [
                      "integer",
                      "null"
                    ],
                    "description": "Limit des Pakets, null = unbegrenzt",
                    "example": 10
                  }
                },
                "description": "Healthcheck-Pings der letzten 24 Stunden"
              },
              "sms_24h": {
                "type": "object",
                "properties": {
                  "used": {
                    "type": "number",
                    "description": "Verbraucht",
                    "example": 2
                  },
                  "limit": {
                    "type": [
                      "integer",
                      "null"
                    ],
                    "description": "Limit des Pakets, null = unbegrenzt",
                    "example": 10
                  }
                },
                "description": "SMS der letzten 24 Stunden"
              },
              "failover_policies": {
                "type": "object",
                "properties": {
                  "used": {
                    "type": "number",
                    "description": "Verbraucht",
                    "example": 2
                  },
                  "limit": {
                    "type": [
                      "integer",
                      "null"
                    ],
                    "description": "Limit des Pakets, null = unbegrenzt",
                    "example": 10
                  }
                },
                "description": "DNS-Failover-Policies"
              },
              "failover_monitors": {
                "type": "object",
                "properties": {
                  "used": {
                    "type": "number",
                    "description": "Verbraucht",
                    "example": 2
                  },
                  "limit": {
                    "type": [
                      "integer",
                      "null"
                    ],
                    "description": "Limit des Pakets, null = unbegrenzt",
                    "example": 10
                  }
                },
                "description": "DNS-Failover-Monitore"
              },
              "failover_rules": {
                "type": "object",
                "properties": {
                  "used": {
                    "type": "number",
                    "description": "Verbraucht",
                    "example": 2
                  },
                  "limit": {
                    "type": [
                      "integer",
                      "null"
                    ],
                    "description": "Limit des Pakets, null = unbegrenzt",
                    "example": 10
                  }
                },
                "description": "DNS-Failover-Regeln"
              },
              "cdn_domains": {
                "type": "object",
                "properties": {
                  "used": {
                    "type": "number",
                    "description": "Verbraucht",
                    "example": 2
                  },
                  "limit": {
                    "type": [
                      "integer",
                      "null"
                    ],
                    "description": "Limit des Pakets, null = unbegrenzt",
                    "example": 10
                  }
                },
                "description": "CDN-Domains"
              },
              "cdn_traffic_gb": {
                "type": "object",
                "properties": {
                  "used": {
                    "type": "number",
                    "description": "Verbraucht",
                    "example": 2
                  },
                  "limit": {
                    "type": [
                      "integer",
                      "null"
                    ],
                    "description": "Limit des Pakets, null = unbegrenzt",
                    "example": 10
                  }
                },
                "description": "CDN-Traffic im aktuellen Monat in GB"
              },
              "vpn_traffic_gb": {
                "type": "object",
                "properties": {
                  "used": {
                    "type": "number",
                    "description": "Verbraucht",
                    "example": 1.5
                  },
                  "limit": {
                    "type": "integer",
                    "description": "Limit in GB",
                    "example": 100
                  },
                  "limited": {
                    "type": "boolean",
                    "description": "Traffic-Limit erreicht",
                    "example": false
                  }
                },
                "description": "Cloud-Router-Traffic in GB"
              },
              "dns64_clients": {
                "type": "object",
                "properties": {
                  "used": {
                    "type": "number",
                    "description": "Verbraucht",
                    "example": 2
                  },
                  "limit": {
                    "type": [
                      "integer",
                      "null"
                    ],
                    "description": "Limit des Pakets, null = unbegrenzt",
                    "example": 10
                  }
                },
                "description": "DNS64-Clients"
              }
            }
          },
          "log_retention_days": {
            "type": "integer",
            "description": "So viele Tage werden Logs aufbewahrt",
            "example": 90
          },
          "auth": {
            "type": "object",
            "properties": {
              "type": {
                "type": "string",
                "description": "Art des Schlüssels",
                "enum": [
                  "api_key",
                  "account_key"
                ],
                "example": "api_key"
              },
              "key_id": {
                "type": [
                  "integer",
                  "null"
                ],
                "description": "ID des API-Keys",
                "example": 75043
              },
              "key_name": {
                "type": "string",
                "description": "Name des API-Keys",
                "example": "Mein Server"
              },
              "acting_for": {
                "type": "integer",
                "description": "Bei X-IPv64-Act-As: Account, für den gehandelt wird",
                "example": 1234
              },
              "acting_by": {
                "type": "integer",
                "description": "Bei X-IPv64-Act-As: eigener Account",
                "example": 522
              }
            },
            "description": "Verwendete Anmeldung"
          }
        }
      },
      "LogEntry": {
        "type": "object",
        "properties": {
          "id": {
            "type": "integer",
            "description": "Log-ID, auch Cursor für before",
            "example": 83448927
          },
          "domain_id": {
            "type": [
              "integer",
              "null"
            ],
            "description": "Betroffene Domain"
          },
          "title": {
            "type": "string",
            "description": "Kategorie",
            "example": "API Key"
          },
          "message": {
            "type": "string",
            "description": "Text",
            "example": "New API Key 'test' created."
          },
          "time": {
            "type": "string",
            "description": "Zeitpunkt",
            "format": "date-time",
            "example": "2026-10-10T12:00:00+02:00"
          }
        }
      },
      "AccountLink": {
        "type": "object",
        "properties": {
          "id": {
            "type": "integer",
            "description": "ID der Freigabe",
            "example": 1
          },
          "direction": {
            "type": "string",
            "description": "shared_with = du hast freigegeben, managed = du verwaltest",
            "enum": [
              "shared_with",
              "managed"
            ],
            "example": "shared_with"
          },
          "email": {
            "type": "string",
            "description": "E-Mail des anderen Accounts",
            "example": "admin@example.com"
          },
          "status": {
            "type": "string",
            "description": "Status",
            "enum": [
              "active",
              "pending"
            ],
            "example": "active"
          },
          "created_at": {
            "type": [
              "string",
              "null"
            ],
            "description": "Angelegt",
            "format": "date-time",
            "example": "2026-10-10T12:00:00+02:00"
          },
          "last_used_at": {
            "type": [
              "string",
              "null"
            ],
            "description": "Zuletzt benutzt",
            "format": "date-time",
            "example": "2026-10-10T12:00:00+02:00"
          },
          "account_id": {
            "type": "integer",
            "description": "Nur bei managed: ID für X-IPv64-Act-As",
            "example": 1234
          }
        }
      },
      "ApiKey": {
        "type": "object",
        "properties": {
          "id": {
            "type": "integer",
            "description": "ID",
            "example": 303
          },
          "name": {
            "type": "string",
            "description": "Name",
            "example": "Mein Server"
          },
          "token_hint": {
            "type": "string",
            "description": "Anfang und Ende des Keys",
            "example": "1ZK4…Rx5e"
          },
          "created_at": {
            "type": [
              "string",
              "null"
            ],
            "description": "Angelegt",
            "format": "date-time",
            "example": "2026-10-10T12:00:00+02:00"
          },
          "expires_at": {
            "type": [
              "string",
              "null"
            ],
            "description": "Ablauf, null = nie",
            "format": "date-time",
            "example": "2026-10-10T12:00:00+02:00"
          },
          "expired": {
            "type": "boolean",
            "description": "Abgelaufen",
            "example": false
          },
          "uses": {
            "type": "integer",
            "description": "Anzahl Aufrufe",
            "example": 42
          }
        }
      },
      "ApiKeyCreated": {
        "allOf": [
          {
            "$ref": "#/components/schemas/ApiKey"
          },
          {
            "type": "object",
            "properties": {
              "token": {
                "type": "string",
                "description": "Der vollständige Key. Wird nur dieses eine Mal angezeigt.",
                "example": "Ab3dEf6hIj9kLm2nOp5qRs8tUv1wXy4z"
              }
            }
          }
        ]
      },
      "Record": {
        "type": "object",
        "properties": {
          "id": {
            "type": "integer",
            "description": "Record-ID",
            "example": 4711
          },
          "domain_id": {
            "type": "integer",
            "description": "Domain-ID",
            "example": 17597
          },
          "domain": {
            "type": "string",
            "description": "Domain",
            "example": "beispiel.ipv64.de"
          },
          "prefix": {
            "type": "string",
            "description": "Präfix, leer = Domain selbst",
            "example": "nas"
          },
          "fqdn": {
            "type": "string",
            "description": "Vollständiger Name",
            "example": "nas.beispiel.ipv64.de"
          },
          "type": {
            "type": "string",
            "description": "Record-Typ",
            "enum": [
              "A",
              "AAAA",
              "CNAME",
              "MX",
              "TXT",
              "NS",
              "SRV",
              "TLSA",
              "CAA"
            ],
            "example": "A"
          },
          "content": {
            "type": "string",
            "description": "Inhalt",
            "example": "203.0.113.10"
          },
          "ttl": {
            "type": "integer",
            "description": "TTL in Sekunden",
            "example": 60
          },
          "state": {
            "type": "string",
            "description": "active, inactive, cdn_record (vom CDN verwaltet), cdn_proxied / cdn_partial (läuft über das CDN), failover_record (temporärer Ersatz), failover_replaced (durch Failover ersetzt)",
            "enum": [
              "active",
              "inactive",
              "cdn_record",
              "cdn_proxied",
              "cdn_partial",
              "failover_record",
              "failover_replaced"
            ],
            "example": "active"
          },
          "pending_dns": {
            "type": "boolean",
            "description": "Änderung wird noch an die Nameserver übertragen",
            "example": false
          },
          "token": {
            "type": "string",
            "description": "Record-Token. Bleibt bei IP-Änderungen gleich und kann statt der ID verwendet werden.",
            "example": "Ab3dEf6hIj9kLm2nOp5qRs8tUv1wXy4z"
          },
          "updated_at": {
            "type": [
              "string",
              "null"
            ],
            "description": "Letzte Änderung",
            "format": "date-time",
            "example": "2026-10-10T12:00:00+02:00"
          }
        }
      },
      "Domain": {
        "type": "object",
        "properties": {
          "id": {
            "type": "integer",
            "description": "Domain-ID",
            "example": 17597
          },
          "name": {
            "type": "string",
            "description": "Vollständiger Name",
            "example": "beispiel.ipv64.de"
          },
          "kind": {
            "type": "string",
            "description": "dyndns oder own (eigene Domain)",
            "enum": [
              "dyndns",
              "own"
            ],
            "example": "dyndns"
          },
          "zone": {
            "type": "string",
            "description": "Zone",
            "example": "ipv64.de"
          },
          "wildcard": {
            "type": "boolean",
            "description": "Wildcard-Records *.name aktiv",
            "example": true
          },
          "ignore": {
            "type": "string",
            "description": "Diese Adressfamilie wird bei DynDNS-Updates ignoriert",
            "enum": [
              "none",
              "ipv4",
              "ipv6"
            ],
            "example": "none"
          },
          "ipv6_prefix": {
            "type": [
              "string",
              "null"
            ],
            "description": "Fester IPv6-Präfix für Interface-IDs"
          },
          "active": {
            "type": "boolean",
            "description": "Domain aktiv",
            "example": true
          },
          "update_token": {
            "type": "string",
            "description": "Domain-Update-Token für update.php",
            "example": "Ab3dEf6hIj9kLm2nOp5qRs8tUv1wXy4z"
          },
          "update_count": {
            "type": "integer",
            "description": "Anzahl DynDNS-Updates",
            "example": 1200
          },
          "created_at": {
            "type": [
              "string",
              "null"
            ],
            "description": "Angelegt",
            "format": "date-time",
            "example": "2026-10-10T12:00:00+02:00"
          },
          "updated_at": {
            "type": [
              "string",
              "null"
            ],
            "description": "Letztes Update",
            "format": "date-time",
            "example": "2026-10-10T12:00:00+02:00"
          }
        }
      },
      "DomainDetail": {
        "type": "object",
        "properties": {
          "id": {
            "type": "integer",
            "description": "Domain-ID",
            "example": 17597
          },
          "name": {
            "type": "string",
            "description": "Vollständiger Name",
            "example": "beispiel.ipv64.de"
          },
          "kind": {
            "type": "string",
            "description": "dyndns oder own (eigene Domain)",
            "enum": [
              "dyndns",
              "own"
            ],
            "example": "dyndns"
          },
          "zone": {
            "type": "string",
            "description": "Zone",
            "example": "ipv64.de"
          },
          "wildcard": {
            "type": "boolean",
            "description": "Wildcard-Records *.name aktiv",
            "example": true
          },
          "ignore": {
            "type": "string",
            "description": "Diese Adressfamilie wird bei DynDNS-Updates ignoriert",
            "enum": [
              "none",
              "ipv4",
              "ipv6"
            ],
            "example": "none"
          },
          "ipv6_prefix": {
            "type": [
              "string",
              "null"
            ],
            "description": "Fester IPv6-Präfix für Interface-IDs"
          },
          "active": {
            "type": "boolean",
            "description": "Domain aktiv",
            "example": true
          },
          "update_token": {
            "type": "string",
            "description": "Domain-Update-Token für update.php",
            "example": "Ab3dEf6hIj9kLm2nOp5qRs8tUv1wXy4z"
          },
          "update_count": {
            "type": "integer",
            "description": "Anzahl DynDNS-Updates",
            "example": 1200
          },
          "created_at": {
            "type": [
              "string",
              "null"
            ],
            "description": "Angelegt",
            "format": "date-time",
            "example": "2026-10-10T12:00:00+02:00"
          },
          "updated_at": {
            "type": [
              "string",
              "null"
            ],
            "description": "Letztes Update",
            "format": "date-time",
            "example": "2026-10-10T12:00:00+02:00"
          },
          "records": {
            "type": "array",
            "items": {
              "$ref": "#/components/schemas/Record"
            },
            "description": "Alle Records der Domain"
          }
        }
      },
      "DynDnsResult": {
        "type": "object",
        "properties": {
          "domain": {
            "type": "string",
            "description": "Domain",
            "example": "beispiel.ipv64.de"
          },
          "prefix": {
            "type": "string",
            "description": "Präfix",
            "example": ""
          },
          "changed": {
            "type": "boolean",
            "description": "Mindestens ein Record geändert",
            "example": true
          },
          "results": {
            "type": "array",
            "items": {
              "type": "object",
              "properties": {
                "ip": {
                  "type": "string",
                  "description": "IP",
                  "example": "203.0.113.10"
                },
                "type": {
                  "type": "string",
                  "description": "A oder AAAA",
                  "example": "A"
                },
                "result": {
                  "type": "string",
                  "description": "Ergebnis je IP",
                  "enum": [
                    "created",
                    "updated",
                    "unchanged",
                    "ignored",
                    "invalid_ip",
                    "cname_conflict",
                    "cdn_managed"
                  ],
                  "example": "updated"
                }
              }
            }
          }
        }
      },
      "HealthcheckEvent": {
        "type": "object",
        "properties": {
          "id": {
            "type": "integer",
            "description": "Event-ID, auch Cursor",
            "example": 1057264859
          },
          "time": {
            "type": "string",
            "description": "Zeitpunkt",
            "format": "date-time",
            "example": "2026-10-10T12:00:00+02:00"
          },
          "status": {
            "type": "string",
            "description": "Status",
            "enum": [
              "new",
              "up",
              "paused",
              "warning",
              "down",
              "stabilizing"
            ],
            "example": "up"
          },
          "message": {
            "type": "string",
            "description": "Text",
            "example": "Healthcheck is UP"
          },
          "latency_ms": {
            "type": [
              "number",
              "null"
            ],
            "description": "Antwortzeit",
            "example": 23.4
          },
          "payload": {
            "type": [
              "object",
              "null"
            ],
            "description": "Zusatzdaten des Pings"
          }
        }
      },
      "Healthcheck": {
        "type": "object",
        "properties": {
          "token": {
            "type": "string",
            "description": "Healthcheck-Token, identifiziert den Check",
            "example": "Ab3dEf6hIj9kLm2nOp5qRs8tUv1wXy4z"
          },
          "name": {
            "type": "string",
            "description": "Name",
            "example": "Backup NAS"
          },
          "type": {
            "type": "string",
            "description": "Art des Checks",
            "enum": [
              "push",
              "icmp",
              "tcp",
              "http",
              "keyword"
            ],
            "example": "push"
          },
          "status": {
            "type": "string",
            "description": "Status",
            "enum": [
              "new",
              "up",
              "paused",
              "warning",
              "down",
              "stabilizing"
            ],
            "example": "up"
          },
          "notify": {
            "type": "object",
            "properties": {
              "on_down": {
                "type": "boolean",
                "description": "Bei DOWN benachrichtigen",
                "example": true
              },
              "on_up": {
                "type": "boolean",
                "description": "Bei UP benachrichtigen",
                "example": true
              },
              "integrations": {
                "type": "array",
                "items": {
                  "type": "integer",
                  "example": 0
                },
                "description": "IDs der Integrationen, 0 = Account-E-Mail"
              }
            }
          },
          "created_at": {
            "type": [
              "string",
              "null"
            ],
            "description": "Angelegt",
            "format": "date-time",
            "example": "2026-10-10T12:00:00+02:00"
          },
          "last_seen_at": {
            "type": [
              "string",
              "null"
            ],
            "description": "Letzter Ping oder letzte Prüfung",
            "format": "date-time",
            "example": "2026-10-10T12:00:00+02:00"
          },
          "last_alarm_at": {
            "type": [
              "string",
              "null"
            ],
            "description": "Letzter Alarm",
            "format": "date-time",
            "example": "2026-10-10T12:00:00+02:00"
          },
          "pings_total": {
            "type": "integer",
            "description": "Anzahl Pings",
            "example": 1500
          },
          "failed_in_row": {
            "type": "integer",
            "description": "Fehlschläge in Folge",
            "example": 0
          },
          "push": {
            "type": "object",
            "properties": {
              "url": {
                "type": "string",
                "description": "Diese URL pingt dein System an",
                "example": "https://ipv64.net/health.php?token=Ab3dEf6hIj9kLm2nOp5qRs8tUv1wXy4z"
              },
              "period_seconds": {
                "type": "integer",
                "description": "Erwarteter Abstand der Pings",
                "example": 3600
              },
              "grace_seconds": {
                "type": "integer",
                "description": "Kulanzzeit",
                "example": 600
              },
              "expected_by": {
                "type": [
                  "string",
                  "null"
                ],
                "description": "Spätester Zeitpunkt für den nächsten Ping",
                "format": "date-time",
                "example": "2026-10-10T12:00:00+02:00"
              }
            },
            "description": "Nur bei type push"
          },
          "check": {
            "type": [
              "object",
              "null"
            ],
            "properties": {
              "target": {
                "type": "string",
                "description": "Ziel bei icmp und tcp",
                "example": "nas.beispiel.ipv64.de"
              },
              "prefer_ipv4": {
                "type": "boolean",
                "description": "IPv4 bevorzugen",
                "example": false
              },
              "port": {
                "type": "integer",
                "description": "Port bei tcp",
                "example": 443
              },
              "url": {
                "type": "string",
                "description": "URL bei http und keyword",
                "example": "https://example.com/"
              },
              "verify_tls": {
                "type": "boolean",
                "description": "Zertifikat prüfen",
                "example": true
              },
              "keyword": {
                "type": "string",
                "description": "Suchbegriff bei keyword",
                "example": "OK"
              },
              "interval_seconds": {
                "type": "integer",
                "description": "Prüfintervall",
                "example": 300
              },
              "retry_interval_seconds": {
                "type": "integer",
                "description": "Intervall nach einem Fehler",
                "example": 60
              },
              "failures_before_alarm": {
                "type": "integer",
                "description": "Fehlschläge bis zum Alarm",
                "example": 3
              },
              "next_check_at": {
                "type": [
                  "string",
                  "null"
                ],
                "description": "Nächste Prüfung",
                "format": "date-time",
                "example": "2026-10-10T12:00:00+02:00"
              }
            },
            "description": "Nur bei aktiven Checks (icmp, tcp, http, keyword). null, solange noch nichts eingestellt ist."
          }
        }
      },
      "HealthcheckDetail": {
        "type": "object",
        "properties": {
          "token": {
            "type": "string",
            "description": "Healthcheck-Token, identifiziert den Check",
            "example": "Ab3dEf6hIj9kLm2nOp5qRs8tUv1wXy4z"
          },
          "name": {
            "type": "string",
            "description": "Name",
            "example": "Backup NAS"
          },
          "type": {
            "type": "string",
            "description": "Art des Checks",
            "enum": [
              "push",
              "icmp",
              "tcp",
              "http",
              "keyword"
            ],
            "example": "push"
          },
          "status": {
            "type": "string",
            "description": "Status",
            "enum": [
              "new",
              "up",
              "paused",
              "warning",
              "down",
              "stabilizing"
            ],
            "example": "up"
          },
          "notify": {
            "type": "object",
            "properties": {
              "on_down": {
                "type": "boolean",
                "description": "Bei DOWN benachrichtigen",
                "example": true
              },
              "on_up": {
                "type": "boolean",
                "description": "Bei UP benachrichtigen",
                "example": true
              },
              "integrations": {
                "type": "array",
                "items": {
                  "type": "integer",
                  "example": 0
                },
                "description": "IDs der Integrationen, 0 = Account-E-Mail"
              }
            }
          },
          "created_at": {
            "type": [
              "string",
              "null"
            ],
            "description": "Angelegt",
            "format": "date-time",
            "example": "2026-10-10T12:00:00+02:00"
          },
          "last_seen_at": {
            "type": [
              "string",
              "null"
            ],
            "description": "Letzter Ping oder letzte Prüfung",
            "format": "date-time",
            "example": "2026-10-10T12:00:00+02:00"
          },
          "last_alarm_at": {
            "type": [
              "string",
              "null"
            ],
            "description": "Letzter Alarm",
            "format": "date-time",
            "example": "2026-10-10T12:00:00+02:00"
          },
          "pings_total": {
            "type": "integer",
            "description": "Anzahl Pings",
            "example": 1500
          },
          "failed_in_row": {
            "type": "integer",
            "description": "Fehlschläge in Folge",
            "example": 0
          },
          "push": {
            "type": "object",
            "properties": {
              "url": {
                "type": "string",
                "description": "Diese URL pingt dein System an",
                "example": "https://ipv64.net/health.php?token=Ab3dEf6hIj9kLm2nOp5qRs8tUv1wXy4z"
              },
              "period_seconds": {
                "type": "integer",
                "description": "Erwarteter Abstand der Pings",
                "example": 3600
              },
              "grace_seconds": {
                "type": "integer",
                "description": "Kulanzzeit",
                "example": 600
              },
              "expected_by": {
                "type": [
                  "string",
                  "null"
                ],
                "description": "Spätester Zeitpunkt für den nächsten Ping",
                "format": "date-time",
                "example": "2026-10-10T12:00:00+02:00"
              }
            },
            "description": "Nur bei type push"
          },
          "check": {
            "type": [
              "object",
              "null"
            ],
            "properties": {
              "target": {
                "type": "string",
                "description": "Ziel bei icmp und tcp",
                "example": "nas.beispiel.ipv64.de"
              },
              "prefer_ipv4": {
                "type": "boolean",
                "description": "IPv4 bevorzugen",
                "example": false
              },
              "port": {
                "type": "integer",
                "description": "Port bei tcp",
                "example": 443
              },
              "url": {
                "type": "string",
                "description": "URL bei http und keyword",
                "example": "https://example.com/"
              },
              "verify_tls": {
                "type": "boolean",
                "description": "Zertifikat prüfen",
                "example": true
              },
              "keyword": {
                "type": "string",
                "description": "Suchbegriff bei keyword",
                "example": "OK"
              },
              "interval_seconds": {
                "type": "integer",
                "description": "Prüfintervall",
                "example": 300
              },
              "retry_interval_seconds": {
                "type": "integer",
                "description": "Intervall nach einem Fehler",
                "example": 60
              },
              "failures_before_alarm": {
                "type": "integer",
                "description": "Fehlschläge bis zum Alarm",
                "example": 3
              },
              "next_check_at": {
                "type": [
                  "string",
                  "null"
                ],
                "description": "Nächste Prüfung",
                "format": "date-time",
                "example": "2026-10-10T12:00:00+02:00"
              }
            },
            "description": "Nur bei aktiven Checks (icmp, tcp, http, keyword). null, solange noch nichts eingestellt ist."
          },
          "recent": {
            "type": "array",
            "items": {
              "$ref": "#/components/schemas/HealthcheckEvent"
            },
            "description": "Die letzten 20 Events"
          }
        }
      },
      "Incident": {
        "type": "object",
        "properties": {
          "id": {
            "type": "integer",
            "description": "ID",
            "example": 991
          },
          "status": {
            "type": "string",
            "description": "Status",
            "enum": [
              "open",
              "closed"
            ],
            "example": "closed"
          },
          "created_at": {
            "type": [
              "string",
              "null"
            ],
            "description": "Beginn",
            "format": "date-time",
            "example": "2026-10-10T12:00:00+02:00"
          },
          "closed_at": {
            "type": [
              "string",
              "null"
            ],
            "description": "Ende",
            "format": "date-time",
            "example": "2026-10-10T12:00:00+02:00"
          },
          "events": {
            "type": "array",
            "items": {
              "type": "object",
              "properties": {
                "time": {
                  "type": [
                    "string",
                    "null"
                  ],
                  "description": "Zeitpunkt",
                  "format": "date-time",
                  "example": "2026-10-10T12:00:00+02:00"
                },
                "kind": {
                  "type": "string",
                  "description": "Art",
                  "example": "down"
                },
                "message": {
                  "type": "string",
                  "description": "Text",
                  "example": "Healthcheck is DOWN"
                }
              }
            }
          }
        }
      },
      "HealthcheckStats": {
        "type": "object",
        "properties": {
          "range": {
            "type": "string",
            "description": "Zeitraum",
            "example": "24h"
          },
          "from": {
            "type": [
              "string",
              "null"
            ],
            "description": "Beginn",
            "format": "date-time",
            "example": "2026-10-10T12:00:00+02:00"
          },
          "to": {
            "type": [
              "string",
              "null"
            ],
            "description": "Ende",
            "format": "date-time",
            "example": "2026-10-10T12:00:00+02:00"
          },
          "measurements": {
            "type": "integer",
            "description": "Anzahl Messungen",
            "example": 288
          },
          "availability_percent": {
            "type": [
              "number",
              "null"
            ],
            "description": "Verfügbarkeit",
            "example": 99.65
          },
          "latency_ms": {
            "type": "object",
            "properties": {
              "avg": {
                "type": [
                  "number",
                  "null"
                ],
                "description": "Durchschnitt",
                "example": 21.3
              },
              "min": {
                "type": [
                  "number",
                  "null"
                ],
                "description": "Minimum",
                "example": 12.0
              },
              "max": {
                "type": [
                  "number",
                  "null"
                ],
                "description": "Maximum",
                "example": 80.1
              }
            }
          },
          "bucket_seconds": {
            "type": "integer",
            "description": "Breite eines Zeitreihen-Punkts",
            "example": 900
          },
          "series": {
            "type": "array",
            "items": {
              "type": "object",
              "properties": {
                "time": {
                  "type": "string",
                  "description": "Beginn des Intervalls",
                  "format": "date-time",
                  "example": "2026-10-10T12:00:00+02:00"
                },
                "measurements": {
                  "type": "integer",
                  "description": "Messungen",
                  "example": 3
                },
                "availability_percent": {
                  "type": "number",
                  "description": "Verfügbarkeit",
                  "example": 100
                },
                "latency_avg_ms": {
                  "type": [
                    "number",
                    "null"
                  ],
                  "description": "Durchschnitt",
                  "example": 20.1
                },
                "latency_max_ms": {
                  "type": [
                    "number",
                    "null"
                  ],
                  "description": "Maximum",
                  "example": 25.0
                }
              }
            }
          }
        }
      },
      "Integration": {
        "type": "object",
        "properties": {
          "id": {
            "type": "integer",
            "description": "ID, 0 = Account-E-Mail",
            "example": 12
          },
          "type": {
            "type": "string",
            "description": "Art",
            "enum": [
              "account_email",
              "telegram",
              "gotify",
              "ntfy",
              "pushover",
              "discord",
              "webhook",
              "email",
              "sms",
              "app"
            ],
            "example": "telegram"
          },
          "name": {
            "type": "string",
            "description": "Name",
            "example": "Mein Telegram"
          },
          "status": {
            "type": "string",
            "description": "E-Mail und SMS müssen erst bestätigt werden",
            "enum": [
              "active",
              "pending_verification"
            ],
            "example": "active"
          },
          "default": {
            "type": [
              "boolean",
              "null"
            ],
            "description": "Wird bei neuen Healthchecks vorausgewählt",
            "example": false
          },
          "options": {
            "type": "object",
            "description": "Einstellungen je Typ. Geheimnisse sind gekürzt, außer mit include_secrets=true.",
            "example": {
              "chatid": "123456789",
              "apitoken": "…AbCd"
            }
          },
          "created_at": {
            "type": [
              "string",
              "null"
            ],
            "description": "Angelegt",
            "format": "date-time",
            "example": "2026-10-10T12:00:00+02:00"
          },
          "last_used_at": {
            "type": [
              "string",
              "null"
            ],
            "description": "Zuletzt benutzt",
            "format": "date-time",
            "example": "2026-10-10T12:00:00+02:00"
          },
          "uses": {
            "type": "integer",
            "description": "Anzahl Nachrichten",
            "example": 17
          }
        }
      },
      "FailoverPolicy": {
        "type": "object",
        "properties": {
          "id": {
            "type": "string",
            "description": "Policy-ID (16 Zeichen)",
            "example": "QTl4iPM2swRaxWdz"
          },
          "name": {
            "type": "string",
            "description": "Name",
            "example": "Webserver"
          },
          "status": {
            "type": "string",
            "description": "pending = wird eingerichtet, active = überwacht, failed_over = Ersatz aktiv, paused, failover_requested / fallback_requested = Umschaltung läuft",
            "enum": [
              "pending",
              "active",
              "failed_over",
              "paused",
              "failover_requested",
              "fallback_requested"
            ],
            "example": "active"
          },
          "manual": {
            "type": "boolean",
            "description": "Letzte Umschaltung war manuell",
            "example": false
          },
          "mode": {
            "type": "string",
            "description": "auto_failover = automatisch umschalten, manuell zurück; auto_failover_and_fallback = beides automatisch; manual = nur manuell",
            "enum": [
              "auto_failover",
              "auto_failover_and_fallback",
              "manual"
            ],
            "example": "auto_failover"
          },
          "fallback_requires_all": {
            "type": "boolean",
            "description": "Rückschaltung erst, wenn alle Monitore wieder UP sind",
            "example": false
          },
          "linking": {
            "type": "string",
            "description": "and = alle Monitore müssen DOWN sein, or = einer reicht",
            "enum": [
              "and",
              "or"
            ],
            "example": "or"
          },
          "notifications_enabled": {
            "type": "boolean",
            "description": "Benachrichtigungen aktiv",
            "example": true
          },
          "integrations": {
            "type": "array",
            "items": {
              "type": "integer",
              "example": 0
            },
            "description": "Integrationen für Benachrichtigungen"
          },
          "monitors_down": {
            "type": "integer",
            "description": "Anzahl Monitore, die gerade als DOWN zählen",
            "example": 0
          },
          "last_check_at": {
            "type": [
              "string",
              "null"
            ],
            "description": "Letzte Prüfung",
            "format": "date-time",
            "example": "2026-10-10T12:00:00+02:00"
          },
          "monitors": {
            "type": "array",
            "items": {
              "type": "object",
              "properties": {
                "healthcheck": {
                  "type": "string",
                  "description": "Healthcheck-Token",
                  "example": "Ab3dEf6hIj9kLm2nOp5qRs8tUv1wXy4z"
                },
                "name": {
                  "type": "string",
                  "description": "Name",
                  "example": "Webserver HTTP"
                },
                "negate": {
                  "type": "boolean",
                  "description": "Umgekehrt werten (UP zählt als DOWN)",
                  "example": false
                },
                "healthcheck_status": {
                  "type": [
                    "string",
                    "null"
                  ],
                  "description": "Aktueller Status",
                  "example": "up"
                }
              }
            }
          },
          "rules": {
            "type": "array",
            "items": {
              "type": "object",
              "properties": {
                "record": {
                  "type": "string",
                  "description": "Record-Token des geschützten Records",
                  "example": "Ab3dEf6hIj9kLm2nOp5qRs8tUv1wXy4z"
                },
                "fqdn": {
                  "type": [
                    "string",
                    "null"
                  ],
                  "description": "Name",
                  "example": "www.beispiel.ipv64.de"
                },
                "record_type": {
                  "type": "string",
                  "description": "A oder AAAA",
                  "example": "A"
                },
                "state": {
                  "type": "string",
                  "description": "Zustand",
                  "enum": [
                    "standby",
                    "failed_over"
                  ],
                  "example": "standby"
                },
                "target": {
                  "type": "object",
                  "properties": {
                    "kind": {
                      "type": "string",
                      "description": "Art des Ziels",
                      "enum": [
                        "ip",
                        "record",
                        "offline_page"
                      ],
                      "example": "ip"
                    },
                    "ip": {
                      "type": "string",
                      "description": "Ersatz-IP",
                      "example": "198.51.100.5"
                    },
                    "record": {
                      "type": "string",
                      "description": "Ziel-Record-Token",
                      "example": "Ab3dEf6hIj9kLm2nOp5qRs8tUv1wXy4z"
                    },
                    "offline_page": {
                      "type": "string",
                      "description": "default oder Offline-Page-ID",
                      "example": "default"
                    }
                  }
                }
              }
            }
          }
        }
      },
      "StatusPage": {
        "type": "object",
        "properties": {
          "id": {
            "type": "integer",
            "description": "ID",
            "example": 1053
          },
          "name": {
            "type": "string",
            "description": "Titel",
            "example": "Mein Status"
          },
          "slug": {
            "type": "string",
            "description": "Adresse hinter /status/",
            "example": "meinstatus"
          },
          "url": {
            "type": "string",
            "description": "Öffentliche Adresse",
            "example": "https://ipv64.net/status/meinstatus"
          },
          "description": {
            "type": "string",
            "description": "Beschreibung",
            "example": ""
          },
          "password_protected": {
            "type": "boolean",
            "description": "Mit Passwort geschützt",
            "example": false
          },
          "design": {
            "type": "integer",
            "description": "Design 1 bis 4",
            "example": 1
          },
          "autorefresh": {
            "type": "boolean",
            "description": "Seite lädt automatisch neu",
            "example": true
          },
          "healthchecks": {
            "type": "array",
            "items": {
              "type": "string",
              "description": "Healthcheck-Token",
              "example": "Ab3dEf6hIj9kLm2nOp5qRs8tUv1wXy4z"
            },
            "description": "Angezeigte Healthchecks in dieser Reihenfolge"
          },
          "created_at": {
            "type": [
              "string",
              "null"
            ],
            "description": "Angelegt",
            "format": "date-time",
            "example": "2026-10-10T12:00:00+02:00"
          },
          "last_viewed_at": {
            "type": [
              "string",
              "null"
            ],
            "description": "Zuletzt aufgerufen",
            "format": "date-time",
            "example": "2026-10-10T12:00:00+02:00"
          }
        }
      },
      "OfflinePage": {
        "type": "object",
        "properties": {
          "id": {
            "type": "string",
            "description": "Offline-Page-ID (16 Zeichen)",
            "example": "aB3dE6gH9jK2mN5p"
          },
          "name": {
            "type": "string",
            "description": "Überschrift",
            "example": "Wartungsarbeiten"
          },
          "domain": {
            "type": "string",
            "description": "Domain, unter der die Seite erscheint",
            "example": "www.example.com"
          },
          "email": {
            "type": "string",
            "description": "Kontakt-E-Mail",
            "example": "info@example.com"
          },
          "phone": {
            "type": "string",
            "description": "Telefon",
            "example": "+49301234567"
          },
          "alternative_url": {
            "type": "string",
            "description": "Ausweichadresse",
            "example": "https://status.example.com"
          },
          "text": {
            "type": "string",
            "description": "Text als HTML",
            "example": "Wir sind gleich wieder da."
          },
          "icon_url": {
            "type": [
              "string",
              "null"
            ],
            "description": "Logo"
          },
          "views": {
            "type": "integer",
            "description": "Aufrufe",
            "example": 0
          },
          "in_use_by_policy": {
            "type": [
              "string",
              "null"
            ],
            "description": "Failover-Policy, die diese Seite nutzt"
          },
          "active": {
            "type": "boolean",
            "description": "Wird gerade ausgeliefert",
            "example": false
          },
          "preview_url": {
            "type": "string",
            "description": "Vorschau",
            "example": "https://ipv64.net/offline?domain=www.example.com&preview"
          }
        }
      },
      "CdnMapping": {
        "type": "object",
        "properties": {
          "id": {
            "type": "string",
            "description": "Mapping-ID",
            "example": "Ab3dEf6hIj9kLm2nOp5qRs8tUv1wXy4z"
          },
          "name": {
            "type": "string",
            "description": "Name",
            "example": "Minecraft"
          },
          "listen_port": {
            "type": "integer",
            "description": "Öffentlicher Port am CDN-Server",
            "example": 51234
          },
          "transport": {
            "type": "string",
            "description": "Protokoll",
            "enum": [
              "tcp",
              "udp"
            ],
            "example": "tcp"
          },
          "target_port": {
            "type": "integer",
            "description": "Port bei dir",
            "example": 25565
          },
          "record": {
            "type": "string",
            "description": "Record-Token des Ziels",
            "example": "Ab3dEf6hIj9kLm2nOp5qRs8tUv1wXy4z"
          },
          "fqdn": {
            "type": [
              "string",
              "null"
            ],
            "description": "Name des Ziels",
            "example": "mc.beispiel.ipv64.de"
          }
        }
      },
      "CdnDomain": {
        "type": "object",
        "properties": {
          "id": {
            "type": "string",
            "description": "CDN-ID",
            "example": "Ab3dEf6hIj9kLm2nOp5qRs8tUv1wXy4z"
          },
          "domain": {
            "type": [
              "string",
              "null"
            ],
            "description": "Domain",
            "example": "beispiel.ipv64.de"
          },
          "domain_id": {
            "type": "integer",
            "description": "Domain-ID",
            "example": 17597
          },
          "active": {
            "type": "boolean",
            "description": "CDN aktiv",
            "example": true
          },
          "pending": {
            "type": "array",
            "items": {
              "type": "string",
              "enum": [
                "server_assignment",
                "dns",
                "config_deploy",
                "certificate",
                "server_move",
                "deletion"
              ],
              "example": "config_deploy"
            },
            "description": "Offene Arbeiten des CDN-Bots"
          },
          "dns_records_enabled": {
            "type": "boolean",
            "description": "Mindestens ein Record läuft über das CDN",
            "example": true
          },
          "server": {
            "type": [
              "object",
              "null"
            ],
            "properties": {
              "name": {
                "type": "string",
                "description": "Name",
                "example": "CDN-FSN-1"
              },
              "hostname": {
                "type": "string",
                "description": "Hostname",
                "example": "cdn1.ipv64.net"
              },
              "ipv4": {
                "type": "string",
                "description": "IPv4",
                "example": "203.0.113.1"
              },
              "ipv6": {
                "type": "string",
                "description": "IPv6",
                "example": "2001:db8::1"
              }
            }
          },
          "proxy": {
            "type": "object",
            "properties": {
              "state": {
                "type": "string",
                "description": "Reverse Proxy",
                "enum": [
                  "off",
                  "on",
                  "disabling"
                ],
                "example": "on"
              },
              "frontend": {
                "type": [
                  "string",
                  "null"
                ],
                "description": "http, https_redirect (HTTP wird auf HTTPS umgeleitet) oder http_and_https",
                "enum": [
                  "http",
                  "https_redirect",
                  "http_and_https"
                ],
                "example": "https_redirect"
              },
              "backend": {
                "type": "object",
                "properties": {
                  "scheme": {
                    "type": "string",
                    "description": "Protokoll zu deinem Server",
                    "enum": [
                      "http",
                      "https"
                    ],
                    "example": "http"
                  },
                  "port": {
                    "type": "integer",
                    "description": "Port deines Servers",
                    "example": 80
                  }
                }
              },
              "websocket": {
                "type": "boolean",
                "description": "WebSocket-Unterstützung",
                "example": false
              },
              "certificate": {
                "type": "string",
                "description": "Zertifikat",
                "enum": [
                  "default",
                  "letsencrypt",
                  "issuing"
                ],
                "example": "letsencrypt"
              },
              "caching": {
                "type": "object",
                "properties": {
                  "enabled": {
                    "type": "boolean",
                    "description": "Cache aktiv",
                    "example": false
                  },
                  "time_minutes": {
                    "type": "integer",
                    "description": "Cache-Dauer",
                    "example": 60
                  },
                  "size_mb": {
                    "type": "integer",
                    "description": "Cache-Größe",
                    "example": 100
                  }
                }
              },
              "access_list": {
                "type": "object",
                "properties": {
                  "enabled": {
                    "type": "boolean",
                    "description": "Zugriffsliste aktiv",
                    "example": false
                  },
                  "mode": {
                    "type": "string",
                    "description": "allowlist = nur Einträge erlaubt, denylist = Einträge gesperrt",
                    "enum": [
                      "allowlist",
                      "denylist"
                    ],
                    "example": "denylist"
                  }
                }
              }
            }
          },
          "portmapper": {
            "type": "object",
            "properties": {
              "state": {
                "type": "string",
                "description": "Portmapper",
                "enum": [
                  "off",
                  "on",
                  "disabling",
                  "suspended_traffic_limit"
                ],
                "example": "off"
              }
            }
          },
          "traffic_mb": {
            "type": "object",
            "properties": {
              "in": {
                "type": "number",
                "description": "Eingehend",
                "example": 120.5
              },
              "out": {
                "type": "number",
                "description": "Ausgehend",
                "example": 830.2
              }
            }
          },
          "created_at": {
            "type": [
              "string",
              "null"
            ],
            "description": "Angelegt",
            "format": "date-time",
            "example": "2026-10-10T12:00:00+02:00"
          }
        }
      },
      "CdnDomainDetail": {
        "type": "object",
        "properties": {
          "id": {
            "type": "string",
            "description": "CDN-ID",
            "example": "Ab3dEf6hIj9kLm2nOp5qRs8tUv1wXy4z"
          },
          "domain": {
            "type": [
              "string",
              "null"
            ],
            "description": "Domain",
            "example": "beispiel.ipv64.de"
          },
          "domain_id": {
            "type": "integer",
            "description": "Domain-ID",
            "example": 17597
          },
          "active": {
            "type": "boolean",
            "description": "CDN aktiv",
            "example": true
          },
          "pending": {
            "type": "array",
            "items": {
              "type": "string",
              "enum": [
                "server_assignment",
                "dns",
                "config_deploy",
                "certificate",
                "server_move",
                "deletion"
              ],
              "example": "config_deploy"
            },
            "description": "Offene Arbeiten des CDN-Bots"
          },
          "dns_records_enabled": {
            "type": "boolean",
            "description": "Mindestens ein Record läuft über das CDN",
            "example": true
          },
          "server": {
            "type": [
              "object",
              "null"
            ],
            "properties": {
              "name": {
                "type": "string",
                "description": "Name",
                "example": "CDN-FSN-1"
              },
              "hostname": {
                "type": "string",
                "description": "Hostname",
                "example": "cdn1.ipv64.net"
              },
              "ipv4": {
                "type": "string",
                "description": "IPv4",
                "example": "203.0.113.1"
              },
              "ipv6": {
                "type": "string",
                "description": "IPv6",
                "example": "2001:db8::1"
              }
            }
          },
          "proxy": {
            "type": "object",
            "properties": {
              "state": {
                "type": "string",
                "description": "Reverse Proxy",
                "enum": [
                  "off",
                  "on",
                  "disabling"
                ],
                "example": "on"
              },
              "frontend": {
                "type": [
                  "string",
                  "null"
                ],
                "description": "http, https_redirect (HTTP wird auf HTTPS umgeleitet) oder http_and_https",
                "enum": [
                  "http",
                  "https_redirect",
                  "http_and_https"
                ],
                "example": "https_redirect"
              },
              "backend": {
                "type": "object",
                "properties": {
                  "scheme": {
                    "type": "string",
                    "description": "Protokoll zu deinem Server",
                    "enum": [
                      "http",
                      "https"
                    ],
                    "example": "http"
                  },
                  "port": {
                    "type": "integer",
                    "description": "Port deines Servers",
                    "example": 80
                  }
                }
              },
              "websocket": {
                "type": "boolean",
                "description": "WebSocket-Unterstützung",
                "example": false
              },
              "certificate": {
                "type": "string",
                "description": "Zertifikat",
                "enum": [
                  "default",
                  "letsencrypt",
                  "issuing"
                ],
                "example": "letsencrypt"
              },
              "caching": {
                "type": "object",
                "properties": {
                  "enabled": {
                    "type": "boolean",
                    "description": "Cache aktiv",
                    "example": false
                  },
                  "time_minutes": {
                    "type": "integer",
                    "description": "Cache-Dauer",
                    "example": 60
                  },
                  "size_mb": {
                    "type": "integer",
                    "description": "Cache-Größe",
                    "example": 100
                  }
                }
              },
              "access_list": {
                "type": "object",
                "properties": {
                  "enabled": {
                    "type": "boolean",
                    "description": "Zugriffsliste aktiv",
                    "example": false
                  },
                  "mode": {
                    "type": "string",
                    "description": "allowlist = nur Einträge erlaubt, denylist = Einträge gesperrt",
                    "enum": [
                      "allowlist",
                      "denylist"
                    ],
                    "example": "denylist"
                  }
                }
              }
            }
          },
          "portmapper": {
            "type": "object",
            "properties": {
              "state": {
                "type": "string",
                "description": "Portmapper",
                "enum": [
                  "off",
                  "on",
                  "disabling",
                  "suspended_traffic_limit"
                ],
                "example": "off"
              }
            }
          },
          "traffic_mb": {
            "type": "object",
            "properties": {
              "in": {
                "type": "number",
                "description": "Eingehend",
                "example": 120.5
              },
              "out": {
                "type": "number",
                "description": "Ausgehend",
                "example": 830.2
              }
            }
          },
          "created_at": {
            "type": [
              "string",
              "null"
            ],
            "description": "Angelegt",
            "format": "date-time",
            "example": "2026-10-10T12:00:00+02:00"
          },
          "mappings": {
            "type": "array",
            "items": {
              "$ref": "#/components/schemas/CdnMapping"
            }
          }
        }
      },
      "AccessListEntry": {
        "type": "object",
        "properties": {
          "id": {
            "type": "integer",
            "description": "ID",
            "example": 7
          },
          "address": {
            "type": "string",
            "description": "IP oder Netz",
            "example": "198.51.100.0/24"
          }
        }
      },
      "Peer": {
        "type": "object",
        "properties": {
          "id": {
            "type": "string",
            "description": "Peer-ID",
            "example": "Ab3dEf6hIj9kLm2nOp5qRs8tUv1wXy4z"
          },
          "name": {
            "type": "string",
            "description": "Name",
            "example": "Laptop"
          },
          "state": {
            "type": "string",
            "description": "Zustand",
            "enum": [
              "ready",
              "applying",
              "deleting"
            ],
            "example": "ready"
          },
          "disabled": {
            "type": "boolean",
            "description": "Deaktiviert",
            "example": false
          },
          "site_to_site": {
            "type": "boolean",
            "description": "Als Site-to-Site markiert",
            "example": false
          },
          "ipv4": {
            "type": [
              "string",
              "null"
            ],
            "description": "Tunnel-IPv4 (CIDR)",
            "example": "10.7.0.2/32"
          },
          "ipv6": {
            "type": [
              "string",
              "null"
            ],
            "description": "Tunnel-IPv6 (CIDR)"
          },
          "dns_server": {
            "type": [
              "string",
              "null"
            ],
            "description": "DNS-Server in der Client-Config"
          },
          "endpoint": {
            "type": [
              "string",
              "null"
            ],
            "description": "Fester Endpunkt des Peers"
          },
          "endpoint_port": {
            "type": [
              "integer",
              "null"
            ],
            "description": "Port des Endpunkts"
          },
          "keepalive": {
            "type": "string",
            "description": "Keepalive hh:mm:ss",
            "example": "00:00:25"
          },
          "public_key": {
            "type": [
              "string",
              "null"
            ],
            "description": "Öffentlicher Schlüssel",
            "example": "xTIBA5rboUvnH4htodjb6e697QjLERt1NAB4mZqp8Dg="
          },
          "has_preshared_key": {
            "type": "boolean",
            "description": "Preshared Key gesetzt",
            "example": true
          },
          "current_endpoint": {
            "type": [
              "string",
              "null"
            ],
            "description": "Zuletzt gesehene Adresse",
            "example": "198.51.100.7:51820"
          },
          "last_handshake": {
            "type": [
              "string",
              "null"
            ],
            "description": "Letzter Handshake"
          },
          "traffic_bytes": {
            "type": "object",
            "properties": {
              "in": {
                "type": "number",
                "description": "Eingehend",
                "example": 1024
              },
              "out": {
                "type": "number",
                "description": "Ausgehend",
                "example": 2048
              }
            }
          },
          "allowed_ips": {
            "type": "array",
            "items": {
              "type": "object",
              "properties": {
                "id": {
                  "type": "integer",
                  "description": "ID",
                  "example": 3
                },
                "network": {
                  "type": "string",
                  "description": "Netz",
                  "example": "192.168.50.0/24"
                }
              }
            },
            "description": "Nur in der Detailansicht: zusätzliche AllowedIPs der Client-Config"
          }
        }
      },
      "Gateway": {
        "type": "object",
        "properties": {
          "id": {
            "type": "string",
            "description": "Gateway-ID",
            "example": "Ab3dEf6hIj9kLm2nOp5qRs8tUv1wXy4z"
          },
          "name": {
            "type": "string",
            "description": "Name",
            "example": "Gateway Frankfurt"
          },
          "state": {
            "type": "string",
            "description": "Zustand",
            "enum": [
              "ready",
              "creating",
              "applying",
              "deleting"
            ],
            "example": "ready"
          },
          "disabled": {
            "type": "boolean",
            "description": "Deaktiviert",
            "example": false
          },
          "traffic_limited": {
            "type": "boolean",
            "description": "Durch Traffic-Limit gesperrt",
            "example": false
          },
          "server": {
            "type": [
              "object",
              "null"
            ],
            "properties": {
              "name": {
                "type": "string",
                "description": "Name",
                "example": "VPN-FSN-1"
              },
              "hostname": {
                "type": "string",
                "description": "Hostname",
                "example": "vpn1.ipv64.net"
              },
              "location": {
                "type": "string",
                "description": "Standort",
                "example": "Falkenstein"
              }
            }
          },
          "listen_port": {
            "type": [
              "integer",
              "null"
            ],
            "description": "WireGuard-Port am Server",
            "example": 51820
          },
          "ipv4": {
            "type": [
              "string",
              "null"
            ],
            "description": "Gateway-Adresse IPv4 (CIDR)",
            "example": "10.7.0.1/24"
          },
          "ipv6": {
            "type": [
              "string",
              "null"
            ],
            "description": "Gateway-Adresse IPv6 (CIDR)"
          },
          "public_key": {
            "type": [
              "string",
              "null"
            ],
            "description": "Öffentlicher Schlüssel",
            "example": "HIgo9xNzJMWLKASShiTqIybxZ0U3wGLiUeJ1PKf8ykw="
          },
          "ospf": {
            "type": [
              "object",
              "null"
            ],
            "properties": {
              "area_id": {
                "type": "string",
                "description": "Area",
                "example": "0.0.0.0"
              },
              "ospf_version": {
                "type": "integer",
                "description": "Version",
                "example": 2
              },
              "cost": {
                "type": "integer",
                "description": "Kosten",
                "example": 10
              }
            }
          },
          "traffic_bytes": {
            "type": "object",
            "properties": {
              "in": {
                "type": "number",
                "description": "Eingehend",
                "example": 1024
              },
              "out": {
                "type": "number",
                "description": "Ausgehend",
                "example": 2048
              }
            }
          },
          "created_at": {
            "type": [
              "string",
              "null"
            ],
            "description": "Angelegt",
            "format": "date-time",
            "example": "2026-10-10T12:00:00+02:00"
          },
          "peers": {
            "type": "array",
            "items": {
              "$ref": "#/components/schemas/Peer"
            },
            "description": "Nur in der Detailansicht"
          }
        }
      },
      "PublicIp": {
        "type": "object",
        "properties": {
          "id": {
            "type": "integer",
            "description": "ID",
            "example": 5
          },
          "ip": {
            "type": "string",
            "description": "Adresse",
            "example": "2001:db8:64::1a2b:3c4d"
          },
          "type": {
            "type": "string",
            "description": "Familie",
            "example": "ipv6"
          },
          "disabled": {
            "type": "boolean",
            "description": "Deaktiviert",
            "example": false
          },
          "state": {
            "type": "string",
            "description": "Zustand",
            "enum": [
              "ready",
              "applying"
            ],
            "example": "ready"
          },
          "created_at": {
            "type": [
              "string",
              "null"
            ],
            "description": "Angelegt",
            "format": "date-time",
            "example": "2026-10-10T12:00:00+02:00"
          }
        }
      },
      "CloudRouter": {
        "type": "object",
        "properties": {
          "id": {
            "type": "string",
            "description": "Router-ID",
            "example": "Ab3dEf6hIj9kLm2nOp5qRs8tUv1wXy4z"
          },
          "name": {
            "type": "string",
            "description": "Name",
            "example": "Home Lab"
          },
          "vrf": {
            "type": "string",
            "description": "Interner VRF-Name",
            "example": "vrf522a"
          },
          "traffic_limited": {
            "type": "boolean",
            "description": "Durch Traffic-Limit gesperrt",
            "example": false
          },
          "gateways": {
            "type": "array",
            "items": {
              "$ref": "#/components/schemas/Gateway"
            }
          },
          "public_ips": {
            "type": "array",
            "items": {
              "$ref": "#/components/schemas/PublicIp"
            },
            "description": "Nur in der Detailansicht"
          }
        }
      },
      "PortForward": {
        "type": "object",
        "properties": {
          "id": {
            "type": "integer",
            "description": "ID",
            "example": 9
          },
          "name": {
            "type": "string",
            "description": "Name",
            "example": "Webserver"
          },
          "destination": {
            "type": "string",
            "description": "Ziel-IP im Tunnel",
            "example": "10.7.0.2"
          },
          "target_port": {
            "type": "integer",
            "description": "Ziel-Port",
            "example": 443
          },
          "protocol": {
            "type": "string",
            "description": "Protokoll",
            "enum": [
              "tcp",
              "udp"
            ],
            "example": "tcp"
          },
          "public_port": {
            "type": [
              "integer",
              "null"
            ],
            "description": "Vom Server vergebener öffentlicher Port",
            "example": 30443
          },
          "public_ip": {
            "type": "string",
            "description": "server = Adresse des VPN-Servers, router = öffentliche IP des Routers",
            "enum": [
              "server",
              "router"
            ],
            "example": "server"
          },
          "disabled": {
            "type": "boolean",
            "description": "Deaktiviert",
            "example": false
          },
          "state": {
            "type": "string",
            "description": "Zustand",
            "enum": [
              "ready",
              "applying",
              "deleting"
            ],
            "example": "ready"
          }
        }
      },
      "Route": {
        "type": "object",
        "properties": {
          "id": {
            "type": "integer",
            "description": "ID",
            "example": 21
          },
          "destination": {
            "type": "string",
            "description": "Zielnetz",
            "example": "192.168.50.0/24"
          },
          "gateway": {
            "type": "string",
            "description": "Next Hop",
            "example": "10.7.0.2"
          },
          "distance": {
            "type": "integer",
            "description": "Distanz",
            "example": 1
          },
          "peer": {
            "type": [
              "string",
              "null"
            ],
            "description": "Peer-ID"
          },
          "system": {
            "type": "boolean",
            "description": "Vom System angelegt, nicht löschbar",
            "example": false
          },
          "disabled": {
            "type": "boolean",
            "description": "Deaktiviert",
            "example": false
          },
          "state": {
            "type": "string",
            "description": "Zustand",
            "enum": [
              "ready",
              "applying",
              "deleting"
            ],
            "example": "ready"
          }
        }
      },
      "FirewallRule": {
        "type": "object",
        "properties": {
          "id": {
            "type": "integer",
            "description": "ID",
            "example": 4
          },
          "chain": {
            "type": "string",
            "description": "Kette",
            "enum": [
              "forward",
              "input",
              "output"
            ],
            "example": "forward"
          },
          "action": {
            "type": "string",
            "description": "Aktion",
            "enum": [
              "accept",
              "drop"
            ],
            "example": "drop"
          },
          "family": {
            "type": "string",
            "description": "Familie",
            "enum": [
              "ipv4",
              "ipv6"
            ],
            "example": "ipv4"
          },
          "source": {
            "type": [
              "string",
              "null"
            ],
            "description": "Quelle",
            "example": "10.7.0.0/24"
          },
          "destination": {
            "type": [
              "string",
              "null"
            ],
            "description": "Ziel"
          },
          "disabled": {
            "type": "boolean",
            "description": "Deaktiviert",
            "example": false
          },
          "state": {
            "type": "string",
            "description": "Zustand",
            "enum": [
              "ready",
              "applying",
              "deleting"
            ],
            "example": "ready"
          }
        }
      },
      "Dns64Client": {
        "type": "object",
        "properties": {
          "id": {
            "type": "string",
            "description": "Client-ID",
            "example": "Ab3dEf6hIj9kLm2nOp5qRs8tUv1wXy4z"
          },
          "name": {
            "type": "string",
            "description": "Name",
            "example": "Familie"
          },
          "client_id": {
            "type": [
              "string",
              "null"
            ],
            "description": "Kurzkennung in den Resolver-Adressen",
            "example": "k3x9m2"
          },
          "state": {
            "type": "string",
            "description": "Zustand",
            "enum": [
              "ready",
              "applying"
            ],
            "example": "ready"
          },
          "blocking_enabled": {
            "type": "boolean",
            "description": "Filter aktiv",
            "example": true
          },
          "blocklists": {
            "type": "array",
            "items": {
              "type": "string",
              "enum": [
                "ads",
                "adult",
                "threats"
              ],
              "example": "ads"
            },
            "description": "Aktive Blocklisten"
          },
          "servers": {
            "type": "array",
            "items": {
              "type": "object",
              "properties": {
                "location": {
                  "type": "string",
                  "description": "Standort",
                  "example": "Falkenstein"
                },
                "hostname": {
                  "type": "string",
                  "description": "Hostname",
                  "example": "dns64-1.ipv64.net"
                },
                "doh": {
                  "type": "string",
                  "description": "DNS over HTTPS",
                  "example": "https://dns64-1.ipv64.net/k3x9m2"
                },
                "dot": {
                  "type": "string",
                  "description": "DNS over TLS",
                  "example": "k3x9m2.dns64-1.ipv64.net"
                },
                "doq": {
                  "type": "string",
                  "description": "DNS over QUIC",
                  "example": "k3x9m2.dns64-1.ipv64.net"
                },
                "ipv6": {
                  "type": "string",
                  "description": "Persönliche IPv6 des Resolvers",
                  "example": "2001:db8:53::k3:x9m2"
                },
                "ipv4_shared": {
                  "type": "string",
                  "description": "Gemeinsame IPv4 (Zuordnung über Quell-Adressen)",
                  "example": "203.0.113.53"
                },
                "ipv6_shared": {
                  "type": "string",
                  "description": "Gemeinsame IPv6",
                  "example": "2001:db8:53::53"
                },
                "stamps": {
                  "type": [
                    "object",
                    "null"
                  ],
                  "properties": {
                    "doh": {
                      "type": "string",
                      "example": "sdns://AgcAAA..."
                    },
                    "dot": {
                      "type": "string",
                      "example": "sdns://AwcAAA..."
                    },
                    "doq": {
                      "type": "string",
                      "example": "sdns://BAcAAA..."
                    }
                  },
                  "description": "DNS-Stamps, nur in der Detailansicht"
                }
              }
            }
          },
          "queries_total": {
            "type": "integer",
            "description": "Anfragen gesamt",
            "example": 12000
          },
          "queries_blocked": {
            "type": "integer",
            "description": "Davon blockiert",
            "example": 800
          },
          "created_at": {
            "type": [
              "string",
              "null"
            ],
            "description": "Angelegt",
            "format": "date-time",
            "example": "2026-10-10T12:00:00+02:00"
          },
          "rules": {
            "type": "array",
            "items": {
              "type": "object",
              "properties": {
                "id": {
                  "type": "integer",
                  "description": "ID",
                  "example": 3
                },
                "domain": {
                  "type": "string",
                  "description": "Domain",
                  "example": "example.com"
                },
                "action": {
                  "type": "string",
                  "description": "Aktion",
                  "enum": [
                    "allow",
                    "block"
                  ],
                  "example": "block"
                },
                "state": {
                  "type": "string",
                  "description": "Zustand",
                  "enum": [
                    "ready",
                    "applying"
                  ],
                  "example": "ready"
                }
              }
            },
            "description": "Nur in der Detailansicht: eigene Allow- und Blockliste"
          },
          "sources": {
            "type": "array",
            "items": {
              "type": "object",
              "properties": {
                "id": {
                  "type": "string",
                  "description": "Numerische ID bei kind ip, Record-Token bei kind record",
                  "example": "8"
                },
                "kind": {
                  "type": "string",
                  "description": "Art",
                  "enum": [
                    "ip",
                    "record"
                  ],
                  "example": "ip"
                },
                "address": {
                  "type": "string",
                  "description": "Adresse",
                  "example": "203.0.113.10"
                },
                "fqdn": {
                  "type": "string",
                  "description": "Nur bei kind record",
                  "example": "home.beispiel.ipv64.de"
                }
              }
            },
            "description": "Nur in der Detailansicht: Quell-Adressen für die gemeinsamen Resolver-IPs"
          }
        }
      },
      "Hc2Check": {
        "type": "object",
        "properties": {
          "name": {
            "type": "string",
            "description": "Name",
            "example": "Backup NAS"
          },
          "type": {
            "type": "string",
            "description": "Typ (docker und proxmox nur noch bei bestehenden Checks; nicht mehr anlegbar, seit Node64 1.5.0 in Monitor64)",
            "example": "http",
            "enum": [
              "http",
              "keyword",
              "json",
              "dns",
              "icmp",
              "tcp",
              "port",
              "cert",
              "push",
              "whois",
              "docker",
              "proxmox"
            ]
          },
          "target": {
            "type": "string",
            "description": "Ziel: URL (http/keyword/json), Name (dns, bei PTR auch IP), Host/IP (icmp), host oder host:port (tcp/port/cert); leer bei push",
            "example": "https://example.com/"
          },
          "params": {
            "type": "object",
            "properties": {
              "method": {
                "type": "string",
                "description": "http/keyword: Methode (GET, HEAD, POST, ...)"
              },
              "accept_status": {
                "type": "string",
                "description": "http/keyword: erlaubte Statuscodes, z. B. 200-299,301"
              },
              "follow_redirects": {
                "type": "boolean",
                "description": "http/keyword"
              },
              "max_redirects": {
                "type": "integer",
                "description": "http/keyword"
              },
              "keyword": {
                "type": "string",
                "description": "keyword: gesuchter Text"
              },
              "keyword_absent": {
                "type": "boolean",
                "description": "keyword: Text darf NICHT vorkommen"
              },
              "basic_user": {
                "type": "string",
                "description": "http/keyword"
              },
              "basic_password": {
                "type": "string",
                "description": "http/keyword"
              },
              "headers": {
                "type": "object",
                "properties": {},
                "additionalProperties": {
                  "type": "string"
                },
                "description": "http/keyword: zusätzliche Header"
              },
              "body": {
                "type": "string",
                "description": "http/keyword"
              },
              "insecure_tls": {
                "type": "boolean",
                "description": "http/keyword: Zertifikatsfehler ignorieren"
              },
              "cert_min_days": {
                "type": "integer",
                "description": "http/keyword (HTTPS): gestört, wenn das Zertifikat in weniger Tagen abläuft (0 = aus)"
              },
              "count": {
                "type": "integer",
                "description": "icmp: Pakete (1-20)"
              },
              "max_loss_percent": {
                "type": "integer",
                "description": "icmp"
              },
              "max_latency_ms": {
                "type": "integer",
                "description": "icmp, 0 = aus"
              },
              "port": {
                "type": "integer",
                "description": "tcp/port/cert: Port, alternativ host:port im Ziel"
              },
              "send": {
                "type": "string",
                "description": "tcp: zu sendende Daten"
              },
              "expect": {
                "type": "string",
                "description": "tcp: erwarteter Antwortanfang; port: open|closed; dns: any, contains, equals, regex, nxdomain, public_ip (nur lokal)"
              },
              "tls": {
                "type": "boolean",
                "description": "tcp: TLS nach dem Verbinden"
              },
              "min_days": {
                "type": "integer",
                "description": "cert: Mindest-Restlaufzeit in Tagen"
              },
              "server_name": {
                "type": "string",
                "description": "cert: SNI"
              },
              "skip_chain": {
                "type": "boolean",
                "description": "cert"
              },
              "skip_hostname": {
                "type": "boolean",
                "description": "cert"
              },
              "period_seconds": {
                "type": "integer",
                "description": "push: erwarteter Abstand"
              },
              "grace_seconds": {
                "type": "integer",
                "description": "push: Kulanz"
              },
              "json_rules": {
                "type": "array",
                "description": "json: Bedingungen auf die JSON-Antwort (höchstens 10). Pfad z. B. data.items[0].status; op: eq, ne, lt, le, gt, ge, contains, not_contains, regex, exists, not_exists",
                "items": {
                  "type": "object",
                  "properties": {
                    "path": {
                      "type": "string"
                    },
                    "op": {
                      "type": "string",
                      "enum": [
                        "eq",
                        "ne",
                        "lt",
                        "le",
                        "gt",
                        "ge",
                        "contains",
                        "not_contains",
                        "regex",
                        "exists",
                        "not_exists"
                      ]
                    },
                    "value": {
                      "type": "string"
                    }
                  },
                  "required": [
                    "path",
                    "op"
                  ]
                }
              },
              "json_any": {
                "type": "boolean",
                "description": "json: eine erfüllte Bedingung genügt (sonst alle)"
              },
              "record_type": {
                "type": "string",
                "enum": [
                  "A",
                  "AAAA",
                  "CNAME",
                  "MX",
                  "TXT",
                  "NS",
                  "SRV",
                  "CAA",
                  "PTR",
                  "SOA"
                ],
                "description": "dns: Eintragstyp (Standard A)"
              },
              "resolver": {
                "type": "string",
                "enum": [
                  "system",
                  "server",
                  "authoritative"
                ],
                "description": "dns: Standard-Resolver, bestimmter Server (server) oder zuständige Nameserver der Zone"
              },
              "server": {
                "type": "string",
                "description": "dns bei resolver=server: IP, optional mit Port (1.1.1.1, [2606:4700::1111]:53)"
              },
              "values": {
                "type": "array",
                "items": {
                  "type": "string"
                },
                "description": "dns: erwartete Werte (contains/equals) bzw. ein Muster (regex)"
              },
              "dnssec": {
                "type": "boolean",
                "description": "dns: Antwort muss DNSSEC-validiert sein"
              },
              "min_ttl": {
                "type": "integer",
                "description": "dns: Mindest-TTL in Sekunden (0 = egal)"
              }
            },
            "description": "Typabhängige Parameter (Schlüssel wie in der Node)"
          },
          "interval_seconds": {
            "type": "integer",
            "description": "Intervall, mindestens 20",
            "example": 60
          },
          "retry_interval_seconds": {
            "type": "integer",
            "description": "Wiederholung bei Fehler, mindestens 5",
            "example": 20
          },
          "retries": {
            "type": "integer",
            "description": "zusätzliche Versuche vor Alarm (0-10)",
            "example": 1
          },
          "connect_timeout_seconds": {
            "type": "number",
            "description": "Verbindungs-Timeout",
            "example": 5
          },
          "timeout_seconds": {
            "type": "number",
            "description": "Gesamt-Timeout",
            "example": 10
          },
          "invert": {
            "type": "boolean",
            "description": "Ergebnis umkehren"
          },
          "stabilize": {
            "type": "integer",
            "description": "Messungen bis Zustandswechsel (1-20)",
            "example": 3
          },
          "ip_mode": {
            "type": "string",
            "description": "auto, ipv4, ipv6 oder both",
            "example": "auto",
            "enum": [
              "auto",
              "ipv4",
              "ipv6",
              "both"
            ]
          },
          "tags": {
            "type": "array",
            "items": {
              "type": "string"
            },
            "description": "Tags"
          },
          "group": {
            "type": "string",
            "description": "Gruppe (frei benannt)",
            "example": "Heimnetz"
          },
          "description": {
            "type": "string",
            "description": "Beschreibung"
          },
          "paused": {
            "type": "boolean",
            "description": "pausiert"
          },
          "parent": {
            "type": "string",
            "description": "Token des übergeordneten Checks (Abhängigkeit) oder leer"
          },
          "critical": {
            "type": "boolean",
            "description": "kritisch: ignoriert Ruhezeiten"
          },
          "execution": {
            "type": "string",
            "description": "Ausführungsort: online (ipv64), local (Node), both (hybrid)",
            "example": "online",
            "enum": [
              "online",
              "local",
              "both"
            ]
          },
          "node_id": {
            "type": "string",
            "description": "Besitzer-Node für local/both (bearbeitet in der Node, benachrichtigt ohne Verbindung); allein angegeben = eine messende Node"
          },
          "nodes": {
            "type": "array",
            "items": {
              "type": "string"
            },
            "description": "Messende Nodes (IDs) für local/both; mehrere möglich. Ausgabe: Liste {node_id, name}"
          },
          "locations": {
            "type": "array",
            "items": {
              "type": "string",
              "enum": [
                "nbg",
                "fsn"
              ]
            },
            "description": "Standorte für online/both (Anzahl je Account-Klasse)"
          },
          "policy": {
            "type": "string",
            "description": "Gesamtregel bei mehreren Messstellen",
            "example": "all",
            "enum": [
              "all",
              "any",
              "majority"
            ]
          },
          "notify_degraded": {
            "type": "boolean",
            "description": "auch bei teilweise gestört benachrichtigen"
          },
          "notify_down": {
            "type": "boolean",
            "description": "bei Störung benachrichtigen"
          },
          "notify_up": {
            "type": "boolean",
            "description": "bei Entwarnung benachrichtigen"
          },
          "channels": {
            "type": "array",
            "items": {
              "type": "integer"
            },
            "description": "Kanal-IDs; leer = Standardkanäle"
          },
          "repeat_minutes": {
            "type": "integer",
            "description": "Erinnerung bei anhaltender Störung in Minuten, 0 = aus",
            "example": 0
          },
          "token": {
            "type": "string",
            "description": "Token",
            "example": "Ab3dEf6hIj9kLm2nOp5qRs8tUv1wXy4z"
          },
          "node_name": {
            "type": "string",
            "description": "Name der Node"
          },
          "revision": {
            "type": "integer",
            "description": "Revision"
          },
          "created_at": {
            "type": "string",
            "format": "date-time",
            "nullable": true,
            "description": "angelegt"
          },
          "updated_at": {
            "type": "string",
            "format": "date-time",
            "nullable": true,
            "description": "geändert"
          },
          "state": {
            "type": "object",
            "properties": {
              "state": {
                "type": "string",
                "description": "up, down, degraded, flapping, paused, pending",
                "example": "up"
              },
              "since": {
                "type": "string",
                "format": "date-time",
                "nullable": true,
                "description": "seit"
              },
              "last_check_at": {
                "type": "string",
                "format": "date-time",
                "nullable": true,
                "description": "letzte Messung"
              },
              "last_status": {
                "type": "string",
                "description": "up|down"
              },
              "last_latency_ms": {
                "type": "number",
                "description": "Latenz"
              },
              "last_reason": {
                "type": "string",
                "description": "Grund"
              },
              "last_message": {
                "type": "string",
                "description": "Meldung"
              },
              "down_since": {
                "type": "string",
                "format": "date-time",
                "nullable": true,
                "description": "gestört seit"
              },
              "last_push_at": {
                "type": "string",
                "format": "date-time",
                "nullable": true,
                "description": "letzter Push"
              }
            }
          },
          "push": {
            "type": "object",
            "properties": {
              "url": {
                "type": "string",
                "description": "Push-URL bei ipv64"
              },
              "hub_url": {
                "type": "string",
                "description": "Push-URL am hub"
              },
              "node_path": {
                "type": "string",
                "description": "Pfad an der Node (http://<node>/api/push/<token>)"
              }
            },
            "description": "nur bei type push"
          }
        }
      },
      "Hc2CheckDetail": {
        "allOf": [
          {
            "$ref": "#/components/schemas/Hc2Check"
          },
          {
            "type": "object",
            "properties": {
              "sources": {
                "type": "array",
                "items": {
                  "type": "object",
                  "properties": {
                    "source": {
                      "type": "string",
                      "description": "loc:nbg, loc:fsn oder node:<id>"
                    },
                    "label": {
                      "type": "string",
                      "description": "lesbarer Name"
                    },
                    "state": {
                      "type": "string",
                      "description": "Zustand dieser Messstelle"
                    },
                    "since": {
                      "type": "string",
                      "format": "date-time",
                      "nullable": true,
                      "description": ""
                    },
                    "last_check_at": {
                      "type": "string",
                      "format": "date-time",
                      "nullable": true,
                      "description": ""
                    },
                    "last_status": {
                      "type": "string",
                      "description": ""
                    },
                    "last_latency_ms": {
                      "type": "number",
                      "description": ""
                    },
                    "last_reason": {
                      "type": "string",
                      "description": ""
                    },
                    "last_message": {
                      "type": "string",
                      "description": ""
                    },
                    "consecutive_fail": {
                      "type": "integer",
                      "description": ""
                    },
                    "consecutive_ok": {
                      "type": "integer",
                      "description": ""
                    }
                  }
                },
                "description": "Zustand je Messstelle"
              },
              "availability_percent": {
                "type": "object",
                "properties": {
                  "24h": {
                    "type": "number",
                    "description": ""
                  },
                  "30d": {
                    "type": "number",
                    "description": ""
                  },
                  "1y": {
                    "type": "number",
                    "description": ""
                  }
                }
              }
            }
          }
        ]
      },
      "Hc2CheckInput": {
        "type": "object",
        "properties": {
          "name": {
            "type": "string",
            "description": "Name",
            "example": "Backup NAS"
          },
          "type": {
            "type": "string",
            "description": "Typ",
            "example": "http",
            "enum": [
              "http",
              "keyword",
              "json",
              "dns",
              "icmp",
              "tcp",
              "port",
              "cert",
              "push",
              "whois"
            ]
          },
          "target": {
            "type": "string",
            "description": "Ziel: URL (http/keyword/json), Name (dns, bei PTR auch IP), Host/IP (icmp), host oder host:port (tcp/port/cert); leer bei push",
            "example": "https://example.com/"
          },
          "params": {
            "type": "object",
            "properties": {
              "method": {
                "type": "string",
                "description": "http/keyword: Methode (GET, HEAD, POST, ...)"
              },
              "accept_status": {
                "type": "string",
                "description": "http/keyword: erlaubte Statuscodes, z. B. 200-299,301"
              },
              "follow_redirects": {
                "type": "boolean",
                "description": "http/keyword"
              },
              "max_redirects": {
                "type": "integer",
                "description": "http/keyword"
              },
              "keyword": {
                "type": "string",
                "description": "keyword: gesuchter Text"
              },
              "keyword_absent": {
                "type": "boolean",
                "description": "keyword: Text darf NICHT vorkommen"
              },
              "basic_user": {
                "type": "string",
                "description": "http/keyword"
              },
              "basic_password": {
                "type": "string",
                "description": "http/keyword"
              },
              "headers": {
                "type": "object",
                "properties": {},
                "additionalProperties": {
                  "type": "string"
                },
                "description": "http/keyword: zusätzliche Header"
              },
              "body": {
                "type": "string",
                "description": "http/keyword"
              },
              "insecure_tls": {
                "type": "boolean",
                "description": "http/keyword: Zertifikatsfehler ignorieren"
              },
              "cert_min_days": {
                "type": "integer",
                "description": "http/keyword (HTTPS): gestört, wenn das Zertifikat in weniger Tagen abläuft (0 = aus)"
              },
              "count": {
                "type": "integer",
                "description": "icmp: Pakete (1-20)"
              },
              "max_loss_percent": {
                "type": "integer",
                "description": "icmp"
              },
              "max_latency_ms": {
                "type": "integer",
                "description": "icmp, 0 = aus"
              },
              "port": {
                "type": "integer",
                "description": "tcp/port/cert: Port, alternativ host:port im Ziel"
              },
              "send": {
                "type": "string",
                "description": "tcp: zu sendende Daten"
              },
              "expect": {
                "type": "string",
                "description": "tcp: erwarteter Antwortanfang; port: open|closed; dns: any, contains, equals, regex, nxdomain, public_ip (nur lokal)"
              },
              "tls": {
                "type": "boolean",
                "description": "tcp: TLS nach dem Verbinden"
              },
              "min_days": {
                "type": "integer",
                "description": "cert: Mindest-Restlaufzeit in Tagen"
              },
              "server_name": {
                "type": "string",
                "description": "cert: SNI"
              },
              "skip_chain": {
                "type": "boolean",
                "description": "cert"
              },
              "skip_hostname": {
                "type": "boolean",
                "description": "cert"
              },
              "period_seconds": {
                "type": "integer",
                "description": "push: erwarteter Abstand"
              },
              "grace_seconds": {
                "type": "integer",
                "description": "push: Kulanz"
              },
              "json_rules": {
                "type": "array",
                "description": "json: Bedingungen auf die JSON-Antwort (höchstens 10). Pfad z. B. data.items[0].status; op: eq, ne, lt, le, gt, ge, contains, not_contains, regex, exists, not_exists",
                "items": {
                  "type": "object",
                  "properties": {
                    "path": {
                      "type": "string"
                    },
                    "op": {
                      "type": "string",
                      "enum": [
                        "eq",
                        "ne",
                        "lt",
                        "le",
                        "gt",
                        "ge",
                        "contains",
                        "not_contains",
                        "regex",
                        "exists",
                        "not_exists"
                      ]
                    },
                    "value": {
                      "type": "string"
                    }
                  },
                  "required": [
                    "path",
                    "op"
                  ]
                }
              },
              "json_any": {
                "type": "boolean",
                "description": "json: eine erfüllte Bedingung genügt (sonst alle)"
              },
              "record_type": {
                "type": "string",
                "enum": [
                  "A",
                  "AAAA",
                  "CNAME",
                  "MX",
                  "TXT",
                  "NS",
                  "SRV",
                  "CAA",
                  "PTR",
                  "SOA"
                ],
                "description": "dns: Eintragstyp (Standard A)"
              },
              "resolver": {
                "type": "string",
                "enum": [
                  "system",
                  "server",
                  "authoritative"
                ],
                "description": "dns: Standard-Resolver, bestimmter Server (server) oder zuständige Nameserver der Zone"
              },
              "server": {
                "type": "string",
                "description": "dns bei resolver=server: IP, optional mit Port (1.1.1.1, [2606:4700::1111]:53)"
              },
              "values": {
                "type": "array",
                "items": {
                  "type": "string"
                },
                "description": "dns: erwartete Werte (contains/equals) bzw. ein Muster (regex)"
              },
              "dnssec": {
                "type": "boolean",
                "description": "dns: Antwort muss DNSSEC-validiert sein"
              },
              "min_ttl": {
                "type": "integer",
                "description": "dns: Mindest-TTL in Sekunden (0 = egal)"
              }
            },
            "description": "Typabhängige Parameter (Schlüssel wie in der Node)"
          },
          "interval_seconds": {
            "type": "integer",
            "description": "Intervall, mindestens 20",
            "example": 60
          },
          "retry_interval_seconds": {
            "type": "integer",
            "description": "Wiederholung bei Fehler, mindestens 5",
            "example": 20
          },
          "retries": {
            "type": "integer",
            "description": "zusätzliche Versuche vor Alarm (0-10)",
            "example": 1
          },
          "connect_timeout_seconds": {
            "type": "number",
            "description": "Verbindungs-Timeout",
            "example": 5
          },
          "timeout_seconds": {
            "type": "number",
            "description": "Gesamt-Timeout",
            "example": 10
          },
          "invert": {
            "type": "boolean",
            "description": "Ergebnis umkehren"
          },
          "stabilize": {
            "type": "integer",
            "description": "Messungen bis Zustandswechsel (1-20)",
            "example": 3
          },
          "ip_mode": {
            "type": "string",
            "description": "auto, ipv4, ipv6 oder both",
            "example": "auto",
            "enum": [
              "auto",
              "ipv4",
              "ipv6",
              "both"
            ]
          },
          "tags": {
            "type": "array",
            "items": {
              "type": "string"
            },
            "description": "Tags"
          },
          "group": {
            "type": "string",
            "description": "Gruppe (frei benannt)",
            "example": "Heimnetz"
          },
          "description": {
            "type": "string",
            "description": "Beschreibung"
          },
          "paused": {
            "type": "boolean",
            "description": "pausiert"
          },
          "parent": {
            "type": "string",
            "description": "Token des übergeordneten Checks (Abhängigkeit) oder leer"
          },
          "critical": {
            "type": "boolean",
            "description": "kritisch: ignoriert Ruhezeiten"
          },
          "execution": {
            "type": "string",
            "description": "Ausführungsort: online (ipv64), local (Node), both (hybrid)",
            "example": "online",
            "enum": [
              "online",
              "local",
              "both"
            ]
          },
          "node_id": {
            "type": "string",
            "description": "Besitzer-Node für local/both (bearbeitet in der Node, benachrichtigt ohne Verbindung); allein angegeben = eine messende Node"
          },
          "nodes": {
            "type": "array",
            "items": {
              "type": "string"
            },
            "description": "Messende Nodes (IDs) für local/both; mehrere möglich. Ausgabe: Liste {node_id, name}"
          },
          "locations": {
            "type": "array",
            "items": {
              "type": "string",
              "enum": [
                "nbg",
                "fsn"
              ]
            },
            "description": "Standorte für online/both (Anzahl je Account-Klasse)"
          },
          "policy": {
            "type": "string",
            "description": "Gesamtregel bei mehreren Messstellen",
            "example": "all",
            "enum": [
              "all",
              "any",
              "majority"
            ]
          },
          "notify_degraded": {
            "type": "boolean",
            "description": "auch bei teilweise gestört benachrichtigen"
          },
          "notify_down": {
            "type": "boolean",
            "description": "bei Störung benachrichtigen"
          },
          "notify_up": {
            "type": "boolean",
            "description": "bei Entwarnung benachrichtigen"
          },
          "channels": {
            "type": "array",
            "items": {
              "type": "integer"
            },
            "description": "Kanal-IDs; leer = Standardkanäle"
          },
          "repeat_minutes": {
            "type": "integer",
            "description": "Erinnerung bei anhaltender Störung in Minuten, 0 = aus",
            "example": 0
          }
        },
        "required": [
          "name",
          "type"
        ]
      },
      "Hc2Measurement": {
        "type": "object",
        "properties": {
          "time": {
            "type": "string",
            "format": "date-time",
            "nullable": true,
            "description": ""
          },
          "source": {
            "type": "string",
            "description": ""
          },
          "source_label": {
            "type": "string",
            "description": ""
          },
          "status": {
            "type": "string",
            "description": "up|down"
          },
          "latency_ms": {
            "type": "number",
            "description": ""
          },
          "reason": {
            "type": "string",
            "description": ""
          },
          "message": {
            "type": "string",
            "description": ""
          },
          "family": {
            "type": "string",
            "description": "ipv4|ipv6"
          },
          "details": {
            "type": "object",
            "description": "Rohdaten"
          }
        }
      },
      "Hc2Event": {
        "type": "object",
        "properties": {
          "id": {
            "type": "integer",
            "description": ""
          },
          "event_id": {
            "type": "string",
            "description": ""
          },
          "token": {
            "type": "string",
            "description": ""
          },
          "source": {
            "type": "string",
            "description": "leer = Gesamtzustand"
          },
          "source_label": {
            "type": "string",
            "description": ""
          },
          "kind": {
            "type": "string",
            "description": "down, up, degraded, degraded_end, flapping_start, flapping_end, reminder"
          },
          "time": {
            "type": "string",
            "format": "date-time",
            "nullable": true,
            "description": ""
          },
          "from_state": {
            "type": "string",
            "description": ""
          },
          "to_state": {
            "type": "string",
            "description": ""
          },
          "reason": {
            "type": "string",
            "description": ""
          },
          "message": {
            "type": "string",
            "description": ""
          },
          "duration_seconds": {
            "type": "integer",
            "description": ""
          },
          "flaps": {
            "type": "integer",
            "description": ""
          },
          "silent": {
            "type": "boolean",
            "description": "ohne Alarm"
          },
          "incident_id": {
            "type": "integer",
            "description": ""
          }
        }
      },
      "Hc2Incident": {
        "type": "object",
        "properties": {
          "id": {
            "type": "integer",
            "description": ""
          },
          "token": {
            "type": "string",
            "description": ""
          },
          "name": {
            "type": "string",
            "description": ""
          },
          "status": {
            "type": "string",
            "description": "open|closed"
          },
          "started_at": {
            "type": "string",
            "format": "date-time",
            "nullable": true,
            "description": ""
          },
          "ended_at": {
            "type": "string",
            "format": "date-time",
            "nullable": true,
            "description": ""
          },
          "duration_seconds": {
            "type": "integer",
            "description": ""
          },
          "reason": {
            "type": "string",
            "description": ""
          },
          "message": {
            "type": "string",
            "description": ""
          },
          "sources": {
            "type": "array",
            "items": {
              "type": "string"
            },
            "description": "betroffene Messstellen"
          }
        }
      },
      "Hc2Stats": {
        "type": "object",
        "properties": {
          "range": {
            "type": "string",
            "description": ""
          },
          "bucket": {
            "type": "string",
            "description": "hour|day"
          },
          "measurements": {
            "type": "integer",
            "description": ""
          },
          "availability_percent": {
            "type": "number",
            "description": ""
          },
          "sources": {
            "type": "array",
            "items": {
              "type": "object",
              "properties": {
                "source": {
                  "type": "string",
                  "description": ""
                },
                "label": {
                  "type": "string",
                  "description": ""
                },
                "measurements": {
                  "type": "integer",
                  "description": ""
                },
                "availability_percent": {
                  "type": "number",
                  "description": ""
                },
                "latency_ms": {
                  "type": "object",
                  "properties": {
                    "min": {
                      "type": "number",
                      "description": ""
                    },
                    "avg": {
                      "type": "number",
                      "description": ""
                    },
                    "max": {
                      "type": "number",
                      "description": ""
                    }
                  }
                }
              }
            },
            "description": "je Messstelle"
          },
          "series": {
            "type": "array",
            "items": {
              "type": "object",
              "properties": {
                "time": {
                  "type": "string",
                  "format": "date-time",
                  "nullable": true,
                  "description": ""
                },
                "source": {
                  "type": "string",
                  "description": ""
                },
                "measurements": {
                  "type": "integer",
                  "description": ""
                },
                "availability_percent": {
                  "type": "number",
                  "description": ""
                },
                "latency_avg_ms": {
                  "type": "number",
                  "description": ""
                },
                "latency_max_ms": {
                  "type": "number",
                  "description": ""
                }
              }
            },
            "description": "Zeitreihe"
          }
        }
      },
      "Hc2Testrun": {
        "type": "object",
        "properties": {
          "id": {
            "type": "integer",
            "description": ""
          },
          "status": {
            "type": "string",
            "description": "pending, running, ok, failed, expired"
          },
          "target": {
            "type": "string",
            "description": "Ziel-Ausführungsort"
          },
          "applied": {
            "type": "boolean",
            "description": "Wechsel wurde übernommen"
          },
          "results": {
            "type": "array",
            "items": {
              "type": "object",
              "properties": {
                "source": {
                  "type": "string",
                  "description": ""
                },
                "ok": {
                  "type": "boolean",
                  "description": ""
                },
                "message": {
                  "type": "string",
                  "description": ""
                }
              }
            },
            "description": "Ergebnis je Messstelle"
          },
          "error": {
            "type": "string",
            "description": ""
          }
        }
      },
      "Hc2Channel": {
        "type": "object",
        "properties": {
          "id": {
            "type": "integer",
            "description": ""
          },
          "type": {
            "type": "string",
            "description": "ipv64_mail, ipv64_sms, app (IPv64 App: config device_key NTFY-DEVICE-…, critical; secntfy is accepted as old name), telegram, discord, slack, teams, matrix, ntfy, gotify, pushover, webhook, smtp"
          },
          "type_label": {
            "type": "string",
            "description": ""
          },
          "name": {
            "type": "string",
            "description": ""
          },
          "config": {
            "type": "object",
            "additionalProperties": true,
            "description": "Konfiguration ohne Geheimnisse"
          },
          "secrets_set": {
            "type": "array",
            "items": {
              "type": "string"
            },
            "description": "gesetzte geheime Felder"
          },
          "enabled": {
            "type": "boolean",
            "description": ""
          },
          "default": {
            "type": "boolean",
            "description": "Standardkanal"
          },
          "verified": {
            "type": "boolean",
            "description": "Mail/SMS: per Code bestätigt"
          },
          "lang": {
            "type": "string",
            "description": "de|en"
          },
          "notify_down": {
            "type": "boolean",
            "description": ""
          },
          "notify_up": {
            "type": "boolean",
            "description": ""
          },
          "execution": {
            "type": "string",
            "description": "server|node"
          },
          "node_id": {
            "type": "string",
            "description": ""
          },
          "last_used": {
            "type": "string",
            "format": "date-time",
            "nullable": true,
            "description": ""
          },
          "last_error": {
            "type": "string",
            "description": ""
          },
          "revision": {
            "type": "integer",
            "description": ""
          },
          "created_at": {
            "type": "string",
            "format": "date-time",
            "nullable": true,
            "description": ""
          },
          "sendable_via_api": {
            "type": "boolean",
            "description": "Über POST /hc2/channels/{id}/send nutzbar (ipv64-Kanal, verifiziert, aktiv)"
          }
        }
      },
      "Hc2ChannelInput": {
        "type": "object",
        "properties": {
          "type": {
            "type": "string",
            "description": "Kanaltyp (nur beim Anlegen)",
            "example": "ntfy"
          },
          "name": {
            "type": "string",
            "description": "Name"
          },
          "config": {
            "type": "object",
            "additionalProperties": true,
            "description": "Felder laut GET /hc2/channel-types; geheime Felder beim Ändern weglassen = unverändert"
          },
          "enabled": {
            "type": "boolean",
            "description": ""
          },
          "default": {
            "type": "boolean",
            "description": ""
          },
          "lang": {
            "type": "string",
            "description": "de|en"
          },
          "notify_down": {
            "type": "boolean",
            "description": ""
          },
          "notify_up": {
            "type": "boolean",
            "description": ""
          }
        },
        "required": [
          "name"
        ]
      },
      "Hc2ChannelType": {
        "type": "object",
        "properties": {
          "type": {
            "type": "string",
            "description": ""
          },
          "label": {
            "type": "string",
            "description": ""
          },
          "needs_verification": {
            "type": "boolean",
            "description": ""
          },
          "fields": {
            "type": "array",
            "items": {
              "type": "object",
              "properties": {
                "key": {
                  "type": "string",
                  "description": ""
                },
                "label": {
                  "type": "string",
                  "description": ""
                },
                "kind": {
                  "type": "string",
                  "description": "text, password, url, email, number, select, textarea, bool"
                },
                "required": {
                  "type": "boolean",
                  "description": ""
                },
                "secret": {
                  "type": "boolean",
                  "description": ""
                },
                "options": {
                  "type": "array",
                  "items": {
                    "type": "string"
                  },
                  "description": ""
                },
                "default": {
                  "type": "string",
                  "description": ""
                }
              }
            },
            "description": ""
          }
        }
      },
      "Hc2Maintenance": {
        "type": "object",
        "properties": {
          "id": {
            "type": "integer",
            "description": ""
          },
          "name": {
            "type": "string",
            "description": ""
          },
          "start_at": {
            "type": "string",
            "format": "date-time",
            "nullable": true,
            "description": ""
          },
          "end_at": {
            "type": "string",
            "format": "date-time",
            "nullable": true,
            "description": ""
          },
          "repeat": {
            "type": "string",
            "description": "none, daily, weekly, monthly"
          },
          "repeat_until": {
            "type": "string",
            "format": "date-time",
            "nullable": true,
            "description": ""
          },
          "tokens": {
            "type": "array",
            "items": {
              "type": "string"
            },
            "description": "leer = alle Checks"
          },
          "active": {
            "type": "boolean",
            "description": ""
          },
          "node_id": {
            "type": "string",
            "description": ""
          },
          "revision": {
            "type": "integer",
            "description": ""
          }
        }
      },
      "Hc2MaintenanceInput": {
        "type": "object",
        "properties": {
          "name": {
            "type": "string",
            "description": ""
          },
          "start_at": {
            "type": "string",
            "format": "date-time",
            "nullable": true,
            "description": "ISO 8601"
          },
          "end_at": {
            "type": "string",
            "format": "date-time",
            "nullable": true,
            "description": "ISO 8601"
          },
          "repeat": {
            "type": "string",
            "description": "none, daily, weekly, monthly"
          },
          "repeat_until": {
            "type": "string",
            "format": "date-time",
            "nullable": true,
            "description": ""
          },
          "tokens": {
            "type": "array",
            "items": {
              "type": "string"
            },
            "description": ""
          },
          "active": {
            "type": "boolean",
            "description": ""
          }
        },
        "required": [
          "name",
          "start_at",
          "end_at"
        ]
      },
      "Hc2Node": {
        "type": "object",
        "properties": {
          "node_id": {
            "type": "string",
            "description": ""
          },
          "name": {
            "type": "string",
            "description": ""
          },
          "location": {
            "type": "string",
            "description": ""
          },
          "version": {
            "type": "string",
            "description": ""
          },
          "timezone": {
            "type": "string",
            "description": ""
          },
          "modules": {
            "type": "array",
            "items": {
              "type": "string"
            },
            "description": ""
          },
          "remote_mgmt": {
            "type": "string",
            "description": "off, read, full"
          },
          "online": {
            "type": "boolean",
            "description": ""
          },
          "last_seen": {
            "type": "string",
            "format": "date-time",
            "nullable": true,
            "description": ""
          },
          "last_sync": {
            "type": "string",
            "format": "date-time",
            "nullable": true,
            "description": ""
          },
          "outbox_size": {
            "type": "integer",
            "description": ""
          },
          "conflicts": {
            "type": "integer",
            "description": ""
          },
          "hub": {
            "type": "string",
            "description": "verbunden mit"
          },
          "linked_at": {
            "type": "string",
            "format": "date-time",
            "nullable": true,
            "description": ""
          }
        }
      },
      "Hc2NodeDetail": {
        "allOf": [
          {
            "$ref": "#/components/schemas/Hc2Node"
          },
          {
            "type": "object",
            "properties": {
              "checks": {
                "type": "array",
                "items": {
                  "$ref": "#/components/schemas/Hc2Check"
                },
                "description": "Checks dieser Node"
              }
            }
          }
        ]
      },
      "Hc2Command": {
        "type": "object",
        "properties": {
          "command_id": {
            "type": "integer",
            "description": ""
          },
          "node_id": {
            "type": "string",
            "description": ""
          },
          "name": {
            "type": "string",
            "description": ""
          },
          "args": {
            "type": "object"
          },
          "created_at": {
            "type": "string",
            "format": "date-time",
            "nullable": true,
            "description": ""
          },
          "done_at": {
            "type": "string",
            "format": "date-time",
            "nullable": true,
            "description": ""
          },
          "ok": {
            "type": "boolean",
            "description": ""
          },
          "output": {
            "description": "Ergebnis"
          }
        }
      },
      "Hc2Account": {
        "type": "object",
        "properties": {
          "plan": {
            "type": "string",
            "description": ""
          },
          "online_measuring_points": {
            "type": "object",
            "properties": {
              "used": {
                "type": "integer",
                "description": ""
              },
              "limit": {
                "type": "integer",
                "description": "null = unbegrenzt"
              }
            }
          },
          "checks_per_day": {
            "type": "object",
            "description": "Tageskontingent: Online-Messungen je Standort plus Pushes an die Online-Adresse (Tag Europe/Berlin). Erreicht: Online-Checks pausieren bis Mitternacht.",
            "properties": {
              "used": {
                "type": "integer",
                "description": "heute"
              },
              "limit": {
                "type": "integer",
                "description": "null = unbegrenzt"
              }
            }
          },
          "locations_per_check": {
            "type": "integer",
            "description": ""
          },
          "sms_per_day": {
            "type": "integer",
            "description": ""
          },
          "locations": {
            "type": "array",
            "items": {
              "type": "object",
              "properties": {
                "code": {
                  "type": "string",
                  "description": ""
                },
                "name": {
                  "type": "string",
                  "description": ""
                }
              }
            },
            "description": ""
          },
          "nodes": {
            "type": "object",
            "properties": {
              "total": {
                "type": "integer",
                "description": ""
              },
              "online": {
                "type": "integer",
                "description": ""
              }
            }
          },
          "checks": {
            "type": "integer",
            "description": ""
          }
        }
      },
      "Hc2PageMeta": {
        "type": "object",
        "properties": {
          "limit": {
            "type": "integer",
            "description": ""
          },
          "has_more": {
            "type": "boolean",
            "description": ""
          },
          "next_before": {
            "type": "integer",
            "description": ""
          },
          "next_after": {
            "type": "integer",
            "description": ""
          }
        }
      },
      "HoneypotReport": {
        "type": "object",
        "required": [
          "schema",
          "report_id",
          "sensor",
          "period",
          "sources"
        ],
        "properties": {
          "schema": {
            "type": "integer",
            "const": 1
          },
          "report_id": {
            "type": "string",
            "description": "<sensor.id>-<period.start unix>"
          },
          "sensor": {
            "type": "object",
            "required": [
              "id",
              "version",
              "profile",
              "mode"
            ],
            "properties": {
              "id": {
                "type": "string",
                "format": "uuid",
                "description": "fest je Installation, nicht die IP"
              },
              "version": {
                "type": "string",
                "maxLength": 32
              },
              "profile": {
                "type": "string",
                "enum": [
                  "minimal",
                  "standard",
                  "full",
                  "custom",
                  "proxy"
                ]
              },
              "mode": {
                "type": "string",
                "enum": [
                  "module",
                  "headless"
                ]
              },
              "country": {
                "type": "string",
                "pattern": "^[A-Z]{2}$",
                "description": "eingestellter Standort des Sensors (ISO 3166-1 alpha-2), nur fuer die Live-Karte; fehlt = automatisch"
              }
            }
          },
          "period": {
            "type": "object",
            "required": [
              "start",
              "end"
            ],
            "description": "UTC, start inklusive, end exklusive; höchstens 7 Tage, Ende höchstens 5 min in der Zukunft",
            "properties": {
              "start": {
                "type": "string",
                "format": "date-time"
              },
              "end": {
                "type": "string",
                "format": "date-time"
              }
            }
          },
          "sources": {
            "type": "array",
            "maxItems": 5000,
            "items": {
              "$ref": "#/components/schemas/HoneypotReportSource"
            }
          },
          "samples": {
            "$ref": "#/components/schemas/HoneypotReportSamples"
          },
          "dropped": {
            "type": "integer",
            "minimum": 0,
            "description": "vom Sensor wegen Grenzen weggelassen"
          }
        }
      },
      "HoneypotReportSource": {
        "type": "object",
        "required": [
          "ip",
          "kind",
          "service",
          "port",
          "count",
          "first",
          "last",
          "source"
        ],
        "properties": {
          "ip": {
            "type": "string",
            "description": "öffentliche IPv4/IPv6"
          },
          "kind": {
            "type": "string",
            "example": "ssh:bruteforce",
            "description": "feste Liste: ssh:bruteforce, telnet:bruteforce, http:bruteforce, http:exploit[:sqli|xss|traversal|rce|jndi|log4shell|ssrf|upload], http:scan, http:bad-useragent, generic:portscan, generic:probe, scanner:research, rdp:bruteforce, mail:auth-bruteforce, db:bruteforce, vpn:bruteforce"
          },
          "service": {
            "type": "string",
            "example": "ssh"
          },
          "port": {
            "type": "integer",
            "minimum": 0,
            "maximum": 65535
          },
          "count": {
            "type": "integer",
            "minimum": 1
          },
          "first": {
            "type": "string",
            "format": "date-time"
          },
          "last": {
            "type": "string",
            "format": "date-time"
          },
          "source": {
            "type": "string",
            "enum": [
              "honeypot",
              "log",
              "syslog"
            ]
          },
          "rule": {
            "type": "string",
            "maxLength": 64,
            "example": "honeypot/ssh@1"
          },
          "detail": {
            "type": "string",
            "maxLength": 256
          }
        }
      },
      "HoneypotReportSamples": {
        "type": "object",
        "description": "Proben (nur Honeypot), als Tagessummen gespeichert",
        "properties": {
          "credentials": {
            "type": "array",
            "maxItems": 500,
            "items": {
              "type": "object",
              "required": [
                "service",
                "user",
                "pass",
                "count"
              ],
              "properties": {
                "service": {
                  "type": "string"
                },
                "user": {
                  "type": "string",
                  "maxLength": 256
                },
                "pass": {
                  "type": "string",
                  "maxLength": 256
                },
                "count": {
                  "type": "integer",
                  "minimum": 1
                }
              }
            }
          },
          "paths": {
            "type": "array",
            "maxItems": 500,
            "items": {
              "type": "object",
              "required": [
                "key",
                "count"
              ],
              "properties": {
                "key": {
                  "type": "string",
                  "maxLength": 1024
                },
                "count": {
                  "type": "integer",
                  "minimum": 1
                }
              }
            }
          },
          "user_agents": {
            "type": "array",
            "maxItems": 500,
            "items": {
              "type": "object",
              "required": [
                "key",
                "count"
              ],
              "properties": {
                "key": {
                  "type": "string",
                  "maxLength": 256
                },
                "count": {
                  "type": "integer",
                  "minimum": 1
                }
              }
            }
          },
          "payloads": {
            "type": "array",
            "maxItems": 500,
            "items": {
              "type": "object",
              "required": [
                "sha256",
                "head",
                "service",
                "port",
                "count"
              ],
              "properties": {
                "sha256": {
                  "type": "string",
                  "pattern": "^[0-9a-f]{64}$"
                },
                "head": {
                  "type": "string",
                  "contentEncoding": "base64",
                  "description": "höchstens 256 Bytes"
                },
                "service": {
                  "type": "string"
                },
                "port": {
                  "type": "integer",
                  "minimum": 0,
                  "maximum": 65535
                },
                "count": {
                  "type": "integer",
                  "minimum": 1
                }
              }
            }
          },
          "fingerprints": {
            "type": "array",
            "maxItems": 500,
            "description": "H6: Fingerabdrücke der Werkzeuge (optional). Keys, die nicht dem Muster folgen, werden verworfen und als invalid_fingerprint gezählt.",
            "items": {
              "type": "object",
              "required": [
                "key",
                "count"
              ],
              "properties": {
                "key": {
                  "type": "string",
                  "pattern": "^(ja4:[a-z0-9_]{1,64}|hassh:[0-9a-f]{32})$",
                  "example": "ja4:t13d1516h2_8daaf6152771_02713d6af862"
                },
                "count": {
                  "type": "integer",
                  "minimum": 1
                }
              }
            }
          }
        }
      },
      "HoneypotReportAccepted": {
        "type": "object",
        "properties": {
          "accepted": {
            "type": "integer",
            "description": "gespeicherte Quellen"
          },
          "rejected": {
            "type": "integer",
            "description": "verworfene Quellen/Proben"
          },
          "rejected_reasons": {
            "type": "object",
            "additionalProperties": {
              "type": "integer"
            },
            "description": "not_public, own_ip, unknown_kind, unknown_service, unknown_source, out_of_period, invalid_fingerprint"
          },
          "report_id": {
            "type": "string"
          }
        }
      },
      "HoneypotSensor": {
        "type": "object",
        "properties": {
          "id": {
            "type": "string",
            "format": "uuid"
          },
          "version": {
            "type": "string"
          },
          "profile": {
            "type": "string"
          },
          "mode": {
            "type": "string"
          },
          "first_seen": {
            "type": "string",
            "format": "date-time"
          },
          "last_seen": {
            "type": "string",
            "format": "date-time"
          },
          "online": {
            "type": "boolean",
            "description": "Meldung in den letzten 30 Minuten"
          },
          "reports": {
            "type": "integer"
          },
          "disabled": {
            "type": "boolean"
          },
          "sources_24h": {
            "type": "integer",
            "description": "verschiedene Quell-IPs"
          },
          "sources_7d": {
            "type": "integer"
          },
          "events_24h": {
            "type": "integer"
          },
          "events_7d": {
            "type": "integer"
          }
        }
      },
      "HoneypotStats": {
        "type": "object",
        "properties": {
          "sensors": {
            "type": "integer"
          },
          "sensors_online": {
            "type": "integer"
          },
          "contributor": {
            "type": "boolean",
            "description": "mindestens ein Sensor hat in den letzten 7 Tagen gemeldet"
          },
          "last_report": {
            "type": "string",
            "format": "date-time",
            "nullable": true
          },
          "events_24h": {
            "type": "integer"
          },
          "events_7d": {
            "type": "integer"
          },
          "sources_24h": {
            "type": "integer"
          },
          "sources_7d": {
            "type": "integer"
          },
          "top_kinds": {
            "type": "array",
            "items": {
              "type": "object",
              "properties": {
                "kind": {
                  "type": "string"
                },
                "events": {
                  "type": "integer"
                },
                "sources": {
                  "type": "integer"
                }
              }
            }
          },
          "top_ports": {
            "type": "array",
            "items": {
              "type": "object",
              "properties": {
                "service": {
                  "type": "string"
                },
                "port": {
                  "type": "integer"
                },
                "events": {
                  "type": "integer"
                },
                "sources": {
                  "type": "integer"
                }
              }
            }
          },
          "timeline": {
            "type": "array",
            "items": {
              "type": "object",
              "properties": {
                "day": {
                  "type": "string",
                  "format": "date"
                },
                "events": {
                  "type": "integer"
                }
              }
            }
          }
        }
      },
      "ThreatIp": {
        "type": "object",
        "properties": {
          "ip": {
            "type": "string",
            "description": "Normalisierte Adresse",
            "example": "203.0.113.7"
          },
          "family": {
            "type": "integer",
            "enum": [
              4,
              6
            ],
            "example": 4
          },
          "listed": {
            "type": "boolean",
            "description": "steht auf der v64 Blocklist (Freigaben sind schon herausgerechnet)",
            "example": true
          },
          "status": {
            "type": "string",
            "enum": [
              "listed",
              "not_listed",
              "released",
              "allowlisted"
            ],
            "description": "released = Freigabe aus Antrag (befristet), allowlisted = Freigabeliste",
            "example": "listed"
          },
          "score": {
            "type": [
              "integer",
              "null"
            ],
            "minimum": 0,
            "maximum": 100,
            "description": "Vertrauenswert 0–100 (nur wenn gelistet)",
            "example": 72
          },
          "lists": {
            "type": "array",
            "items": {
              "type": "string",
              "enum": [
                "ssh",
                "web",
                "mail",
                "rdp",
                "scanner",
                "research"
              ]
            },
            "description": "Teillisten (ipv64_blocklist_v64_<name>)",
            "example": [
              "ssh"
            ]
          },
          "kinds": {
            "type": "array",
            "items": {
              "type": "string"
            },
            "description": "Arten (feste Einteilung, z. B. ssh:bruteforce)",
            "example": [
              "ssh:bruteforce",
              "generic:portscan"
            ]
          },
          "ports": {
            "type": "array",
            "items": {
              "type": "object",
              "properties": {
                "service": {
                  "type": "string",
                  "example": "ssh"
                },
                "port": {
                  "type": "integer",
                  "example": 22
                }
              }
            },
            "description": "angegriffene Ports, die mindestens 2 Accounts gemeldet haben (höchstens 10)"
          },
          "first_seen": {
            "type": [
              "string",
              "null"
            ],
            "format": "date",
            "description": "erste Sichtung (Tag, UTC)",
            "example": "2026-10-18"
          },
          "last_seen": {
            "type": [
              "string",
              "null"
            ],
            "format": "date",
            "description": "letzte Sichtung (Tag, UTC)",
            "example": "2026-10-20"
          },
          "accounts": {
            "type": [
              "integer",
              "null"
            ],
            "description": "Anzahl verschiedener meldender Accounts (IPv6: im ganzen /64)",
            "example": 4
          },
          "country": {
            "type": [
              "string",
              "null"
            ],
            "description": "Land (ISO 3166-1), falls bekannt",
            "example": null
          },
          "asn": {
            "type": [
              "integer",
              "null"
            ],
            "description": "Netzbetreiber (ASN), falls bekannt",
            "example": null
          },
          "release": {
            "type": "object",
            "properties": {
              "status": {
                "type": "string",
                "enum": [
                  "none",
                  "in_review",
                  "released",
                  "allowlisted",
                  "rejected"
                ],
                "example": "none"
              },
              "protected_until": {
                "type": [
                  "string",
                  "null"
                ],
                "format": "date-time",
                "description": "Freigabe gilt bis (UTC); null = dauerhaft bzw. keine Freigabe",
                "example": null
              }
            }
          },
          "details": {
            "type": "string",
            "description": "Seite mit Erklärung und Freigabe-Antrag",
            "example": "https://ipv64.net/honeypot/ip.php?ip=203.0.113.7"
          }
        }
      },
      "ThreatStatsEntry": {
        "type": "object",
        "properties": {
          "value": {
            "type": "string",
            "example": "admin"
          },
          "events": {
            "type": "integer",
            "description": "Summe der Versuche (30 Tage)",
            "example": 18423
          },
          "accounts": {
            "type": "integer",
            "description": "verschiedene meldende Accounts (30 Tage)",
            "example": 5
          }
        }
      },
      "ThreatStats": {
        "type": "object",
        "properties": {
          "generated_at": {
            "type": "string",
            "format": "date-time",
            "description": "Stand des Caches (UTC)",
            "example": "2026-10-20T12:00:00Z"
          },
          "window_days": {
            "type": "integer",
            "description": "Fenster der Ranglisten in Tagen",
            "example": 30
          },
          "threshold": {
            "type": "object",
            "properties": {
              "accounts": {
                "type": "integer",
                "description": "Mindestzahl meldender Accounts für Ranglisten und Listen (2 unter 20 aktiven Accounts, sonst 3)",
                "example": 2
              },
              "active_accounts_7d": {
                "type": "integer",
                "description": "Accounts, deren Sensoren in den letzten 7 Tagen gemeldet haben",
                "example": 12
              }
            }
          },
          "sensors": {
            "type": "object",
            "properties": {
              "active_7d": {
                "type": "integer",
                "example": 25
              },
              "online": {
                "type": "integer",
                "description": "Meldung in den letzten 30 Minuten",
                "example": 21
              }
            }
          },
          "attacks_24h": {
            "type": "object",
            "properties": {
              "events": {
                "type": "integer",
                "example": 120345
              },
              "sources": {
                "type": "integer",
                "description": "verschiedene Angreifer-IPs",
                "example": 4312
              }
            }
          },
          "timeline": {
            "type": "array",
            "description": "Angriffe je Tag (UTC), 30 Tage",
            "items": {
              "type": "object",
              "properties": {
                "day": {
                  "type": "string",
                  "format": "date"
                },
                "events": {
                  "type": "integer"
                }
              }
            }
          },
          "top_ports": {
            "type": "array",
            "description": "meistangegriffene Ports (7 Tage, höchstens 10)",
            "items": {
              "type": "object",
              "properties": {
                "service": {
                  "type": "string",
                  "example": "ssh"
                },
                "port": {
                  "type": "integer",
                  "example": 22
                },
                "events": {
                  "type": "integer"
                }
              }
            }
          },
          "top_kinds": {
            "type": "array",
            "description": "häufigste Arten (7 Tage, höchstens 10)",
            "items": {
              "type": "object",
              "properties": {
                "kind": {
                  "type": "string",
                  "example": "ssh:bruteforce"
                },
                "events": {
                  "type": "integer"
                }
              }
            }
          },
          "lists": {
            "type": "object",
            "description": "Größe der Listen: v64 (gelistete IPs, Live-Stand), honeypot_passwords, honeypot_usernames, honeypot_bad_useragents, honeypot_attack_paths (Einträge der Text-Listen)",
            "additionalProperties": {
              "type": "integer"
            },
            "example": {
              "v64": 812,
              "honeypot_passwords": 10000
            }
          },
          "top": {
            "type": "object",
            "description": "Top 10 je Bereich (30 Tage, ab threshold.accounts Accounts)",
            "properties": {
              "usernames": {
                "type": "array",
                "items": {
                  "$ref": "#/components/schemas/ThreatStatsEntry"
                }
              },
              "passwords": {
                "type": "array",
                "items": {
                  "$ref": "#/components/schemas/ThreatStatsEntry"
                }
              },
              "paths": {
                "type": "array",
                "items": {
                  "$ref": "#/components/schemas/ThreatStatsEntry"
                }
              },
              "user_agents": {
                "type": "array",
                "items": {
                  "$ref": "#/components/schemas/ThreatStatsEntry"
                }
              },
              "fingerprints": {
                "type": "array",
                "description": "H6: Fingerabdrücke (JA4/HASSH)",
                "items": {
                  "$ref": "#/components/schemas/ThreatStatsEntry"
                }
              },
              "countries": {
                "type": "array",
                "description": "Herkunft nach Land: IPs der v64 Blocklist mit Sichtung in den letzten 30 Tagen je Land (Top 10, nach Anzahl IPs). Land nach Standort aus DB-IP Lite (CC BY 4.0, IP-Länderdaten: DB-IP.com), Lücken aus den RIR-Daten (https://ipv64.net/blocklists/country_ranges.txt.gz).",
                "items": {
                  "type": "object",
                  "properties": {
                    "country": {
                      "type": "string",
                      "description": "ISO 3166-1 alpha-2",
                      "example": "CN"
                    },
                    "ips": {
                      "type": "integer",
                      "description": "gelistete IPs aus diesem Land",
                      "example": 214
                    },
                    "events": {
                      "type": "integer",
                      "description": "Ereignisse dieser IPs (Bewertungsfenster)",
                      "example": 51234
                    }
                  }
                }
              }
            }
          },
          "info": {
            "type": "string",
            "example": "https://ipv64.net/honeypot/stats.php"
          },
          "license": {
            "type": "string",
            "example": "CC BY 4.0 (IPv64.net Honeypot64), provided as is without warranty"
          }
        }
      },
      "ThreatWatch": {
        "type": "object",
        "properties": {
          "limits": {
            "type": "object",
            "properties": {
              "max": {
                "type": "integer",
                "description": "Netze je Account (Standard 3, sonst 50)",
                "example": 3
              },
              "min_prefix_v4": {
                "type": "integer",
                "description": "IPv4 höchstens /16",
                "example": 16
              },
              "min_prefix_v6": {
                "type": "integer",
                "description": "IPv6 höchstens /32",
                "example": 32
              }
            }
          },
          "networks": {
            "type": "array",
            "items": {
              "$ref": "#/components/schemas/ThreatWatchNetwork"
            }
          },
          "dyndns": {
            "type": "array",
            "description": "automatisch überwacht (gelten als nachgewiesen)",
            "items": {
              "type": "object",
              "properties": {
                "ip": {
                  "type": "string",
                  "example": "198.51.100.7"
                },
                "domain": {
                  "type": "string",
                  "example": "x.ipv64.net"
                }
              }
            }
          }
        }
      },
      "ThreatWatchNetwork": {
        "type": "object",
        "properties": {
          "id": {
            "type": "integer",
            "example": 1
          },
          "cidr": {
            "type": "string",
            "description": "Netz, normalisiert (Netzadresse ohne Host-Bits)",
            "example": "203.0.113.0/24"
          },
          "label": {
            "type": "string",
            "example": "Büro"
          },
          "verified": {
            "type": "boolean",
            "description": "Nachweis erbracht (setzt nur ipv64): dann meldet jede Sichtung, sonst nur gelistete IPs",
            "example": false
          },
          "created_at": {
            "type": "string",
            "format": "date-time",
            "example": "2026-10-20T12:00:00Z"
          }
        }
      },
      "ThreatWatchAlert": {
        "type": "object",
        "properties": {
          "id": {
            "type": "integer",
            "example": 7
          },
          "ip": {
            "type": "string",
            "example": "203.0.113.9"
          },
          "cidr": {
            "type": "string",
            "description": "Netz bzw. bei dyndns die IP als /32 bzw. /128",
            "example": "203.0.113.0/24"
          },
          "network_id": {
            "type": [
              "integer",
              "null"
            ],
            "description": "null bei dyndns",
            "example": 1
          },
          "source": {
            "type": "string",
            "enum": [
              "network",
              "dyndns"
            ],
            "example": "network"
          },
          "label": {
            "type": "string",
            "description": "Bezeichnung des Netzes bzw. Domain (zusätzlich)",
            "example": "Büro"
          },
          "listed": {
            "type": "boolean",
            "description": "steht auf der v64 Blocklist",
            "example": true
          },
          "score": {
            "type": "integer",
            "minimum": 0,
            "maximum": 100,
            "description": "Vertrauenswert der Bewertung",
            "example": 72
          },
          "kinds": {
            "type": "array",
            "items": {
              "type": "string"
            },
            "example": [
              "ssh:bruteforce"
            ]
          },
          "first_seen": {
            "type": "string",
            "format": "date",
            "description": "erste Sichtung (Tag, UTC)",
            "example": "2026-10-19"
          },
          "last_seen": {
            "type": "string",
            "format": "date",
            "description": "letzte Sichtung (Tag, UTC)",
            "example": "2026-10-20"
          },
          "created_at": {
            "type": "string",
            "format": "date-time",
            "example": "2026-10-20T12:12:03Z"
          },
          "details": {
            "type": "object",
            "nullable": true,
            "description": "Warum die IP aufgefallen ist (letzte 14 Tage): Anzahlen und je Herkunft, Dienst, Port, Art und Regel – nie Sensoren, Accounts oder Inhalte. null bei älteren Treffern (vor Einführung der Details).",
            "properties": {
              "accounts": {
                "type": "integer",
                "description": "meldende Accounts"
              },
              "sensors": {
                "type": "integer"
              },
              "events": {
                "type": "integer"
              },
              "lists": {
                "type": "array",
                "items": {
                  "type": "string"
                },
                "example": [
                  "v64",
                  "ssh"
                ]
              },
              "reason": {
                "type": "string",
                "description": "Grund der Bewertung, z. B. threshold, customer_ip, allowlist"
              },
              "seen": {
                "type": "array",
                "description": "höchstens 8 Zeilen, die häufigsten zuerst",
                "items": {
                  "type": "object",
                  "properties": {
                    "origin": {
                      "type": "string",
                      "enum": [
                        "honeypot",
                        "log",
                        "syslog"
                      ]
                    },
                    "service": {
                      "type": "string",
                      "example": "ssh"
                    },
                    "port": {
                      "type": "integer",
                      "example": 22
                    },
                    "kind": {
                      "type": "string",
                      "example": "ssh:bruteforce"
                    },
                    "rule": {
                      "type": "string",
                      "description": "Regel des Log-Sensors, sonst leer"
                    },
                    "count": {
                      "type": "integer"
                    },
                    "sensors": {
                      "type": "integer"
                    },
                    "last": {
                      "type": "string",
                      "format": "date-time"
                    }
                  }
                }
              }
            }
          }
        }
      },
      "ThreatWatchAlerts": {
        "type": "object",
        "properties": {
          "alerts": {
            "type": "array",
            "items": {
              "$ref": "#/components/schemas/ThreatWatchAlert"
            }
          },
          "next": {
            "type": "string",
            "description": "Cursor für den nächsten Abruf (unverändert als since zurückgeben)",
            "example": "2026-10-20T12:12:03Z_42"
          }
        }
      },
      "ThreatFeedChange": {
        "type": "object",
        "properties": {
          "ip": {
            "type": "string",
            "example": "203.0.113.7"
          },
          "action": {
            "type": "string",
            "enum": [
              "add",
              "remove",
              "update"
            ],
            "description": "add = neu gelistet, remove = nicht mehr gelistet, update = andere Teillisten"
          },
          "lists": {
            "type": "array",
            "items": {
              "type": "string"
            },
            "description": "Listen danach (v64, ssh, web, mail, rdp, scanner, research), leer bei remove",
            "example": [
              "v64",
              "ssh"
            ]
          },
          "previous_lists": {
            "type": "array",
            "items": {
              "type": "string"
            },
            "description": "Listen davor, leer bei add",
            "example": []
          },
          "at": {
            "type": "string",
            "format": "date-time",
            "description": "Zeitpunkt der Bewertung (UTC)",
            "example": "2026-10-20T12:07:00Z"
          }
        }
      },
      "ThreatFeed": {
        "type": "object",
        "properties": {
          "changes": {
            "type": "array",
            "items": {
              "$ref": "#/components/schemas/ThreatFeedChange"
            },
            "description": "älteste zuerst, höchstens 10 000"
          },
          "next": {
            "type": "string",
            "description": "Cursor für den nächsten Abruf (undurchsichtig, unverändert als since verwenden)",
            "example": "AAAAAGkGJcwAAAAAAAAAKg"
          },
          "more": {
            "type": "boolean",
            "description": "es liegen weitere Änderungen bereit (sofort mit next weiter abrufen)"
          }
        }
      },
      "Hc2StatusGroup": {
        "type": "object",
        "properties": {
          "name": {
            "type": "string",
            "maxLength": 100,
            "description": "Überschrift der Gruppe, leer = ohne Überschrift"
          },
          "tokens": {
            "type": "array",
            "items": {
              "type": "string"
            },
            "description": "Tokens der Healthchecks in Anzeige-Reihenfolge (keine Docker-/Proxmox-Checks)"
          }
        },
        "required": [
          "tokens"
        ]
      },
      "Hc2StatusPage": {
        "type": "object",
        "properties": {
          "id": {
            "type": "integer"
          },
          "slug": {
            "type": "string"
          },
          "url": {
            "type": "string",
            "description": "öffentliche Seite https://ipv64.net/healthchecks2/status/<slug>"
          },
          "json_url": {
            "type": "string",
            "description": "dieselben Daten als JSON (öffentlich)"
          },
          "title": {
            "type": "string"
          },
          "description": {
            "type": "string"
          },
          "lang": {
            "type": "string",
            "enum": [
              "auto",
              "de",
              "en"
            ]
          },
          "theme": {
            "type": "string",
            "enum": [
              "auto",
              "light",
              "dark"
            ]
          },
          "layout": {
            "type": "string",
            "enum": [
              "list",
              "cards"
            ],
            "description": "list = Liste mit 90 Tagen (Standard), cards = kleine Cards mit den letzten 6 Stunden"
          },
          "published": {
            "type": "boolean",
            "description": "false = nur über preview_url sichtbar"
          },
          "show_history": {
            "type": "boolean"
          },
          "autorefresh": {
            "type": "boolean"
          },
          "preview_url": {
            "type": "string",
            "description": "Adresse mit Vorschau-Schlüssel (auch für versteckte Seiten); nicht weitergeben"
          },
          "groups": {
            "type": "array",
            "items": {
              "$ref": "#/components/schemas/Hc2StatusGroup"
            },
            "description": "nur bei einer einzelnen Seite"
          },
          "created_at": {
            "type": "string",
            "format": "date-time"
          },
          "updated_at": {
            "type": "string",
            "format": "date-time"
          }
        }
      },
      "Hc2StatusPageInput": {
        "type": "object",
        "description": "Beim Ändern (PATCH) bleiben fehlende Felder unverändert; groups ersetzt alle Gruppen.",
        "properties": {
          "title": {
            "type": "string",
            "maxLength": 120,
            "description": "beim Anlegen Pflicht"
          },
          "slug": {
            "type": "string",
            "pattern": "^[a-z0-9][a-z0-9-]{1,62}[a-z0-9]$",
            "description": "Adresse, eindeutig für alle Accounts; fehlt beim Anlegen = zufällig"
          },
          "description": {
            "type": "string",
            "maxLength": 1000
          },
          "groups": {
            "type": "array",
            "maxItems": 20,
            "items": {
              "$ref": "#/components/schemas/Hc2StatusGroup"
            },
            "description": "höchstens 100 Checks je Seite, jeder Check einmal"
          },
          "lang": {
            "type": "string",
            "enum": [
              "auto",
              "de",
              "en"
            ]
          },
          "theme": {
            "type": "string",
            "enum": [
              "auto",
              "light",
              "dark"
            ]
          },
          "layout": {
            "type": "string",
            "enum": [
              "list",
              "cards"
            ],
            "description": "list = Liste mit 90 Tagen (Standard), cards = kleine Cards mit den letzten 6 Stunden"
          },
          "published": {
            "type": "boolean"
          },
          "show_history": {
            "type": "boolean",
            "description": "Störungen der letzten 14 Tage zeigen"
          },
          "autorefresh": {
            "type": "boolean",
            "description": "Seite jede Minute neu laden"
          }
        }
      },
      "Hc2StatusNotice": {
        "type": "object",
        "properties": {
          "id": {
            "type": "integer"
          },
          "kind": {
            "type": "string",
            "enum": [
              "info",
              "maintenance",
              "incident"
            ]
          },
          "title": {
            "type": "string"
          },
          "body": {
            "type": "string"
          },
          "resolved": {
            "type": "boolean"
          },
          "created_at": {
            "type": "string",
            "format": "date-time"
          },
          "resolved_at": {
            "type": [
              "string",
              "null"
            ],
            "format": "date-time"
          }
        }
      },
      "Hc2StatusNoticeInput": {
        "type": "object",
        "properties": {
          "kind": {
            "type": "string",
            "enum": [
              "info",
              "maintenance",
              "incident"
            ]
          },
          "title": {
            "type": "string",
            "maxLength": 200,
            "description": "beim Anlegen Pflicht"
          },
          "body": {
            "type": "string",
            "maxLength": 2000
          },
          "resolved": {
            "type": "boolean",
            "description": "erledigt; bleibt dann noch 7 Tage auf der Seite"
          }
        }
      }
    }
  }
}
