SMS activation API: SMSHub and 5sim alternatives
If you buy numbers in bulk, automate sign-ups or build your own software, it's easier to work with SmsCenter through the API than through the website. Numbers, prices and refunds are the same as on the site. If your software already works with the SMSHub or 5sim API, there's no need to rewrite it.
Three API types
The SmsCenter documentation describes three API options — choose the one your software already speaks:
| Type | Protocol | When to choose it |
|---|---|---|
| API type 1 | compatible with the SMSHub protocol (handler_api.php, requests like action=getNumber) |
your software already works with services on this protocol — usually you only change the API URL and key |
| API type 2 | SmsCenter's own REST API | new integrations; all services and countries available |
| API type 3 | compatible with the 5sim protocol (/v1/...) |
your software is built for the 5sim protocol |
Which services are available in types 1 and 3 depends on whether a service has a code in that protocol; the full list is in each type's documentation. Type 2 covers every service on the site.
How to connect
- Sign up on SmsCenter and top up your balance.
- Open the API section — your API key and documentation for each type, with service and country code lists, are there.
- Set the API URL and key in your software and pick service and country codes.
- Make a test purchase of one number and check the full cycle: buy → receive SMS → finish or cancel.
The rules are the same as on the site: a number waits for an SMS for 20 minutes; if no code arrives, the number is cancelled and the money returns to your balance.
For software developers: 5% of your customers' purchases
If you build software that other people use, SmsCenter pays 5% of your customers' purchases made through your software. To join:
- Contact support and get your softId.
- Pass it in the number purchase request: in API type 1 — the
refparameter inaction=getNumber; in API type 2 — thesoftIdparameter in/getNumber; in API type 3 — therefparameter in/buy/activation.
Condition: your software must be freely available for anyone to buy. Details are in the "For developers" section.
FAQ
Do I need to rewrite my software for SmsCenter?
If it works with the SMSHub (handler_api.php) or 5sim API, usually not: change the API URL and key, then check the codes for the services and countries you need in the documentation.
Is there separate API pricing?
No, prices are the same as on the site. If you have a personal discount, it applies to purchases both on the site and through the API.