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.
/api/gmail/send-otp
| Parameter | Type | Required | Description |
|---|---|---|---|
| apiKey | String | Yes | Your Gmail Secret key |
| String | Yes | Recipient's valid email address |
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": true,
"message": "Gmail OTP dispatched successfully."
}
{
"success": false,
"message": "Invalid API key or email address."
}
/api/gmail/verify-otp
| Parameter | Type | Required | Description |
|---|---|---|---|
| apiKey | String | Yes | Your Gmail API key |
| String | Yes | Recipient's email address | |
| otp | String | Yes | 6-digit OTP code |
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": true,
"message": "OTP Verified successfully."
}
{
"success": false,
"message": "Invalid OTP code."
}
SMS OTP API
Dispatch verification codes through standard carrier telecommunication routes (SMS) to Indian numbers instantly.
/api/sms/send-otp
| Parameter | Type | Required | Description |
|---|---|---|---|
| apiKey | String | Yes | Your SMS Gateway API key |
| number | String | Yes | Recipient's 10-digit mobile number |
curl -X POST https://easyotpapi.online/api/sms/send-otp \
-H "Content-Type: application/json" \
-d '{"apiKey": "sms_xxxxxxxxxxxxxxxx", "number": "9693521763"}'
Response Examples
{
"success": true,
"message": "SMS OTP dispatched successfully."
}
{
"success": false,
"message": "Invalid API key or phone number."
}
/api/sms/verify-otp
| Parameter | Type | Required | Description |
|---|---|---|---|
| apiKey | String | Yes | Your SMS API key |
| number | String | Yes | Recipient's 10-digit mobile number |
| otp | String | Yes | 6-digit OTP code |
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": true,
"message": "OTP Verified successfully."
}
{
"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.
/api/whatsapp/send-otp
| Parameter | Type | Required | Description |
|---|---|---|---|
| apiKey | String | Yes | Your WhatsApp Active API Key (e.g. easyotp_...) |
| number | String | Yes | Recipient's 10-digit mobile number |
| templateId | String | Optional | Default: 1455426366519893 |
curl -X POST https://easyotpapi.online/api/whatsapp/send-otp \
-H "Content-Type: application/json" \
-d '{"apiKey": "easyotp_xxxxxxxxxxxx", "number": "9876543210"}'
Response Examples
{
"success": true,
"message": "OTP send successfully."
}
{
"success": false,
"message": "Insufficient wallet balance. Minimum ₹0.35 required."
}
/api/whatsapp/verify-otp
| Parameter | Type | Required | Description |
|---|---|---|---|
| apiKey | String | Yes | Your WhatsApp Active API Key |
| number | String | Yes | Recipient's 10-digit mobile number |
| otp | String | Yes | 6-digit OTP code received |
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": true,
"message": "OTP Verified successfully."
}
{
"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
- Open API Console → Arattai in your dashboard and press Connect Arattai.
- Scan the QR code with the Arattai app on your phone. Your
arattai_...API key appears instantly. - 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.
/api/arattai/chats
| Parameter | Type | Required | Description |
|---|---|---|---|
| apiKey | String | Yes | Your Arattai API key (arattai_...). |
| limit | Number | Optional | Max chats to return (default 50, max 200). |
curl "https://easyotpapi.online/api/arattai/chats?apiKey=arattai_xxxxxxxxxxxx&limit=20"
{
"success": true,
"chats": [
{ "chatId": "CT_1234567890_9876", "title": "Rahul Sharma" }
]
}
/api/arattai/send-otp
| Parameter | Type | Required | Description |
|---|---|---|---|
| apiKey | String | Yes | Your Arattai API key. |
| chatId | String | Yes* | Chat to send the OTP to (from /api/arattai/chats). |
| title | String | Yes* | Alternative to chatId: exact chat/contact name in your Arattai account. *Send either chatId or title. |
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": true,
"message": "OTP sent successfully on Arattai.",
"provider": "EASY OTP API Arattai",
"chatId": "CT_1234567890_9876"
}
// 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" }
/api/arattai/verify-otp
| Parameter | Type | Required | Description |
|---|---|---|---|
| apiKey | String | Yes | Your Arattai API key. |
| chatId | String | Yes | The same chatId the OTP was sent to. |
| otp | String | Yes | The code the user typed in (valid for 5 minutes, single use, max 5 attempts). |
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": true,
"message": "OTP Verified successfully."
}
{
"success": false,
"message": "Invalid OTP code."
}