{
  "info": {
    "name": "EmailValidation API",
    "description": "Honest email validation API. Set the `apiKey` collection variable to your API key from https://email-validation-api.net/dashboard/api-keys then send any request.",
    "schema": "https://schema.getpostman.com/json/collection/v2.1.0/collection.json",
    "_postman_id": "ev-api-v1-emailvalidation"
  },
  "auth": {
    "type": "bearer",
    "bearer": [
      { "key": "token", "value": "{{apiKey}}", "type": "string" }
    ]
  },
  "variable": [
    { "key": "baseUrl", "value": "https://email-validation-api.net/api/v1", "type": "string" },
    { "key": "apiKey",  "value": "REPLACE_ME",                               "type": "string" }
  ],
  "item": [
    {
      "name": "Validate single email",
      "request": {
        "method": "POST",
        "header": [
          { "key": "Content-Type", "value": "application/json" }
        ],
        "url": { "raw": "{{baseUrl}}/validate", "host": ["{{baseUrl}}"], "path": ["validate"] },
        "body": {
          "mode": "raw",
          "raw": "{\n  \"email\": \"alice@example.com\"\n}"
        },
        "description": "Single-email validation. Debits 1 credit on success."
      }
    },
    {
      "name": "Validate bulk (up to 200, sync)",
      "request": {
        "method": "POST",
        "header": [
          { "key": "Content-Type", "value": "application/json" }
        ],
        "url": { "raw": "{{baseUrl}}/validate-bulk", "host": ["{{baseUrl}}"], "path": ["validate-bulk"] },
        "body": {
          "mode": "raw",
          "raw": "{\n  \"emails\": [\n    \"alice@example.com\",\n    \"bob@example.com\"\n  ]\n}"
        },
        "description": "Synchronous bulk validation, max 200 emails."
      }
    },
    {
      "name": "Validate async (up to 10000)",
      "request": {
        "method": "POST",
        "header": [
          { "key": "Content-Type", "value": "application/json" }
        ],
        "url": { "raw": "{{baseUrl}}/validate-async", "host": ["{{baseUrl}}"], "path": ["validate-async"] },
        "body": {
          "mode": "raw",
          "raw": "{\n  \"emails\": [\n    \"alice@example.com\",\n    \"bob@example.com\"\n  ],\n  \"webhook_url\": \"https://your-app.com/hooks/email-batch\",\n  \"webhook_secret\": \"shhh\"\n}"
        },
        "description": "Returns a batch_id immediately. Poll /batch/:id or wait for the webhook."
      }
    },
    {
      "name": "Get batch status",
      "request": {
        "method": "GET",
        "url": {
          "raw": "{{baseUrl}}/batch/bat_xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx",
          "host": ["{{baseUrl}}"],
          "path": ["batch", "bat_xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx"]
        },
        "description": "Replace the batch id in the URL with the one returned by /validate-async."
      }
    },
    {
      "name": "Get credits balance",
      "request": {
        "method": "GET",
        "url": { "raw": "{{baseUrl}}/credits", "host": ["{{baseUrl}}"], "path": ["credits"] },
        "description": "Free endpoint. Returns wallet summary."
      }
    }
  ]
}
