Read eSIM profile
GET /api/sim/{serialNumber}/esim
Reads profile status and available profile history for an accessible eSIM. Supported networks are eSIMsmart 218 and 225 and Orange LMVNO 234. This is a profile-information read, distinct from the eSIM export submission. Use the bearer token described in Authentication.
| Path parameter | Type | Description |
|---|---|---|
serialNumber | string | Required eSIM serial number, not its MSISDN, ICCID or EID |
curl --location 'https://api.cellhire.com/api/sim/89441000000000000001/esim' \
--header 'Authorization: Bearer <access-token>'Response
200 OK returns one profile object. Responses are cached for up to 30 minutes. Fields depend on the network and may be null; Orange returns the EID and current status while the other profile fields may be unavailable.
| Field | Type | Description |
|---|---|---|
currentStatus | string or null | Current profile state |
previousStatus | string or null | Previous profile state |
lastOperationDateTime | date-time or null | Most recent profile operation time |
deviceImei | string or null | Device IMEI associated with the profile |
eid | string or null | Embedded UICC identifier |
profileReusePolicy | string or null | Profile reuse policy reported by the network |
profileHistory | array or null | Profile events with nullable date-time operationDateTime, nullable string operationType and nullable string status |
For eSIMsmart, history is limited to operations after the earliest rental-agreement commencement for the current account. An empty history does not establish that the profile has never been used. Status and policy fields are not fixed enums in the public schema. Handle device identifiers as sensitive information and avoid placing them in logs.
Errors
| Status | Meaning |
|---|---|
401 | Missing or invalid bearer token |
403 | The user does not have access to this SIM |
404 | SIM was not found, is not an eSIM, uses an unsupported network, or has no available profile details |
500 | Profile lookup failed |