Firsty

Search...

Search...

Core concepts

eSIM lifecycle

From provisioning to activation to expiry.

An eSIM has two state machines, not one. status tracks the profile on the device (the SM-DP+ side); lifecycleStatus tracks the IMSI on the network (whether the line is allowed to work). Both come back on every eSIM read, though lifecycleStatus is null until the eSIM is assigned to a profile.

Profile status

statusMeaning
releasedCreated and reserved. An activation code exists but nothing is installed.
downloadedA device has fetched the profile.
installedThe profile is installed on the device.
enabledThe profile is active on the device. This is "working data".
disabledInstalled but switched off on the device.
deletedRemoved from the device.
faultedSomething went wrong. Contact support with the esimReference.

The middle five happen on the device, not through the API: released is set when you order, and faulted is reported. You observe the device ones via webhooks (esim.downloaded, esim.installed, esim.enabled, ...) or by polling the eSIM.

Service lifecycle

lifecycleStatusMeaning
preactiveProvisioned, not yet active on the network.
activeActive and connected.
suspendedTemporarily suspended. Reversible.
terminatedPermanently ended. Terminal.
faultedProvisioning failed. Contact support with the esimReference.
staleConfiguration mismatch, for example the wrong base plan.

preactive is where a new eSIM starts. You move it from there with the lifecycle endpoint, which takes three operations: suspend, reactivate and terminate. faulted and stale are reported to you rather than requested, and both need support to clear.

firsty esim suspend

Suspension is the only reversible one; terminate cannot be undone, which is why the CLI makes you confirm it by typing the last four digits of the eSIM reference.

Validity

A package's validity clock starts at activation, not purchase. The response carries both activatedAt and expiresAt, each null until the package activates. A 30-day package bought in January and activated in March expires in April. This trips people up when reconciling revenue against usage: the two clocks are genuinely different.