SalchiMail API documentation
Verify email addresses without sending them a single message. Check one address in a request, or clean a whole list in a batch.
curl https://api.salchimail.com/v1/verify \
-H "Authorization: Bearer $SALCHIMAIL_API_KEY" \
-H "Content-Type: application/json" \
-d '{"email": "ana@example.com", "mode": "mailbox"}'const response = await fetch("https://api.salchimail.com/v1/verify", {
method: "POST",
headers: {
Authorization: `Bearer ${process.env.SALCHIMAIL_API_KEY}`,
"Content-Type": "application/json",
},
body: JSON.stringify({ email: "ana@example.com", mode: "mailbox" }),
});
const result = await response.json();
if (!response.ok) {
throw new Error(`${result.error.code}: ${result.error.message}`);
}
console.log(result.verdict, result.reason_code);import json
import os
import urllib.error
import urllib.request
request = urllib.request.Request(
"https://api.salchimail.com/v1/verify",
data=json.dumps({"email": "ana@example.com", "mode": "mailbox"}).encode(),
headers={
"Authorization": f"Bearer {os.environ['SALCHIMAIL_API_KEY']}",
"Content-Type": "application/json",
},
)
try:
with urllib.request.urlopen(request, timeout=40) as response:
result = json.load(response)
except urllib.error.HTTPError as error:
problem = json.load(error)["error"]
raise SystemExit(f"{problem['code']}: {problem['message']}")
print(result["verdict"], result["reason_code"])<?php
$ch = curl_init("https://api.salchimail.com/v1/verify");
curl_setopt_array($ch, [
CURLOPT_POST => true,
CURLOPT_RETURNTRANSFER => true,
CURLOPT_TIMEOUT => 40,
CURLOPT_HTTPHEADER => [
"Authorization: Bearer " . getenv("SALCHIMAIL_API_KEY"),
"Content-Type: application/json",
],
CURLOPT_POSTFIELDS => json_encode(["email" => "ana@example.com", "mode" => "mailbox"]),
]);
$body = curl_exec($ch);
if ($body === false) {
fwrite(STDERR, "Request failed: " . curl_error($ch) . "\n");
exit(1);
}
$result = json_decode($body, true);
if (curl_getinfo($ch, CURLINFO_HTTP_CODE) !== 200) {
fwrite(STDERR, "{$result['error']['code']}: {$result['error']['message']}\n");
exit(1);
}
echo "{$result['verdict']} {$result['reason_code']}\n";package main
import (
"bytes"
"encoding/json"
"fmt"
"log"
"net/http"
"os"
"time"
)
type verification struct {
Verdict string `json:"verdict"`
ReasonCode string `json:"reason_code"`
Error *struct {
Code string `json:"code"`
Message string `json:"message"`
} `json:"error"`
}
func main() {
payload, _ := json.Marshal(map[string]string{"email": "ana@example.com", "mode": "mailbox"})
req, _ := http.NewRequest("POST", "https://api.salchimail.com/v1/verify", bytes.NewReader(payload))
req.Header.Set("Authorization", "Bearer "+os.Getenv("SALCHIMAIL_API_KEY"))
req.Header.Set("Content-Type", "application/json")
client := &http.Client{Timeout: 40 * time.Second}
res, err := client.Do(req)
if err != nil {
log.Fatal(err)
}
defer res.Body.Close()
var result verification
if err := json.NewDecoder(res.Body).Decode(&result); err != nil {
log.Fatal(err)
}
if result.Error != nil {
log.Fatalf("%s: %s", result.Error.Code, result.Error.Message)
}
fmt.Println(result.Verdict, result.ReasonCode)
}Every result carries a verdict (valid, invalid, risky or unknown), a stable reason_code that says why, and credits_charged, so you always know what a call cost.
| Basics | |
|---|---|
| Base URL | https://api.salchimail.com/v1 |
| Authentication | Authorization: Bearer sk_live_… (details) |
| Format | JSON over HTTPS. Every error has the same shape (details) |
| Contract | OpenAPI 3.1: openapi.yaml · openapi.json |
Two ways to verify
mode |
What it checks | Typical use |
|---|---|---|
basic |
Syntax, disposable and free-provider lists, DNS and MX records | Sign-up forms: it answers in well under a second |
mailbox |
Everything in basic, plus an SMTP RCPT TO probe and a catch-all control |
Cleaning a list before a campaign |
A mailbox check stops at RCPT TO and never issues DATA: no message is ever sent to the address. Each mode uses its own credit balance.
Guides
For AI agents
Every page has a Markdown twin (add .md to its URL) and the site publishes llms.txt and llms-full.txt. See Use from AI agents.