{
  "openapi": "3.1.0",
  "info": {
    "title": "Sendingbloom · lokale API",
    "version": "0.2.0",
    "description": "Local preview only. No SMTP delivery or ZITADEL; optional bounded recipient probes are separate. accepted_local means stored, never delivered. Calendar limits use UTC; Monday starts week; this is a provisional pilot contract. No templates, attachments, scheduling or webhooks yet."
  },
  "servers": [
    {
      "url": "http://127.0.0.1:8787"
    }
  ],
  "paths": {
    "/api/v1/email/check": {
      "post": {
        "summary": "E-Mail-Adresse prüfen",
        "security": [
          {
            "bearerAuth": []
          }
        ],
        "responses": {
          "200": {
            "description": "Strukturiertes Prüfergebnis, auch bei ungültiger Adresse oder unklarer Zustellbarkeit.",
            "content": {
              "application/json": {
                "schema": {
                  "type": "object",
                  "required": [
                    "data"
                  ],
                  "properties": {
                    "data": {
                      "$ref": "#/components/schemas/EmailCheckResult"
                    }
                  }
                }
              }
            }
          },
          "401": {
            "description": "Structured error: error.code, error.message, request_id"
          },
          "403": {
            "description": "Structured error: error.code, error.message, request_id"
          },
          "415": {
            "description": "Structured error: error.code, error.message, request_id"
          },
          "422": {
            "description": "Structured error: error.code, error.message, request_id"
          },
          "429": {
            "description": "Structured error: error.code, error.message, request_id"
          },
          "400": {
            "description": "Structured error: error.code, error.message, request_id"
          }
        },
        "requestBody": {
          "required": true,
          "content": {
            "application/json": {
              "schema": {
                "type": "object",
                "additionalProperties": false,
                "required": [
                  "email"
                ],
                "properties": {
                  "email": {
                    "type": "string",
                    "maxLength": 320,
                    "description": "Eine einzelne Adresse. Ungültige Syntax wird als Prüfergebnis zurückgegeben."
                  },
                  "mode": {
                    "type": "string",
                    "enum": [
                      "dns",
                      "smtp"
                    ],
                    "default": "dns",
                    "description": "dns prüft Syntax und Mailroute; smtp fragt optional den Empfänger ohne DATA an."
                  }
                }
              }
            }
          }
        },
        "operationId": "checkEmail",
        "description": "Strukturierte Syntax-, DNS- und optionale SMTP-Prüfung. mailbox_exists bleibt unbekannt; ownership bleibt not_verified. Keine Nachricht, keine Catch-all-Probes. mode=dns ist Standard; mode=smtp benötigt die konfigurierte eigene Prüfidentität. Null-MX, implizites MX, vorübergehende DNS-Fehler und SMTP-Policy werden getrennt behandelt. 5 Prüfungen/Minute, 100/24 Stunden je Account; Admins haben einen getrennten Bucket. Globale Schutzlimits: 60/Minute, 4 gleichzeitig, 12 Sekunden Budget. Überschreitung: 429. Prüfergebnis invalid ist HTTP200; ungültige Request-Struktur ist422. Keine Idempotency-Key-Pflicht, keine automatische Wiederholung.",
        "x-sdk-methods": {
          "node": "checkEmail",
          "python": "check_email"
        },
        "x-codeSamples": [
          {
            "lang": "curl",
            "label": "REST (cURL)",
            "source": "curl 'http://127.0.0.1:8787/api/v1/email/check' -H \"Authorization: Bearer $BLOOM_API_KEY\" -H 'Content-Type: application/json' -d '{\"email\":\"keine-adresse\",\"mode\":\"dns\"}'"
          },
          {
            "lang": "node",
            "label": "Node.js",
            "source": "import { Sendingbloom } from '@sendingbloom/node';\n\nconst bloom = new Sendingbloom({\n  apiKey: process.env.BLOOM_API_KEY,\n  baseUrl: 'http://127.0.0.1:8787/api/v1'\n});\n\nconst result = await bloom.checkEmail('keine-adresse', { mode: 'dns' });\nconsole.log(result.data.verdict, result.data.reason_code);"
          },
          {
            "lang": "python",
            "label": "Python",
            "source": "import os\nfrom sendingbloom import Sendingbloom\n\nbloom = Sendingbloom(\n    api_key=os.environ[\"BLOOM_API_KEY\"],\n    base_url=\"http://127.0.0.1:8787/api/v1\",\n)\n\nresult = bloom.check_email(\"keine-adresse\", mode=\"dns\")\nprint(result[\"data\"][\"verdict\"], result[\"data\"][\"reason_code\"])"
          }
        ]
      }
    },
    "/api/v1/messages": {
      "post": {
        "summary": "Nachricht vormerken",
        "security": [
          {
            "bearerAuth": []
          }
        ],
        "responses": {
          "202": {
            "description": "JSON envelope with data and request_id on errors",
            "content": {
              "application/json": {
                "schema": {
                  "type": "object"
                }
              }
            }
          },
          "200": {
            "description": "Idempotent replay"
          },
          "400": {
            "description": "Structured error: error.code, error.message, request_id"
          },
          "401": {
            "description": "Structured error: error.code, error.message, request_id"
          },
          "403": {
            "description": "Structured error: error.code, error.message, request_id"
          },
          "409": {
            "description": "Structured error: error.code, error.message, request_id"
          },
          "415": {
            "description": "Structured error: error.code, error.message, request_id"
          },
          "422": {
            "description": "Structured error: error.code, error.message, request_id"
          },
          "429": {
            "description": "Structured error: error.code, error.message, request_id"
          }
        },
        "requestBody": {
          "required": true,
          "content": {
            "application/json": {
              "schema": {
                "$ref": "#/components/schemas/MessageInput"
              }
            }
          }
        },
        "parameters": [
          {
            "name": "Idempotency-Key",
            "in": "header",
            "required": true,
            "schema": {
              "type": "string",
              "minLength": 1,
              "maxLength": 128
            },
            "description": "Pflicht für Versand. 1–128 Zeichen; bei Wiederholung denselben Schlüssel und Inhalt verwenden. Anderer Inhalt ergibt 409. Schlüssel ist accountgebunden und bleibt lokal bis zum Entfernen der Datenbank gespeichert."
          }
        ],
        "operationId": "sendMessage",
        "description": "Speichert einen Versandauftrag dauerhaft. Im lokalen Test bleibt der Status accepted_local: keine SMTP-Übergabe und keine Zustellzusage. Mindestens text oder html muss nicht leer sein. Unbekannte Optionen und Templates werden abgewiesen.",
        "x-sdk-methods": {
          "node": "messages.send",
          "python": "messages.send"
        },
        "x-codeSamples": [
          {
            "lang": "curl",
            "label": "REST (cURL)",
            "source": "curl 'http://127.0.0.1:8787/api/v1/messages' \\\n  -H \"Authorization: Bearer $BLOOM_API_KEY\" \\\n  -H 'Content-Type: application/json' \\\n  -H 'Idempotency-Key: mein-erster-test' \\\n  -d '{\n  \"from\": \"hallo@preview.example.test\",\n  \"to\": [\n    \"test@example.invalid\"\n  ],\n  \"subject\": \"Hallo!\",\n  \"text\": \"Ein kleiner Anfang.\"\n}'"
          },
          {
            "lang": "node",
            "label": "Node.js",
            "source": "import { Sendingbloom } from '@sendingbloom/node';\n\nconst bloom = new Sendingbloom({\n  apiKey: process.env.BLOOM_API_KEY,\n  baseUrl: 'http://127.0.0.1:8787/api/v1'\n});\n\nconst result = await bloom.messages.send({\n  from: 'hallo@preview.example.test',\n  to: ['test@example.invalid'],\n  subject: 'Hallo!', text: 'Ein kleiner Anfang.'\n});\nconsole.log(result.idempotencyKey); // Für identische Wiederholungen aufbewahren."
          },
          {
            "lang": "python",
            "label": "Python",
            "source": "import os\nfrom sendingbloom import Sendingbloom\n\nbloom = Sendingbloom(\n    api_key=os.environ[\"BLOOM_API_KEY\"],\n    base_url=\"http://127.0.0.1:8787/api/v1\",\n)\n\nresult = bloom.messages.send(\n    sender=\"hallo@preview.example.test\",\n    to=[\"test@example.invalid\"],\n    subject=\"Hallo!\", text=\"Ein kleiner Anfang.\",\n)\nprint(result[\"idempotency_key\"])  # Für identische Wiederholungen aufbewahren."
          }
        ]
      },
      "get": {
        "summary": "Nachrichten auflisten",
        "security": [
          {
            "bearerAuth": []
          }
        ],
        "responses": {
          "200": {
            "description": "JSON envelope with data and request_id on errors",
            "content": {
              "application/json": {
                "schema": {
                  "type": "object"
                }
              }
            }
          },
          "401": {
            "description": "Structured error: error.code, error.message, request_id"
          },
          "403": {
            "description": "Structured error: error.code, error.message, request_id"
          },
          "422": {
            "description": "Structured error: error.code, error.message, request_id"
          },
          "429": {
            "description": "Structured error: error.code, error.message, request_id"
          }
        },
        "parameters": [
          {
            "name": "limit",
            "in": "query",
            "schema": {
              "type": "integer",
              "minimum": 1,
              "maximum": 100,
              "default": 25
            },
            "description": "Seitengröße 1–100, Standard 25."
          },
          {
            "name": "offset",
            "in": "query",
            "schema": {
              "type": "integer",
              "minimum": 0,
              "default": 0
            },
            "description": "Versatz ab 0; nächste Seite aus pagination.next_offset."
          }
        ],
        "operationId": "listMessages",
        "description": "Liefert ausschließlich eigene Aufträge, neueste zuerst. Nutze pagination.next_offset für die nächste Anfrage. Bei einer vollen letzten Seite kann noch eine leere Seite folgen. Keine automatische Pagination im SDK.",
        "x-sdk-methods": {
          "node": "messages.list",
          "python": "messages.list"
        },
        "x-codeSamples": [
          {
            "lang": "curl",
            "label": "REST (cURL)",
            "source": "curl 'http://127.0.0.1:8787/api/v1/messages?limit=25&offset=0' \\\n  -H \"Authorization: Bearer $BLOOM_API_KEY\""
          },
          {
            "lang": "node",
            "label": "Node.js",
            "source": "import { Sendingbloom } from '@sendingbloom/node';\n\nconst bloom = new Sendingbloom({\n  apiKey: process.env.BLOOM_API_KEY,\n  baseUrl: 'http://127.0.0.1:8787/api/v1'\n});\n\nconst result = await bloom.messages.list({ limit: 25, offset: 0 });"
          },
          {
            "lang": "python",
            "label": "Python",
            "source": "import os\nfrom sendingbloom import Sendingbloom\n\nbloom = Sendingbloom(\n    api_key=os.environ[\"BLOOM_API_KEY\"],\n    base_url=\"http://127.0.0.1:8787/api/v1\",\n)\n\nresult = bloom.messages.list(limit=25, offset=0)"
          }
        ]
      }
    },
    "/api/v1/messages/{id}": {
      "parameters": [
        {
          "name": "id",
          "in": "path",
          "required": true,
          "schema": {
            "type": "string"
          },
          "description": "Nachrichten-ID aus messages.send() oder messages.list()."
        }
      ],
      "get": {
        "summary": "Nachricht abfragen",
        "security": [
          {
            "bearerAuth": []
          }
        ],
        "responses": {
          "200": {
            "description": "JSON envelope with data and request_id on errors",
            "content": {
              "application/json": {
                "schema": {
                  "type": "object"
                }
              }
            }
          },
          "401": {
            "description": "Structured error: error.code, error.message, request_id"
          },
          "403": {
            "description": "Structured error: error.code, error.message, request_id"
          },
          "422": {
            "description": "Structured error: error.code, error.message, request_id"
          },
          "429": {
            "description": "Structured error: error.code, error.message, request_id"
          }
        },
        "operationId": "getMessage",
        "description": "Liefert die eigene Nachricht und den Status je Empfänger. Eine fremde oder unbekannte ID ergibt 404. accepted_local bedeutet ausschließlich lokal gespeichert, nicht vom Empfängerserver angenommen.",
        "x-sdk-methods": {
          "node": "messages.get",
          "python": "messages.get"
        },
        "x-codeSamples": [
          {
            "lang": "curl",
            "label": "REST (cURL)",
            "source": "curl 'http://127.0.0.1:8787/api/v1/messages/msg_BEISPIEL' \\\n  -H \"Authorization: Bearer $BLOOM_API_KEY\""
          },
          {
            "lang": "node",
            "label": "Node.js",
            "source": "import { Sendingbloom } from '@sendingbloom/node';\n\nconst bloom = new Sendingbloom({\n  apiKey: process.env.BLOOM_API_KEY,\n  baseUrl: 'http://127.0.0.1:8787/api/v1'\n});\n\nconst result = await bloom.messages.get('msg_BEISPIEL');"
          },
          {
            "lang": "python",
            "label": "Python",
            "source": "import os\nfrom sendingbloom import Sendingbloom\n\nbloom = Sendingbloom(\n    api_key=os.environ[\"BLOOM_API_KEY\"],\n    base_url=\"http://127.0.0.1:8787/api/v1\",\n)\n\nresult = bloom.messages.get('msg_BEISPIEL')"
          }
        ]
      }
    },
    "/api/v1/events": {
      "get": {
        "summary": "Ereignisse abfragen",
        "security": [
          {
            "bearerAuth": []
          }
        ],
        "responses": {
          "200": {
            "description": "JSON envelope with data and request_id on errors",
            "content": {
              "application/json": {
                "schema": {
                  "type": "object"
                }
              }
            }
          },
          "401": {
            "description": "Structured error: error.code, error.message, request_id"
          },
          "403": {
            "description": "Structured error: error.code, error.message, request_id"
          },
          "422": {
            "description": "Structured error: error.code, error.message, request_id"
          },
          "429": {
            "description": "Structured error: error.code, error.message, request_id"
          }
        },
        "parameters": [
          {
            "name": "after",
            "in": "query",
            "schema": {
              "type": "integer",
              "minimum": 0,
              "default": 0
            },
            "description": "Letzte bekannte Ereignis-ID ab 0; nächste Position aus next_cursor."
          }
        ],
        "operationId": "listEvents",
        "description": "Liefert bis zu 50 eigene Empfängerereignisse nach der angegebenen Ereignis-ID. next_cursor beim nächsten Abruf als after übergeben. Ein Event je Empfänger, noch keine Kunden-Webhooks.",
        "x-sdk-methods": {
          "node": "events.list",
          "python": "events.list"
        },
        "x-codeSamples": [
          {
            "lang": "curl",
            "label": "REST (cURL)",
            "source": "curl 'http://127.0.0.1:8787/api/v1/events?after=0' \\\n  -H \"Authorization: Bearer $BLOOM_API_KEY\""
          },
          {
            "lang": "node",
            "label": "Node.js",
            "source": "import { Sendingbloom } from '@sendingbloom/node';\n\nconst bloom = new Sendingbloom({\n  apiKey: process.env.BLOOM_API_KEY,\n  baseUrl: 'http://127.0.0.1:8787/api/v1'\n});\n\nconst result = await bloom.events.list({ after: 0 });"
          },
          {
            "lang": "python",
            "label": "Python",
            "source": "import os\nfrom sendingbloom import Sendingbloom\n\nbloom = Sendingbloom(\n    api_key=os.environ[\"BLOOM_API_KEY\"],\n    base_url=\"http://127.0.0.1:8787/api/v1\",\n)\n\nresult = bloom.events.list(after=0)"
          }
        ]
      }
    },
    "/api/v1/domains": {
      "get": {
        "summary": "Domains auflisten",
        "security": [
          {
            "bearerAuth": []
          }
        ],
        "responses": {
          "200": {
            "description": "JSON envelope with data and request_id on errors",
            "content": {
              "application/json": {
                "schema": {
                  "type": "object"
                }
              }
            }
          },
          "401": {
            "description": "Structured error: error.code, error.message, request_id"
          },
          "403": {
            "description": "Structured error: error.code, error.message, request_id"
          },
          "422": {
            "description": "Structured error: error.code, error.message, request_id"
          },
          "429": {
            "description": "Structured error: error.code, error.message, request_id"
          }
        },
        "operationId": "listDomains",
        "description": "Liefert eigene Domains, Prüfschritte und den öffentlichen TXT-Nachweis. Keine erfundenen SPF-/DKIM-Werte. Domainverwaltung über REST/MCP benötigt den ausdrücklich erteilten Scope domains:write; DNS-Verwaltung hat getrennte Scopes dns:read und dns:write. Details in der MCP-Anleitung.",
        "x-sdk-methods": {
          "node": "domains.list",
          "python": "domains.list"
        },
        "x-codeSamples": [
          {
            "lang": "curl",
            "label": "REST (cURL)",
            "source": "curl 'http://127.0.0.1:8787/api/v1/domains' \\\n  -H \"Authorization: Bearer $BLOOM_API_KEY\""
          },
          {
            "lang": "node",
            "label": "Node.js",
            "source": "import { Sendingbloom } from '@sendingbloom/node';\n\nconst bloom = new Sendingbloom({\n  apiKey: process.env.BLOOM_API_KEY,\n  baseUrl: 'http://127.0.0.1:8787/api/v1'\n});\n\nconst result = await bloom.domains.list();"
          },
          {
            "lang": "python",
            "label": "Python",
            "source": "import os\nfrom sendingbloom import Sendingbloom\n\nbloom = Sendingbloom(\n    api_key=os.environ[\"BLOOM_API_KEY\"],\n    base_url=\"http://127.0.0.1:8787/api/v1\",\n)\n\nresult = bloom.domains.list()"
          }
        ]
      }
    },
    "/api/v1/domains/{id}/records.csv": {
      "parameters": [
        {
          "name": "id",
          "in": "path",
          "required": true,
          "schema": {
            "type": "string"
          },
          "description": "Eigene Domain-ID aus domains.list()."
        }
      ],
      "get": {
        "summary": "DNS-Einträge exportieren",
        "security": [
          {
            "bearerAuth": []
          }
        ],
        "responses": {
          "200": {
            "description": "TXT ownership challenge; SMTP DNS not configured",
            "content": {
              "text/csv": {
                "schema": {
                  "type": "string"
                }
              }
            }
          }
        },
        "operationId": "domainRecords",
        "description": "Liefert CSV-Text für die eigene Domain. Der Export enthält derzeit nur den TXT-Nachweis der Domainkontrolle. Er ändert keine DNS-Einträge und schreibt auch im SDK nicht selbst auf die Festplatte.",
        "x-sdk-methods": {
          "node": "domains.records",
          "python": "domains.records"
        },
        "x-codeSamples": [
          {
            "lang": "curl",
            "label": "REST (cURL)",
            "source": "curl 'http://127.0.0.1:8787/api/v1/domains/dom_fixture/records.csv' \\\n  -H \"Authorization: Bearer $BLOOM_API_KEY\""
          },
          {
            "lang": "node",
            "label": "Node.js",
            "source": "import { Sendingbloom } from '@sendingbloom/node';\n\nconst bloom = new Sendingbloom({\n  apiKey: process.env.BLOOM_API_KEY,\n  baseUrl: 'http://127.0.0.1:8787/api/v1'\n});\n\nconst result = await bloom.domains.records('dom_fixture');"
          },
          {
            "lang": "python",
            "label": "Python",
            "source": "import os\nfrom sendingbloom import Sendingbloom\n\nbloom = Sendingbloom(\n    api_key=os.environ[\"BLOOM_API_KEY\"],\n    base_url=\"http://127.0.0.1:8787/api/v1\",\n)\n\nresult = bloom.domains.records('dom_fixture')"
          }
        ]
      }
    },
    "/api/v1/account": {
      "get": {
        "summary": "Account abfragen",
        "security": [
          {
            "bearerAuth": []
          }
        ],
        "responses": {
          "200": {
            "description": "JSON envelope with data and request_id on errors",
            "content": {
              "application/json": {
                "schema": {
                  "type": "object"
                }
              }
            }
          },
          "401": {
            "description": "Structured error: error.code, error.message, request_id"
          },
          "403": {
            "description": "Structured error: error.code, error.message, request_id"
          },
          "422": {
            "description": "Structured error: error.code, error.message, request_id"
          },
          "429": {
            "description": "Structured error: error.code, error.message, request_id"
          }
        },
        "operationId": "getAccount",
        "description": "Liefert den Account des verwendeten Schlüssels mit Status und wirksamen Limits. Keine fremden Accounts, Adminaktionen oder ZITADEL-Zugangsdaten.",
        "x-sdk-methods": {
          "node": "account.get",
          "python": "account.get"
        },
        "x-codeSamples": [
          {
            "lang": "curl",
            "label": "REST (cURL)",
            "source": "curl 'http://127.0.0.1:8787/api/v1/account' \\\n  -H \"Authorization: Bearer $BLOOM_API_KEY\""
          },
          {
            "lang": "node",
            "label": "Node.js",
            "source": "import { Sendingbloom } from '@sendingbloom/node';\n\nconst bloom = new Sendingbloom({\n  apiKey: process.env.BLOOM_API_KEY,\n  baseUrl: 'http://127.0.0.1:8787/api/v1'\n});\n\nconst result = await bloom.account.get();"
          },
          {
            "lang": "python",
            "label": "Python",
            "source": "import os\nfrom sendingbloom import Sendingbloom\n\nbloom = Sendingbloom(\n    api_key=os.environ[\"BLOOM_API_KEY\"],\n    base_url=\"http://127.0.0.1:8787/api/v1\",\n)\n\nresult = bloom.account.get()"
          }
        ]
      }
    },
    "/api/v1/usage": {
      "get": {
        "summary": "Verbrauch und Limits",
        "security": [
          {
            "bearerAuth": []
          }
        ],
        "responses": {
          "200": {
            "description": "JSON envelope with data and request_id on errors",
            "content": {
              "application/json": {
                "schema": {
                  "type": "object"
                }
              }
            }
          },
          "401": {
            "description": "Structured error: error.code, error.message, request_id"
          },
          "403": {
            "description": "Structured error: error.code, error.message, request_id"
          },
          "422": {
            "description": "Structured error: error.code, error.message, request_id"
          },
          "429": {
            "description": "Structured error: error.code, error.message, request_id"
          }
        },
        "operationId": "getUsage",
        "description": "Liefert Tages-, Wochen- und Monatsverbrauch sowie wirksame Kontingente. Gezählt werden unterschiedliche Empfänger pro lokal angenommenem Auftrag. Kalenderzeit UTC, Wochenbeginn Montag; Woche kann offen sein. Diese Pilotregel ist kein endgültiger Abrechnungsvertrag.",
        "x-sdk-methods": {
          "node": "usage.get",
          "python": "usage.get"
        },
        "x-codeSamples": [
          {
            "lang": "curl",
            "label": "REST (cURL)",
            "source": "curl 'http://127.0.0.1:8787/api/v1/usage' \\\n  -H \"Authorization: Bearer $BLOOM_API_KEY\""
          },
          {
            "lang": "node",
            "label": "Node.js",
            "source": "import { Sendingbloom } from '@sendingbloom/node';\n\nconst bloom = new Sendingbloom({\n  apiKey: process.env.BLOOM_API_KEY,\n  baseUrl: 'http://127.0.0.1:8787/api/v1'\n});\n\nconst result = await bloom.usage.get();"
          },
          {
            "lang": "python",
            "label": "Python",
            "source": "import os\nfrom sendingbloom import Sendingbloom\n\nbloom = Sendingbloom(\n    api_key=os.environ[\"BLOOM_API_KEY\"],\n    base_url=\"http://127.0.0.1:8787/api/v1\",\n)\n\nresult = bloom.usage.get()"
          }
        ]
      }
    },
    "/api/v1/plans": {
      "get": {
        "summary": "Pläne anzeigen",
        "security": [],
        "responses": {
          "200": {
            "description": "JSON envelope with data and request_id on errors",
            "content": {
              "application/json": {
                "schema": {
                  "type": "object"
                }
              }
            }
          },
          "401": {
            "description": "Structured error: error.code, error.message, request_id"
          },
          "403": {
            "description": "Structured error: error.code, error.message, request_id"
          },
          "422": {
            "description": "Structured error: error.code, error.message, request_id"
          },
          "429": {
            "description": "Structured error: error.code, error.message, request_id"
          }
        },
        "operationId": "listPlans",
        "description": "Zeigt den Testkatalog. Nur Seedling ist verfügbar. Bloom bleibt deaktiviert; Meadow hat keinen festen Preis, sondern wird nach vereinbarten Ressourcen kalkuliert. Dieser Endpunkt ist ohne Anmeldung lesbar.",
        "x-sdk-methods": {
          "node": "plans.list",
          "python": "plans.list"
        },
        "x-codeSamples": [
          {
            "lang": "curl",
            "label": "REST (cURL)",
            "source": "curl 'http://127.0.0.1:8787/api/v1/plans' \\\n  -H \"Authorization: Bearer $BLOOM_API_KEY\""
          },
          {
            "lang": "node",
            "label": "Node.js",
            "source": "import { Sendingbloom } from '@sendingbloom/node';\n\nconst bloom = new Sendingbloom({\n  apiKey: process.env.BLOOM_API_KEY,\n  baseUrl: 'http://127.0.0.1:8787/api/v1'\n});\n\nconst result = await bloom.plans.list();"
          },
          {
            "lang": "python",
            "label": "Python",
            "source": "import os\nfrom sendingbloom import Sendingbloom\n\nbloom = Sendingbloom(\n    api_key=os.environ[\"BLOOM_API_KEY\"],\n    base_url=\"http://127.0.0.1:8787/api/v1\",\n)\n\nresult = bloom.plans.list()"
          }
        ]
      }
    }
  },
  "components": {
    "securitySchemes": {
      "bearerAuth": {
        "type": "http",
        "scheme": "bearer"
      }
    },
    "schemas": {
      "MessageInput": {
        "type": "object",
        "additionalProperties": false,
        "required": [
          "from",
          "to",
          "subject"
        ],
        "properties": {
          "from": {
            "type": "string",
            "format": "email",
            "description": "Einfache Absenderadresse ohne Anzeigenamen. Die Domain muss dem Account zugeordnet und freigegeben sein."
          },
          "to": {
            "type": "array",
            "minItems": 1,
            "maxItems": 100,
            "items": {
              "type": "string",
              "format": "email"
            },
            "description": "1–100 Empfängereinträge. Identische Adressen innerhalb eines Auftrags werden zusammengeführt."
          },
          "subject": {
            "type": "string",
            "maxLength": 998,
            "description": "Betreff, höchstens 998 Zeichen und ohne Zeilenumbrüche."
          },
          "text": {
            "type": "string",
            "maxLength": 262144,
            "description": "Klartextinhalt. text oder html muss gefüllt sein; jeweils höchstens 256 KiB UTF-8."
          },
          "html": {
            "type": "string",
            "maxLength": 262144,
            "description": "Eigenes HTML, kein Template. Wird in der Dokumentation oder App nicht als HTML ausgeführt."
          },
          "reply_to": {
            "type": "string",
            "format": "email",
            "description": "Optionale Antwortadresse ohne Anzeigenamen."
          }
        },
        "anyOf": [
          {
            "required": [
              "text"
            ]
          },
          {
            "required": [
              "html"
            ]
          }
        ]
      },
      "EmailCheckResult": {
        "type": "object",
        "required": [
          "email",
          "normalized_email",
          "checked_at",
          "verdict",
          "reason_code",
          "message",
          "retryable",
          "mailbox_exists",
          "ownership",
          "syntax",
          "dns",
          "smtp"
        ],
        "properties": {
          "email": {
            "type": "string"
          },
          "normalized_email": {
            "type": [
              "string",
              "null"
            ]
          },
          "checked_at": {
            "type": "string",
            "format": "date-time"
          },
          "verdict": {
            "type": "string",
            "enum": [
              "invalid",
              "undeliverable",
              "route_found",
              "recipient_accepted",
              "recipient_rejected",
              "unknown"
            ]
          },
          "reason_code": {
            "type": "string"
          },
          "message": {
            "type": "string"
          },
          "retryable": {
            "type": "boolean"
          },
          "mailbox_exists": {
            "type": "null",
            "description": "Keine externe Postfachexistenz behauptet."
          },
          "ownership": {
            "type": "string",
            "enum": [
              "not_verified"
            ]
          },
          "syntax": {
            "type": "object",
            "properties": {
              "status": {
                "type": "string"
              }
            }
          },
          "dns": {
            "type": "object",
            "properties": {
              "status": {
                "type": "string"
              },
              "route": {
                "type": [
                  "string",
                  "null"
                ]
              },
              "mx": {
                "type": "array",
                "items": {
                  "type": "string"
                }
              }
            }
          },
          "smtp": {
            "type": "object",
            "properties": {
              "status": {
                "type": "string"
              },
              "attempts": {
                "type": "array",
                "items": {
                  "type": "object",
                  "properties": {
                    "server": {
                      "type": "string"
                    },
                    "address": {
                      "type": "string"
                    },
                    "phase": {
                      "type": "string"
                    },
                    "code": {
                      "type": [
                        "integer",
                        "null"
                      ]
                    },
                    "enhanced_code": {
                      "type": [
                        "string",
                        "null"
                      ]
                    },
                    "reason": {
                      "type": [
                        "string",
                        "null"
                      ]
                    },
                    "tls": {
                      "type": "boolean"
                    }
                  }
                }
              }
            }
          }
        }
      }
    }
  }
}
