OTP and verification code emails

One-time passcodes, sign-in links and password resets have one job: arrive in seconds, in the inbox. TrivSend is built for exactly this kind of email.

Start free · How to send OTP emails well · OTP by email vs SMS in India

Why OTP emails need care

A user is waiting on the screen. If the code takes a minute, lands in spam, or arrives twice, they give up or contact support. Three things decide it: how quickly the email leaves, whether the receiving server trusts your domain, and whether retries create duplicates.

How TrivSend handles it

One request

bash
curl -X POST https://api.trivsend.com/emails \
  -H "Authorization: Bearer $TRIVSEND_API_KEY" \
  -H "Content-Type: application/json" \
  -H "Idempotency-Key: otp-7f3a9c" \
  -d '{"from":"Acme <noreply@notify.acme.com>","to":["asha@example.com"],"subject":"Your Acme code: 482913","text":"Your code is 482913. It expires in 5 minutes.","expires_at":"2026-11-18T10:05:00+05:30"}'

An email with expires_at goes out at high priority. Over SMTP, add the header X-TrivSend-Expires-At: 300 (seconds). Works the same from the Node.js SDK, Laravel, Django or any SMTP client.

Pricing

Free for 3,000 emails a month. Paid plans from ₹999 for 50,000 (pricing).