Free Numbers Live Prices Top Services Pricing Reviews Feedback Terms & Policy API Docs Blog About
Log in Get Started
Developers

OTP API for Developers

Order a number, trigger the SMS in your app and read the code over a simple REST API.

What the API covers

  • Virtual numbers for one-time SMS codes.
  • Rental numbers for repeat codes.
  • Temporary email addresses for email OTP.

One API key from your dashboard is enough. The documentation has copy-paste examples for PHP, Python and cURL.

Typical flow

  1. Request a number for a service and country.
  2. Use the number in the app you are testing and trigger the SMS.
  3. Poll the status until the code arrives, within sensible limits.
  4. Confirm or cancel the order.

Good practice

  • Keep the API key secret and never place it in public code.
  • Set a retry limit and a daily spending alert so a bug cannot drain your balance.
  • Cancel orders that time out.
  • Use test numbers only on systems you own and never store real customers' data in test environments.

Resellers and bots

Resellers can connect their own store or bot with a single key and set their own margin. Read the API user and reseller section of the terms before you start.

Open the API documentation

Frequently asked questions

Where do I get an API key?

Create a free account and generate the key in your dashboard.

Which formats does the API return?

See the API documentation for the exact request and response formats and examples.

Start with a small balance

Registration is free. Test one order, check that your app accepts the number, then top up only what you need.

Create a free account API docs

Contact us