Looking for Affordable SMS OTP Authentication APIs
Asked by
StarryNight27
I'm on the hunt for a budget-friendly API to handle OTP authentication via SMS. I've tried Twilio, but after the trial period, it charges $0.05 for each verification. Are there any cheaper or free alternatives you can recommend? Also, just a heads up, my server is built with Golang.
Answers
There really aren't any truly unlimited free SMS OTP APIs since SMS has inherent costs. However, Firebase offers a pretty decent free tier for testing, which includes about 10,000 verifications each month. You could also look into local providers beyond Twilio for better pricing.
Reply to this answer
You might want to look into AWS SNS (Simple Notification Service). Itโs generally one of the cheaper options out there for SMS. Just keep in mind that with SMS, you'll probably incur carrier-related fees in addition to AWS's charges. If you're willing to consider email instead, AWS SES (Simple Email Service) might be a more cost-effective solution since itโs typically much cheaper.
Reply to this answer
If you're open to using a local service, consider a GoIP device. It allows you to connect with local SMS providers at much better rates. You can check out this guide on how to set it up: Sending SMS through GoIP GSM gateway using HTTP API.
Reply to this answer
Honestly, Iโd advise against using SMS for OTPs at all. Itโs not the most secure method, and the costs can really add up like you've seen. There are many alternatives for MFA that are either low-cost or free, such as using an authenticator app or services like Authy or Auth0. If SMS is a must, consider Bandwidth.com or Sinch; I use Sinch, and itโs about $0.002 per message.
Reply to this answer
Add your answer
Answers are reviewed before publication.
Related Discussions