An email verification API lets your application check addresses at the
moment they matter — signup, import, or before a send. Here is a practical integration
guide using the XMailCheck API as the reference.
1. Create an API key
Keys are created in the dashboard (API Keys page). They are stored hashed — the value
is shown once at creation, so save it then. Authenticate with:
```
Authorization: Bearer YOUR_API_KEY
```
2. Single verification
```bash
curl -X POST https://YOUR-DOMAIN/api/v1/verify \
-H "Authorization: Bearer YOUR_API_KEY" \
-F "email=user@example.com"
```
The response contains the classification (VALID, INVALID, RISKY, UNKNOWN — plus
bounce classes when evidence exists), a confidence level, reasons[] and evidence[]
— the checks that produced the verdict.
3. Bulk jobs
```bash
create
curl -X POST https://YOUR-DOMAIN/api/v1/jobs \
-H "Authorization: Bearer YOUR_API_KEY" \
-F "file=@list.txt" -F "mode=dns"
=> {"job_id": 42, "status": "queued", "total_rows": 50000}
poll
curl https://YOUR-DOMAIN/api/v1/jobs/42 \
-H "Authorization: Bearer YOUR_API_KEY"
```
When the job is done, download reports from the dashboard.
4. Error handling that matters
- 401 — bad/missing key. Check the
Bearerprefix. - 402 / insufficient credits — top up; the response tells you.
- 429 — rate limit. Back off and retry with jitter.
- Classification ≠ guarantee —
VALIDis inferred (syntax + routing evidence);
only recorded delivery evidence ever produces a confirmed flag.
5. Design for evidence
Store the evidence[] from your verifications. When a stakeholder asks "why did we remove
this address?", the answer is a check list, not a shrug.
Rate limits and fairness
Limits are per key (configurable by the operator). Poll job status at reasonable
intervals — polling is cheap, hammering is throttled.
See the full API documentation, and create your key to start.