Skip to content

otp.com · changelog

Changelog

Notable updates to the otp.com API, SDKs, and site. Follow along as new channels, endpoints, and improvements ship.

Subscribe via RSS →
New

Test numbers for app review and testers

The API Keys page now has two tabs, API Keys and Test Numbers. A test number is a phone number or email address with a fixed code, for the people who run your live build but should not need a real SMS: App Store and Google Play reviewers get the number and the code up front, and your own testers sign in the same way.

Each app holds up to 10 test numbers. The code is generated for you or set by you, at your account’s code length, and each entry takes an optional label and an optional expiry.

Test numbers work with live keys only, server (otp_live_…) and client (otp_pk_live_…). For a test number no message is sent and nothing is charged, as long as its code matches your current code length. POST /otp/send returns the normal response, never the code, and POST /otp/verify accepts the fixed code. Rate limits, fraud protection and your country and channel settings still apply, and a number in a country that is closed for the app cannot be registered. Test keys (otp_test_… and otp_pk_test_…) keep the sandbox behavior, unchanged.

The otp.approved and otp.failed webhooks now carry test_recipient: true or false, so your backend can skip analytics or flag review sessions.

Anyone with the number and the code can sign in as that user, so remove entries when the review ends, or set an expiry. If an entry is removed or expires while an OTP is in flight, a resend answers 409 ResendNotAllowedError; start a new OTP.

The full guide is at Testing in sandbox.

New Security

Set your own anti-abuse rules on the new Security page

The panel has a new Security page: your own limits, on top of the ones we run for everyone. Every rule can only tighten, never loosen, and every rule runs in one of three modes: Off, Monitor (counted and listed, the send still goes out, no email) or Enforce (the send is refused before it is paid for).

What you can set, per app:

  • App rate limit: how many codes the whole app may start per minute and per hour.
  • Per-IP rate limit: codes one end user’s IP may start, whatever its reputation.
  • Per-IP recipient spread: how many different numbers one IP may reach in an hour. A real user reaches one or two; a pump reaches a new number every time.
  • Require client_ip, block VPN / proxy / Tor, block datacenter IPs.
  • Per-recipient limit, tighter than ours, and daily caps on sends and spend.
  • IP deny and allow lists, one address or CIDR range per line.

The page shows how many sends your rules refused in the last 24 hours, how many a rule in Monitor mode would have refused, and a Recent events table with the rule, the IP, the country and the masked recipient behind each hit, kept for 30 days. Account owners get one email per app per day on the first refusal, if you want it. Apply recommended fills in values sized for a login form.

New apps start with the app rate limit and the per-IP rate limit on, at generous values; existing apps are unchanged until you turn something on.

On the wire a refused send is an ordinary 429 RateLimitExceededError whose message ends in policy, or a 403 SendPolicyBlockedError for the deny list and the IP checks. The IP rules only see sends that carry client_ip, so pass the end user’s address in POST /otp/send.

Also on Routes: select many countries at once and enable or disable them in one go.

The full guide is at Security.

Improved

Template is now the default WhatsApp mode

New accounts now run WhatsApp in the Template mode: we push the code straight to the user as a WhatsApp authentication message with a Copy code button, and there is no link to open. WhatsApp behaves exactly like SMS: action_url is null, the user enters the code, and you call POST /otp/verify. Nothing WhatsApp-specific to build, and WhatsApp can sit anywhere in your fallback order.

The two link modes, Code back and Inbound approve, stay available on request: email info@otp.com. Your code keeps reading action_url and completion to tell the modes apart, so nothing changes on your side.

The full guide is at WhatsApp verification.

New Improved

Three ways to verify over WhatsApp

WhatsApp can now verify a user in one of three modes, and your account runs exactly one of them. Code back is the default and is the flow that already existed: the user opens a wa.me link, sends the prefilled message, and we reply with their code. Inbound approve keeps the link but drops the code: the user’s message approves the OTP by itself, and there is nothing to verify. Template drops the link: we push the code straight to the user, so WhatsApp behaves exactly like SMS.

Your code never needs the mode’s name. A new completion field on the send, resend, and status responses says how the OTP finishes: "code" means collect a code and call POST /otp/verify; "inbound" means show the link, then poll GET /otp/{otp_id} or take the otp.approved webhook, and never show a code input. Read it together with action_url and the three modes fall out of two fields. completion is frozen on the OTP when it is created, so switching your account’s mode never re-points a verification already in flight.

The docs now say what resend actually does around WhatsApp. Under Template it is a code channel like any other and a plain resend advances into and out of it. Under the two link modes WhatsApp works as the first channel only: a plain resend skips it anywhere else, and only an explicit resend {"channel":"whatsapp"} moves an OTP onto it, with the response carrying the link for your app to show. An OTP already on a link needs an explicit resend {"channel":"sms"} to move off it; a plain resend there re-returns the same link.

Code back stays on by default. To switch, email info@otp.com. The full guide, with a screenshot of what the user sees in each mode, is at WhatsApp verification.

New

Mobile SDKs for iOS, Android, and React Native

Verification can now run on the device. The iOS (Otp), Android (com.otp:sdk-android), and React Native (@otp.com/sdk-react-native) SDKs present a screen, send the code, take the user’s input, and hand your app a short-lived verification_token. The floors are iOS 15 and Android API 26.

That token, not the screen’s own result, is the outcome. Your backend exchanges it at the new POST /verifications/exchange with your server key, and only that response names the recipient that was verified. A success read off a device you do not control is not evidence: the app authenticates with a publishable key (otp_pk_live_…) that is built to ship inside the binary and deliberately cannot read a recipient or exchange a verification.

The server SDKs make that call for you from 1.2.0. Install steps and a minimal end-to-end sample per platform are in Mobile SDKs, and the endpoint is documented at POST /verifications/exchange.

New

otp.com is live

otp.com is out of preview and open to everyone. Create an account, generate a key on the API Keys screen, and send your first code from the quickstart in about five minutes.

What you get on day one:

  • Four channels behind one call. SMS, WhatsApp, Telegram, and email. You pass a recipient and your routing picks the channel, with per-country overrides and automatic fallback when the first attempt does not land.
  • One verify step, every channel. POST /otp/verify closes the loop no matter how the code was delivered, WhatsApp included. The code is never returned by the API.
  • A sandbox that costs nothing. A otp_test_… key runs the whole flow without sending a real message or charging anything. The accepted code is 123456.
  • Typed clients and agent tools. Official SDKs for Node.js, Python, Go, and PHP, generated from the public OpenAPI spec, plus an MCP server so an AI agent can run verification itself.
  • Signals you can build on. Webhooks for approvals and delivery outcomes, and IP-aware abuse protection when you pass client_ip.

Everything above is documented under Docs. If something is missing from the reference, that is a bug in the docs: tell us and we will fix it.

Improved

Verify users over WhatsApp

WhatsApp verification works like every other channel: the user enters a code and you call POST /otp/verify. The only difference is delivery. When your routing selects WhatsApp, POST /otp/send returns an action_url (a wa.me link) and the OTP stays pending. The user opens it and sends the prefilled message, we reply over WhatsApp with their code, and they enter it to verify, exactly as on SMS, email, or Telegram.

There is no per-channel branching: show a code input and call verify on every channel. The otp.approved webhook fires on approval if you prefer a push signal. If the user does not have WhatsApp, move the OTP onto SMS with a resend ({ "channel": "sms" }).

See Channels and routing.

New

We launched a changelog

This page now tracks notable updates to otp.com: new channels, API endpoints, SDK releases, and improvements to the docs and site.

Bookmark it or check back here to see what’s shipped. Each entry is tagged so you can tell new features from fixes at a glance.

New

MCP server for AI agents

Point any MCP client (Claude Desktop, Claude Code, Cursor, or your own agent) at @otp.com/mcp and it can send, verify, resend, and check one-time codes through your API key. There is no backend to run and no secret in the source: the key is supplied at runtime.

Each API action maps to one tool: send_otp, verify_otp, resend_otp, and get_otp_status. See the MCP docs to wire it up.

New

Official SDKs for Node.js, Python, Go, and PHP

Typed client libraries are now available for Node.js (@otp.com/sdk-node), Python (otp-sdk), Go (github.com/otp-com/sdk-go), and PHP (otp-com/sdk-php).

They are generated from the public OpenAPI spec, so they stay in sync with the API and expose the same four actions: send, verify, resend, and status. Full setup and examples in the SDK docs.

Improved

Automatic channel fallback on resend

resend now moves the code to the next channel in your routing order, so a delivery that stalls on one channel can complete on another without any change to your integration.

See how routing and fallback work in Channels and routing.

New

Sandbox mode with test API keys

Create an otp_test_… key to run the full send, verify, resend, and status flow without sending real messages or spending credits. Swap in your otp_live_… key when you are ready to go live.

Details in the sandbox docs.