{
  "openapi": "3.0.1",
  "info": {
    "title": "UCC-1 Stacked Debt, MCA & Tax Lien LLC Owner Dossier Scraper",
    "description": "Monitor daily UCC-1 filings, MCA debt stacking & tax warrants across CT, CO, NY & FL. Pierces Secretary of State LLC registries to resolve Managing Members/Presidents, verifies executive emails & E.164 phones, analyzes collateral, and writes AI SBA/term-loan refinance briefs.",
    "version": "0.0",
    "x-build-id": "DZAMo72iasvGLpPIH"
  },
  "servers": [
    {
      "url": "https://api.apify.com/v2"
    }
  ],
  "paths": {
    "/acts/unique_dev~ucc-1-stacked-debt-mca-tax-lien-llc-owner-dossier-scraper/run-sync-get-dataset-items": {
      "post": {
        "operationId": "run-sync-get-dataset-items-unique_dev-ucc-1-stacked-debt-mca-tax-lien-llc-owner-dossier-scraper",
        "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/unique_dev~ucc-1-stacked-debt-mca-tax-lien-llc-owner-dossier-scraper/runs": {
      "post": {
        "operationId": "runs-sync-unique_dev-ucc-1-stacked-debt-mca-tax-lien-llc-owner-dossier-scraper",
        "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/unique_dev~ucc-1-stacked-debt-mca-tax-lien-llc-owner-dossier-scraper/run-sync": {
      "post": {
        "operationId": "run-sync-unique_dev-ucc-1-stacked-debt-mca-tax-lien-llc-owner-dossier-scraper",
        "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": {
          "jurisdictions": {
            "title": "Target Jurisdictions",
            "type": "array",
            "description": "State jurisdictions to ingest live UCC-1 financing statements, state/federal tax warrants, and Secretary of State entity/principal filings from. Supported: CT, CO, NY, FL.",
            "default": [
              "CT",
              "CO",
              "NY",
              "FL"
            ],
            "items": {
              "type": "string"
            }
          },
          "maxDossiers": {
            "title": "Max Dossiers",
            "minimum": 1,
            "maximum": 1000,
            "type": "integer",
            "description": "Maximum number of enriched commercial debtor executive dossiers to output in this run (free-tier non-paying users are capped at 10).",
            "default": 15
          },
          "signalCategories": {
            "title": "Signal Categories Filter",
            "type": "array",
            "description": "Filter output dossiers to specific lender/lien signal categories: HIGH_COST_MCA, TAX_AUTHORITY_LIEN, EQUIPMENT_CAPTIVE_FINANCE, INVOICE_FACTORING, BANK_SBA, MATURING_5YR_LAPSE_WINDOW.",
            "default": [
              "HIGH_COST_MCA",
              "TAX_AUTHORITY_LIEN",
              "EQUIPMENT_CAPTIVE_FINANCE",
              "INVOICE_FACTORING",
              "BANK_SBA",
              "MATURING_5YR_LAPSE_WINDOW"
            ],
            "items": {
              "type": "string"
            }
          },
          "stackedDebtorsOnly": {
            "title": "Stacked Debtors Only (>= 2 Creditors)",
            "type": "boolean",
            "description": "When enabled, only emit debtors that currently have 2 or more distinct active secured creditors / tax lien authorities.",
            "default": false
          },
          "lookbackDays": {
            "title": "Primary Filing Lookback Window (Days)",
            "minimum": 7,
            "maximum": 2000,
            "type": "integer",
            "description": "Lookback window in days for primary UCC-1 and tax warrant ingestion (180-day debt-stacking velocity is always computed across active filings).",
            "default": 180
          },
          "minWarrantAmountUsd": {
            "title": "Minimum Tax Warrant / Lien Amount (USD)",
            "minimum": 0,
            "type": "integer",
            "description": "Optional minimum dollar floor when filtering tax warrants or monetary liens (0 keeps all UCC-1s and all monetary warrants).",
            "default": 0
          },
          "debtorKeywordFilter": {
            "title": "Debtor Legal Name / Industry Keyword Filter",
            "type": "string",
            "description": "Optional case-insensitive substring filter applied to debtorLegalName or collateralSummary (e.g., 'CONSTRUCTION', 'LOGISTICS', 'MEDICAL'). Leave blank for all commercial organizations.",
            "default": ""
          },
          "enableWebContactResolution": {
            "title": "Enable 12-Worker Web, Domain, Email & E.164 Phone Resolution",
            "type": "boolean",
            "description": "Run multi-engine company domain discovery, SOS registered-agent bypass executive resolution, MX-verified executive email discovery, and E.164 phone extraction.",
            "default": true
          },
          "enableAiUnderwritingBrief": {
            "title": "Enable Batched AI Collateral & Refinance Classifier",
            "type": "boolean",
            "description": "Classify recommendedPlaybook and generate aiUnderwritingAndPitchBrief via GEMINI_API_KEY / OPENAI_API_KEY with deterministic underwriting engine fallback.",
            "default": true
          },
          "onlyNewSinceLastRun": {
            "title": "Only New Debtors Since Last Run (Delta Deduplication)",
            "type": "boolean",
            "description": "Persist seen debtor dossiers in UCC_PRINCIPAL_SEEN_STATE key-value store record and skip previously emitted debtors on subsequent scheduled runs.",
            "default": false
          },
          "stateStoreName": {
            "title": "Named State Key-Value Store (Optional)",
            "type": "string",
            "description": "Optional named Apify Key-Value Store used to persist UCC_PRINCIPAL_SEEN_STATE across separate scheduled runs when onlyNewSinceLastRun is enabled.",
            "default": ""
          },
          "watchlistDebtorsOrLenders": {
            "title": "Competitor Lender & Target Debtor Watchlist (Optional)",
            "type": "array",
            "description": "Optional list of competitor lenders (e.g., 'Forward Financing', 'Credibly', 'DLL Finance', 'Uncapped') or target commercial debtor names to monitor. Matching filings set is_watchlist_match=true and are prioritized to the top of your run.",
            "default": [],
            "items": {
              "type": "string"
            }
          },
          "webhookUrl": {
            "title": "CRM / Automation Webhook URL (Optional)",
            "type": "string",
            "description": "Optional HTTPS/HTTP webhook endpoint (HubSpot, GoHighLevel, Clay, Make, or n8n). When provided, newly enriched debtor dossiers and run telemetry are automatically POSTed as JSON.",
            "default": ""
          }
        }
      },
      "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
                  }
                }
              }
            }
          }
        }
      }
    }
  }
}