SMS verification API

SMS Verification API: Buy Numbers and Fetch Codes Programmatically

The AuthSMS API automates virtual numbers end to end: list prices, buy a number, read the code, rent a number and set webhooks, all over a JSON REST API. Prices are in USD.

Get a numberAll servicesWhatsApp price from (live): $0.30

Price varies by country and stock; the service page has the current list.

What the API is for

If your app or test suite has a verification step, you do not have to copy numbers and codes by hand. With the API you pick a service and country, buy a number, read the code and finish the order. It is used for test automation, managing several accounts and building integrations.

Authentication

Create an API key in your dashboard and send it in the `X-API-Key` header on every request. Keep the key on your server and never put it in browser or mobile app code. Regenerating the key immediately invalidates the old one.

Example: the number purchase flow

The basic flow has three calls. The base URL is `https://authsms.net/api/v1`:

curl -H "X-API-Key: YOUR_KEY" "https://authsms.net/api/v1/offers?service=wa"

curl -X POST -H "X-API-Key: YOUR_KEY" -H "Content-Type: application/json" \
  -d '{"service":"wa","country":"62"}' https://authsms.net/api/v1/numbers

curl -H "X-API-Key: YOUR_KEY" https://authsms.net/api/v1/numbers/NUMBER_ID

Key features

  • One-time numbers: buy, wait for the code, finish. Automatic refund if no SMS arrives.
  • Several SMS on the same number, and the option to buy the same number again.
  • Rentals for hours, days or weeks, with extension.
  • Signed webhooks so you do not have to poll for the code.
  • Price and stock endpoints need no authentication.

Getting started with the API

  1. 1

    Create an account and sign in

    Signing up is free.

  2. 2

    Generate an API key

    Create the key on the API documentation page.

  3. 3

    Add balance

    Purchases are charged to your balance.

  4. 4

    Send your first request

    List prices with the example above, then buy a number.

Frequently asked questions

How do I use the SMS verification API?

Create an API key, send it in the X-API-Key header, list prices, buy a number and poll the number status for the code.

Is there a rate limit?

The developer API has no rate limit. You are limited only by your balance and stock.

What happens if no code arrives?

The number is cancelled and the amount returns to your balance.

Are webhooks supported?

Yes. Signed webhooks notify you when the code arrives, so you do not need to poll.

Where is the API documentation?

The API docs page lists every endpoint, its parameters and example responses.

Last updated: October 23, 2026