Fleet Resource

Organize and configure groups of Sim resources

To avoid ambiguity throughout this page, Sim (initial cap) refers to the Sim API resource. SIM (all caps) refers to the physical Subscriber Identity Module (that is, a SIM card) associated with a Sim resource.

A Fleet resource organizes and configures group of Sim resources:

https://supersim.api.korewireless.com/v1/Fleets

A Sim resource must be assigned to a Fleet resource by specifying fleet on the Sim resource before it can activated.

Some of a Fleet resource's properties are immutable. If you wish to change a Super SIM's behavior, you may need to create a new Fleet resource and reassign the Sim resource to the new Fleet resource.


Data limits

Each Super SIM's usage is measured independently. Data limits are specified in the Fleet resource on a per SIM basis. For example, if a Fleet resource specifies a data limit of 5MB, every SIM assigned to that Fleet resource will be blocked after it consumes more than 5MB of data.

SIMs will not be blocked exactly at their data limit. Usage records are generated every 6 minutes while a data session is active or when the session terminates. The aggregated usage from these is used to evaluate if a SIM has exceeded its data limit. If your device uses a significant amount of data between usage records being generated, it is possible to exceed your data limit by large amounts. You will be charged for all data used by your devices.

If you update your Fleet's data limit, it will take a few moments, typically five minutes or less, for the Super SIMs assigned to that Fleet to respect the new data limit while the cached value expires. If you increase the data limit and have SIMs that are blocked because their data usage exceeded the previous data limit, they will automatically be unblocked when the new data limit takes effect. Similarly, SIMs whose data usage for the current billing period exceeds the new data limit will be blocked, if they were not already, when the new data limit takes effect. It should not take longer than 15minutes for the new data limit to take effect for all of the Super SIMs on your Fleet.

You can use the BillingPeriods subresource and UsageRecords resource to calculate how much of a SIM's data limit has been used. See more details here.


API Authorization

Before you can make requests to this resource, you must have a valid bearer token. Review our API authorization guide to learn how to generate a token. Here's a curl example on how to define your access token in a header:

curl -X GET \
-H "Authorization: Bearer <YOUR_ACCESS_TOKEN>" \
'https://supersim.api.korewireless.com/v1/Sims'

The examples below do not show the required Authorization header due to a bug. We're working on fixing that. In the meantime, be sure to include that in all of your requests.


Create a Fleet resource

Create a Fleet

POSThttps://supersim.api.korewireless.com/v1/Fleets
Authorization
Body
NetworkAccessProfile*string

The SID or unique name of the Network Access Profile that will control which cellular networks the Fleet's SIMs can connect to.

UniqueNamestring

An application-defined string that uniquely identifies the resource. It can be used in place of the resource's sid in the URL to address the resource.

DataEnabledboolean

Defines whether SIMs in the Fleet are capable of using 2G/3G/4G/LTE/CAT-M data connectivity. Defaults to true.

DataLimitinteger

The total data usage (download and upload combined) in Megabytes that each Super SIM assigned to the Fleet can consume during a billing period (normally one month). Value must be between 1MB (1) and 2TB (2,000,000). Defaults to 1GB (1,000).

IpCommandsUrlstring (uri)

The URL that will receive a webhook when a Super SIM in the Fleet is used to send an IP Command from your device to a special IP address. Your server should respond with an HTTP status code in the 200 range; any response body will be ignored.

IpCommandsMethodenum

A string representing the HTTP method to use when making a request to ip_commands_url. Can be one of POST or GET. Defaults to POST.

GETPOST
SmsCommandsEnabledboolean

Defines whether SIMs in the Fleet are capable of sending and receiving machine-to-machine SMS via Commands. Defaults to true.

SmsCommandsUrlstring (uri)

The URL that will receive a webhook when a Super SIM in the Fleet is used to send an SMS from your device to the SMS Commands number. Your server should respond with an HTTP status code in the 200 range; any response body will be ignored.

SmsCommandsMethodenum

A string representing the HTTP method to use when making a request to sms_commands_url. Can be one of POST or GET. Defaults to POST.

GETPOST
Response

Created

Headers
Body
account_sidnullable string

The SID of the Account that created the Fleet resource.

Pattern: ^AC[0-9a-fA-F]{32}$
sidnullable string

The unique string that we created to identify the Fleet resource.

Pattern: ^HF[0-9a-fA-F]{32}$
unique_namenullable string

An application-defined string that uniquely identifies the resource. It can be used in place of the resource's sid in the URL to address the resource.

date_creatednullable string (date-time)

The date and time in GMT when the resource was created specified in ISO 8601 format.

date_updatednullable string (date-time)

The date and time in GMT when the resource was last updated specified in ISO 8601 format.

urlnullable string (uri)

The absolute URL of the Fleet resource.

data_enablednullable boolean

Defines whether SIMs in the Fleet are capable of using 2G/3G/4G/LTE/CAT-M data connectivity. Defaults to true.

data_limitnullable integer

The total data usage (download and upload combined) in Megabytes that each Super SIM assigned to the Fleet can consume during a billing period (normally one month). Value must be between 1MB (1) and 2TB (2,000,000). Defaults to 250MB.

data_meteringfleet_enum_data_metering (enum)
payg
sms_commands_enablednullable boolean

Defines whether SIMs in the Fleet are capable of sending and receiving machine-to-machine SMS via Commands. Defaults to false.

sms_commands_urlnullable string (uri)

The URL that will receive a webhook when a Super SIM in the Fleet is used to send an SMS from your device to the SMS Commands number. Your server should respond with an HTTP status code in the 200 range; any response body will be ignored.

sms_commands_methodnullable enum

A string representing the HTTP method to use when making a request to sms_commands_url. Can be one of POST or GET. Defaults to POST.

GETPOST
network_access_profile_sidnullable string

The SID of the Network Access Profile that controls which cellular networks the Fleet's SIMs can connect to.

Pattern: ^HA[0-9a-fA-F]{32}$
ip_commands_urlnullable string (uri)

The URL that will receive a webhook when a Super SIM in the Fleet is used to send an IP Command from your device to a special IP address. Your server should respond with an HTTP status code in the 200 range; any response body will be ignored.

ip_commands_methodnullable enum

A string representing the HTTP method to use when making a request to ip_commands_url. Can be one of POST or GET. Defaults to POST.

GETPOST
Request
const response = await fetch('https://supersim.api.korewireless.com/v1/Fleets', {
    method: 'POST',
    headers: {
      "Content-Type": "application/x-www-form-urlencoded"
    },
    body: JSON.stringify({
      "UniqueName": "unique_name",
      "DataEnabled": true,
      "DataLimit": 500,
      "SmsCommandsEnabled": true,
      "SmsCommandsMethod": "GET",
      "SmsCommandsUrl": "https://google.com",
      "IpCommandsMethod": "GET",
      "IpCommandsUrl": "https://google.com",
      "NetworkAccessProfile": "HAaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa"
    }),
});
const data = await response.json();
Response
{
  "account_sid": "text",
  "sid": "text",
  "unique_name": "text",
  "date_created": "2024-11-14T00:41:34.664Z",
  "date_updated": "2024-11-14T00:41:34.664Z",
  "url": "https://example.com",
  "data_enabled": false,
  "data_metering": "payg",
  "sms_commands_enabled": false,
  "sms_commands_url": "https://example.com",
  "sms_commands_method": "GET",
  "network_access_profile_sid": "text",
  "ip_commands_url": "https://example.com",
  "ip_commands_method": "GET"
}

Fetch a Fleet resource

Fetch a Fleet instance from your account.

GEThttps://supersim.api.korewireless.com/v1/Fleets/{Sid}
Authorization
Path parameters
Sid*string

The SID of the Fleet resource to fetch.

Response

OK

Headers
Body
account_sidnullable string

The SID of the Account that created the Fleet resource.

Pattern: ^AC[0-9a-fA-F]{32}$
sidnullable string

The unique string that we created to identify the Fleet resource.

Pattern: ^HF[0-9a-fA-F]{32}$
unique_namenullable string

An application-defined string that uniquely identifies the resource. It can be used in place of the resource's sid in the URL to address the resource.

date_creatednullable string (date-time)

The date and time in GMT when the resource was created specified in ISO 8601 format.

date_updatednullable string (date-time)

The date and time in GMT when the resource was last updated specified in ISO 8601 format.

urlnullable string (uri)

The absolute URL of the Fleet resource.

data_enablednullable boolean

Defines whether SIMs in the Fleet are capable of using 2G/3G/4G/LTE/CAT-M data connectivity. Defaults to true.

data_limitnullable integer

The total data usage (download and upload combined) in Megabytes that each Super SIM assigned to the Fleet can consume during a billing period (normally one month). Value must be between 1MB (1) and 2TB (2,000,000). Defaults to 250MB.

data_meteringfleet_enum_data_metering (enum)
payg
sms_commands_enablednullable boolean

Defines whether SIMs in the Fleet are capable of sending and receiving machine-to-machine SMS via Commands. Defaults to false.

sms_commands_urlnullable string (uri)

The URL that will receive a webhook when a Super SIM in the Fleet is used to send an SMS from your device to the SMS Commands number. Your server should respond with an HTTP status code in the 200 range; any response body will be ignored.

sms_commands_methodnullable enum

A string representing the HTTP method to use when making a request to sms_commands_url. Can be one of POST or GET. Defaults to POST.

GETPOST
network_access_profile_sidnullable string

The SID of the Network Access Profile that controls which cellular networks the Fleet's SIMs can connect to.

Pattern: ^HA[0-9a-fA-F]{32}$
ip_commands_urlnullable string (uri)

The URL that will receive a webhook when a Super SIM in the Fleet is used to send an IP Command from your device to a special IP address. Your server should respond with an HTTP status code in the 200 range; any response body will be ignored.

ip_commands_methodnullable enum

A string representing the HTTP method to use when making a request to ip_commands_url. Can be one of POST or GET. Defaults to POST.

GETPOST
Request
const response = await fetch('https://supersim.api.korewireless.com/v1/Fleets/{Sid}', {
    method: 'GET',
    headers: {},
});
const data = await response.json();
Response
{
  "account_sid": "text",
  "sid": "text",
  "unique_name": "text",
  "date_created": "2024-11-14T00:41:34.664Z",
  "date_updated": "2024-11-14T00:41:34.664Z",
  "url": "https://example.com",
  "data_enabled": false,
  "data_metering": "payg",
  "sms_commands_enabled": false,
  "sms_commands_url": "https://example.com",
  "sms_commands_method": "GET",
  "network_access_profile_sid": "text",
  "ip_commands_url": "https://example.com",
  "ip_commands_method": "GET"
}

Read multiple Fleet resources

Retrieve a list of Fleets from your account.

GEThttps://supersim.api.korewireless.com/v1/Fleets
Authorization
Query parameters
Response

OK

Headers
Body
fleetsarray of supersim.v1.fleet (object)
metaobject
Request
const response = await fetch('https://supersim.api.korewireless.com/v1/Fleets', {
    method: 'GET',
    headers: {},
});
const data = await response.json();
Response
{
  "fleets": [
    {
      "account_sid": "text",
      "sid": "text",
      "unique_name": "text",
      "date_created": "2024-11-14T00:41:34.664Z",
      "date_updated": "2024-11-14T00:41:34.664Z",
      "url": "https://example.com",
      "data_enabled": false,
      "data_metering": "payg",
      "sms_commands_enabled": false,
      "sms_commands_url": "https://example.com",
      "sms_commands_method": "GET",
      "network_access_profile_sid": "text",
      "ip_commands_url": "https://example.com",
      "ip_commands_method": "GET"
    }
  ],
  "meta": {
    "first_page_url": "https://example.com",
    "key": "text",
    "next_page_url": "https://example.com",
    "previous_page_url": "https://example.com",
    "url": "https://example.com"
  }
}

Update a Fleet resource

Updates the given properties of a Super SIM Fleet instance from your account.

POSThttps://supersim.api.korewireless.com/v1/Fleets/{Sid}
Authorization
Path parameters
Sid*string

The SID of the Fleet resource to update.

Body
UniqueNamestring

An application-defined string that uniquely identifies the resource. It can be used in place of the resource's sid in the URL to address the resource.

NetworkAccessProfilestring

The SID or unique name of the Network Access Profile that will control which cellular networks the Fleet's SIMs can connect to.

IpCommandsUrlstring (uri)

The URL that will receive a webhook when a Super SIM in the Fleet is used to send an IP Command from your device to a special IP address. Your server should respond with an HTTP status code in the 200 range; any response body will be ignored.

IpCommandsMethodenum

A string representing the HTTP method to use when making a request to ip_commands_url. Can be one of POST or GET. Defaults to POST.

GETPOST
SmsCommandsUrlstring (uri)

The URL that will receive a webhook when a Super SIM in the Fleet is used to send an SMS from your device to the SMS Commands number. Your server should respond with an HTTP status code in the 200 range; any response body will be ignored.

SmsCommandsMethodenum

A string representing the HTTP method to use when making a request to sms_commands_url. Can be one of POST or GET. Defaults to POST.

GETPOST
DataLimitinteger

The total data usage (download and upload combined) in Megabytes that each Super SIM assigned to the Fleet can consume during a billing period (normally one month). Value must be between 1MB (1) and 2TB (2,000,000). Defaults to 1GB (1,000).

Response

OK

Headers
Body
account_sidnullable string

The SID of the Account that created the Fleet resource.

Pattern: ^AC[0-9a-fA-F]{32}$
sidnullable string

The unique string that we created to identify the Fleet resource.

Pattern: ^HF[0-9a-fA-F]{32}$
unique_namenullable string

An application-defined string that uniquely identifies the resource. It can be used in place of the resource's sid in the URL to address the resource.

date_creatednullable string (date-time)

The date and time in GMT when the resource was created specified in ISO 8601 format.

date_updatednullable string (date-time)

The date and time in GMT when the resource was last updated specified in ISO 8601 format.

urlnullable string (uri)

The absolute URL of the Fleet resource.

data_enablednullable boolean

Defines whether SIMs in the Fleet are capable of using 2G/3G/4G/LTE/CAT-M data connectivity. Defaults to true.

data_limitnullable integer

The total data usage (download and upload combined) in Megabytes that each Super SIM assigned to the Fleet can consume during a billing period (normally one month). Value must be between 1MB (1) and 2TB (2,000,000). Defaults to 250MB.

data_meteringfleet_enum_data_metering (enum)
payg
sms_commands_enablednullable boolean

Defines whether SIMs in the Fleet are capable of sending and receiving machine-to-machine SMS via Commands. Defaults to false.

sms_commands_urlnullable string (uri)

The URL that will receive a webhook when a Super SIM in the Fleet is used to send an SMS from your device to the SMS Commands number. Your server should respond with an HTTP status code in the 200 range; any response body will be ignored.

sms_commands_methodnullable enum

A string representing the HTTP method to use when making a request to sms_commands_url. Can be one of POST or GET. Defaults to POST.

GETPOST
network_access_profile_sidnullable string

The SID of the Network Access Profile that controls which cellular networks the Fleet's SIMs can connect to.

Pattern: ^HA[0-9a-fA-F]{32}$
ip_commands_urlnullable string (uri)

The URL that will receive a webhook when a Super SIM in the Fleet is used to send an IP Command from your device to a special IP address. Your server should respond with an HTTP status code in the 200 range; any response body will be ignored.

ip_commands_methodnullable enum

A string representing the HTTP method to use when making a request to ip_commands_url. Can be one of POST or GET. Defaults to POST.

GETPOST
Request
const response = await fetch('https://supersim.api.korewireless.com/v1/Fleets/{Sid}', {
    method: 'POST',
    headers: {
      "Content-Type": "application/x-www-form-urlencoded"
    },
    body: JSON.stringify({
      "UniqueName": "GPS Trackers Fleet 5GB",
      "NetworkAccessProfile": "HAaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa",
      "DataLimit": 5000
    }),
});
const data = await response.json();
Response
{
  "account_sid": "text",
  "sid": "text",
  "unique_name": "text",
  "date_created": "2024-11-14T00:41:34.664Z",
  "date_updated": "2024-11-14T00:41:34.664Z",
  "url": "https://example.com",
  "data_enabled": false,
  "data_metering": "payg",
  "sms_commands_enabled": false,
  "sms_commands_url": "https://example.com",
  "sms_commands_method": "GET",
  "network_access_profile_sid": "text",
  "ip_commands_url": "https://example.com",
  "ip_commands_method": "GET"
}

Delete a Fleet

Customers can now delete unused and unwanted Fleets and their associated data. This can be done in Console: visit Super SIM > Fleets, click on the name of the Fleet you wish to delete, and click the Delete Fleet link at the bottom of the page. You will be asked to confirm your action before the Fleet is deleted. Fleets to which SIMs are currently assigned cannot be deleted.

Last updated