Introduction
Welcome to the EASY OTP developer reference guides. Our platform provides high-availability REST APIs designed to dispatch dynamically generated verification codes via Gmail SMTP and Carrier SMS securely.
Zero-Paperwork KYC
All services are instantly accessible upon sign-up. Get ₹5 free trial, then top up via UPI (min ₹15) and start sending OTPs.
Gmail OTP
₹0.10 per API call
SMS OTP
₹0.35 per API call
Gmail OTP API
Securely dispatch transactional OTP verification emails directly to primary inboxes. Each request dynamically styles your custom Sender Company Name on our highly deliverable SMTP servers.
/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 Example
{
"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 Example
{
"success": true,
"message": "OTP Verified successfully."
}
{
"success": false,
"message": "Invalid OTP code."
}
{
"success": false,
"message": "OTP expired or session not found."
}
SMS OTP API
Dispatch verification codes through standard carrier telecommunication routes (SMS) to Indian numbers instantly. Highly compatible with legacy web services.
/api/sms/send-otp
Important
Send strictly 10-digit number. Do NOT add +91 prefix. Gateway appends country code automatically.
| 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 Example
{
"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 Example
{
"success": true,
"message": "OTP Verified successfully."
}
{
"success": false,
"message": "Invalid OTP code."
}
{
"success": false,
"message": "OTP expired or session not found."
}