API Documentation

Introduction

Welcome to the EASY OTP API developer reference guides. Our platform provides high-availability REST APIs designed to dispatch dynamically generated verification codes via Gmail SMTP, Arattai, Carrier SMS, and WhatsApp securely.

Zero-Paperwork KYC

All services are instantly accessible upon sign-up. Get ₹5 free trial, then top up via UPI and start sending OTPs.

Gmail OTP

₹0.10 / call

SMS OTP

₹0.35 / call

WhatsApp OTP

₹0.35 / call

Arattai OTP

₹0.20 / call

Gmail OTP API

Securely dispatch transactional OTP verification emails directly to primary inboxes with your custom Sender Company Name.

POST /api/gmail/send-otp
ParameterTypeRequiredDescription
apiKeyStringYesYour Gmail Secret key
emailStringYesRecipient's valid email address
cURL
curl -X POST https://easyotpapi.online/api/gmail/send-otp \
  -H "Content-Type: application/json" \
  -d '{"apiKey": "gmail_xxxxxxxxxxxxxxxx", "email": "user@gmail.com"}'

Response Examples

Success (200 OK)
{
  "success": true,
  "message": "Gmail OTP dispatched successfully."
}
Error (400 Bad Request)
{
  "success": false,
  "message": "Invalid API key or email address."
}
POST /api/gmail/verify-otp
ParameterTypeRequiredDescription
apiKeyStringYesYour Gmail API key
emailStringYesRecipient's email address
otpStringYes6-digit OTP code
cURL
curl -X POST https://easyotpapi.online/api/gmail/verify-otp \
  -H "Content-Type: application/json" \
  -d '{"apiKey": "gmail_xxxxxxxxxxxxxxxx", "email": "user@gmail.com", "otp": "592038"}'

Response Examples

Success (200 OK)
{
  "success": true,
  "message": "OTP Verified successfully."
}
Error - Invalid OTP (400)
{
  "success": false,
  "message": "Invalid OTP code."
}

SMS OTP API

Dispatch verification codes through standard carrier telecommunication routes (SMS) to Indian numbers instantly.

POST /api/sms/send-otp
ParameterTypeRequiredDescription
apiKeyStringYesYour SMS Gateway API key
numberStringYesRecipient's 10-digit mobile number
cURL
curl -X POST https://easyotpapi.online/api/sms/send-otp \
  -H "Content-Type: application/json" \
  -d '{"apiKey": "sms_xxxxxxxxxxxxxxxx", "number": "9693521763"}'

Response Examples

Success (200 OK)
{
  "success": true,
  "message": "SMS OTP dispatched successfully."
}
Error (400 Bad Request)
{
  "success": false,
  "message": "Invalid API key or phone number."
}
POST /api/sms/verify-otp
ParameterTypeRequiredDescription
apiKeyStringYesYour SMS API key
numberStringYesRecipient's 10-digit mobile number
otpStringYes6-digit OTP code
cURL
curl -X POST https://easyotpapi.online/api/sms/verify-otp \
  -H "Content-Type: application/json" \
  -d '{"apiKey": "sms_xxxxxxxxxxxxxxxx", "number": "9693521763", "otp": "194038"}'

Response Examples

Success (200 OK)
{
  "success": true,
  "message": "OTP Verified successfully."
}
Error - Invalid OTP (400)
{
  "success": false,
  "message": "Invalid OTP code."
}

WhatsApp OTP API

Dispatch instant verification codes through Fast2SMS WhatsApp tunnels using your activated dashboard API key (easyotp_...). Cost: ₹0.35 per message.

POST / GET /api/whatsapp/send-otp
ParameterTypeRequiredDescription
apiKeyStringYesYour WhatsApp Active API Key (e.g. easyotp_...)
numberStringYesRecipient's 10-digit mobile number
templateIdStringOptionalDefault: 1455426366519893
cURL
curl -X POST https://easyotpapi.online/api/whatsapp/send-otp \
  -H "Content-Type: application/json" \
  -d '{"apiKey": "easyotp_xxxxxxxxxxxx", "number": "9876543210"}'

Response Examples

Success (200 OK)
{
  "success": true,
  "message": "OTP send successfully."
}
Error - Insufficient Balance (402)
{
  "success": false,
  "message": "Insufficient wallet balance. Minimum ₹0.35 required."
}
POST / GET /api/whatsapp/verify-otp
ParameterTypeRequiredDescription
apiKeyStringYesYour WhatsApp Active API Key
numberStringYesRecipient's 10-digit mobile number
otpStringYes6-digit OTP code received
cURL
curl -X POST https://easyotpapi.online/api/whatsapp/verify-otp \
  -H "Content-Type: application/json" \
  -d '{"apiKey": "easyotp_xxxxxxxxxxxx", "number": "9876543210", "otp": "482910"}'

Response Examples

Success (200 OK)
{
  "success": true,
  "message": "OTP Verified successfully."
}
Error - Invalid or Expired (200)
{
  "success": false,
  "message": "Invalid OTP code."
}

Arattai OTP API

Send verification codes as Arattai messages using your Arattai API key (arattai_...). Cost: ₹0.20 per message (charged from your wallet).

How to connect

  1. Open API Console → Arattai in your dashboard and press Connect Arattai.
  2. Scan the QR code with the Arattai app on your phone. Your arattai_... API key appears instantly.
  3. The home page shows CONNECTED for Arattai. If it shows NOT CONFIG, the account is not linked yet (or the session expired — scan the QR again).

Important: an OTP can only be sent to a person who already has a chat with your connected Arattai account (they must message your account first). Use /api/arattai/chats to get the chatId.

GET /api/arattai/chats
ParameterTypeRequiredDescription
apiKeyStringYesYour Arattai API key (arattai_...).
limitNumberOptionalMax chats to return (default 50, max 200).
cURL
curl "https://easyotpapi.online/api/arattai/chats?apiKey=arattai_xxxxxxxxxxxx&limit=20"
Success (200 OK)
{
  "success": true,
  "chats": [
    { "chatId": "CT_1234567890_9876", "title": "Rahul Sharma" }
  ]
}
POST / GET /api/arattai/send-otp
ParameterTypeRequiredDescription
apiKeyStringYesYour Arattai API key.
chatIdStringYes*Chat to send the OTP to (from /api/arattai/chats).
titleStringYes*Alternative to chatId: exact chat/contact name in your Arattai account. *Send either chatId or title.
cURL
curl -X POST https://easyotpapi.online/api/arattai/send-otp \
  -H "Content-Type: application/json" \
  -d '{"apiKey": "arattai_xxxxxxxxxxxx", "chatId": "CT_1234567890_9876"}'

Response Examples

Success (200 OK)
{
  "success": true,
  "message": "OTP sent successfully on Arattai.",
  "provider": "EASY OTP API Arattai",
  "chatId": "CT_1234567890_9876"
}
Error examples
// 402 - wallet too low
{ "success": false, "message": "Insufficient wallet balance. Minimum ₹0.2 required." }

// 409 - not linked / session expired (scan the QR again in the dashboard)
{ "success": false, "code": "NOT_CONNECTED", "message": "Arattai is not connected for this API key." }
{ "success": false, "code": "SESSION_EXPIRED", "message": "Arattai session expired. Reconnect from your dashboard." }

// 404 - no such chat in the connected account
{ "success": false, "code": "CHAT_NOT_FOUND", "message": "No chat with that name in the connected Arattai account" }
POST / GET /api/arattai/verify-otp
ParameterTypeRequiredDescription
apiKeyStringYesYour Arattai API key.
chatIdStringYesThe same chatId the OTP was sent to.
otpStringYesThe code the user typed in (valid for 5 minutes, single use, max 5 attempts).
cURL
curl -X POST https://easyotpapi.online/api/arattai/verify-otp \
  -H "Content-Type: application/json" \
  -d '{"apiKey": "arattai_xxxxxxxxxxxx", "chatId": "CT_1234567890_9876", "otp": "482910"}'

Response Examples

Success (200 OK)
{
  "success": true,
  "message": "OTP Verified successfully."
}
Error - Invalid or Expired (200)
{
  "success": false,
  "message": "Invalid OTP code."
}