<!-- Markdown copy of https://badsoul.studio/work/sms-verification-api/ for AI agents. Full site in one file: https://badsoul.studio/llms-full.txt -->

# 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.

- Client: Name withheld

- Sector: SMS verification service

- Status: Live

- What I did: Platform development, API, Customer panel, Reseller panel, Admin panel, Messaging, Security, Webhooks

- Built by: [BadSoul Studio](https://badsoul.studio/about/), Benidorm, Spain

## 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.

## Services

[SMS and OTP systems](https://badsoul.studio/services/sms-otp/) [Telegram bots and automation](https://badsoul.studio/services/bots-automation/) [Security audits and hardening](https://badsoul.studio/services/security/) [Web development](https://badsoul.studio/services/web-development/)

[Next case study A bulk SMS platform with an API and reseller panel, built from the ground up](https://badsoul.studio/work/bulk-sms-marketing-platform/)

[Have a project like this? Send a short brief. You get questions or a written scope back within 24 hours. Start a project](https://badsoul.studio/contact/#contact)
