{
  "openapi": "3.0.1",
  "info": {
    "title": "AI Prospecting Pipeline — Leads, Emails & Personalized Drafts",
    "description": "Find ICP-fit companies, verified business emails, and AI-written personalized cold-email drafts in one no-code pipeline. Outputs review-ready drafts — it never sends.",
    "version": "0.1",
    "x-build-id": "Jl7XGzupefkHOtm1g"
  },
  "servers": [
    {
      "url": "https://api.apify.com/v2"
    }
  ],
  "paths": {
    "/acts/fuze~ai-prospecting-pipeline/run-sync-get-dataset-items": {
      "post": {
        "operationId": "run-sync-get-dataset-items-fuze-ai-prospecting-pipeline",
        "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/fuze~ai-prospecting-pipeline/runs": {
      "post": {
        "operationId": "runs-sync-fuze-ai-prospecting-pipeline",
        "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/fuze~ai-prospecting-pipeline/run-sync": {
      "post": {
        "operationId": "run-sync-fuze-ai-prospecting-pipeline",
        "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": [
          "offering",
          "senderName",
          "senderAddress"
        ],
        "properties": {
          "offering": {
            "title": "What are you offering?",
            "type": "string",
            "description": "One or two sentences about your product/service and its benefit, plus a link. This drives both the ICP scoring and the email personalization. Example: 'A no-code tool that turns Google Maps scrapes into sales leads — role-based emails, socials and website signals. example.com/tool'."
          },
          "seedDomains": {
            "title": "Target company domains",
            "type": "array",
            "description": "Your curated list of target company domains (e.g. stripe.com). Use this when you already know who to reach. Leave empty to discover companies via Google Maps below.",
            "items": {
              "type": "string"
            }
          },
          "googleMapsSearch": {
            "title": "…or discover via Google Maps search",
            "type": "string",
            "description": "Instead of (or on top of) seed domains, discover companies from a Google Maps search — e.g. 'marketing agencies'. Uses the Google Maps Scraper (billed separately). Pair with a location below."
          },
          "googleMapsLocation": {
            "title": "Google Maps location",
            "type": "string",
            "description": "Location for the Google Maps search, e.g. 'Stockholm, Sweden'."
          },
          "discoverLimit": {
            "title": "Max companies to discover",
            "minimum": 1,
            "maximum": 200,
            "type": "integer",
            "description": "Cap on companies pulled from the Google Maps search.",
            "default": 30
          },
          "minIcpScore": {
            "title": "Minimum ICP-fit score",
            "minimum": 0,
            "maximum": 100,
            "type": "integer",
            "description": "Keep only companies scoring at least this (0-100) against your offering. Higher = stricter targeting.",
            "default": 60
          },
          "maxLeads": {
            "title": "Max drafts to produce",
            "minimum": 1,
            "maximum": 200,
            "type": "integer",
            "description": "Hard cap on the number of leads/drafts. Cold email works best in small, targeted batches.",
            "default": 25
          },
          "verifyEmails": {
            "title": "Verify emails",
            "type": "boolean",
            "description": "Run deliverability checks and prefer role-based business addresses.",
            "default": true
          },
          "tone": {
            "title": "Email tone",
            "type": "string",
            "description": "Tone for the personalized drafts.",
            "default": "friendly, concise, no hype"
          },
          "senderName": {
            "title": "Your name / company (sender)",
            "type": "string",
            "description": "Shown as the sender and signed in the draft."
          },
          "senderAddress": {
            "title": "Your physical mailing address",
            "type": "string",
            "description": "Required in the footer for lawful B2B outreach (CAN-SPAM) and good practice. A real postal address."
          },
          "optOutText": {
            "title": "Opt-out line",
            "type": "string",
            "description": "The unsubscribe/opt-out sentence added to every draft.",
            "default": "If this isn't relevant, just reply \"unsubscribe\" and I won't contact you again."
          }
        }
      },
      "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
                  }
                }
              }
            }
          }
        }
      }
    }
  }
}