An OTP verification system, built from the ground up
I built a client's SMS verification system from start to finish: the API apps call to send one-time codes at sign-up and login, the panels customers and resellers use, the admin, message routing, limits and reporting.
The challenge
The client wanted to sell phone verification to other businesses as a service: one call to send a code, one call to check it, and nothing for the customer to run themselves.
A verification service is a target twice over. Attackers try to use it to send floods of messages they do not pay for, and every code it sends is a key to someone's account.
What I did
One API for sign-up and login
A documented API to request a code and check it, built so a customer can add phone verification to their app in an afternoon, with keys of their own.
Several delivery routes
Messages go out over more than one route, so a slow or failing route does not stop codes from arriving.
Limits on every code
Codes are issued under rate limits per number and per customer, so the service cannot be turned into a message cannon and codes cannot be guessed.
Signed requests and callbacks
Payloads are signed so both sides know a message is genuine, and delivery results are reported back to the customer's own system by webhook.
Customer and reseller panels
Customers manage their keys, balance and delivery reports in their own panel. Resellers get a panel of their own to bring on customers and sell the service under their terms.
An admin for the client
Customers and resellers, routes, balances, delivery reports and abuse, all in one place for the client's team.
Results
The system is live end to end, from the API and the panels to routing and reporting, and sends verification codes for its customers' sign-up and login flows with rate limits, signed payloads and webhook callbacks in place.
A verification service is only as good as its limits: the code that protects one account must not become a way to attack many.