Published on:
June 10, 2026
Tags:
API
eSIM
Telecom
On paper, eSIM API integration looks simple. In practice, the developers have to work through stacks of API documentation just to compare providers, then squeeze the integration in alongside everything else on their plate. Every week it slips is another week of cost and lost momentum, especially on white-label eSIM platforms, where the integration is the product.
This guide is here to shorten that path. Drawing on our experience at esimba.ai, we’ll explain how eSIM APIs work, what integration really costs, which practices save the most time, and how the process runs from vendor selection to launch.

If you’ve already worked with APIs, then the model is the same. An eSIM API sits between you and your carrier’s provisioning infrastructure. You call it, it handles all the telecom complexity, and you get back a data plan, an activation code, or a status update.
All eSIMs currently operate on the GSMA SGP.22 standard. It defines and regulates how eSIM profiles get securely delivered to the embedded chip. You won’t have to apply it in practice, as it’s your carrier’s responsibility. Memorize this core principle: after you scan a QR code or activate the eSIM, the profile downloads from the carrier’s server and moves through their infrastructure to the device's eUICC (the chip).
eSIM APIs also have rate limits, which protect the platform from overload and bot traffic. At esimba.ai, the default is 60 requests per minute. Every response includes an X-RateLimit-Remaining header, so your app can see how much room is left and slow down before it hits the cap. Caching data that rarely changes, like the bundle catalog, keeps you well under the limit.

Most eSIM APIs are REST-based and have a similar set of capabilities. The most noteworthy ones include:
For your reference, here’s what creating a line looks like at esimba.ai. The example uses the sandbox base URL, so you can test it without spending money: curl -X POST "https://myaccount.sandbox.keepgo.com/api/v2/line/create" \
-H "apiKey: YOUR_API_KEY" \
-H "accessToken: YOUR_ACCESS_TOKEN" \
-H "Content-Type: application/json" \
-d '{
"bundle_id": 13,
"refill_mb": 1024,
"refill_days": 7
}'
A successful response returns the new line’s ICCID and its activation code:
{
"ack": "success",
"sim_card": {
"iccid": "89103000010077777736",
"lpa_code": "LPA:1consumer.ppp.localTN20213634636363463"
},
"data_bundle_id": 356
}
The lpa_code is the string the user’s device needs to install the eSIM profile. Your app turns it into a QR code or shows it for manual entry. Store the ICCID as well. Every later call for this line (status, usage, refills) uses it.
Depending on what you’re building, the integration process may look different. Here are a few examples:
However, each case is unique to the business or team, and we encourage you to look through our API documentation to get a thorough understanding of what you need for implementation

This cost depends on the situation. For example, at esimba.ai, we only charge for developer time if you actually need our team for implementation, and the cost is variable. If you’re planning to do the integration yourself, you don’t have to pay anything extra beyond fulfilling our initial minimal balance requirements.
But if we look more granularly, associated costs can be broken down into more than a few groups.
Vendor and data costs come first. You have to account for:
The next logical group is the development and integration costs. Hiring a mid-level developer in the US will cost $60–$120 per hour. eSIM REST API integration can take anywhere from 2-5 days, provided the documentation is in order, and you’ll solely focus on the project. Subtract a day if the provider offers an SDK, and add two or three if the docs are sparse. You’re looking at roughly $960–$4,800.
Altogether, at the maximum range, the costs could amount to $5,300, excluding the bundle price. Do also keep in mind that this is an estimate for your reference; an actual integration can take up to 2-3 weeks and cost more.
If there are no webhooks, this means polling, which involves more API calls against your rate limit and an activation UX that’s harder to build well. And if there are undocumented error codes, you’ll have to debug or, more precisely, reverse-engineer behavior that should’ve been specified.
The solution involves additional engineering time, and if you’re unlucky enough to run into these two issues, you’re looking at anywhere from $720 to $3,840.
Because the extra costs can add up quickly, the solution is to build defensively. Let’s take our API as an example and look through the top 5 best integration practices.
Many providers use keys, which is not optimal for security because they can serve as static access points for cybercriminals. However, you can protect your business from hacking attempts. For that purpose, esimba.ai uses a dual-credential system, where an API key paired with an accessToken is required on each HTTPS request. We also use webhook signature verification via HMAC-SHA256 for additional security.
The most common developer mistake is forgetting about asynchronous eSIM profile activation. It usually takes seconds, but, depending on the provider-side situation, it can take up to 15 minutes.
A good solution is to build a proper state machine from the beginning. esimba.ai surfaces three line states out of the box: Registered, Activated, and Deactivated. The changes are pushed through simcard.status.changed webhook event in real time. That means you don't need to poll for activation confirmation; you subscribe to the event and let the platform push the transition to you.
Line creation can be asynchronous too. For bundles that take longer to provision, esimba.ai’s /line/create_async returns a request ID immediately instead of holding the connection open, and your app checks /request/{requestId} for the result. That way, nothing times out while the line is being set up.
For providers that don't support webhooks, polling with exponential backoff is your only option.
Not every phone has an eSIM chip, which means not every customer will be able to install one. A refund request is often the first sign that it can’t, and that’s precisely why compatibility checks belong in your purchase flow.
esimba.ai provides an /esim_enabled_devices endpoint that returns a regularly updated list of eSIM-capable devices by brand and model. There’s also /check_esim_enabled_device to cross-reference the device model against our database and show the result before checkout.
We use standard HTTP status codes throughout (200, 401, 403, 404, etc.), which allows for a cleaner error taxonomy. Even so, your application shouldn't be surfacing raw vendor responses to users or to your monitoring systems. Map vendor codes to your own internal error taxonomy early in the build. This insulates your application from vendor-side changes and makes debugging significantly faster.
eSIM bundle catalogues aren’t static: carrier agreements change, and so does the list of available operators. We planned for this at esimba.ai, and bundle.added and bundle.removed webhook events notify you in real time when plans are added to or removed from the platform. Other providers are doing the same, but just in case, set a TTL on your catalog cache and treat webhook events as authoritative signals.
If you plan to partner with esimba.ai, the last tip is to use /line/{iccid}/available_refills rather than deriving refill options from the bundle catalog directly. It's faster and specific to the line in question.
eSIM Integration without testing is suboptimal, to say the least. The cards have real costs: you pay for profiles, sometimes incurring activation charges. But beyond these costs, you also inconvenience the users, which can lead to poor sales and brand reception. To avoid these, consider the tips provided below.
Not all eSIM API providers have a dedicated testing environment. If that’s the case with yours, it’s not a big issue, and you can treat a small pool of lines as your sandbox. Purchase a handful of the cheapest available bundles specifically for testing, document which ICCIDs are reserved for that purpose, and account for their cost upfront in your integration budget.
Some providers, like esimba.ai, have a dedicated sandbox, and the only real differences are a separate base URL and separate credentials. New accounts come with a test balance, and you can create eSIMs and refills without spending any money. Sandbox eSIMs can’t be installed on a real phone, and data usage needs to be triggered. Use the sandbox-only simulate_usage endpoint to check that your app tracks usage and handles refills correctly.
For webhook testing, use a tool like ngrok or Webhook during development to expose a local endpoint and capture real webhook payloads.
Another good practice is to do your testing in three layers:
This lets you test independently and catch breaking API changes before users do.
A few failure modes worth mocking explicitly:
If you’re already planning an API integration and are evaluating providers, it’s important to get the whole picture and properly plan. To do just that, you can follow the steps below:
We’ve referenced our API throughout the blog, and for a reason. Measured against the evaluation criteria that actually matter for a developer building on top of an eSIM API, it holds up well across the board.
The API is clean REST, thoroughly documented, and covers the full integration surface: bundle catalog, line creation, activation status, refills, auto-refill, and webhook events for every meaningful state change. For resellers and app developers, the minimum top-up balance requirement to access the API is a low barrier relative to what comparable platforms demand, and it goes directly toward usable inventory rather than a platform fee.
If a partnership sounds interesting to you, you can reach out to us today for pricing and coverage. Our sales team will outline the integration process and help you start your journey to high-grade connectivity. Alternatively, you can follow this link to self-register for free on the platform.
You get an API key even with a free account, but to access the sandbox environment, there’s a separate registration process. Keep in mind that you won’t be able to purchase eSIMs via API until your first balance top-up on the platform.