Two API styles
Choose the format that fits your project: both backed by the same infrastructure.
Modern REST API
Clean JSON API with OpenAPI specification.
- JSON request and response bodies
- Versioned endpoints under /api/v1
- Bearer token or x-api-key authentication
- Standard HTTP status codes
curl https://smsbulk.net/api/v1/wallet/balance \
-H "x-api-key: YOUR_KEY"Legacy API Compatible
Compatible with the industry-standard query-based protocol: same actions, plain-text responses. Pointing an existing bot at our base URL is not enough on its own: check the country codes it sends.
- Identical action-based protocol
- Plain text response format
- Same action names as common bot libraries
- Country by ISO code (CL) or by our numeric ID from getCountries
Rent a phone number for a fixed period and read every SMS it receives, through the legacy-compatible handler_api.php endpoint. Rental API
curl "https://smsbulk.net/stubs/handler_api.php\
?api_key=YOUR_KEY&action=getBalance"You can pass an ISO code in the country parameter (e.g. country=CL). Our numeric country table differs from the common list, so read the numeric ID from getCountries. getCountries also returns the country name (eng). Add &withCountry=1 to getPrices to get countryIso and countryName in each entry. Prices for countries without a numeric code are in the v1 catalog.
curl "https://smsbulk.net/stubs/handler_api.php\
?api_key=YOUR_KEY&action=getNumber&service=wa&country=CL"Numeric country ID table (same as getCountries)
| ID | ISO | Country |
|---|---|---|
| 0 | RU | Russia |
| 1 | UA | Ukraine |
| 2 | KZ | Kazakhstan |
| 3 | CN | China |
| 4 | PH | Philippines |
| 5 | MM | Myanmar (Burma) |
| 6 | ID | Indonesia |
| 7 | MY | Malaysia |
| 8 | KE | Kenya |
| 9 | TZ | Tanzania |
| 10 | VN | Vietnam |
| 11 | KG | Kyrgyzstan |
| 12 | US | United States |
| 13 | IL | Israel |
| 14 | HK | Hong Kong SAR China |
| 15 | PL | Poland |
| 16 | GB | United Kingdom |
| 17 | MG | Madagascar |
| 19 | NG | Nigeria |
| 20 | MO | Macao SAR China |
| 21 | EG | Egypt |
| 22 | IN | India |
| 23 | IE | Ireland |
| 24 | KH | Cambodia |
| 25 | LA | Laos |
| 26 | HT | Haiti |
| 27 | CI | Côte d’Ivoire |
| 28 | GM | Gambia |
| 29 | RS | Serbia |
| 30 | YE | Yemen |
| 31 | ZA | South Africa |
| 32 | RO | Romania |
| 33 | CO | Colombia |
| 34 | EE | Estonia |
| 35 | CA | Canada |
| 36 | MA | Morocco |
| 37 | GH | Ghana |
| 38 | AR | Argentina |
| 39 | UZ | Uzbekistan |
| 40 | CM | Cameroon |
| 41 | TD | Chad |
| 42 | DE | Germany |
| 43 | LT | Lithuania |
| 44 | HR | Croatia |
| 45 | SE | Sweden |
| 46 | IQ | Iraq |
| 47 | NL | Netherlands |
| 48 | LV | Latvia |
| 49 | AT | Austria |
| 50 | BY | Belarus |
| 51 | TH | Thailand |
| 52 | SA | Saudi Arabia |
| 53 | MX | Mexico |
| 54 | TW | Taiwan |
| 55 | ES | Spain |
| 57 | DZ | Algeria |
| 58 | SI | Slovenia |
| 59 | BD | Bangladesh |
| 60 | SN | Senegal |
| 62 | CZ | Czechia |
| 63 | LK | Sri Lanka |
| 64 | PE | Peru |
| 65 | PK | Pakistan |
| 66 | NZ | New Zealand |
| 67 | GN | Guinea |
| 68 | ML | Mali |
| 69 | VE | Venezuela |
| 70 | ET | Ethiopia |
| 71 | MN | Mongolia |
| 72 | BR | Brazil |
| 73 | AF | Afghanistan |
| 74 | UG | Uganda |
| 75 | AO | Angola |
| 76 | CY | Cyprus |
| 77 | FR | France |
| 78 | PG | Papua New Guinea |
| 79 | MZ | Mozambique |
| 80 | NI | Nicaragua |
| 81 | NE | Niger |
| 82 | BF | Burkina Faso |
| 83 | JM | Jamaica |
| 84 | PA | Panama |
| 85 | GT | Guatemala |
| 86 | PR | Puerto Rico |
| 87 | DO | Dominican Republic |
| 88 | BO | Bolivia |
| 89 | KR | South Korea |
| 90 | SK | Slovakia |
| 91 | BJ | Benin |
| 92 | BG | Bulgaria |
| 93 | TJ | Tajikistan |
| 94 | LB | Lebanon |
| 96 | JO | Jordan |
| 97 | PT | Portugal |
| 98 | PY | Paraguay |
| 99 | SV | El Salvador |
| 100 | HN | Honduras |
| 101 | EC | Ecuador |
| 102 | AL | Albania |
| 103 | LR | Liberia |
| 104 | CD | Congo - Kinshasa |
| 105 | MR | Mauritania |
| 106 | UY | Uruguay |
| 107 | CW | Curaçao |
| 108 | TG | Togo |
| 109 | SL | Sierra Leone |
| 110 | ZW | Zimbabwe |
| 111 | AZ | Azerbaijan |
| 112 | TN | Tunisia |
| 113 | PS | Palestinian Territories |
| 114 | TM | Turkmenistan |
| 115 | GE | Georgia |
| 116 | GR | Greece |
| 117 | MZ | Mozambique |
| 118 | CR | Costa Rica |
| 119 | NA | Namibia |
| 120 | GA | Gabon |
| 121 | BI | Burundi |
| 122 | BW | Botswana |
| 123 | BN | Brunei |
| 124 | NP | Nepal |
| 125 | GW | Guinea-Bissau |
| 126 | LS | Lesotho |
| 127 | MW | Malawi |
| 128 | BE | Belgium |
| 129 | AM | Armenia |
| 130 | ZM | Zambia |
| 131 | MC | Monaco |
| 132 | GY | Guyana |
| 133 | SR | Suriname |
| 134 | TL | Timor-Leste |
| 135 | GQ | Equatorial Guinea |
| 136 | BS | Bahamas |
| 137 | AW | Aruba |
| 138 | TT | Trinidad & Tobago |
| 139 | AE | United Arab Emirates |
| 140 | RW | Rwanda |
| 142 | BB | Barbados |
| 143 | AI | Anguilla |
| 144 | GD | Grenada |
| 145 | OM | Oman |
| 146 | KW | Kuwait |
| 147 | BH | Bahrain |
| 148 | BT | Bhutan |
| 149 | NC | New Caledonia |
| 151 | CV | Cape Verde |
| 152 | SC | Seychelles |
| 153 | KM | Comoros |
| 154 | MV | Maldives |
| 155 | GG | Guernsey |
| 156 | JE | Jersey |
| 157 | LU | Luxembourg |
| 158 | IS | Iceland |
| 159 | CG | Congo - Brazzaville |
| 160 | BZ | Belize |
| 161 | DM | Dominica |
| 162 | KN | St. Kitts & Nevis |
| 163 | LC | St. Lucia |
| 164 | VC | St. Vincent & Grenadines |
| 165 | AG | Antigua & Barbuda |
| 166 | TC | Turks & Caicos Islands |
| 167 | KY | Cayman Islands |
| 168 | VG | British Virgin Islands |
| 169 | BM | Bermuda |
| 170 | GI | Gibraltar |
| 171 | AD | Andorra |
| 172 | CH | Switzerland |
| 173 | NO | Norway |
| 174 | DK | Denmark |
| 175 | FI | Finland |
| 176 | BA | Bosnia & Herzegovina |
| 177 | AU | Australia |
| 178 | IT | Italy |
| 179 | HU | Hungary |
| 180 | AS | American Samoa |
| 181 | TV | Tuvalu |
| 182 | PW | Palau |
| 183 | NU | Niue |
| 184 | CK | Cook Islands |
| 185 | TK | Tokelau |
| 186 | FJ | Fiji |
| 187 | TR | Türkiye |
| 192 | EH | Western Sahara |
| 193 | SB | Solomon Islands |
| 196 | SG | Singapore |
| 197 | TO | Tonga |
| 198 | WS | Samoa |
| 199 | MT | Malta |
| 200 | LI | Liechtenstein |
| 202 | FO | Faroe Islands |
| 203 | XK | Kosovo |
Quick Start
From zero to your first SMS.
Get your API key
Create an API key from your dashboard. Each user can create up to 10 keys.
Open dashboardTest authentication
Verify your key works by checking your wallet balance.
curl https://smsbulk.net/api/v1/wallet/balance \
-H "x-api-key: YOUR_KEY"
# Response:
# { "balance": "10.00", "currency": "USD" }Buy a number
Reserve a virtual number for SMS verification. Cost is deducted from your wallet.
curl -X POST https://smsbulk.net/api/v1/activations \
-H "x-api-key: YOUR_KEY" \
-H "Content-Type: application/json" \
-d '{
"serviceCode": "wa",
"countryIso": "US"
}'
# Response:
# {
# "id": "cuid_xxx",
# "phoneNumber": "12025550147",
# "status": "WAITING",
# "userCost": "0.50"
# }Wait for the SMS
Poll the activation endpoint until status becomes RECEIVED. The SMS code will be in the response.
Message contents, including the code, are deleted 30 days after they are received; getStatus then returns NO_ACTIVATION and v1 returns purged: true.
curl https://smsbulk.net/api/v1/activations/cuid_xxx \
-H "x-api-key: YOUR_KEY"
# Response (when SMS arrives):
# {
# "id": "cuid_xxx",
# "smsCode": "123456",
# "status": "RECEIVED",
# ...
# }List your activations
Returns your activations, newest first. Use it to check state or to recover after a timeout.
limit: 1-100, default 25cursor: passnextCursorfrom the previous responsestatus: comma-separated, e.g.PENDING,WAITING
Each item includes id, status, phoneNumber, service.code, country.isoCode, userCost, createdAt, cancellable and refund details.
curl "https://smsbulk.net/api/v1/activations?status=PENDING,WAITING&limit=50" \
-H "x-api-key: YOUR_KEY"
# Response:
# { "items": [ ... ], "nextCursor": "cuid_xxx" }Authentication
Three ways to send your API key.
Pick the method that fits your environment
1. Header (recommended)
x-api-key: YOUR_API_KEYStandard header-based authentication. Works for both REST and SMS-Activate endpoints.
2. Bearer token
Authorization: Bearer YOUR_API_KEYCompatible with HTTP client libraries that default to the Authorization header.
3. Query string
?api_key=YOUR_API_KEYRequired for the SMS-Activate compatibility endpoint /stubs/handler_api.php.
Keep your keys secret
Never commit API keys to public repositories or expose them in client-side code. Each key has a daily quota. Rotate immediately if compromised.
References
Prices are in USD, with 3 decimal places, and equal the amount actually charged (list price before any loyalty discount). The price you read from the API is the price you pay.
Webhooks
Signed callbacks instead of polling. Event types, payload, signature verification, retries and deduplication.
MCP Server (AI agents)
Model Context Protocol server for Claude Desktop, Cursor, and AI agents. Order SMS and email verification with 18 tools.
Email Verification API
REST endpoints for disposable email OTP: list domains, purchase, fetch the code, reorder, and cancel.
Errors & Rate Limits
Complete error code reference, rate limit policies, retry strategies, and idempotency guidance.
Referral API (ref_id)
Earn a share of approved API activation revenue. Rate, payout rules, and the self-dealing and double-reward guards explained.
Rental API
Rent a phone number for 24 hours or longer through the legacy-compatible handler_api.php actions: catalog, rent, read SMS, extend, finish and cancel.
New to the API? Start with the guides: SMS Verification API · Virtual Number API · Node.js guide · Python guide
Ready to ship?
Get your API key and send your first request with the examples on this page.