Recently I was working on a project where I had to integrate an OTP System with Transactional SMS.
I used the Amazon (AWS) SNS (Simple Notification Service) for sending SMS and implemented the API using Express.js (Node.js)
Checkout the project here
- Create an account on AWS
- Navigate to SNS
- Create Security Credentials
- Apply for Extension in Message Limit by contacting customer support in case the OTP fails
GET Request to / route with following paramaters in the GET Request
Send a GET Request from browser,
After triggering the API, you will receive the OTP.
The mobile number should be E.164 format but without the + character.
You want to send a message to a number,
The country code is 44
The mobile number is (0)7700 900123
The E.164 format would be +447700900123
Remove the + character
http://localhost:3000/?message=my message&number=447700900123&subject=My Subject