{
  "openapi": "3.1.0",
  "info": {
    "title": "BlacklistAlarm — Domain Blacklist & Email Deliverability API",
    "version": "1.0.0",
    "description": "Check any domain or mail server IP across 52+ real-time spam blacklists (Spamhaus, Barracuda, SpamCop, SORBS, URIBL, SURBL), validate SPF (including nested 10-DNS-lookup overflow), DMARC, DKIM, MX, and detect email sending providers in a single fast edge API call.",
    "contact": {
      "name": "BlacklistAlarm Support",
      "email": "support@blacklistalarm.com",
      "url": "https://blacklistalarm.com"
    }
  },
  "servers": [
    {
      "url": "https://blacklistalarm.com",
      "description": "Global Edge Production Server"
    }
  ],
  "security": [
    {
      "ApiKeyHeader": []
    },
    {
      "BearerAuth": []
    }
  ],
  "components": {
    "securitySchemes": {
      "ApiKeyHeader": {
        "type": "apiKey",
        "in": "header",
        "name": "x-api-key",
        "description": "Your API key from /dashboard (e.g. ba_live_...)"
      },
      "BearerAuth": {
        "type": "http",
        "scheme": "bearer"
      }
    }
  },
  "paths": {
    "/api/v1/check": {
      "get": {
        "operationId": "checkDomainDeliverability",
        "summary": "Scan domain across 52+ spam blacklists & email authentication records",
        "parameters": [
          {
            "name": "domain",
            "in": "query",
            "required": true,
            "description": "Domain name or email address to audit (e.g. stripe.com or user@company.io)",
            "schema": {
              "type": "string",
              "example": "stripe.com"
            }
          }
        ],
        "responses": {
          "200": {
            "description": "Deliverability score (0-100), 52 blacklist results, SPF/DMARC/DKIM audit, and DNS fix recommendations."
          },
          "400": {
            "description": "Invalid domain parameter"
          },
          "401": {
            "description": "Missing or invalid API key"
          },
          "429": {
            "description": "Monthly plan quota exceeded"
          }
        }
      }
    },
    "/api/v1/bulk-check": {
      "post": {
        "operationId": "bulkCheckDomains",
        "summary": "Batch scan up to 10 domains in a single API call",
        "requestBody": {
          "required": true,
          "content": {
            "application/json": {
              "schema": {
                "type": "object",
                "required": [
                  "domains"
                ],
                "properties": {
                  "domains": {
                    "type": "array",
                    "maxItems": 10,
                    "items": {
                      "type": "string"
                    },
                    "example": [
                      "stripe.com",
                      "github.com"
                    ]
                  }
                }
              }
            }
          }
        },
        "responses": {
          "200": {
            "description": "Array of domain audit reports"
          }
        }
      }
    },
    "/api/v1/blacklists": {
      "get": {
        "operationId": "listBlacklists",
        "summary": "List all 52 monitored DNSBL & RHSBL spam blacklists and delisting URLs",
        "security": [],
        "responses": {
          "200": {
            "description": "Catalog of monitored spam blacklists"
          }
        }
      }
    }
  }
}