Virtual phone numbers for business: how they work and how to add them to your product
A virtual phone number for business is a real, dialable number that isn’t tied to one SIM or desk phone. The provider routes its calls and texts in software to wherever you choose: an app, a SIP server, an AI agent or a mobile line.
A virtual phone number is a normal, dialable phone number that isn't tied to one SIM card, desk phone or office. The provider that holds the number decides in software where its calls and texts go: an app, a SIP server, an AI agent or a mobile line.
That definition covers two very different purchases. If you want a business line for your team, with an auto-attendant and a softphone, you're shopping for a cloud phone system. If you're building a product that hands numbers to your users, field teams or AI agents, you need numbers you can provision, register and track from your own backend. This guide is for the second group. It covers what's underneath a virtual number, cloud numbers vs mobile numbers, the paperwork that sits behind "instant" provisioning, and the states your backend has to handle.
What a virtual phone number actually is
A phone number is an address in a global numbering plan, not a device. The ITU's E.164 recommendation defines that plan: a country code of one to three digits followed by the national number, with no more than 15 digits in total. Every number you'll buy through an API, virtual or not, fits that format.
What makes a number "virtual" is where it ends up. A traditional landline ends at a copper pair in a building. A virtual number ends at a provider's routing logic, which can send the call anywhere. Three layers are involved, and they're often run by different companies:
Layer | Who controls it | What it decides |
|---|---|---|
Numbering | National regulators allocate ranges to operators | Which numbers exist, who may hold them, what paperwork is needed |
Transport | Carriers and voice providers | How calls and SMS reach the provider, and at what quality |
Application | You, through the provider's API or dashboard | Where each call or message goes once it arrives |
Your product mostly works in the third layer. The first one is where most launch delays come from.
You'll also see the term DID number (direct inward dialling). In practice, providers use "DID" and "virtual number" for the same thing: a number delivered over a voice connection to your system rather than to a physical line.
Cloud numbers vs mobile numbers: which one your product needs
Not every virtual number behaves the same. The distinction that matters most is whether the number lives on a mobile network subscription or only in the cloud.
Cloud (VoIP) number | Mobile number on an eSIM | |
|---|---|---|
Where it lives | Provider's voice platform | A mobile subscription; the number (MSISDN) is attached to the SIM's identity on the network |
How a call arrives | Over the internet to an app, SIP endpoint or webhook | Over the mobile network to the phone, like any other call |
Needs a device? | No | Yes, a device with the eSIM installed |
SMS | Depends on number type and country | Yes, as a normal mobile line |
Line type in lookups | Usually "non-fixed VoIP" | "Mobile" |
Good fit | AI agents, call routing, contact centres, numbers for users who keep their own phone | Users or staff who need a working phone line and data on one device |
A virtual mobile number in the search-engine sense is usually a cloud number that forwards to your phone. A mobile number on an eSIM is different: it's a real mobile subscription that happens to be provisioned in software rather than on a plastic card.
Pick by what the person on the other end needs. If your AI agent answers calls, it has no phone, so a cloud number is the only sensible choice. If your field team needs to call customers and use maps on the same handset, a mobile number on an eSIM avoids a second app.
How do virtual phone numbers work? A call, step by step
Here's what happens when a customer dials a cloud number that your product has assigned to one of your users:
The caller dials. Their operator sees a normal number and routes the call towards the operator that holds that number range.
The call reaches your provider. The provider looks up the number and the rules attached to it.
The provider asks your system what to do, or applies rules you set earlier: ring this SIP endpoint, connect to this AI agent, forward to this mobile number, go to voicemail.
Media flows. Voice travels as packets between the provider and the endpoint.
You get a record. A call detail record (CDR) with caller, callee, duration and timestamps lands in your logs or billing.
Inbound SMS follows the same idea with a different path: the message arrives at the provider, which passes it to your system.
For a mobile number on an eSIM, steps 2 to 4 happen inside the mobile network instead: the call is delivered to the device that holds the SIM. Your backend doesn't route each call. It manages the subscription: which number is on which eSIM, which plan it has, and whether it's active.
Why "instant" numbers still come with paperwork
Provisioning a number through an API takes a request. Being allowed to use it can take more. Twilio's documentation puts it plainly: a phone number is a national resource, and governments want to know who the end user is (Twilio regulatory compliance). What that means varies by country:
Identity registration. Belgium requires mobile users, prepaid included, to be identified before a line is used (BIPT). Other countries ask for a local address, sometimes one that matches the number's region.
Messaging registration (US). Application-to-person SMS from standard US local numbers runs under A2P 10DLC, which needs a registered brand and campaign through The Campaign Registry (Twilio A2P 10DLC). Unregistered traffic gets filtered.
Caller ID authentication (US). Under STIR/SHAKEN, the originating provider signs each call with attestation level A, B or C, depending on how well it knows the caller and their right to use the number (FCC). That attestation feeds the spam labelling on the recipient's phone.
Emergency calling (US). Interconnected VoIP providers must send location with 911 calls. Fixed services send an automated dispatchable location; non-fixed services do so where technically feasible, otherwise a registered location (FCC).
For your product, this means two things. Collect subscriber details at sign-up, not after the number is live. And treat registration as an asynchronous step that can fail and need correcting.
Firsty's API shows what that looks like. You pass a numberRegistration block when you order the eSIM, with the person's or organisation's name, address and communication language. Firsty submits it to the country's registry once the number is live (Belgium's appears as be_cndb in responses). If the registry rejects it, you get a number-registration.rejected webhook with the registry's own code and message, for example a missing last name, and you send a corrected record through the number registration endpoint. A registration that's already with the registry can't be changed until its result comes back; the API answers 409 until then.
Virtual phone numbers for verification and OTP
Your users will try to sign up for other services with the numbers you give them, so it helps to know how those services see a number.
Lookup services classify every number by line type. Twilio's, for example, returns values such as mobile, landline, fixedVoip and nonFixedVoip, where non-fixed VoIP means "a virtual phone number obtained online without requiring a physical device" (Twilio Line Type Intelligence). A bank, marketplace or messaging app can read that value during sign-up and decide how to treat the number. Each service sets its own policy.
The practical consequence: if your users need a number that registers like a personal phone line everywhere, a mobile number is the safer choice. A cloud number is fine for receiving codes from services that accept it, and for your own OTP flows, where you set the rules.
Keeping an existing number: how porting works
Customers who already own a number usually want to keep it. Moving it between operators is called mobile number portability, and it's a negotiation with the operator that currently holds the number (the donor). It's not a single API call.
The flow in Firsty's porting API (currently marked experimental) is a good model of what any provider has to do:
Order the eSIM with a
portInblock. You send the number in E.164 format without the+, and the donor details the country requires. For Belgium that's the donor SIM's ICCID or printed SIM number, or the account number for business contracts. For the Netherlands, a postpaid contract needs the account number and what should happen to the donor contract.The eSIM waits. It can be installed, but it stays pre-active with no service until the port completes, so the user never has two live lines with the same number.
The donor answers. You receive
portin.approvedwith ascheduledAttime, which can be days away, orportin.rejectedwith a normalised reason such asmsisdn_sim_mismatch.The number moves.
portin.completedmeans the donor released the number and it's on the new SIM.
json
POST /esims
{
"externalProfileId": "my-customer-123",
"portIn": {
"msisdn": "32470123456",
"details": {
"donorContractType": "postpaid",
"donorIccid": "8932031234567890128"
}
}
}Request shape from the Order an eSIM reference, checked 13 November 2026. Porting fields are experimental and may change.
Plan for the failure paths, because they're common. A rejected port needs a corrected port-in request, which replaces the old one. In the Netherlands, a prepaid port without an account number is confirmed by an SMS code sent to the old number; if the customer doesn't enter it within 24 hours, the port is rejected. The customer can also give up on porting and keep the temporary number the eSIM came with.
How to add virtual numbers to your product
Whichever provider you use, the backend work follows the same shape:
Decide the number type per use case: cloud for agents and routing, mobile for people who need a working line on their phone.
Collect subscriber details up front. Name, address and language for registration; donor details if the user wants to port.
Order with an idempotency key. Retries happen. Firsty, for example, returns the cached response for a repeated
X-Idempotency-Keywithin 48 hours instead of creating a second number.Store the provider's references against your user, not the phone number alone. Numbers move during porting; references don't.
Treat webhooks as the source of truth for porting and registration states, and make the handler idempotent. Firsty's port-in events can arrive out of order or more than once.
Show the user where they are: "waiting for your old provider", "scheduled for Tuesday 09:00", "we need your correct SIM number".
Log CDRs and usage per user so support can answer "why didn't my call come through?" without guessing.
A minimal webhook handler, as pseudocode:
text
on webhook(event):
if seen(event.webhook_id): return 200 # duplicate delivery
record = find_by_reference(event.data.portInRequestReference)
switch event.type:
"portin.approved": record.status = "scheduled"; record.at = event.data.scheduledAt
"portin.completed": record.status = "active"; notify_user("Your number is live")
"portin.rejected",
"portin.failed": record.status = "needs_fix"; record.reason = event.data.reason.code
ask_user_for_corrected_details()
mark_seen(event.webhook_id)
return 200Illustrative pseudocode, not tested against the API.
What to check before choosing a provider
Question | Why it matters |
|---|---|
Which countries, and which number types in each? | "Numbers in 100+ countries" can mean landline-only in many of them |
Mobile, cloud or both? | Decides whether your users need a second app |
Who handles registration with the regulator? | Either your team builds that flow, or the provider exposes it |
Can numbers be ported in, and out? | Your customers will ask; so will your lawyers at exit |
Are porting and registration states exposed as webhooks? | Without them, support works from guesswork |
Is SMS two-way on the number types you need? | Some numbers receive only, or can't send A2P without registration |
Who owns the number if you switch provider? | Usually the provider; check the exit terms before launch |
Where Firsty fits
We offer local phone numbers in 18 countries with inbound and outbound calls and SMS, provisioned through the API or the partner dashboard, with no local entity needed on your side. The countries are Australia, Austria, Belgium, Brazil, Canada, Denmark, Estonia, France, Israel, Malaysia, Mauritius, the Netherlands, Poland, Puerto Rico, Sweden, Thailand, the United Kingdom and the United States. Outbound international calling reaches 200+ countries.
Numbers can sit on a Firsty eSIM next to mobile data, or work as cloud numbers, for example to give an AI agent its own phone number. On the mobile side, the API covers ordering the eSIM, porting a number in, and number registration, with webhooks for each state change.
What you still build: the sign-up flow that collects subscriber and donor details, the screens that show porting progress, and the logic that decides which user gets which number. If you're comparing this with other parts of the stack, our guide to telecom APIs for developers covers data, switching and fallback.
FAQ
What is a virtual phone number for business?
A virtual phone number for business is a normal, dialable number whose calls and texts are routed by a provider's software rather than tied to one line or device. Businesses use them to give staff, users or AI agents a number that rings wherever the business decides.
How do I get a virtual phone number for my business?
For a team phone line, sign up with a cloud phone system provider and pick a number in their dashboard. To give numbers to your own users or agents, use a provider with a numbers API, collect the registration details the country requires, and provision numbers from your backend.
Is a virtual number the same as a DID number?
In practice, yes. Providers use DID (direct inward dialling) and virtual number for the same thing: a number delivered to your system over a voice connection rather than to a physical line.
Can a virtual number receive SMS verification codes?
Many can, but it depends on the number type and on the sending service. Services can look up whether a number is mobile or VoIP and set their own policy, so a mobile number is accepted in more places than a cloud number.
Can I keep my existing number?
Usually, through porting. You give the new provider the number and proof that you hold it (such as the old SIM's ICCID or your account number), the old operator approves, and the number moves on a scheduled date. Rules and timelines differ by country.
Do virtual phone numbers need identity verification?
In many countries, yes. Regulators treat numbers as a national resource and require the provider to register who uses them, so expect to supply a name and address, and sometimes a local address in the number's region.
Add local numbers to your product
Calls and SMS in 18 countries, ordered through the API with registration and porting built in. Tell us which countries you need and we’ll set up your account.
Seguir leyendo
Todas las guíasThe article is mostly about connecting eSIMs to your HR and IT systems through the API, webhooks and MDM, and it shares that tag with the Telecom APIs guide.
A white-label MVNO sells mobile service under your brand while a partner runs the network access, eSIM provisioning and billing. Your backend orders the eSIM via API; you still build checkout, install flow and webhook handling.
Las API de telecomunicaciones convierten la conectividad móvil en parte programable de tu producto. Descubre qué cubren, de la eSIM al cambio de red, API-first frente a white-label y cómo evaluar a un proveedor.