API ReferenceeSIM
Get eSIM Usage
Near-real-time data usage for one eSIM.
GET/open-api/v1/esim/esims/{esimNo}/usage
Returns the data usage of one of your eSIMs. Usage is synced from the network at most once per
minute per eSIM; calls inside the cooldown return the latest snapshot — check lastSyncAt for
freshness. Polling faster than once a minute therefore adds no information.
Path parameters
esimNostringpathrequiredeSIM id (esim_...).
Response
esimNostringplanNostringCurrent plan.
iccidstringstatusstringe.g.
ACTIVE · EXPIRED · DEPLETED.dataTotalMbintegernull for unlimited plans.dataUsedMbintegerdataLeftMbintegernull for unlimited plans.expireAtintegerEpoch ms,
null until first activation.lastSyncAtintegerWhen this snapshot was synced from the network (epoch ms).
Response
{
"code": 0,
"message": "SUCCESS",
"data": {
"esimNo": "esim_6ba300976dbb48b8a1",
"planNo": "epln_b312537653c3a51f00",
"iccid": "8948010010043989416",
"status": "ACTIVE",
"dataTotalMb": 1004,
"dataUsedMb": 0,
"dataLeftMb": 1004,
"expireAt": null,
"lastSyncAt": 1783869530718
}
}