{
  "openapi": "3.0.3",
  "info": {
    "title": "B2B Signup Fraud, Email DNS, RDAP Age & Lead Scoring API",
    "version": "2.1.0",
    "description": "Real-time edge API for B2B signup qualification, trial-abuse prevention, and CRM enrichment. Checks MX, SPF strictness, DMARC policy, MTA-STS, BIMI, live RDAP domain registration age, privacy relays vs 130+ disposable burners, 48 categorized SaaS tech signatures, and live ATS hiring velocity."
  },
  "servers": [
    {
      "url": "https://b2b-intel-rapidapi-worker.b2bintel-edge.workers.dev"
    }
  ],
  "paths": {
    "/health": {
      "get": {
        "summary": "Edge service readiness probe",
        "operationId": "healthCheck",
        "responses": {
          "200": {
            "description": "Service operational"
          }
        }
      }
    },
    "/v1/qualify-lead": {
      "get": {
        "summary": "All-in-one B2B signup & outbound lead scorer (0-100 score + DNS + RDAP age + tech stack + hiring)",
        "operationId": "qualifyB2bLead",
        "parameters": [
          {
            "name": "email",
            "in": "query",
            "required": true,
            "description": "Work email address or company domain (e.g. support@cal.com or linear.app)",
            "schema": {
              "type": "string",
              "example": "support@cal.com"
            }
          }
        ],
        "responses": {
          "200": {
            "description": "Composite 0-100 B2B lead score, tier, reasons, DNS/RDAP security, tech stack, and open roles"
          }
        }
      }
    },
    "/v1/verify-email": {
      "get": {
        "summary": "Deep email & domain DNS/RDAP verification (MX, SPF, DMARC, MTA-STS, BIMI, domain age, relay vs disposable)",
        "operationId": "verifyEmailDnsAndAge",
        "parameters": [
          {
            "name": "email",
            "in": "query",
            "required": true,
            "description": "Email address or domain to verify",
            "schema": {
              "type": "string",
              "example": "cto@posthog.com"
            }
          }
        ],
        "responses": {
          "200": {
            "description": "Deliverability verdict, recommended signup action, risk score, email security, and RDAP domain age"
          }
        }
      }
    },
    "/v1/enrich-domain": {
      "get": {
        "summary": "Extract corporate contact emails, socials, careers board, and 48 categorized SaaS tech signatures",
        "operationId": "enrichCompanyDomain",
        "parameters": [
          {
            "name": "domain",
            "in": "query",
            "required": true,
            "description": "Company domain (e.g. cal.com)",
            "schema": {
              "type": "string",
              "example": "cal.com"
            }
          }
        ],
        "responses": {
          "200": {
            "description": "Categorized technographics, corporate emails, socials, and ATS board link"
          }
        }
      }
    },
    "/v1/ats-jobs": {
      "get": {
        "summary": "Check live open job count and sample listings across Greenhouse, Ashby, and Lever",
        "operationId": "fetchCompanyAtsJobs",
        "parameters": [
          {
            "name": "slug",
            "in": "query",
            "required": true,
            "description": "Company ATS board slug (e.g. vercel, linear)",
            "schema": {
              "type": "string",
              "example": "vercel"
            }
          }
        ],
        "responses": {
          "200": {
            "description": "Open job count and sample postings"
          }
        }
      }
    },
    "/v1/qualify-batch": {
      "post": {
        "summary": "Qualify up to 10 emails or domains in a single request",
        "operationId": "qualifyLeadBatch",
        "requestBody": {
          "required": true,
          "content": {
            "application/json": {
              "schema": {
                "type": "object",
                "required": [
                  "items"
                ],
                "properties": {
                  "items": {
                    "type": "array",
                    "maxItems": 10,
                    "items": {
                      "type": "string"
                    },
                    "example": [
                      "support@cal.com",
                      "user@privaterelay.appleid.com",
                      "spam@sharklasers.com"
                    ]
                  }
                }
              }
            }
          }
        },
        "responses": {
          "200": {
            "description": "Array of composite lead qualification objects"
          }
        }
      }
    }
  }
}