Overview
This guide will walk you through sending your first OTP and verifying it. You’ll learn the basic workflow that powers all OTP verification in your applications.Step 1: Get Your API Key
1
Sign up for an account
Go to app.easyotp.dev/signup and create your account.
2
Navigate to API Keys
Once logged in, go to the API Keys section in your dashboard.
3
Create a new API key
Click “Create API Key” and give it a descriptive name. Copy and save your key securely.
Step 2: Send Your First OTP
Choose your preferred method:Response
verification_id - you’ll need it to verify the code.
Step 3: Verify the Code
When your user enters the code they received, verify it:Response
Understanding Channels
EasyOTP supports three channels:SMS
Send codes via text message. Recipient must be a valid E.164 phone number (e.g., +1234567890).
Send codes via email. Supports custom subject lines for better branding.
Voice
Deliver codes via automated voice call. Great for accessibility and international users.
Next Steps
JavaScript SDK
Use our official JavaScript SDK
Python SDK
Use our official Python SDK
API Reference
Explore the complete API documentation
View Logs
Monitor your API usage and debug issues
Manage Credits
Add credits to your account
Get Support
Need help? Contact our support team
Best Practices
Store verification IDs securely
Store verification IDs securely
Keep verification IDs associated with user sessions server-side. Never expose them in URLs or client-side code.
Set appropriate expiration times
Set appropriate expiration times
Use shorter expiration times (2-5 minutes) for sensitive operations. Longer times (10-15 minutes) are acceptable for email verification.
Customize your messages
Customize your messages
Include your brand name and make messages clear. Good: “Your Acme Corp verification code is: ”. Bad: "".
Handle errors gracefully
Handle errors gracefully
Always check the response status and handle errors. Provide clear feedback to users when codes expire or are invalid.
Implement rate limiting
Implement rate limiting
Limit how many codes users can request in a time period to prevent abuse and reduce costs.