{
  "openapi": "3.0.1",
  "info": {
    "title": "AI Federal, State & Public Housing RFP Bid/No-Bid Capture Agent",
    "description": "Multi-source AI GovCon Capture Agent chaining HigherGov (Federal SAM.gov + State/Local SLED) and PHADA Public Housing RFPs. Enriches 95%+ agency websites & Contracting Officer emails, computes AI Bid/No-Bid Fit Scores (0–100), and drafts solicitation inquiry & teaming emails.",
    "version": "0.0",
    "x-build-id": "6wEcqd40QgdHxj9aj"
  },
  "servers": [
    {
      "url": "https://api.apify.com/v2"
    }
  ],
  "paths": {
    "/acts/unique_dev~ai-federal-state-public-housing-rfp-bid-no-bid-capture-agent/run-sync-get-dataset-items": {
      "post": {
        "operationId": "run-sync-get-dataset-items-unique_dev-ai-federal-state-public-housing-rfp-bid-no-bid-capture-agent",
        "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~ai-federal-state-public-housing-rfp-bid-no-bid-capture-agent/runs": {
      "post": {
        "operationId": "runs-sync-unique_dev-ai-federal-state-public-housing-rfp-bid-no-bid-capture-agent",
        "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~ai-federal-state-public-housing-rfp-bid-no-bid-capture-agent/run-sync": {
      "post": {
        "operationId": "run-sync-unique_dev-ai-federal-state-public-housing-rfp-bid-no-bid-capture-agent",
        "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": {
          "keywords": {
            "title": "Target GovCon Keywords & Scopes",
            "type": "array",
            "description": "Target keywords, scopes, or NAICS descriptions to harvest across Federal, SLED, Grants, and Public Housing Authorities (e.g., ['cybersecurity', 'IT services', 'audit', 'construction', 'HVAC', 'renovation']).",
            "default": [
              "cybersecurity",
              "IT services",
              "audit",
              "construction",
              "HVAC",
              "renovation"
            ],
            "items": {
              "type": "string"
            }
          },
          "rfpSources": {
            "title": "Enabled RFP & Grant Intelligence Sources",
            "type": "array",
            "description": "Multi-source GovCon engines to chain: 'highergov_federal' (Federal SAM.gov/DIBBS & Federal Grants), 'highergov_sled' (State, Local & Education RFPs/IFBs), and 'phada_housing' (Public Housing Authority RFPs, IFBs & RFQs).",
            "default": [
              "highergov_federal",
              "highergov_sled",
              "phada_housing"
            ],
            "items": {
              "type": "string"
            }
          },
          "states": {
            "title": "Target US States (2-Letter Codes)",
            "type": "array",
            "description": "2-letter US state codes to filter Place of Performance across (e.g., ['VA', 'MD', 'TX', 'CA', 'FL', 'IN']). Leave empty for nationwide coverage.",
            "default": [
              "VA",
              "MD",
              "TX",
              "CA",
              "FL",
              "IN"
            ],
            "items": {
              "type": "string"
            }
          },
          "vendorCapabilities": {
            "title": "Your Vendor Capabilities & Core Past Performance",
            "type": "string",
            "description": "Your firm's core capabilities, certifications, or service lines used by the AI Capture & Contracting Officer Outreach Engine to score bid fit and tailor capability inquiry emails & teaming pitches (e.g., 'Cybersecurity & IT Managed Services', 'Commercial Construction, HVAC & Roofing', 'CPA Financial Audit & Advisory').",
            "default": "IT Managed Services, Construction Contracting & Financial Audit Advisory"
          },
          "openaiApiKey": {
            "title": "OpenAI API Key (Optional)",
            "type": "string",
            "description": "Optional OpenAI API key (gpt-4o-mini) to enhance the AI Capture Brief and Contracting Officer outreach emails. Leave empty to run our 100% deterministic, zero-cost AI GovCon Capture & Outreach Engine."
          },
          "geminiApiKey": {
            "title": "Google Gemini API Key (Optional)",
            "type": "string",
            "description": "Optional Google Gemini API key (gemini-2.0-flash) to enhance the AI Capture Brief and Contracting Officer outreach emails. Leave empty to run our 100% deterministic, zero-cost AI GovCon Capture & Outreach Engine."
          },
          "onlyNewOpportunities": {
            "title": "Delta Monitoring Mode (Only New Opportunities)",
            "type": "boolean",
            "description": "When enabled, persists seen solicitation deduplication keys in Apify's named Key-Value Store ('GOVCON-DEDUP-STATE') across runs and outputs only newly discovered RFPs/solicitations for CRM / Make / n8n / Slack capture alerts.",
            "default": false
          },
          "maxResults": {
            "title": "Maximum Results",
            "minimum": 1,
            "maximum": 10000,
            "type": "integer",
            "description": "Maximum number of unified, enriched government RFPs, SLED solicitations, PHADA bids, and Grants with AI Capture Intelligence to output in a single run (up to 10,000).",
            "default": 20
          },
          "proxyConfiguration": {
            "title": "Proxy Configuration",
            "type": "object",
            "description": "Apify Proxy configuration for multi-source GovCon discovery and agency contact resolution.",
            "default": {
              "useApifyProxy": 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
                  }
                }
              }
            }
          }
        }
      }
    }
  }
}