Advanced eSIM
The eUICC API lets you manage eSIM profiles on SGP.32 IoT eSIM devices programmatically. You can retrieve eUICC information, schedule profile operations, and monitor their status - all without accessing the emnify Portal.
Prerequisites
All eUICC API calls require a valid authentication token in the Authorization header.
For instructions on obtaining a token, see Application tokens.
List your eUICCs
Retrieve all eUICCs registered to your organization.
Use the q query parameter to filter by EID or other fields.
Endpoint: GET /api/v1/euicc
To filter by EID, use the q query parameter:
Get a specific eUICC
Retrieve details for a single eUICC by its internal ID.
Endpoint: GET /api/v1/euicc/{euicc_id}
Profile statuses
Each profile on an eUICC has a status field that reflects its current state in the lifecycle.
Two additional profile fields control fallback behavior:
fallback_allowed- Indicates whether the profile type supports being designated as a fallback.fallback_attribute- Indicates whether this specific profile is currently set as the fallback. When the active profile loses network connectivity, the device automatically switches to the fallback profile.
Schedule profile operations
Use POST /api/v1/euicc/{euicc_id}/operation to schedule profile operations on an eUICC.
Each request body is an array, allowing you to schedule multiple operations at once.
Operations are executed asynchronously - the API returns immediately with a Scheduled status and a link header that points to the created operations.
Use List operations or Get operation details to track progress.
This endpoint returns HTTP 404 for non-IoT eUICCs.
Operation action IDs
Validity period
The validity_period parameter defines how long (in seconds) the operation remains pending before it expires.
The maximum value is 86400 seconds (24 hours) which is also the default value if not specified.
If the device is unreachable and the validity period elapses before the operation is executed, the operation transitions to Expired.
Contradicting operations
The API does not validate new operations against any already-scheduled operations for the same eUICC. If a new operation conflicts with a pending one - for example, scheduling two concurrent “Enable profile” requests targeting different profiles - only the first scheduled operation will be applied. Subsequent contradicting operations will not be executed.
Check for pending scheduled operations before scheduling a new one to avoid unintended conflicts.
Audit an eUICC
Synchronizes the eUICC state by fetching the latest profile and status information directly from the device. Run an audit when eUICC data appears out of sync with what the device reports.
Download a profile
Downloads a new profile to the eUICC using an activation code. The profile is fetched from the SM-DP+ server and installed on the device over-the-air.
Set both enable: true and rollback: true when you want the profile to go live immediately - rollback ensures the device can recover automatically if the new profile fails to attach to a network.
Enable a profile
Switches the active profile on the eUICC to the specified profile by ICCID.
Enabling a profile automatically deactivates the currently active profile. The previously active profile transitions to Installed (Inactive) status and remains installed on the eUICC.
Rollback recommended: Set rollback: true to automatically revert to the previously active profile if the newly enabled profile fails to connect to a network after activation.
Without rollback, a failed profile switch may leave the device offline with no automatic recovery.
Set a fallback profile
Designates a profile as the fallback - the profile the device automatically switches to if the active profile loses connectivity.
Only a Disabled (inactive) profile can be set as the fallback. There can only be one fallback profile per eUICC at a time - designating a new fallback replaces the previous one.
Delete a profile
Removes a profile from the eUICC over-the-air.
You cannot delete the currently active profile. Enable a different profile first. Profile deletion is irreversible.
Monitor operations
List operations
Retrieve all operations scheduled for a specific eUICC.
Use the q query parameter to filter by action (q=action:3) or status.
Endpoint: GET /api/v1/euicc/{euicc_id}/operation
Get operation details
Retrieve the details and current status of a specific operation.
Endpoint: GET /api/v1/euicc/{euicc_id}/operation/{operation_id}
Operation statuses
Related resources
- API Reference: eUICC - Full endpoint reference with all parameters and response schemas
- eSIM management in the Portal - Perform the same operations through the emnify Portal UI
- Authentication - How to obtain and use authentication tokens