Create a Fleet
Configure shared settings inherited by all Super SIMs assigned to the Fleet
Create a Fleet
Body
-
DataEnabled boolean
Defines whether SIMs in the Fleet are capable of using 2G/3G/4G/LTE/CAT-M data connectivity. Defaults to
true
. -
DataLimit integer
The total data usage (download and upload combined) in Megabytes that each Sim resource assigned to the Fleet resource 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).
-
IpCommandsMethod string(http-method)
A string representing the HTTP method to use when making a request to
ip_commands_url
. Can be one ofPOST
orGET
. Defaults toPOST
.Values are
HEAD
,GET
,POST
,PATCH
,PUT
, orDELETE
. -
IpCommandsUrl 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.
-
The SID or unique name of the Network Access Profile that will control which cellular networks the Fleet's SIMs can connect to.
-
SmsCommandsEnabled boolean
Defines whether SIMs in the Fleet are capable of sending and receiving machine-to-machine SMS via Commands. Defaults to
true
. -
SmsCommandsMethod string(http-method)
A string representing the HTTP method to use when making a request to
sms_commands_url
. Can be one ofPOST
orGET
. Defaults toPOST
.Values are
HEAD
,GET
,POST
,PATCH
,PUT
, orDELETE
. -
SmsCommandsUrl 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.
-
UniqueName 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.
curl \
-X POST https://supersim.twilio.com/v1/Fleets \
--user "username:password" \
-H "Content-Type: application/x-www-form-urlencoded" \
-d 'DataEnabled=true&DataLimit=42&IpCommandsMethod=HEAD&IpCommandsUrl=https%3A%2F%2Fexample.com&NetworkAccessProfile=string&SmsCommandsEnabled=true&SmsCommandsMethod=HEAD&SmsCommandsUrl=https%3A%2F%2Fexample.com&UniqueName=string'
{
"DataEnabled": true,
"DataLimit": 42,
"IpCommandsMethod": "HEAD",
"IpCommandsUrl": "https://example.com",
"NetworkAccessProfile": "string",
"SmsCommandsEnabled": true,
"SmsCommandsMethod": "HEAD",
"SmsCommandsUrl": "https://example.com",
"UniqueName": "string"
}
{
"DataEnabled": true,
"DataLimit": 42,
"IpCommandsMethod": "HEAD",
"IpCommandsUrl": "https://example.com",
"NetworkAccessProfile": "string",
"SmsCommandsEnabled": true,
"SmsCommandsMethod": "HEAD",
"SmsCommandsUrl": "https://example.com",
"UniqueName": "string"
}
{
"account_sid": "string",
"data_enabled": true,
"data_limit": 42,
"data_metering": "payg",
"date_created": "2023-05-04T09:42:00+00:00",
"date_updated": "2023-05-04T09:42:00+00:00",
"ip_commands_method": "HEAD",
"ip_commands_url": "https://example.com",
"network_access_profile_sid": "string",
"sid": "string",
"sms_commands_enabled": true,
"sms_commands_method": "HEAD",
"sms_commands_url": "https://example.com",
"unique_name": "string",
"url": "https://example.com"
}
{
"account_sid": "string",
"data_enabled": true,
"data_limit": 42,
"data_metering": "payg",
"date_created": "2024-05-04T09:42:00+00:00",
"date_updated": "2024-05-04T09:42:00+00:00",
"ip_commands_method": "HEAD",
"ip_commands_url": "https://example.com",
"network_access_profile_sid": "string",
"sid": "string",
"sms_commands_enabled": true,
"sms_commands_method": "HEAD",
"sms_commands_url": "https://example.com",
"unique_name": "string",
"url": "https://example.com"
}