Install
openclaw skills install anti-tempmailValidate email addresses against temporary/disposable email providers using AntiTempMail API. Detect throwaway emails to protect your services.
openclaw skills install anti-tempmailValidate email addresses to detect temporary/disposable email providers. Protect your services from throwaway accounts.
Set your API key as an environment variable:
export ANTITEMPMAIL_API_KEY="your_api_key_here"
Get your API key from: https://antitempmail.com/dashboard
curl -X POST https://antitempmail.com/api/v1/email/check \
-H "Content-Type: application/json" \
-H "X-API-Key: $ANTITEMPMAIL_API_KEY" \
-d '{"email": "test@tempmail.com"}'
Response:
{
"email": "test@tempmail.com",
"isTemporary": true,
"domain": "tempmail.com",
"provider": "TempMail",
"risk": "high"
}
curl -X POST https://antitempmail.com/api/v1/email/check/bulk \
-H "Content-Type: application/json" \
-H "X-API-Key: $ANTITEMPMAIL_API_KEY" \
-d '{
"emails": [
"user1@gmail.com",
"user2@tempmail.com",
"user3@10minutemail.com"
]
}'
Response:
{
"results": [
{
"email": "user1@gmail.com",
"isTemporary": false,
"domain": "gmail.com",
"risk": "low"
},
{
"email": "user2@tempmail.com",
"isTemporary": true,
"domain": "tempmail.com",
"provider": "TempMail",
"risk": "high"
},
{
"email": "user3@10minutemail.com",
"isTemporary": true,
"domain": "10minutemail.com",
"provider": "10MinuteMail",
"risk": "high"
}
],
"summary": {
"total": 3,
"temporary": 2,
"legitimate": 1
}
}
When a user signs up, check if their email is temporary:
EMAIL="newuser@example.com"
RESULT=$(curl -s -X POST https://antitempmail.com/api/v1/email/check \
-H "Content-Type: application/json" \
-H "X-API-Key: $ANTITEMPMAIL_API_KEY" \
-d "{\"email\": \"$EMAIL\"}")
IS_TEMP=$(echo $RESULT | jq -r '.isTemporary')
if [ "$IS_TEMP" = "true" ]; then
echo "⚠️ Temporary email detected! Registration blocked."
else
echo "✅ Valid email. Proceeding with registration."
fi
Filter out temporary emails from a list:
# Read emails from file (one per line)
EMAILS=$(cat email_list.txt | jq -R . | jq -s .)
curl -X POST https://antitempmail.com/api/v1/email/check/bulk \
-H "Content-Type: application/json" \
-H "X-API-Key: $ANTITEMPMAIL_API_KEY" \
-d "{\"emails\": $EMAILS}" | \
jq '.results[] | select(.isTemporary == false) | .email'
email: The validated email addressisTemporary: Boolean indicating if it's a temporary emaildomain: Email domainprovider: Name of the temporary email provider (if detected)risk: Risk level (low, medium, high)confidence: Detection confidence score (0-100)Common errors:
401 Unauthorized: Invalid or missing API key429 Too Many Requests: Rate limit exceeded400 Bad Request: Invalid email formatCheck your usage at: https://antitempmail.com/dashboard/credits