SMS verification API for developers and resellers

Rent virtual numbers and receive OTP codes from your own code. One HTTPS endpoint, SMS-Activate-compatible, with webhooks and automatic refunds.

Why developers use the Mane SMS API

SMS-Activate-compatible

The same text protocol (handler_api.php, getNumber, getStatus, setStatus, getPrices). Tools and scripts built for it work by changing the host and API key.

Codes by webhook or polling

Poll getStatus, or give us an HTTPS URL and we POST each code the moment it arrives, signed with HMAC-SHA256 and retried if your server is down.

Automatic refunds

If no SMS arrives before the number expires, the order is cancelled and the money returns to your balance. Cancel early with setStatus 8 for the same refund.

Price control

Set maxPrice to cap what each number costs, or buy an exact price tier from getPricesV2 for better delivery.

1,000+ services in 190+ countries

WhatsApp, Telegram, Google, Facebook, TikTok and many more. getServicesList and getCountries return the live catalogue.

One balance for web and API

Top up once and spend from the dashboard or from code. Every API order also appears in your phone history.

How it works in three calls

  1. getNumber rents a number for a service and country and returns an activation id plus the phone number.
  2. Enter the number on the service. getStatus returns STATUS_OK:<code> once the SMS arrives (or your webhook receives it).
  3. setStatus finishes the activation (6), asks for another SMS (3) or cancels it for a refund (8).

Endpoint: https://manesms.com/stubs/handler_api.php

cURL
# 1. Rent a WhatsApp number in the USA
curl "https://manesms.com/stubs/handler_api.php?action=getNumber&service=wa&country=187&api_key=YOUR_KEY"
# ACCESS_NUMBER:4829371650:15551234567

# 2. Read the code
curl "https://manesms.com/stubs/handler_api.php?action=getStatus&id=4829371650&api_key=YOUR_KEY"
# STATUS_OK:123456
Python
import time, requests

API = "https://manesms.com/stubs/handler_api.php"
KEY = "YOUR_KEY"

r = requests.get(API, params={"action": "getNumber", "service": "wa", "country": 187, "api_key": KEY}).text
_, activation_id, phone = r.split(":")
print("Use this number:", phone)

while True:
    s = requests.get(API, params={"action": "getStatus", "id": activation_id, "api_key": KEY}).text
    if s.startswith("STATUS_OK"):
        print("Code:", s.split(":")[1]); break
    if s == "STATUS_CANCEL":
        print("Expired, refunded to your balance"); break
    time.sleep(5)
Node.js
const API = "https://manesms.com/stubs/handler_api.php";
const KEY = "YOUR_KEY";
const call = (p) => fetch(API + "?" + new URLSearchParams({ ...p, api_key: KEY })).then((r) => r.text());

const [, id, phone] = (await call({ action: "getNumber", service: "tg", country: "NG" })).split(":");
console.log("Use this number:", phone);

let status;
do {
  await new Promise((r) => setTimeout(r, 5000));
  status = await call({ action: "getStatus", id });
} while (status === "STATUS_WAIT_CODE");
console.log(status.startsWith("STATUS_OK") ? "Code: " + status.split(":")[1] : "Not received: " + status);
PHP
<?php
$api = "https://manesms.com/stubs/handler_api.php";
$key = "YOUR_KEY";

$r = file_get_contents("$api?action=getNumber&service=go&country=187&api_key=$key");
[, $id, $phone] = explode(":", $r);
echo "Use this number: $phone\n";

do {
    sleep(5);
    $s = file_get_contents("$api?action=getStatus&id=$id&api_key=$key");
} while ($s === "STATUS_WAIT_CODE");
echo strpos($s, "STATUS_OK") === 0 ? "Code: " . explode(":", $s)[1] : "Not received: $s";

Moving from SMS-Activate or a similar service?

Point your tool at https://manesms.com/stubs/handler_api.php and paste your Mane SMS key. Service codes like wa, tg and go and numeric country ids work the same way. Read the migration guide.

Frequently asked questions

›What is an SMS verification API?

It lets your software rent a phone number, read the one-time code (OTP) a service sends to it, and release the number, without a person doing it by hand. Bots, account tools and reseller websites use it to verify accounts in bulk.

›Is the Mane SMS API compatible with SMS-Activate?

Yes, for the core methods: getBalance, getNumber, getNumberV2, getStatus, getStatusV2, setStatus, getActiveActivations, getPrices, getPricesV2, getServicesList and getCountries, at /stubs/handler_api.php. Most tools only need you to change the host and API key. Methods outside that list are not supported yet.

›How do I get an API key?

Create a free account, then open Cabinet → API & Security. Your key is there; you can regenerate it at any time.

›Do I pay if the SMS never arrives?

No. If no code arrives before the number expires, the order is cancelled and refunded to your balance automatically. You can also cancel with setStatus=8.

›Can I receive codes by webhook instead of polling?

Yes. Save an HTTPS URL in Cabinet → API & Security and we POST every new code to it with an HMAC-SHA256 signature, retrying up to 5 times if your server does not answer.

›What does the API cost?

There is no subscription and no fee for the API itself. You pay the same per-number price as on the website, from the same balance. getPrices shows the live price for each service and country.

›Can I resell numbers through my own website or bot?

Yes, many API users run reseller sites and Telegram bots on top of Mane SMS. Talk to us on Telegram about volume.

Start building in minutes

Free account, no subscription. Questions about volume or integration? Message us on Telegram.