---
agentTools:
  projectIndex: https://digitalpilot.readme.io/llms.txt
---

# Validate an email address

Checks format, typos, disposable domains, and MX records without an SMTP mailbox probe. When those checks pass, verifies the mailbox. Costs 1 credit for each completed validation. Returns 402 when the workspace balance is below 1.

# OpenAPI definition

```json
{
  "openapi": "3.0.0",
  "servers": [
    {
      "url": "https://api.digitalpilot.app",
      "description": "Production server"
    }
  ],
  "info": {
    "title": "DigitalPilot API",
    "description": "Using the REST API allows you to programmatically execute a wide range of code operations which are also available through the user interface.",
    "version": "1.1.0"
  },
  "paths": {
    "/v1/tags/{id}/contacts/email-validator": {
      "post": {
        "tags": [
          "Contacts"
        ],
        "summary": "Validate an email address",
        "description": "Checks format, typos, disposable domains, and MX records without an SMTP mailbox probe. When those checks pass, verifies the mailbox. Costs 1 credit for each completed validation. Returns 402 when the workspace balance is below 1.",
        "parameters": [
          {
            "name": "id",
            "in": "path",
            "required": true,
            "schema": {
              "type": "string",
              "example": "0YFe6H1"
            },
            "description": "The workspace (tag) ID"
          }
        ],
        "requestBody": {
          "content": {
            "application/json": {
              "schema": {
                "type": "object",
                "properties": {
                  "email": {
                    "type": "string",
                    "description": "Email address to validate",
                    "example": "jane@stripe.com"
                  },
                  "ip_address": {
                    "type": "string",
                    "description": "Optional IP the address signed up from",
                    "example": "156.124.12.145"
                  }
                }
              }
            }
          },
          "description": "Checks format, typos, disposable domains, and MX records without an SMTP mailbox probe. When those checks pass, verifies the mailbox. Costs 1 credit for each completed validation. Returns 402 when the workspace balance is below 1."
        },
        "responses": {
          "200": {
            "description": "Success",
            "content": {
              "application/json": {
                "example": {
                  "data": {
                    "email": "jane@stripe.com",
                    "valid": true,
                    "status": "valid",
                    "checks": {
                      "valid": true,
                      "validators": {
                        "regex": {
                          "valid": true
                        },
                        "typo": {
                          "valid": true
                        },
                        "disposable": {
                          "valid": true
                        },
                        "mx": {
                          "valid": true
                        }
                      }
                    },
                    "mailbox": {
                      "address": "jane@stripe.com",
                      "status": "valid",
                      "sub_status": "",
                      "free_email": false,
                      "mx_found": "true"
                    }
                  },
                  "meta": {
                    "credits_used": 1,
                    "credits_remaining": 499
                  }
                }
              }
            }
          },
          "400": {
            "description": "Invalid request",
            "content": {
              "application/json": {
                "example": {
                  "error": "Invalid request"
                }
              }
            }
          },
          "401": {
            "description": "Unauthorized",
            "content": {
              "application/json": {
                "example": {
                  "error": "Unauthorized"
                }
              }
            }
          },
          "402": {
            "description": "Insufficient credits",
            "content": {
              "application/json": {
                "example": {
                  "error": "Insufficient credits"
                }
              }
            }
          },
          "404": {
            "description": "Not Found",
            "content": {
              "application/json": {
                "example": {
                  "error": "Not Found"
                }
              }
            }
          },
          "429": {
            "description": "Too Many Requests",
            "content": {
              "application/json": {
                "example": {
                  "error": "Too Many Requests"
                }
              }
            }
          },
          "500": {
            "description": "Internal server error",
            "content": {
              "application/json": {
                "example": {
                  "error": "Internal server error"
                }
              }
            }
          },
          "502": {
            "description": "Email provider unavailable",
            "content": {
              "application/json": {
                "example": {
                  "error": "Email provider unavailable"
                }
              }
            }
          }
        },
        "security": [
          {
            "ApiKeyAuth": []
          }
        ]
      }
    }
  },
  "components": {
    "securitySchemes": {
      "ApiKeyAuth": {
        "type": "apiKey",
        "in": "header",
        "name": "x-api-key"
      }
    }
  },
  "x-readme": {
    "explorer-enabled": true,
    "proxy-enabled": true
  },
  "_id": {
    "buffer": {
      "0": 102,
      "1": 183,
      "2": 97,
      "3": 197,
      "4": 10,
      "5": 143,
      "6": 143,
      "7": 0,
      "8": 25,
      "9": 18,
      "10": 83,
      "11": 124
    }
  }
}
```