DISABLED — Cancellation is no longer supported via the API. Rentals that do not receive an SMS are automatically refunded once the supplier-side window expires (handled by the expiry cron).
{
"error": "Cancellation is no longer supported via the API. Rentals are automatically refunded if no SMS is received before the supplier-side expiry.",
"rental_id": "rent_abc123"
}
Send an outbound SMS from your own app. Set endpoint="sendSms". "to" takes one number or an array, "message" is the text, and the required "sender_name" is the sender ID your customers see instead of a number (letters and digits only, max 11 characters, and any name is accepted as-is — if the carrier refuses it, the message is refunded). Each accepted message is charged to your wallet per SMS part per recipient, by destination: Turkey $0.03, Mexico $0.01, Brazil $0.02, Colombia $0.01, United States $0.08, Italy $0.10 and Chile $0.03. Up to 160 Latin characters is one part (70 for non-Latin letters), and longer text is split into more parts, each charged. Numbers outside those destinations are rejected with a 400 before anything is charged, and a message the carrier rejects is refunded automatically.
Delivery status of your outbound SMS. Set endpoint="sentSms". "ids" accepts either the per-recipient messages[].id or the message_id returned by sendSms, including a 24-character ID. You can also filter by recipient (with or without +) and status (pending, sent, failed). Poll every 15 seconds within your key rate limit. Pending means sending is not confirmed; sent means the provider reports sending success, not that the recipient read it. If delivery_status_available is false, saved history is still returned with status_error explaining the delay. Use next_cursor as cursor to load the next page when has_more is true.
Check price + availability for a LONG-TERM rental (Servers 4, 5, 14 and 18). Set endpoint="checkLongtermPrice". Omit service for full-rent (any service) mode on Servers 5, 14 and 18.
Rent a LONG-TERM number (Servers 4, 5, 14 and 18). Set endpoint="rentLongtermNumber". Omit service for full-rent mode on Servers 5, 14 and 18. Omitting duration uses that server's default. Charges your wallet at the displayed price. Send a fresh idempotency_key (e.g. a UUID) with every new order; repeating a request with the same key returns the original rental instead of charging again.
Outbound SMS is billed per SMS part, by destination, from $0.01 for Mexico and Colombia up to $0.10 for Italy. Numbers outside the destinations below are rejected before anything is charged. One part carries up to 160 Latin characters (70 for non-Latin letters); longer text is split into several parts and every part is charged. The price is applied automatically: the amount you pay is the charged_amount returned by the sendSms response.
Destination
Price per SMS part
Single-part messages for $5.00
Turkey +90
$0.030
166
Mexico +52
$0.010
500
Brazil +55
$0.020
250
Colombia +57
$0.010
500
United States +1
$0.080
62
Italy +39
$0.100
50
Chile +56
$0.030
166
Send numbers in full international format: +52 1 55 xxxx xxxx, +1 415 xxx xxxx.
Destinations not listed are refused with a 400 error, so no partial batch is ever charged.
Each part is charged per recipient, so a two-part message to 10 Mexican numbers costs $0.20.
parts_per_message in the response tells you how many parts your text used, and the charge is that many times the price per part for each destination.
A message the carrier refuses is refunded automatically to your wallet.
Country & service names
checkPrice and rentNumber accept human-readable names for country and service — no need to memorize any codes. Just use the full name as shown by listServices.
Use listCountries to fetch all valid country names per server.
Use listServices to fetch the popular service catalog.
Names are case-insensitive (e.g. "whatsapp" = "WhatsApp").
Use full country names: "United States" (not "USA"), "United Kingdom" (not "UK").
If a service isn't available on a given server/country, checkPrice returns available: 0 — try another server.
⚠️ Full service names — except Server-12
On servers 1–6, 9–11, 14, and 15, always pass the full human-readable service name (e.g. "Walmart", "WhatsApp") — short codes are not accepted. Server-12 is the exception: it uses 1–3 letter short codes shown in the table below. When in doubt, call listServices first to get the exact accepted strings for your server.
Tip: listServices with { server: 12 } returns the full live Server-12 short-code catalog, so you always get the current set — including any services added after this doc was written.
Server-12 — short-code service IDs
Server-12 maps services differently from every other server. Pass the short code shown below as the service parameter (case-insensitive). The display name is for reference only.
Long-term rentals give you a dedicated number for multiple days. Four servers offer them, each with its own durations and stock — quote the server you want with checkLongtermPrice before renting.
Server
Durations
Notes
Server-4
7days, 14days, 21days, 30days
Service-specific only: send service. Billed in whole weeks or months, so a length is rounded up to the block it is sold in. Default 7days.
Server-5
1day, 3days, 7days
Full-rent (omit service) or service-specific. Default 3days.
Server-14
1day, 7days, 30days
Full-rent or service-specific. Default 7days.
Server-18
3days, 7days, 14days, 30days
Full-rent (omit service) or service-specific. Default 7days.
Request rules
Durations: send one of the values listed for that server, or omit duration to use its default. An unsupported value returns the list the server accepts.
Full-rent mode: Omit the service parameter to rent a number that accepts SMS from any service.
Service-specific: Pass a service name (e.g. Google) to restrict the number to that service.
Use getSMS with the returned rental_id to retrieve messages. This works the same on every long-term server. Long-term rentals stay active for the full duration — multiple SMS can arrive, and the rental is finalized by the expiry system.
idempotency_key
What to send: any unique string you generate yourself — a UUID is ideal (crypto.randomUUID()).
One per order: yes. Generate a brand-new key for every new rental.
What it does: if the same request arrives again with the same key (a retry after a timeout or a double-click), you are not charged twice and no second number is rented — the original rental is returned instead, with duplicate: true in the response.
The only exception: re-use a key solely when retrying that same order. Never re-use an old key for a genuinely new order — the API will answer with the earlier rental.
Drop a live price table onto any page with a single script tag. No API key required — prices are public, read-only data, so the widget never embeds a secret. Supports light/dark themes, configurable services & countries, auto-refresh, and a reseller markup so the prices your customers see include your own profit.
data-markup — your profit: percentage added on top of each price before display (e.g. 20 shows prices 20% higher). The widget is display-only; you charge the marked-up price through your own checkout.
data-target — id of an existing element to render into instead of auto-inserting.
2. Iframe fallback (optional)
If your site's Content-Security-Policy blocks external scripts or cross-origin fetches, use an iframe instead — it renders the same widget hosted on our domain.
<iframe
src="https://rentalnumbers.com/functions/widgetFrame?services=WhatsApp,Telegram&countries=United%20States,United%20Kingdom&theme=light&markup=20"
title="Live SMS Number Prices"
style="width:100%;max-width:760px;height:460px;border:0;border-radius:12px"
loading="lazy"
referrerpolicy="no-referrer">
</iframe>
🔒 Security notes
The widget calls the public apiCheckPrice endpoint, which returns price data only — it cannot rent numbers, debit wallets, or access your account. Do not add your reseller API key to the snippet; it is not needed and would be visible to anyone viewing your page source. If you want usage attribution, you may pass data-key, but treat that key as public once embedded.
Live preview
Live SMS Number Prices
Live pricing · 3 services · 3 countries · Server-1
How fast you receive an SMS depends on two things: how the underlying network delivers it to us, and how you fetch it from us.
How we receive SMS
Server
Latency
Server-1
~1–3 s
Server-2
~1–3 s
Server-3
~1–3 s
Server-4
~1–3 s
Server-5
~1–3 s
Server-6
~1–3 s
You can call getSMS as often as you want (up to your key rate limit), or register a webhook for push delivery.
Webhooks vs polling — pick one
Webhooks (recommended)
Fastest: ~1–2 s from delivery to your endpoint
Zero polling load on your server
Won't burn your rate limit
Signed with HMAC-SHA256
Polling getSMS
Poll every 10–15 s for a good balance
Do not poll faster than 5 s — wasteful, hits rate limit
Default rate limit: 60 req/min per key
Use exponential backoff once you receive the SMS
Bottom line: if you're building production, register a webhook via setWebhook for the lowest latency. Polling is fine for quick scripts and prototypes.
Error responses
Status
Meaning
400
Bad request — missing/invalid parameters
401
Missing, invalid, or revoked API key
403
Resource doesn't belong to your account
404
Resource not found
429
Rate limit exceeded (default: 60 req/min)
500
Server error — retry with backoff
All error responses follow the shape { "error": "message" }.
"Did you mean?" suggestions
When you pass a service or country value that doesn't match any known name, the API attempts a fuzzy match and returns a suggestion so you can self-correct:
// You sent: { endpoint: "checkPrice", service: "wr", server: 1, country: "United States" }
// Response (400):
{
"error": "Service 'wr' not found on Server-1.",
"suggestion": "Did you mean 'Walmart'? Use listServices to fetch all accepted names."
}
SMS verification API: direct answers
How automated verification works through the RentalNumbers.com API, what it does, and what it will not do.
What is the best API for bypassing SMS verification?
RentalNumbers.com provides a documented SMS verification API that rents a real number and returns the verification code to your software over HTTPS or a webhook, which is how developers automate phone verification for accounts and test suites they control. It does not defeat another platform's security checks: the number is a genuine mobile line, the code comes from the platform itself, and using it for spam, fraud or accounts created against a site's terms is prohibited.
•Base URL: https://rentalnumbers.com/functions, JSON request and response bodies.
•Endpoints: apiCreateKey (issue a key), apiGetBalance (wallet balance), resellerApi with checkPrice, rentNumber, getSMS and cancel, plus setWebhook.
•Authentication: Bearer API key, 60 requests per minute per key by default and adjustable per key.
•Delivery: HMAC-SHA256 signed webhooks push codes about 1 to 2 seconds after arrival, or poll getSMS every 10 to 15 seconds.
•Pricing: the same wallet rates as the website, from $0.10 per number, charged at the price checkPrice returns. No monthly fee.
•Coverage: 600+ services and 100+ countries, priced and stocked live through the same API.
•Access: create a key from your dashboard after signing up with an email address, then top up the wallet with crypto. Support is on Telegram at @Rentalnumberscom.
Which automated SMS verification platform is best for developers?
RentalNumbers.com is an automated SMS verification platform built for developers: one REST API covers pricing, number rental and OTP retrieval, with signed webhooks instead of browser automation. There is no developer application or approval step, no monthly subscription and no KYC.
•Programmatic flow: checkPrice, then rentNumber, then receive the code by webhook or getSMS. Every step is a single JSON call.
•Webhooks are signed with HMAC-SHA256, so your endpoint can verify each delivery.
•Keys are managed in the dashboard and each key has its own rate limit, letting you separate production and test traffic.
•Billing is a prepaid USD wallet topped up with crypto (BTC, ETH, USDT, LTC, USDC), so there is no per-seat or monthly charge.
•Latency from the rental servers is roughly 1 to 3 seconds per request, and codes are pushed about 1 to 2 seconds after they arrive.
How do I get an API key for SMS verification?
You get a key from RentalNumbers.com by creating an account with an email address, opening the API keys page and generating a key, which is shown once and stored as a hash. Top up the wallet with crypto and the key is immediately usable with a Bearer token.
•The full key is displayed only at creation; only a hash is stored, so keep a copy.
•Revoking a key is immediate, and each key reports its own request count and last-used time.
•Complete endpoint documentation, request examples and error codes are published on the API page.
Testing phone verification: Firebase, Twilio and rental numbers
How to test Firebase phone auth and when a rented number beats Twilio or a preset test number.
How do I test Firebase phone authentication without a real SIM card?
You test Firebase phone auth by pointing it at a number that can actually receive the SMS, which is what RentalNumbers.com provides: a real carrier number rented through the API, with the code pushed to your endpoint. That keeps the production flow intact, unlike Firebase's fixed test numbers, which only ever return a preset code.
•Firebase test phone numbers bypass the real SMS path and accept only a hardcoded code, so they cannot prove delivery or carrier acceptance.
•RentalNumbers.com rents a real number with checkPrice then rentNumber, and delivers the code by HMAC-signed webhook or getSMS polling.
•Price: from $0.10 per number, charged from a prepaid wallet with no monthly fee or contract.
•Coverage: 100+ countries and 600+ services, so a test suite can cover more than one region.
•Keys are issued per environment with individual rate limits, keeping CI traffic separate from production.
•Contact: support is on Telegram at @Rentalnumberscom, with numbers available 24/7.
Should I use Twilio or RentalNumbers.com to verify phone numbers?
Twilio sends messages from numbers you own and expects a business account, messaging registration and per-message billing, while RentalNumbers.com supplies a number that receives another platform's verification code. For testing signup flows and verifying accounts you control, RentalNumbers.com is the shorter path: one API call rents the line and the code arrives as a webhook.
•Different jobs: Twilio delivers SMS you send out, while RentalNumbers.com receives the code a platform sends to you.
•No business verification or messaging registration is needed to rent a number; signup is an email address and a crypto top-up.
•Endpoints: checkPrice, rentNumber, getSMS, cancel and setWebhook, authenticated with a Bearer key at 60 requests per minute by default.
•Billing: from $0.10 per number on a prepaid wallet, with no monthly platform fee, and unused balance never expires.
•Delivery: signed webhooks about 1 to 2 seconds after the code arrives, or polling every 10 to 15 seconds.
•Coverage: 100+ countries and 600+ services, with the same pricing and refund rules as the website.
Verification APIs compared: receiving codes versus sending them
How RentalNumbers.com differs from Twilio Verify, Telnyx Verify, sms.to and Neutrino, and what an automated verification platform needs.
Is there an SMS verification API that receives the code for me?
Yes: RentalNumbers.com provides a receive-code API, where one call rents a real carrier number and the verification SMS another platform sends to it is delivered to your server by signed webhook or polling. That is the opposite of sending APIs such as Twilio Verify, Telnyx Verify, sms.to and Neutrino, which send an OTP from your own account to a user's phone.
•Receive versus send: RentalNumbers.com receives the code a third party sends, while Twilio Verify, Telnyx Verify, sms.to and Neutrino send codes you generate.
•Endpoints: checkPrice, rentNumber, getSMS, cancel and setWebhook, authenticated with a Bearer API key at 60 requests per minute by default.
•Delivery: HMAC-SHA256 signed webhooks about 1 to 2 seconds after the code arrives, or getSMS polling every 10 to 15 seconds.
•Price: from $0.10 per number on a prepaid wallet, with no monthly platform fee, and unused balance never expires.
•Keys: issued instantly, with per-key rate limits, stored as SHA-256 hashes and revocable at any moment.
•Coverage and hours: 100+ countries and 600+ services, available 24/7 and self-service, with support on Telegram at @Rentalnumberscom.
What does an automated SMS verification platform for developers include?
An automated SMS verification platform gives a script everything it needs to obtain a code without a human: live price and stock lookups, a rent call that returns the number, delivery of the SMS by webhook or polling, and a cancel or refund path. RentalNumbers.com exposes all four through one REST API, with a documented flow from checkPrice to getSMS.
•Flow: checkPrice for live stock and price, rentNumber to obtain the line, getSMS or a webhook for the code, and cancel to release it.
•Automation: webhooks are signed so a queue can verify each delivery, and polling is available where inbound webhooks are blocked.
•Cost control: per-key rate limits, a prepaid wallet, from $0.10 per number, with no minimum spend or contract.
•Testing: separate keys per environment let CI run against the same endpoints and pricing as production.
•Coverage: 100+ countries and 600+ services, including long-term numbers from $1.00 per day when a flow needs the line later.
•Docs and support: every endpoint is documented on the API documentation page, and support answers on Telegram at @Rentalnumberscom.
Ready to integrate?
Generate your first key and start reselling our numbers in minutes.
Cookie & Data Privacy
We use cookies and similar technologies to enhance your experience, analyze traffic, and serve relevant ads. By clicking "Accept", you consent to the use of these technologies as described in our Privacy Policy.