{
  "openapi": "3.0.1",
  "info": {
    "title": "Email Validation API: Bulk List Cleaning, Risk and Typo Check",
    "description": "Email validation API and bulk email verifier: deliverable, undeliverable, catch-all and do-not-send results, risk level, disposable and role address flags, typo suggestions and bulk list cleaning jobs with summaries, on US or EU hosts (Mailgun Validate). Bring your own key.",
    "version": "0.1",
    "x-build-id": "TcnSeyuL962tiD1og"
  },
  "servers": [
    {
      "url": "https://api.apify.com/v2"
    }
  ],
  "paths": {
    "/acts/nabeelbaghoor~email-address-validation-api/run-sync-get-dataset-items": {
      "post": {
        "operationId": "run-sync-get-dataset-items-nabeelbaghoor-email-address-validation-api",
        "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/nabeelbaghoor~email-address-validation-api/runs": {
      "post": {
        "operationId": "runs-sync-nabeelbaghoor-email-address-validation-api",
        "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/nabeelbaghoor~email-address-validation-api/run-sync": {
      "post": {
        "operationId": "run-sync-nabeelbaghoor-email-address-validation-api",
        "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": {
          "mode": {
            "title": "What to do",
            "enum": [
              "validateAddresses",
              "bulkValidation",
              "validationJobs"
            ],
            "type": "string",
            "description": "Each mode calls documented Mailgun Validate API v4 routes with your own private API key. No email is ever sent, and no job is cancelled or deleted.",
            "default": "validateAddresses"
          },
          "apiKey": {
            "title": "Mailgun private API key",
            "type": "string",
            "description": "Your own Mailgun private API key: in the Mailgun dashboard open Account Settings, API Keys. Sent only as HTTP Basic auth (user api) to the Mailgun API host you pick below, and removed from every log line. Validations are billed by Mailgun to that account. Leave empty to use the DATA_API_KEY secret."
          },
          "region": {
            "title": "Account region",
            "enum": [
              "us",
              "eu"
            ],
            "type": "string",
            "description": "The region your Mailgun account is hosted in. US calls api.mailgun.net, EU calls api.eu.mailgun.net. A key used on the wrong region is refused.",
            "default": "us"
          },
          "addresses": {
            "title": "Email addresses",
            "type": "array",
            "description": "Email validation and Bulk list validation. One email address per line, at most 512 characters each. Duplicates are sent once, and lines that are not an email address are skipped for free.",
            "items": {
              "type": "string"
            }
          },
          "providerLookup": {
            "title": "Ask the mailbox provider",
            "type": "boolean",
            "description": "Email validation. On (the API default), Mailgun may contact the mailbox provider when its own data is not enough. Off, an address Mailgun has no data on comes back as unknown with the reason no_data.",
            "default": true
          },
          "resultFilter": {
            "title": "Keep results",
            "enum": [
              "all",
              "deliverable",
              "dropUndeliverable"
            ],
            "type": "string",
            "description": "Email validation. Which validated addresses to keep in the dataset. Every address is still validated (and billed by Mailgun); left out rows are not charged by this actor.",
            "default": "all"
          },
          "jobName": {
            "title": "Bulk job name",
            "type": "string",
            "description": "Bulk list validation. A unique name for the new job: letters, digits, dots, dashes and underscores, no @. Leave empty for apify-validation plus the date and time. Mailgun runs at most 5 bulk jobs in parallel per account."
          },
          "waitMinutes": {
            "title": "Wait for the job (minutes)",
            "minimum": 0,
            "maximum": 600,
            "type": "integer",
            "description": "Bulk list validation. How long to keep checking the new job before ending the run. A job still running after this is saved as a free row; read it later with the Validation jobs mode.",
            "default": 30
          },
          "jobType": {
            "title": "Job type",
            "enum": [
              "bulk",
              "preview"
            ],
            "type": "string",
            "description": "Validation jobs. Bulk validation jobs or List Health Preview jobs.",
            "default": "bulk"
          },
          "jobIds": {
            "title": "Job IDs",
            "type": "array",
            "description": "Validation jobs. One job name per line, as given when the job was created. Leave empty to list every job of the chosen type (bulk jobs: up to 500, newest first).",
            "items": {
              "type": "string"
            }
          },
          "maxResults": {
            "title": "Maximum rows",
            "minimum": 1,
            "maximum": 1000000,
            "type": "integer",
            "description": "The run stops after this many rows. In Email validation mode it also caps how many addresses are sent.",
            "default": 1000
          }
        }
      },
      "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
                  }
                }
              }
            }
          }
        }
      }
    }
  }
}