Quickstart
This gets you from zero to a provisioned test eSIM in under five minutes. Everything here runs against the sandbox on a mock network — no real spend, no Vodafone, no NDA.
-
Get a sandbox key.
Grab a free sandbox key from the signup page. It looks like
ig_test_…and only ever touches the sandbox. Export it:Terminal window export IG_KEY="ig_test_your_key_here" -
Make your first call.
Confirm the key works and see who you are. The sandbox base URL is
https://api.sandbox.interglobe.io/v1.Terminal window curl https://api.sandbox.interglobe.io/v1/me \-H "Authorization: Bearer $IG_KEY"import { InterGlobe } from "@interglobe/sdk";const ig = new InterGlobe({ apiKey: process.env.IG_KEY! });console.log(await ig.me()); -
Provision a test eSIM.
Pick a product from the catalog, then provision. Provisioning is asynchronous — you get an execution id back and an
esim.provisionedwebhook when it’s ready.Terminal window # List available sandbox productscurl https://api.sandbox.interglobe.io/v1/products \-H "Authorization: Bearer $IG_KEY"# Provision one (async saga → returns 202 + an execution id)curl -X POST https://api.sandbox.interglobe.io/v1/esims \-H "Authorization: Bearer $IG_KEY" \-H "Content-Type: application/json" \-H "Idempotency-Key: $(uuidgen)" \-d '{ "product_id": "prod_eu_5gb" }'const products = await ig.products.list();const esim = await ig.esims.provision({ product_id: products.data[0].id });console.log(esim); // 202 → execution_id; watch for the esim.provisioned webhook -
Get the install (QR).
Once provisioned, fetch the install profile — the LPA string / QR your end user scans to install the eSIM.
Terminal window curl https://api.sandbox.interglobe.io/v1/esims/{iccid}/install \-H "Authorization: Bearer $IG_KEY"
Next steps
Section titled “Next steps”- Explore every endpoint in the API Reference (with a live “try it” console).
- Set up signed webhooks to receive
esim.*andbundle.*events. - Drive test scenarios — deplete a bundle, fail an activation, fast‑forward expiry.