{
  "openapi": "3.1.0",
  "info": {
    "title": "Email Verifier — Keyless Pilot + BYOK",
    "version": "0.1",
    "description": "Verify email lists or Apify datasets. BYOK costs $0.50 per 1,000 decisive results plus supplier credits; eligible paid Apify users can use the capped keyless pilot. Duplicates, unknowns, catch-alls and errors are unbilled."
  },
  "servers": [{ "url": "https://api.apify.com/v2" }],
  "security": [{ "bearerAuth": [] }],
  "paths": {
    "/acts/myworkingmemory~email-verifier-bulk/run-sync-get-dataset-items": {
      "post": {
        "operationId": "verifyEmailsSync",
        "summary": "Verify emails and return dataset items",
        "requestBody": {
          "required": true,
          "content": { "application/json": { "schema": { "$ref": "#/components/schemas/EmailVerifierInput" } } }
        },
        "responses": { "200": { "description": "Verification results" } }
      }
    },
    "/acts/myworkingmemory~email-verifier-bulk/runs": {
      "post": {
        "operationId": "verifyEmailsAsync",
        "summary": "Start an email verification run",
        "requestBody": {
          "required": true,
          "content": { "application/json": { "schema": { "$ref": "#/components/schemas/EmailVerifierInput" } } }
        },
        "responses": { "201": { "description": "Run started" } }
      }
    }
  },
  "components": {
    "securitySchemes": {
      "bearerAuth": { "type": "http", "scheme": "bearer", "description": "Apify API token" }
    },
    "schemas": {
      "EmailVerifierInput": {
        "type": "object",
        "properties": {
          "emails": { "type": "array", "items": { "type": "string", "format": "email" }, "maxItems": 10000 },
          "dataset_id": { "type": "string", "description": "Accessible Apify dataset containing an email column" },
          "email_field": { "type": "string", "default": "email" },
          "mv_api_key": { "type": "string", "description": "MillionVerifier key for BYOK mode" },
          "verification_mode": { "type": "string", "enum": ["auto", "single", "bulk"], "default": "auto" },
          "mxFallback": { "type": "boolean", "default": true }
        }
      }
    }
  }
}
