{
  "openapi": "3.0.1",
  "info": {
    "title": "B2B Domain, Security, DNS & AI Readiness Auditor",
    "description": "Audit B2B domains for AI agent readiness (llms.txt, robots.txt, mcp.json, security.txt), DNS email security (SPF, DMARC, MX), HTTP security headers, and tech stack signals. Built for MCP AI agents and scheduled Make, n8n, and Zapier B2B sales and vendor risk workflows.",
    "version": "0.0",
    "x-build-id": "gq0AeAfMDkaavWad8"
  },
  "servers": [
    {
      "url": "https://api.apify.com/v2"
    }
  ],
  "paths": {
    "/acts/nathel-enterprise~b2b-domain-tech-ai-readiness-auditor/run-sync-get-dataset-items": {
      "post": {
        "operationId": "run-sync-get-dataset-items-nathel-enterprise-b2b-domain-tech-ai-readiness-auditor",
        "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/nathel-enterprise~b2b-domain-tech-ai-readiness-auditor/runs": {
      "post": {
        "operationId": "runs-sync-nathel-enterprise-b2b-domain-tech-ai-readiness-auditor",
        "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/nathel-enterprise~b2b-domain-tech-ai-readiness-auditor/run-sync": {
      "post": {
        "operationId": "run-sync-nathel-enterprise-b2b-domain-tech-ai-readiness-auditor",
        "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": "B2B Domains, Website URLs or Work Emails (Batch Audit Mode)",
            "maxItems": 500,
            "type": "array",
            "description": "Optional list of root domains ('stripe.com'), full URLs ('https://cloudflare.com/pricing'), or corporate email addresses ('ops@linear.app') to normalize and audit across DNS, HTTP security headers, tech stack, and AI/LLM readiness. Up to 500 per run on paid plans; 25-record preview on Free plans. Leave empty to use B2B Domain Discovery Mode below.",
            "items": {
              "type": "string"
            }
          },
          "searchQuery": {
            "title": "Company Name or Brand Keyword (Discovery Mode)",
            "type": "string",
            "description": "Optional company keyword (for example 'Cloud', 'Pay', 'Health', 'Data', 'AI', 'Security') to resolve live B2B domains when domains is empty."
          },
          "sectorPreset": {
            "title": "B2B Sector Seed Cohort (Discovery Mode)",
            "enum": [
              "AI_AND_DEVELOPER_TOOLS",
              "FINTECH_AND_PAYMENTS",
              "HEALTHCARE_AND_BIOTECH",
              "B2B_SAAS_AND_CLOUD",
              "ECOMMERCE_AND_RETAIL"
            ],
            "type": "string",
            "description": "Select a B2B vertical seed cohort to audit when domains is empty (combines with searchQuery and auditFocusFilter).",
            "default": "AI_AND_DEVELOPER_TOOLS"
          },
          "auditFocusFilter": {
            "title": "Lead & Risk Filter (Discovery & Triage Mode)",
            "enum": [
              "ALL",
              "SECURITY_OR_DMARC_GAPS",
              "AI_READY_LLMS_TXT",
              "AI_CRAWLER_BLOCKED"
            ],
            "type": "string",
            "description": "Filter audited domains to isolate specific B2B sales triggers or compliance gaps.",
            "default": "ALL"
          },
          "maxResults": {
            "title": "Maximum Audited Domains",
            "minimum": 1,
            "maximum": 500,
            "type": "integer",
            "description": "Maximum verified domain audit records to return per run (1 to 500 on paid plans; capped at 25 on Free plans).",
            "default": 25
          },
          "includeDeepEnrichment": {
            "title": "Include ICANN RDAP Domain Age, DNSSEC & Full Header Audit (Add-On Event)",
            "type": "boolean",
            "description": "When true, enriches each domain with ICANN RDAP registrar, creation/expiration dates, domain age, DNSSEC status, CAA/NS records, and full AI-bot + security-header matrices (triggers deep-enrichment event).",
            "default": false
          },
          "alertWebhookUrl": {
            "title": "Domain Posture / Drift Alert Webhook URL (Optional)",
            "type": "string",
            "description": "Optional HTTPS webhook URL (Slack, Microsoft Teams, Make, n8n, or Zapier) notified when security posture drops, DMARC weakens, or AI readiness changes."
          },
          "alertOnChangesOnly": {
            "title": "Webhook Alert on Security/DMARC Risks or Posture Deltas Only",
            "type": "boolean",
            "description": "When true (default), dispatches webhook alerts only when a domain is FLAGGED, REVIEW_REQUIRED, or changes posture since the last scheduled run.",
            "default": true
          }
        }
      },
      "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
                  }
                }
              }
            }
          }
        }
      }
    }
  }
}