OFFICIAL SDKs • 2-LINE INTEGRATION
Paperplane Quickstart & Docs
Send and verify passwordless OTPs across Email, SMS & WhatsApp. No database, no state storage, and zero verification fees.
Install:
npm install paperplane-sdk1
Send OTP
Pass an email address or mobile number with country code. Paperplane auto-detects the channel (Email via SES, phone via WhatsApp/SMS).
JavaScript / TypeScript • Send OTP
import { pp } from "paperplane-sdk";
pp.apiKey = "pp_live_your_key_here";
// Auto-detects Email vs WhatsApp/SMS
const res = await pp.send("+918xxxxxxx0");
// or: await pp.send("[email protected]");
if (res.status === "delivered") {
console.log("OTP sent!");
}
2
Verify OTP
Verify submitted 6-digit code. Paperplane verifies stateless cryptographic signatures—no database or Redis query required.
JavaScript / TypeScript • Verify OTP
import { pp } from "paperplane-sdk";
pp.apiKey = "pp_live_your_key_here";
const res = await pp.verify("+918xxxxxxx0", "375666");
if (res.verified) {
console.log("Logged in!");
}
3
Audit Delivery Logs
Audit real-time delivery status, channels, and message IDs.
JavaScript / TypeScript • Delivery Logs
import { pp } from "paperplane-sdk";
pp.apiKey = "pp_live_your_key_here";
// 1. Today's delivery logs (default 50)
const today = await pp.logs();
// 2. Custom limit
const recent = await pp.logs(10);
Ready to ship?
Get your free API Key in 30 seconds
Starter tier includes 500 emails/mo and 25 WhatsApp OTPs forever free. No credit card required.