{
  "openapi": "3.0.1",
  "info": {
    "title": "Work Email Finder: Name + Domain → Verified Email",
    "description": "Find a person's work email from first name, last name and company domain. Generates common corporate patterns, resolves MX, and checks mailboxes via a live HTTPS verification API (Apify blocks port 25, so no direct SMTP on platform). Catch-all flagged. Pay only on finds.",
    "version": "0.2",
    "x-build-id": "EnR9o1wLrgTltBxrj"
  },
  "servers": [
    {
      "url": "https://api.apify.com/v2"
    }
  ],
  "paths": {
    "/acts/cleanrowdata~work-email-finder/run-sync-get-dataset-items": {
      "post": {
        "operationId": "run-sync-get-dataset-items-cleanrowdata-work-email-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/cleanrowdata~work-email-finder/runs": {
      "post": {
        "operationId": "runs-sync-cleanrowdata-work-email-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/cleanrowdata~work-email-finder/run-sync": {
      "post": {
        "operationId": "run-sync-cleanrowdata-work-email-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",
        "properties": {
          "firstName": {
            "title": "First name",
            "type": "string",
            "description": "Person's first name (single lookup). Prefer people[] or csv for batches."
          },
          "lastName": {
            "title": "Last name",
            "type": "string",
            "description": "Person's last name."
          },
          "domain": {
            "title": "Company domain",
            "type": "string",
            "description": "Company email domain, e.g. figma.com (not gmail.com)."
          },
          "people": {
            "title": "People (batch)",
            "type": "array",
            "description": "List of {firstName, lastName, domain}. Overrides single fields when set."
          },
          "csv": {
            "title": "CSV (first,last,domain per line)",
            "type": "string",
            "description": "Optional CSV/TSV blob. Header row optional."
          },
          "catchAllPolicy": {
            "title": "Catch-all domains",
            "enum": [
              "flag",
              "skip",
              "accept"
            ],
            "type": "string",
            "description": "How to handle domains that accept any local part. Never reported as verification=valid.",
            "default": "flag"
          },
          "smtpVerify": {
            "title": "SMTP verify (MX + RCPT TO)",
            "type": "boolean",
            "description": "Legacy toggle for direct SMTP. Prefer verifyProvider. Ignored when verifyProvider=https or auto with ABSTRACT_API_KEY (HTTPS path used because Apify blocks outbound TCP/25).",
            "default": true
          },
          "maxProbes": {
            "title": "Max SMTP probes per person",
            "minimum": 1,
            "maximum": 16,
            "type": "integer",
            "description": "How many pattern candidates to probe after catch-all detection.",
            "default": 8
          },
          "onlyFinds": {
            "title": "Only return finds",
            "type": "boolean",
            "description": "When on (default), misses are omitted and free. Turn off to see invalid/unknown rows (still free).",
            "default": true
          },
          "limit": {
            "title": "Max finds to return",
            "minimum": 1,
            "maximum": 500,
            "type": "integer",
            "description": "Cap on charged finds for this run.",
            "default": 100
          },
          "smtpTimeout": {
            "title": "SMTP timeout (seconds)",
            "minimum": 3,
            "maximum": 20,
            "type": "number",
            "description": "Per-connection timeout. Session is reused across catch-all + pattern probes; multiple MX hosts are tried on connect failure.",
            "default": 8
          },
          "sourceDatasetId": {
            "title": "Source dataset ID (people)",
            "type": "string",
            "description": "Optional Apify dataset ID of people rows ({firstName,lastName,domain}) or hiring-contacts items with a people[] list. Chains after hiring-intent-contacts / custom enrichment."
          },
          "verifyProvider": {
            "title": "Verification provider",
            "enum": [
              "auto",
              "https",
              "smtp"
            ],
            "type": "string",
            "description": "How to verify mailbox existence. Apify firewalls outbound port 25, so direct SMTP times out on platform. Auto uses Abstract HTTPS when ABSTRACT_API_KEY is configured (Actor secret or abstractApiKey input). valid = deliverable + SMTP ok + not catch-all.",
            "default": "auto"
          },
          "abstractApiKey": {
            "title": "Your own Abstract API key (optional, recommended)",
            "type": "string",
            "description": "Bring your own free Abstract key (Email Reputation API, 100 free checks/month, no card: https://www.abstractapi.com/api/email-verification-validation-api) for unlimited checks on your side. Without it, free-plan runs share our key and are capped at 9 mailbox checks per run (~3 finds). Each catch-all probe + each pattern candidate costs one check."
          }
        }
      },
      "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
                  }
                }
              }
            }
          }
        }
      }
    }
  }
}