{
  "openapi": "3.0.1",
  "info": {
    "title": "B2B Domain Contact, DMARC/SPF/SSL & KYB Enricher",
    "description": "One-pass B2B domain intelligence engine that extracts public corporate emails, phones, and social profiles while auditing SPF, DMARC, DKIM, BIMI, MX, and SSL/TLS certificates plus EU Impressum legal entity names, HRB/HRA commercial registry IDs, and VAT numbers.",
    "version": "1.0",
    "x-build-id": "zZvE7rxGxRKwa5aW9"
  },
  "servers": [
    {
      "url": "https://api.apify.com/v2"
    }
  ],
  "paths": {
    "/acts/voxatools~b2b-domain-contact-security-kyb-enricher/run-sync-get-dataset-items": {
      "post": {
        "operationId": "run-sync-get-dataset-items-voxatools-b2b-domain-contact-security-kyb-enricher",
        "x-openai-isConsequential": false,
        "summary": "Executes an Actor, waits for its completion, and returns Actor's dataset items in response.",
        "tags": [
          "Run Actor"
        ],
        "requestBody": {
          "required": true,
          "content": {
            "application/json": {
              "schema": {
                "$ref": "#/components/schemas/inputSchema"
              }
            }
          }
        },
        "parameters": [
          {
            "name": "token",
            "in": "query",
            "required": true,
            "schema": {
              "type": "string"
            },
            "description": "Enter your Apify token here"
          }
        ],
        "responses": {
          "200": {
            "description": "OK"
          }
        }
      }
    },
    "/acts/voxatools~b2b-domain-contact-security-kyb-enricher/runs": {
      "post": {
        "operationId": "runs-sync-voxatools-b2b-domain-contact-security-kyb-enricher",
        "x-openai-isConsequential": false,
        "summary": "Executes an Actor and returns information about the initiated run in response.",
        "tags": [
          "Run Actor"
        ],
        "requestBody": {
          "required": true,
          "content": {
            "application/json": {
              "schema": {
                "$ref": "#/components/schemas/inputSchema"
              }
            }
          }
        },
        "parameters": [
          {
            "name": "token",
            "in": "query",
            "required": true,
            "schema": {
              "type": "string"
            },
            "description": "Enter your Apify token here"
          }
        ],
        "responses": {
          "200": {
            "description": "OK",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/runsResponseSchema"
                }
              }
            }
          }
        }
      }
    },
    "/acts/voxatools~b2b-domain-contact-security-kyb-enricher/run-sync": {
      "post": {
        "operationId": "run-sync-voxatools-b2b-domain-contact-security-kyb-enricher",
        "x-openai-isConsequential": false,
        "summary": "Executes an Actor, waits for completion, and returns the OUTPUT from Key-value store in response.",
        "tags": [
          "Run Actor"
        ],
        "requestBody": {
          "required": true,
          "content": {
            "application/json": {
              "schema": {
                "$ref": "#/components/schemas/inputSchema"
              }
            }
          }
        },
        "parameters": [
          {
            "name": "token",
            "in": "query",
            "required": true,
            "schema": {
              "type": "string"
            },
            "description": "Enter your Apify token here"
          }
        ],
        "responses": {
          "200": {
            "description": "OK"
          }
        }
      }
    }
  },
  "components": {
    "schemas": {
      "inputSchema": {
        "type": "object",
        "properties": {
          "domains": {
            "title": "Target B2B Domains or Website URLs",
            "type": "array",
            "description": "List of B2B company domains or URLs (e.g., [\"stripe.com\", \"hetzner.com\", \"zalando.de\"]). Automatically normalized to canonical lowercase registrable domains and deduplicated prior to billing.",
            "default": [
              "stripe.com",
              "hetzner.com",
              "zalando.de"
            ],
            "items": {
              "type": "string"
            }
          },
          "maxPagesPerDomain": {
            "title": "Max Public HTML Pages to Crawl per Domain (1-5)",
            "minimum": 1,
            "maximum": 5,
            "type": "integer",
            "description": "Maximum number of public HTML routes (e.g., /, /contact, /impressum, /legal-notice, /about) to inspect per domain for emails, social profiles, and Impressum legal signals. Billing remains strictly per-domain (never per-page).",
            "default": 3
          },
          "crawlPaths": {
            "title": "Custom HTML Contact & Impressum Routes (crawlPaths)",
            "type": "array",
            "description": "Ordered list of relative paths to probe on each domain up to maxPagesPerDomain (default: [\"/\", \"/contact\", \"/impressum\", \"/de/legal/legal-notice\", \"/legal-notice\"]). Also accepts alias candidatePaths.",
            "default": [
              "/",
              "/contact",
              "/impressum",
              "/de/legal/legal-notice",
              "/legal-notice"
            ],
            "items": {
              "type": "string"
            }
          },
          "candidatePaths": {
            "title": "Custom HTML Contact & Impressum Routes (Alias of crawlPaths)",
            "type": "array",
            "description": "Backward-compatible alias for crawlPaths. Ordered list of relative paths to probe on each domain up to maxPagesPerDomain.",
            "default": [
              "/",
              "/contact",
              "/impressum",
              "/de/legal/legal-notice",
              "/legal-notice"
            ],
            "items": {
              "type": "string"
            }
          },
          "includeDeepDkimAndBimiAudit": {
            "title": "Include Deep DKIM Selector & BIMI DoH Audit (+$0.40/1k Domains)",
            "type": "boolean",
            "description": "When enabled, probes common enterprise DKIM selectors (google, default, selector1, selector2, k1, s1, s2, mandrill + customDkimSelectors) and default._bimi.<domain> via RFC 8484 DoH. Adds +$0.0004/domain (+$0.40/1k) ONLY when deepDkimBimiVerified === true.",
            "default": true
          },
          "customDkimSelectors": {
            "title": "Additional Custom DKIM Selectors to Probe (Optional)",
            "type": "array",
            "description": "Optional custom DKIM selector prefixes (e.g., [\"mail\", \"zendesk\", \"sendgrid\"]) to append to the standard 8-selector DKIM audit when includeDeepDkimAndBimiAudit=true.",
            "default": [],
            "items": {
              "type": "string"
            }
          },
          "includeKybEntityAndVatCrosswalk": {
            "title": "Include German/EU Impressum Legal Entity, HRB & VAT Crosswalk (+$0.50/1k Domains)",
            "type": "boolean",
            "description": "When enabled, extracts structured German/EU Impressum (§ 5 DDG/TMG) legal entity names, commercial register numbers (HRB/HRA + Court), and USt-IdNr. VAT candidates, cross-checking against TLS X.509 Subject Organization. Adds +$0.0005/domain (+$0.50/1k) ONLY when kybCrosswalkVerified === true.",
            "default": true
          },
          "countryHint": {
            "title": "Target Country / Jurisdiction Hint (ISO-2 or ALL)",
            "type": "string",
            "description": "Optional ISO-2 jurisdiction hint (e.g., \"DE\", \"AT\", \"NL\", \"IE\", \"US\", \"ALL\") to prioritize localized legal disclosure paths (/impressum vs /legal-notice).",
            "default": "ALL"
          },
          "strictDomainMatch": {
            "title": "Strict Registrable Domain Isolation for Extracted Emails",
            "type": "boolean",
            "description": "When true, filters observedEmails to addresses matching the target registrable domain (or its known official brand aliases), separating third-party dispute/regulatory emails.",
            "default": false
          },
          "excludeRoleBasedEmails": {
            "title": "Exclude Generic Role-Based Mailboxes (info@, support@, dpo@)",
            "type": "boolean",
            "description": "When true, filters generic role-based mailboxes (info@, support@, sales@, admin@, office@, contact@, security@, dpo@) out of filteredPublicEmails while preserving rawObservedPublicEmails in KVS state so incremental contact diffs never conflate filter changes with website removals.",
            "default": false
          },
          "minSecurityPostureScore": {
            "title": "Minimum Security Posture Score Filter (0-100)",
            "minimum": 0,
            "maximum": 100,
            "type": "integer",
            "description": "Filter output records to domains scoring at least N points (0-100) on the deterministic Security & KYB Posture rubric.",
            "default": 0
          },
          "includeIndeterminateRecords": {
            "title": "Include Indeterminate Posture Records When Score Filter Active",
            "type": "boolean",
            "description": "When minSecurityPostureScore > 0, records with overallPostureScore = null (riskGrade = INDETERMINATE due to upstream DoH/TLS query failure) are excluded by default unless includeIndeterminateRecords = true.",
            "default": false
          },
          "onlyVulnerableOrHardeningTargets": {
            "title": "Filter Only Spoofing-Vulnerable or DMARC Hardening Targets (MSP Lead Mode)",
            "type": "boolean",
            "description": "When true, emits only domains with MISSING_DMARC_RECORD, MONITORING_ONLY_P_NONE, SUBDOMAIN_MONITORING_ONLY_SP_NONE, soft SPF (~all/?all/missing), or TLS certificates expiring within <= 30 days.",
            "default": false
          },
          "onlyChangedDomainsSinceLastRun": {
            "title": "Incremental Posture & Contact Diff Radar (Emit Only Changed Domains)",
            "type": "boolean",
            "description": "Compares current 3-plane posture and contacts against scopeKey-isolated KVS state (VOXA-DOMAIN-KYB-RADAR-STATE) and emits only domains with changed DMARC/SPF policy, rotated TLS certs, or newly discovered contacts.",
            "default": false
          },
          "maxDomains": {
            "title": "Max Deduplicated Domains to Process",
            "minimum": 1,
            "maximum": 10000,
            "type": "integer",
            "description": "Maximum number of unique normalized domains to enrich in a single run.",
            "default": 100
          },
          "maxConcurrency": {
            "title": "Parallel Domain Concurrency (1-25)",
            "minimum": 1,
            "maximum": 25,
            "type": "integer",
            "description": "Maximum number of domains enriched concurrently via non-blocking HTTP, DoH, and TLS sockets.",
            "default": 8
          },
          "requestTimeoutSecs": {
            "title": "Per-Plane Request Timeout (Seconds)",
            "minimum": 3,
            "maximum": 30,
            "type": "integer",
            "description": "Per-request timeout in seconds (3-30s) for HTTP HTML pages, RFC 8484 DoH queries, and TLS port 443 handshakes.",
            "default": 10
          },
          "maxChargedUsd": {
            "title": "Hard Budget Ceiling (Max Charged USD)",
            "minimum": 0.01,
            "maximum": 1000,
            "type": "number",
            "description": "Hard spending guardrail in USD (minimum $0.01, default $5.00). Pre-calculates base + add-on event charges before every pushData/charge and stops cleanly before exceeding this ceiling.",
            "default": 5
          },
          "allowApifyProxy": {
            "title": "Allow Apify Proxy Fallback for HTTP Plane (Cloud Only)",
            "type": "boolean",
            "description": "Zero-Browser direct HTTP/DoH/TLS mode is used by default ($0.00 proxy cost). Enable only if crawling HTTP pages that rate-limit datacenter IPs.",
            "default": false
          },
          "proxyConfiguration": {
            "title": "Proxy Configuration",
            "type": "object",
            "description": "Optional Apify Proxy settings when allowApifyProxy=true (never used on the free web funnel)."
          }
        }
      },
      "runsResponseSchema": {
        "type": "object",
        "properties": {
          "data": {
            "type": "object",
            "properties": {
              "id": {
                "type": "string"
              },
              "actId": {
                "type": "string"
              },
              "userId": {
                "type": "string"
              },
              "startedAt": {
                "type": "string",
                "format": "date-time",
                "example": "2025-01-08T00:00:00.000Z"
              },
              "finishedAt": {
                "type": "string",
                "format": "date-time",
                "example": "2025-01-08T00:00:00.000Z"
              },
              "status": {
                "type": "string",
                "example": "READY"
              },
              "meta": {
                "type": "object",
                "properties": {
                  "origin": {
                    "type": "string",
                    "example": "API"
                  },
                  "userAgent": {
                    "type": "string"
                  }
                }
              },
              "stats": {
                "type": "object",
                "properties": {
                  "inputBodyLen": {
                    "type": "integer",
                    "example": 2000
                  },
                  "rebootCount": {
                    "type": "integer",
                    "example": 0
                  },
                  "restartCount": {
                    "type": "integer",
                    "example": 0
                  },
                  "resurrectCount": {
                    "type": "integer",
                    "example": 0
                  },
                  "computeUnits": {
                    "type": "integer",
                    "example": 0
                  }
                }
              },
              "options": {
                "type": "object",
                "properties": {
                  "build": {
                    "type": "string",
                    "example": "latest"
                  },
                  "timeoutSecs": {
                    "type": "integer",
                    "example": 300
                  },
                  "memoryMbytes": {
                    "type": "integer",
                    "example": 1024
                  },
                  "diskMbytes": {
                    "type": "integer",
                    "example": 2048
                  }
                }
              },
              "buildId": {
                "type": "string"
              },
              "defaultKeyValueStoreId": {
                "type": "string"
              },
              "defaultDatasetId": {
                "type": "string"
              },
              "defaultRequestQueueId": {
                "type": "string"
              },
              "buildNumber": {
                "type": "string",
                "example": "1.0.0"
              },
              "containerUrl": {
                "type": "string"
              },
              "usage": {
                "type": "object",
                "properties": {
                  "ACTOR_COMPUTE_UNITS": {
                    "type": "integer",
                    "example": 0
                  },
                  "DATASET_READS": {
                    "type": "integer",
                    "example": 0
                  },
                  "DATASET_WRITES": {
                    "type": "integer",
                    "example": 0
                  },
                  "KEY_VALUE_STORE_READS": {
                    "type": "integer",
                    "example": 0
                  },
                  "KEY_VALUE_STORE_WRITES": {
                    "type": "integer",
                    "example": 1
                  },
                  "KEY_VALUE_STORE_LISTS": {
                    "type": "integer",
                    "example": 0
                  },
                  "REQUEST_QUEUE_READS": {
                    "type": "integer",
                    "example": 0
                  },
                  "REQUEST_QUEUE_WRITES": {
                    "type": "integer",
                    "example": 0
                  },
                  "DATA_TRANSFER_INTERNAL_GBYTES": {
                    "type": "integer",
                    "example": 0
                  },
                  "DATA_TRANSFER_EXTERNAL_GBYTES": {
                    "type": "integer",
                    "example": 0
                  },
                  "PROXY_RESIDENTIAL_TRANSFER_GBYTES": {
                    "type": "integer",
                    "example": 0
                  },
                  "PROXY_SERPS": {
                    "type": "integer",
                    "example": 0
                  },
                  "PROXY_UNBLOCKER_UNITS": {
                    "type": "integer",
                    "example": 0
                  }
                }
              },
              "usageTotalUsd": {
                "type": "number",
                "example": 0.00005
              },
              "usageUsd": {
                "type": "object",
                "properties": {
                  "ACTOR_COMPUTE_UNITS": {
                    "type": "integer",
                    "example": 0
                  },
                  "DATASET_READS": {
                    "type": "integer",
                    "example": 0
                  },
                  "DATASET_WRITES": {
                    "type": "integer",
                    "example": 0
                  },
                  "KEY_VALUE_STORE_READS": {
                    "type": "integer",
                    "example": 0
                  },
                  "KEY_VALUE_STORE_WRITES": {
                    "type": "number",
                    "example": 0.00005
                  },
                  "KEY_VALUE_STORE_LISTS": {
                    "type": "integer",
                    "example": 0
                  },
                  "REQUEST_QUEUE_READS": {
                    "type": "integer",
                    "example": 0
                  },
                  "REQUEST_QUEUE_WRITES": {
                    "type": "integer",
                    "example": 0
                  },
                  "DATA_TRANSFER_INTERNAL_GBYTES": {
                    "type": "integer",
                    "example": 0
                  },
                  "DATA_TRANSFER_EXTERNAL_GBYTES": {
                    "type": "integer",
                    "example": 0
                  },
                  "PROXY_RESIDENTIAL_TRANSFER_GBYTES": {
                    "type": "integer",
                    "example": 0
                  },
                  "PROXY_SERPS": {
                    "type": "integer",
                    "example": 0
                  },
                  "PROXY_UNBLOCKER_UNITS": {
                    "type": "integer",
                    "example": 0
                  }
                }
              }
            }
          }
        }
      }
    }
  }
}