{
    "openapi": "3.1.0",
    "info": {
        "title": "Email Verifier API",
        "version": "v1",
        "description": "E-Mail-Adressen prüfen: Syntax, Mailserver der Domain, Wegwerf- und Catch-All-Domains, Rollenadressen und Postfach über angebundene Prüfdienste."
    },
    "servers": [
        {
            "url": "https://api.flowdata.one/v1",
            "description": "FlowData API"
        }
    ],
    "security": [
        {
            "bearerAuth": []
        }
    ],
    "tags": [
        {
            "name": "endpoints",
            "description": "API-Endpunkte"
        }
    ],
    "paths": {
        "/email-verification/{email}": {
            "get": {
                "operationId": "verification",
                "summary": "E-Mail-Adresse verifizieren",
                "description": "Prüft eine E-Mail-Adresse. result ist safe (zustellbar), risky (zustellbar, aber unsicher), invalid (nicht zustellbar) oder unknown (nicht feststellbar, wird nicht berechnet). reason nennt den Grund: accepted, catch_all, role_account, disposable, invalid_syntax, invalid_domain, null_mx, rejected, low_quality, unverifiable, processing_objected (die betroffene Person hat der Verarbeitung ihrer Daten widersprochen) oder dns_unavailable. checks enthält die einzelnen Prüfungen (Syntax, Mailserver, Mailanbieter, Wegwerf-Domain, Rollenadresse, Catch-All). Die bisherigen Felder bleiben: status ist valid, wenn an die Adresse gesendet werden kann, sonst risky, invalid, disposable oder unknown. source zeigt, woher das Ergebnis stammt: DB (gespeichertes Ergebnis), NA (eigene Prüfung) oder ein Prüfdienst (LR, HU, EA). Eine syntaktisch ungültige Adresse beantwortet die API mit HTTP 400.",
                "tags": [
                    "endpoints"
                ],
                "parameters": [
                    {
                        "name": "email",
                        "in": "path",
                        "required": true,
                        "schema": {
                            "type": "string"
                        },
                        "description": "E-Mail-Adresse zur Verifikation"
                    }
                ],
                "responses": {
                    "200": {
                        "description": "Erfolgreiche Antwort",
                        "content": {
                            "application/json": {
                                "schema": {
                                    "type": "object"
                                },
                                "example": {
                                    "email_address": "user@example.com",
                                    "status": "valid",
                                    "source": "NA",
                                    "result": "risky",
                                    "reason": "catch_all",
                                    "checks": {
                                        "syntax": true,
                                        "mx": "ok",
                                        "mail_provider": "other",
                                        "disposable": false,
                                        "role_account": false,
                                        "catch_all": true
                                    }
                                }
                            }
                        }
                    },
                    "default": {
                        "description": "Fehlerantwort",
                        "content": {
                            "application/json": {
                                "schema": {
                                    "$ref": "#/components/schemas/Error"
                                }
                            }
                        }
                    }
                }
            }
        }
    },
    "components": {
        "securitySchemes": {
            "bearerAuth": {
                "type": "http",
                "scheme": "bearer",
                "description": "FlowData-Schlüssel als Authorization: Bearer fd_…"
            }
        },
        "schemas": {
            "Error": {
                "type": "object",
                "required": [
                    "error"
                ],
                "properties": {
                    "error": {
                        "type": "object",
                        "properties": {
                            "code": {
                                "type": "string"
                            },
                            "message": {
                                "type": "string"
                            },
                            "type": {
                                "type": "string"
                            },
                            "details": {
                                "type": "object"
                            }
                        }
                    }
                }
            }
        }
    }
}