Rate this page:

How To determine Whether a Device Contains a Super SIM

You need to set the Access Point Name (APN) that an IoT device’s cellular modem will use for Internet connectivity. If all of your devices contain Super SIMs, this is straightforward: use the APN super.

However, if your products contain SIMs from a variety of suppliers, including Twilio, you will first need to check which SIM a given device contains so that you can set the appropriate APN for that SIM. Typically, to detect SIM type you read back the SIM’s IMSI.

One the key advantages of Super SIM is that it includes multiple IMSIs to enable switching between different local networks in the territory in which the host device is operating.

This means that you should never use the current IMSI to determine whether a device contains a Super SIM. The IMSI reported by a Super SIM at any given time can and very likely will change. Instead, use the methods outlined below. The first is the recommended one, but the second may also be used.

For more detailed guidance on setting the APN, particularly for devices with integrated modules, and for setting the APN using the Super SIM API’s SMS Commands functionality, please see our APN configuration page.

Method 1: Use the SIM’s ICCID

Every Super SIM, like all SIMs, incorporates an Integrated Circuit Card Identifier (ICCID). Super SIM ICCIDs all begin with the digits 8988307 so this fact can be used to determine whether a given SIM card or chip is a Super SIM.

Depending on when you need to determine a Super SIM’s ICCID, there are alternative ways of obtaining it.

You can use the Super SIM API to get the Sim resource for a given SIM. Make a GET request to either of the following endpoints:{sid}{uniqueName}

Look for the iccid key in the JSON returned by the API and then match it against the prefix show above.

The Sim resource documentation can provide you with further details about how to make the call and what further information is included in the response.

You can also interrogate your module for the connected SIM’s ICCID. Modules generally use this command:


Its response will be:


However, some modules have alternative commands. For example, the Quectel modules use AT+QCCID; this yields the repsonse +QCCID: <SIM_ICCID>.

Method 2: Use the SIM’s SPN

Issue the AT+CRSM command with the following parameters to retrieve the SIM’s Service Provider Name (SPN):


If the device’s SIM is a Super SIM, this command will return:


The third, textual field provides the SPN. Each pair of characters is a hexadecimal character code. To extract the SPN, ignore the first pair of characters (00) and read up to the first FF. Now convert each hex pair to an Ascii character:

Hex Ascii
54 T
77 w
69 i
6C l
69 i
6F o

You can shortcut this process simply by comparing the third field to 005477696C696FFFFFFFFFFFFFFFFFFFFF. If the strings match, your code knows it is using a Super SIM and can issue the APN super.

If you’d like to learn more about the fields included in the initial AT+CSRM command and how the response is formatted, check out section 4.2.12 of the ETSI UMTS Specification. For example, the 176 in the command indicates a binary read command; the 28486 indicates that we want to receive the SPN.

Rate this page:

Need some help?

We all do sometimes; code is hard. Get help now from our support team, or lean on the wisdom of the crowd by visiting our Twilio Community forums or browsing the Twilio tag on Stack Overflow.

Thank you for your feedback!

We are always striving to improve our documentation quality, and your feedback is valuable to us. How could this documentation serve you better?

Sending your feedback...
🎉 Thank you for your feedback!
Something went wrong. Please try again.

Thanks for your feedback!

Refer us and get $10 in 3 simple steps!

Step 1

Get link

Get a free personal referral link here

Step 2

Give $10

Your user signs up and upgrade using link

Step 3

Get $10

1,250 free SMSes
OR 1,000 free voice mins
OR 12,000 chats
OR more