---
title: "Validate an email address"
method: POST
path: "/validate-email"
tags: ["Validation"]
---

# Validate an email address

`POST /validate-email`

## Request

- Base URL: `https://api.cofferdock.com`
- URL: `https://api.cofferdock.com/validate-email`
- Auth: API key in header `x-api-key`

Checks the format and, by default, that the domain has a real mail server (MX record). An invalid email is still a successful call (valid=false).

Costs 1 credit per call.

## Request body

- object
  - `email` string, required: The email address to check.
  - `check_mx` boolean: true (default) = also check that the domain can receive email (MX records).

## Response `200`

Result.

- object
  - `success` boolean
  - `valid` boolean
  - `format_valid` boolean
  - `mx_found` boolean, nullable
  - `domain` string, nullable
  - `reason` string
  - `meta` object
    - `used` integer: Credits used this month, after this call.
    - `remaining` integer, nullable: Credits left this month (null = unlimited).
    - `unlimited` boolean

## Other responses

- `400`: Invalid input (nothing is charged).
- `401`: Missing or invalid API key.
- `403`: Email not verified.
- `429`: Monthly credit limit reached, or too many requests per minute for this key (see Retry-After).
- `503`: Server busy (queue full). Retry after the seconds in the Retry-After header.

---

[API](https://skmtc.dev/cofferdock/apis/cofferdock-api.md) · [All operations](https://skmtc.dev/cofferdock/apis/cofferdock-api/llms.txt) · [OpenAPI document](https://skmtc.dev/cofferdock/apis/cofferdock-api/revisions/b57aa000d33a?raw)
