API OPERATIONAL

Email OTP,
simplified.

Send secure one-time passwords via email. Build authentication flows in minutes, not weeks. One API, every channel.

2,000 OTPs included in free plan. No credit card required

send-otp.ts
const pavlin = new EmailOTP({
  apiKey: 'your_api_key'
})

const result = await pavlin.email.send({
  email: 'user@example.com',
  subject: 'Your login code: {code}',
  expiresIn: 600 // 10 minutes
})

console.log(result.code) // OTP sent

Why Email OTP

Everything you need for enterprise-grade authentication

1Single integration

One API

Email OTP, one SDK, one dashboard. No more juggling multiple providers.

2Faster deployment

5 min

Production-ready SDKs in 5 languages. From zero to first OTP in minutes.

30-80%Smart routing

Cost savings

Transparent pricing with pay-as-you-go model. No hidden fees, no surprises.

100%Complete tracking

Full observability

Delivery logs, latency metrics, bounce tracking. Every message, every status.

THE PROBLEM

You're here to build products,
not OTP infrastructure.

Too many vendors to manage

Email OTP from SendGrid, SMS from Twilio, backup channels from others. Each with different SDKs, auth models, and error handling. You're maintaining integrations instead of shipping features.

Integration takes weeks

Phone numbers, verification, fallback logic, retry mechanisms. By the time setup is done, your sprint is over. Authentication shouldn't be a project.

Security compliance is a nightmare

GDPR handling, rate limiting per user, webhook signatures, compliance audits. Rolling your own means constant security reviews and regulatory headaches.

Costs are unpredictable

Per-message pricing across channels, volume discounts that require negotiations, surprise overages. No visibility into which channels are cheapest.

Documentation

API Reference

Integrate dynamic, multi-tenant OTPs into your application. Use our standard REST APIs or drop in our lightweight client SDK.

Authentication

All API requests require your project-specific API key to be passed in the headers. Do not expose this key in client-side code.

Header: x-service-key : pt_live_your_project_key

Base URL

All REST requests use the production base URL below.

Production: https://api.pavlin-tech.auth.tdltechsphere.in

Generate & Send OTP

POST/api/v1/otp/send

Request Body

  • tostring (email)
  • companyNamestring
  • appNamestring
  • supportEmailstring (email)
Request Example
fetch('https://api.pavlin-tech.auth.tdltechsphere.in/api/v1/otp/send', {
  method: 'POST',
  headers: {
    'Content-Type': 'application/json',
    'x-service-key': 'pt_live_...'
  },
  body: JSON.stringify({
    to: 'user@example.com',
    companyName: 'Acme Corp',
    appName: 'Dashboard',
    supportEmail: 'help@acme.com'
  })
});
Response 200 OK
// Example Success Response
{
  "success": true,
  "message": "OTP sent successfully",
  "id": "1234-abcd"
}

Verify OTP

POST/api/v1/otp/verify

Request Body

  • tostring (email)
  • appNamestring
  • otpstring (6 digits)
Request Example
fetch('https://api.pavlin-tech.auth.tdltechsphere.in/api/v1/otp/verify', {
  method: 'POST',
  headers: {
    'Content-Type': 'application/json',
    'x-service-key': 'pt_live_...'
  },
  body: JSON.stringify({
    to: 'user@example.com',
    appName: 'Dashboard',
    otp: '123456'
  })
});
Response 200 OK
// Example Success Response
{
  "success": true,
  "message": "OTP verified successfully"
}

Error Codes

StatusMeaning
200Success
400Bad Request (Missing fields or invalid OTP)
401Unauthorized (Invalid x-service-key)
429Too Many Requests (Rate limit hit)

PRICING

Start for free. Scale as you grow.

All channels included in every plan. Email OTPs at carrier cost. No markup, no surprises.

Free Plan

Perfect for getting started

₹0/mo
Unlimited API calls
Unlimited Webhook Events
2,000 Email OTPs/mo
Basic analytics
Priority support
MOST POPULAR

Professional

For growing businesses

₹499/mo
Unlimited API calls
Unlimited Webhooks
50,000 OTPs/mo + ₹0.05 per
Advanced analytics
Email support

Enterprise

For scale

₹1299/mo
Unlimited API calls
Unlimited Webhooks
Unlimited OTPs + volume discounts
Real-time analytics
24/7 priority support

TRUST & SECURITY

Your messages, your data, always secure.

Secure in transit & at rest

TLS 1.3 for all connections. Data encrypted at rest with AES-256. No message content stored after delivery.

Controlled access

Project-level API keys. Webhook signature verification with HMAC-SHA256.

Built for reliability

Multi-region infrastructure. Automatic failover between providers. 99.95% uptime SLA on Enterprise.

Full observability

Real-time delivery logs, latency metrics, cost tracking. Data exports for compliance and audit.

GOT QUESTIONS?

Here's how it actually works. No fine print.

Yes! The free plan includes unlimited API calls, unlimited webhook events, and 2,000 email OTPs per month. No credit card required to get started.