Activating SIMs via the Dashboard is a great option if you are only doing so for a handful of devices, but what if you want to activate dozens, hundreds, or even thousands of devices? For this we recommend using our REST API. This option lets you programmatically activate devices and also enter SIM ranges instead of individual SIM numbers.
The first step to activating SIMs via the REST API is finding out the plan number and zone for the plan you want to activate under. To check these parameters you need to use the List Data Plans endpoint:
This will return a list of all the plans you have access to. From this you'll need the id field and the zones field which should be either
1 , or
Next we will activate our SIMs using the Activate SIMs endpoint:
Here we have two options, send a list of SIM numbers or send a SIM range. SIM number lists are ideal for unordered SIMs while SIM ranges are ideal for users who have purchased SIMs in the 100 pack option.
If you are planning on using a list of SIM numbers, your request should have the following body:
If you are planning on using a SIM range, your request should have the following body:
If you are bulk activating SIMs for a custom organization, you need to add
"orgid":"CUSTOM_ORGID" to the call's body.