{
  "openapi": "3.0.1",
  "info": {
    "title": "Hiring Intent Lead Finder",
    "description": "Find evidence-backed B2B account signals from uploaded job rows, or from up to 100 company career pages when enabled, with scoring, source URLs, and concise BYOK AI-assisted outreach angles.",
    "version": "0.1",
    "x-build-id": "puer9sLDZeg0BQliX"
  },
  "servers": [
    {
      "url": "https://api.apify.com/v2"
    }
  ],
  "paths": {
    "/acts/signalflow_studio~hiring-intent-lead-finder/run-sync-get-dataset-items": {
      "post": {
        "operationId": "run-sync-get-dataset-items-signalflow_studio-hiring-intent-lead-finder",
        "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/signalflow_studio~hiring-intent-lead-finder/runs": {
      "post": {
        "operationId": "runs-sync-signalflow_studio-hiring-intent-lead-finder",
        "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/signalflow_studio~hiring-intent-lead-finder/run-sync": {
      "post": {
        "operationId": "run-sync-signalflow_studio-hiring-intent-lead-finder",
        "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",
        "required": [
          "playbook"
        ],
        "properties": {
          "playbook": {
            "title": "Intent playbook",
            "enum": [
              "crm_revops",
              "data_stack",
              "cybersecurity",
              "custom"
            ],
            "type": "string",
            "description": "The buying-need pattern to detect from public hiring activity.",
            "default": "crm_revops"
          },
          "jobKeywords": {
            "title": "Job keywords",
            "type": "array",
            "description": "Custom job title, skill, and tool keywords. These supplement the selected playbook.",
            "items": {
              "type": "string"
            }
          },
          "locations": {
            "title": "Locations",
            "type": "array",
            "description": "Optional location keywords. Leave empty to match all locations.",
            "items": {
              "type": "string"
            }
          },
          "companyList": {
            "title": "Companies to screen",
            "type": "array",
            "description": "Companies to screen. Add a domain and optional careers URL for best results."
          },
          "jobRows": {
            "title": "Uploaded job rows",
            "type": "array",
            "description": "Optional job rows from another scraper or dataset. Each row can include companyName, domain, jobTitle, description, location, postedAt, url, and source."
          },
          "postedWithinDays": {
            "title": "Posted within days",
            "minimum": 1,
            "maximum": 365,
            "type": "integer",
            "description": "Prefer jobs posted within this many days. Rows without postedAt are still considered but get lower recency confidence.",
            "default": 30
          },
          "minSignalScore": {
            "title": "Minimum signal score",
            "minimum": 0,
            "maximum": 100,
            "type": "integer",
            "description": "Only accounts at or above this score are emitted to the main dataset.",
            "default": 70
          },
          "maxCompanies": {
            "title": "Max companies",
            "minimum": 1,
            "maximum": 1000,
            "type": "integer",
            "description": "Maximum companies to screen from companyList. Default 100; hard-capped at 1000.",
            "default": 100
          },
          "maxJobRows": {
            "title": "Max job rows",
            "minimum": 1,
            "maximum": 5000,
            "type": "integer",
            "description": "Maximum uploaded job rows to analyze. Default 300; hard-capped at 5000.",
            "default": 300
          },
          "maxResults": {
            "title": "Max qualified accounts",
            "minimum": 1,
            "maximum": 500,
            "type": "integer",
            "description": "Maximum qualified accounts to output.",
            "default": 100
          },
          "excludeStaffingAgencies": {
            "title": "Exclude staffing agencies",
            "type": "boolean",
            "description": "Penalize likely recruiters, staffing firms, and job boards so the output focuses on buying accounts.",
            "default": true
          },
          "enableAiInsights": {
            "title": "Generate AI-assisted insights",
            "type": "boolean",
            "description": "Generate concise inferred need, why-now, recommended persona, and outreach angle for qualified accounts. Add your own AI provider key below. If no key is provided, the Actor falls back to deterministic evidence-based text.",
            "default": true
          },
          "aiProvider": {
            "title": "AI provider",
            "enum": [
              "deepseek",
              "openrouter",
              "openai"
            ],
            "type": "string",
            "description": "AI provider used when an API key is supplied.",
            "default": "deepseek"
          },
          "aiProviderApiKey": {
            "title": "AI provider API key",
            "type": "string",
            "description": "Optional BYOK key for AI-assisted insight generation. Leave empty to use deterministic insights without external AI calls."
          },
          "aiModel": {
            "title": "AI model",
            "type": "string",
            "description": "Optional model override. Defaults: deepseek-chat, openai/gpt-4.1-mini on OpenRouter, or gpt-4.1-mini on OpenAI."
          },
          "maxAiInsights": {
            "title": "Max AI insights",
            "minimum": 0,
            "maximum": 500,
            "type": "integer",
            "description": "Maximum qualified accounts that receive AI-assisted insights.",
            "default": 100
          },
          "fetchCareerPages": {
            "title": "Fetch public career pages",
            "type": "boolean",
            "description": "Fetch public career pages from companyList. Disable this if you only want to analyze uploaded jobRows.",
            "default": false
          },
          "maxCareerUrlsPerCompany": {
            "title": "Max career URLs per company",
            "minimum": 1,
            "maximum": 8,
            "type": "integer",
            "description": "Maximum public career URLs to try for each company. Lower values reduce runtime and platform usage.",
            "default": 3
          },
          "requestTimeoutSecs": {
            "title": "Request timeout seconds",
            "minimum": 5,
            "maximum": 60,
            "type": "integer",
            "description": "Per-request timeout for public career pages.",
            "default": 20
          },
          "debug": {
            "title": "Debug logs",
            "type": "boolean",
            "description": "Include more progress details in logs and OUTPUT.",
            "default": false
          }
        }
      },
      "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
                  }
                }
              },
              "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
                  }
                }
              }
            }
          }
        }
      }
    }
  }
}