Skip to main content

Overview

The Vouch Node.js SDK enables server-side email validation with higher rate limits and no domain restrictions. Perfect for backend APIs, serverless functions, and batch processing.
Package: @vouch-in/node Node Version: 18+ required TypeScript: Full type definitions included

Installation

Quick Start

Validate with Request Context

Pass IP and User-Agent for better fraud detection:

Express.js Integration

Serverless Functions

AWS Lambda

Vercel

Cloudflare Workers

API Reference

Constructor

Parameters:
projectId
string
required
Your Vouch project ID
apiKey
string
required
Your server API key
options
VouchOptions
Optional configuration:
  • endpoint - API endpoint URL (default: “https://api.vouch.expert”)
  • apiVersion - API version number or “latest” (default: “latest”)

validate()

Parameters:
email
string
required
Email address to validate
options
object
Optional request options:
  • ip - Client IP address for IP reputation checks
  • userAgent - Client user agent
  • fingerprintHash - Device fingerprint hash from client SDK
Returns: Promise<ValidationResponse>
The message field contains a human-friendly error message when the recommendation is flag or block (e.g. “Please use a permanent email address, not a temporary one.”). It is null when the recommendation is allow.

Server vs Client Keys

Always use server keys on the backend. Never expose server keys in client-side code!

TypeScript Support

Error Handling

Next Steps

Next.js SDK

Next.js integration

API Reference

Complete API docs