Twilio/supersim
@keeb/twilio/supersimv2026.08.25.2
01README
Twilio supersim API models
02Release Notes
- Updated: billing_period, esim_profile, fleet, ip_command, network_access_profile_network, network_access_profile, network, settings_update, sim_ip_address, sim, sms_command, usage_record
03Models
@keeb/twilio/supersim/billing-periodv2026.08.25.2billing_period.ts
Global Arguments
| Argument | Type | Description |
|---|---|---|
| account_sid? | string | Twilio Account SID (starts with AC). Also substituted for {AccountSid} path parameters. Overrides the TWILIO_ACCOUNT_SID environment variable. |
| sim_sid | string | Path scope for the billing period: sim_sid |
| name? | string | Instance name for this resource (used as the unique identifier in the factory pattern) |
| auth_token? | string | Twilio auth token, used as the HTTP Basic password when no API key is set. Overrides TWILIO_AUTH_TOKEN. Wire with a vault.get(...) expression to source it from a vault. |
| api_key_sid? | string | Twilio API key SID (starts with SK). Takes precedence over auth_token. Overrides TWILIO_API_KEY_SID. |
| api_key_secret? | string | Twilio API key secret, paired with api_key_sid. Overrides TWILIO_API_KEY_SECRET. Wire with a vault.get(...) expression to source it from a vault. |
fn lookup(max_items?: number)
List billing periods and record each as a data artifact (capped at 200 by default; writes a billing_period_lookup record with the coverage of the walk)
| Argument | Type | Description |
|---|---|---|
| max_items? | number | Stop after this many results (default 200, ceiling 1000000). Raise deliberately: Twilio's message and call logs are effectively endless, and every result becomes its own data artifact. When the walk stops here with rows still on offer, the billing_period_lookup record reports truncated: true. |
Resources
state(infinite)— Billing period resource state
billing_period_lookup(infinite)— Billing period lookup coverage — whether the page walk exhausted the collection
@keeb/twilio/supersim/esim-profilev2026.08.25.2esim_profile.ts
Global Arguments
| Argument | Type | Description |
|---|---|---|
| account_sid? | string | Twilio Account SID (starts with AC). Also substituted for {AccountSid} path parameters. Overrides the TWILIO_ACCOUNT_SID environment variable. |
| name | string | Instance name for this resource (used as the unique identifier in the factory pattern) |
| callback_url? | string | The URL we should call using the `callback_method` when the status of the eSIM Profile changes. At this stage of the eSIM Profile pilot, the a request to the URL will only be called when the ESimProfile resource changes from `reserving` to `available`. |
| callback_method? | enum | The HTTP method we should use to call `callback_url`. Can be: `GET` or `POST` and the default is POST. |
| generate_matching_id? | boolean | When set to `true`, a value for `Eid` does not need to be provided. Instead, when the eSIM profile is reserved, a matching ID will be generated and returned via the `matching_id` property. This identifies the specific eSIM profile that can be used by any capable device to claim and download the prof |
| eid? | string | Identifier of the eUICC that will claim the eSIM Profile. |
| auth_token? | string | Twilio auth token, used as the HTTP Basic password when no API key is set. Overrides TWILIO_AUTH_TOKEN. Wire with a vault.get(...) expression to source it from a vault. |
| api_key_sid? | string | Twilio API key SID (starts with SK). Takes precedence over auth_token. Overrides TWILIO_API_KEY_SID. |
| api_key_secret? | string | Twilio API key secret, paired with api_key_sid. Overrides TWILIO_API_KEY_SECRET. Wire with a vault.get(...) expression to source it from a vault. |
fn create()
Create a esim profile
fn get(id: string)
Get a esim profile
| Argument | Type | Description |
|---|---|---|
| id | string | The sid of the esim profile |
fn lookup(eid?: string, sim_sid?: string, status?: enum, max_items?: number)
List esim profiles and record each as a data artifact (capped at 200 by default; writes a esim_profile_lookup record with the coverage of the walk)
| Argument | Type | Description |
|---|---|---|
| eid? | string | List the eSIM Profiles that have been associated with an EId. |
| sim_sid? | string | Find the eSIM Profile resource related to a [Sim](https://www.twilio.com/docs/iot/supersim/api/sim-resource) resource by providing the SIM SID. Will always return an array with either 1 or 0 records. |
| status? | enum | List the eSIM Profiles that are in a given status. |
| max_items? | number | Stop after this many results (default 200, ceiling 1000000). Raise deliberately: Twilio's message and call logs are effectively endless, and every result becomes its own data artifact. When the walk stops here with rows still on offer, the esim_profile_lookup record reports truncated: true. |
fn sync()
Sync esim profile state from Twilio
Resources
state(infinite)— Esim profile resource state
esim_profile_lookup(infinite)— Esim profile lookup coverage — whether the page walk exhausted the collection
@keeb/twilio/supersim/fleetv2026.08.25.2fleet.ts
Global Arguments
| Argument | Type | Description |
|---|---|---|
| account_sid? | string | Twilio Account SID (starts with AC). Also substituted for {AccountSid} path parameters. Overrides the TWILIO_ACCOUNT_SID environment variable. |
| name | string | Instance name for this resource (used as the unique identifier in the factory pattern) |
| unique_name? | 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. |
| network_access_profile | string | The SID or unique name of the Network Access Profile that will control which cellular networks the Fleet's SIMs can connect to. |
| ip_commands_url? | string | 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_method? | 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`. |
| sms_commands_url? | string | 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_method? | 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`. |
| data_limit? | number | 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). |
| data_enabled? | boolean | Defines whether SIMs in the Fleet are capable of using 2G/3G/4G/LTE/CAT-M data connectivity. Defaults to `true`. |
| sms_commands_enabled? | boolean | Defines whether SIMs in the Fleet are capable of sending and receiving machine-to-machine SMS via Commands. Defaults to `true`. |
| auth_token? | string | Twilio auth token, used as the HTTP Basic password when no API key is set. Overrides TWILIO_AUTH_TOKEN. Wire with a vault.get(...) expression to source it from a vault. |
| api_key_sid? | string | Twilio API key SID (starts with SK). Takes precedence over auth_token. Overrides TWILIO_API_KEY_SID. |
| api_key_secret? | string | Twilio API key secret, paired with api_key_sid. Overrides TWILIO_API_KEY_SECRET. Wire with a vault.get(...) expression to source it from a vault. |
fn create()
Create a fleet
fn get(id: string)
Get a fleet
| Argument | Type | Description |
|---|---|---|
| id | string | The sid of the fleet |
fn lookup(network_access_profile?: string, max_items?: number)
List fleets and record each as a data artifact (capped at 200 by default; writes a fleet_lookup record with the coverage of the walk)
| Argument | Type | Description |
|---|---|---|
| network_access_profile? | string | The SID or unique name of the Network Access Profile that controls which cellular networks the Fleet's SIMs can connect to. |
| max_items? | number | Stop after this many results (default 200, ceiling 1000000). Raise deliberately: Twilio's message and call logs are effectively endless, and every result becomes its own data artifact. When the walk stops here with rows still on offer, the fleet_lookup record reports truncated: true. |
fn update()
Update fleet attributes
fn sync()
Sync fleet state from Twilio
Resources
state(infinite)— Fleet resource state
fleet_lookup(infinite)— Fleet lookup coverage — whether the page walk exhausted the collection
@keeb/twilio/supersim/ip-commandv2026.08.25.2ip_command.ts
Global Arguments
| Argument | Type | Description |
|---|---|---|
| account_sid? | string | Twilio Account SID (starts with AC). Also substituted for {AccountSid} path parameters. Overrides the TWILIO_ACCOUNT_SID environment variable. |
| name | string | Instance name for this resource (used as the unique identifier in the factory pattern) |
| sim | string | The `sid` or `unique_name` of the [Super SIM](https://www.twilio.com/docs/iot/supersim/api/sim-resource) to send the IP Command to. |
| payload | string | The data that will be sent to the device. The payload cannot exceed 1300 bytes. If the PayloadType is set to text, the payload is encoded in UTF-8. If PayloadType is set to binary, the payload is encoded in Base64. |
| device_port | number | The device port to which the IP Command will be sent. |
| payload_type? | enum | Either “text” or “binary”. For an IP Command sent to a Super SIM, `payload_type` is configurable. For an IP Command sent from a Super SIM, `payload_type` is always “binary”. |
| callback_url? | string | The URL we should call using the `callback_method` after we have sent the IP Command. |
| callback_method? | enum | The HTTP method we should use to call `callback_url`. Can be `GET` or `POST`, and the default is `POST`. |
| auth_token? | string | Twilio auth token, used as the HTTP Basic password when no API key is set. Overrides TWILIO_AUTH_TOKEN. Wire with a vault.get(...) expression to source it from a vault. |
| api_key_sid? | string | Twilio API key SID (starts with SK). Takes precedence over auth_token. Overrides TWILIO_API_KEY_SID. |
| api_key_secret? | string | Twilio API key secret, paired with api_key_sid. Overrides TWILIO_API_KEY_SECRET. Wire with a vault.get(...) expression to source it from a vault. |
fn create()
Create a ip command
fn get(id: string)
Get a ip command
| Argument | Type | Description |
|---|---|---|
| id | string | The sid of the ip command |
fn lookup(sim?: string, sim_iccid?: string, status?: enum, direction?: enum, max_items?: number)
List ip commands and record each as a data artifact (capped at 200 by default; writes a ip_command_lookup record with the coverage of the walk)
| Argument | Type | Description |
|---|---|---|
| sim? | string | The SID or unique name of the Sim resource that IP Command was sent to or from. |
| sim_iccid? | string | The ICCID of the Sim resource that IP Command was sent to or from. |
| status? | enum | The status of the IP Command. Can be: `queued`, `sent`, `received` or `failed`. See the [IP Command Status Values](https://www.twilio.com/docs/iot/supersim/api/ipcommand-resource#status-values) for a description of each. |
| direction? | enum | The direction of the IP Command. Can be `to_sim` or `from_sim`. The value of `to_sim` is synonymous with the term `mobile terminated`, and `from_sim` is synonymous with the term `mobile originated`. |
| max_items? | number | Stop after this many results (default 200, ceiling 1000000). Raise deliberately: Twilio's message and call logs are effectively endless, and every result becomes its own data artifact. When the walk stops here with rows still on offer, the ip_command_lookup record reports truncated: true. |
fn sync()
Sync ip command state from Twilio
Resources
state(infinite)— Ip command resource state
ip_command_lookup(infinite)— Ip command lookup coverage — whether the page walk exhausted the collection
@keeb/twilio/supersim/networkv2026.08.25.2network.ts
Global Arguments
| Argument | Type | Description |
|---|---|---|
| account_sid? | string | Twilio Account SID (starts with AC). Also substituted for {AccountSid} path parameters. Overrides the TWILIO_ACCOUNT_SID environment variable. |
| name? | string | Instance name for this resource (used as the unique identifier in the factory pattern) |
| auth_token? | string | Twilio auth token, used as the HTTP Basic password when no API key is set. Overrides TWILIO_AUTH_TOKEN. Wire with a vault.get(...) expression to source it from a vault. |
| api_key_sid? | string | Twilio API key SID (starts with SK). Takes precedence over auth_token. Overrides TWILIO_API_KEY_SID. |
| api_key_secret? | string | Twilio API key secret, paired with api_key_sid. Overrides TWILIO_API_KEY_SECRET. Wire with a vault.get(...) expression to source it from a vault. |
fn get(id: string)
Get a network
| Argument | Type | Description |
|---|---|---|
| id | string | The sid of the network |
fn lookup(iso_country?: string, mcc?: string, mnc?: string, max_items?: number)
List networks and record each as a data artifact (capped at 200 by default; writes a network_lookup record with the coverage of the walk)
| Argument | Type | Description |
|---|---|---|
| iso_country? | string | The [ISO country code](https://en.wikipedia.org/wiki/ISO_3166-1_alpha-2) of the Network resources to read. |
| mcc? | string | The 'mobile country code' of a country. Network resources with this `mcc` in their `identifiers` will be read. |
| mnc? | string | The 'mobile network code' of a mobile operator network. Network resources with this `mnc` in their `identifiers` will be read. |
| max_items? | number | Stop after this many results (default 200, ceiling 1000000). Raise deliberately: Twilio's message and call logs are effectively endless, and every result becomes its own data artifact. When the walk stops here with rows still on offer, the network_lookup record reports truncated: true. |
fn sync()
Sync network state from Twilio
Resources
state(infinite)— Network resource state
network_lookup(infinite)— Network lookup coverage — whether the page walk exhausted the collection
@keeb/twilio/supersim/network-access-profilev2026.08.25.2network_access_profile.ts
Global Arguments
| Argument | Type | Description |
|---|---|---|
| account_sid? | string | Twilio Account SID (starts with AC). Also substituted for {AccountSid} path parameters. Overrides the TWILIO_ACCOUNT_SID environment variable. |
| name | string | Instance name for this resource (used as the unique identifier in the factory pattern) |
| unique_name? | 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. |
| networks? | array | List of Network SIDs that this Network Access Profile will allow connections to. |
| auth_token? | string | Twilio auth token, used as the HTTP Basic password when no API key is set. Overrides TWILIO_AUTH_TOKEN. Wire with a vault.get(...) expression to source it from a vault. |
| api_key_sid? | string | Twilio API key SID (starts with SK). Takes precedence over auth_token. Overrides TWILIO_API_KEY_SID. |
| api_key_secret? | string | Twilio API key secret, paired with api_key_sid. Overrides TWILIO_API_KEY_SECRET. Wire with a vault.get(...) expression to source it from a vault. |
fn create()
Create a network access profile
fn get(id: string)
Get a network access profile
| Argument | Type | Description |
|---|---|---|
| id | string | The sid of the network access profile |
fn lookup(max_items?: number)
List network access profiles and record each as a data artifact (capped at 200 by default; writes a network_access_profile_lookup record with the coverage of the walk)
| Argument | Type | Description |
|---|---|---|
| max_items? | number | Stop after this many results (default 200, ceiling 1000000). Raise deliberately: Twilio's message and call logs are effectively endless, and every result becomes its own data artifact. When the walk stops here with rows still on offer, the network_access_profile_lookup record reports truncated: true. |
fn update()
Update network access profile attributes
fn sync()
Sync network access profile state from Twilio
Resources
state(infinite)— Network access profile resource state
network_access_profile_lookup(infinite)— Network access profile lookup coverage — whether the page walk exhausted the collection
@keeb/twilio/supersim/network-access-profile-networkv2026.08.25.2network_access_profile_network.ts
Global Arguments
| Argument | Type | Description |
|---|---|---|
| account_sid? | string | Twilio Account SID (starts with AC). Also substituted for {AccountSid} path parameters. Overrides the TWILIO_ACCOUNT_SID environment variable. |
| network_access_profile_sid | string | Path scope for the network access profile network: network_access_profile_sid |
| name | string | Instance name for this resource (used as the unique identifier in the factory pattern) |
| network | string | The SID of the Network resource to be added to the Network Access Profile resource. |
| auth_token? | string | Twilio auth token, used as the HTTP Basic password when no API key is set. Overrides TWILIO_AUTH_TOKEN. Wire with a vault.get(...) expression to source it from a vault. |
| api_key_sid? | string | Twilio API key SID (starts with SK). Takes precedence over auth_token. Overrides TWILIO_API_KEY_SID. |
| api_key_secret? | string | Twilio API key secret, paired with api_key_sid. Overrides TWILIO_API_KEY_SECRET. Wire with a vault.get(...) expression to source it from a vault. |
fn create()
Create a network access profile network
fn get(id: string)
Get a network access profile network
| Argument | Type | Description |
|---|---|---|
| id | string | The sid of the network access profile network |
fn lookup(max_items?: number)
List network access profile networks and record each as a data artifact (capped at 200 by default; writes a network_access_profile_network_lookup record with the coverage of the walk)
| Argument | Type | Description |
|---|---|---|
| max_items? | number | Stop after this many results (default 200, ceiling 1000000). Raise deliberately: Twilio's message and call logs are effectively endless, and every result becomes its own data artifact. When the walk stops here with rows still on offer, the network_access_profile_network_lookup record reports truncated: true. |
fn delete(id: string)
Delete the network access profile network
| Argument | Type | Description |
|---|---|---|
| id | string | The sid of the network access profile network |
fn sync()
Sync network access profile network state from Twilio
Resources
state(infinite)— Network access profile network resource state
network_access_profile_network_lookup(infinite)— Network access profile network lookup coverage — whether the page walk exhausted the collection
@keeb/twilio/supersim/settings-updatev2026.08.25.2settings_update.ts
Global Arguments
| Argument | Type | Description |
|---|---|---|
| account_sid? | string | Twilio Account SID (starts with AC). Also substituted for {AccountSid} path parameters. Overrides the TWILIO_ACCOUNT_SID environment variable. |
| name? | string | Instance name for this resource (used as the unique identifier in the factory pattern) |
| auth_token? | string | Twilio auth token, used as the HTTP Basic password when no API key is set. Overrides TWILIO_AUTH_TOKEN. Wire with a vault.get(...) expression to source it from a vault. |
| api_key_sid? | string | Twilio API key SID (starts with SK). Takes precedence over auth_token. Overrides TWILIO_API_KEY_SID. |
| api_key_secret? | string | Twilio API key secret, paired with api_key_sid. Overrides TWILIO_API_KEY_SECRET. Wire with a vault.get(...) expression to source it from a vault. |
fn lookup(sim?: string, status?: enum, max_items?: number)
List settings updates and record each as a data artifact (capped at 200 by default; writes a settings_update_lookup record with the coverage of the walk)
| Argument | Type | Description |
|---|---|---|
| sim? | string | Filter the Settings Updates by a Super SIM's SID or UniqueName. |
| status? | enum | Filter the Settings Updates by status. Can be `scheduled`, `in-progress`, `successful`, or `failed`. |
| max_items? | number | Stop after this many results (default 200, ceiling 1000000). Raise deliberately: Twilio's message and call logs are effectively endless, and every result becomes its own data artifact. When the walk stops here with rows still on offer, the settings_update_lookup record reports truncated: true. |
Resources
state(infinite)— Settings update resource state
settings_update_lookup(infinite)— Settings update lookup coverage — whether the page walk exhausted the collection
@keeb/twilio/supersim/simv2026.08.25.2sim.ts
Global Arguments
| Argument | Type | Description |
|---|---|---|
| account_sid? | string | Twilio Account SID (starts with AC). Also substituted for {AccountSid} path parameters. Overrides the TWILIO_ACCOUNT_SID environment variable. |
| name | string | Instance name for this resource (used as the unique identifier in the factory pattern) |
| unique_name? | 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. |
| status? | enum | |
| fleet? | string | The SID or unique name of the Fleet to which the SIM resource should be assigned. |
| callback_url? | string | The URL we should call using the `callback_method` after an asynchronous update has finished. |
| callback_method? | enum | The HTTP method we should use to call `callback_url`. Can be: `GET` or `POST` and the default is POST. |
| iccid | string | The [ICCID](https://en.wikipedia.org/wiki/Subscriber_identity_module#ICCID) of the Super SIM to be added to your Account. |
| registration_code | string | The 10-digit code required to claim the Super SIM for your Account. |
| auth_token? | string | Twilio auth token, used as the HTTP Basic password when no API key is set. Overrides TWILIO_AUTH_TOKEN. Wire with a vault.get(...) expression to source it from a vault. |
| api_key_sid? | string | Twilio API key SID (starts with SK). Takes precedence over auth_token. Overrides TWILIO_API_KEY_SID. |
| api_key_secret? | string | Twilio API key secret, paired with api_key_sid. Overrides TWILIO_API_KEY_SECRET. Wire with a vault.get(...) expression to source it from a vault. |
fn create()
Create a sim
fn get(id: string)
Get a sim
| Argument | Type | Description |
|---|---|---|
| id | string | The sid of the sim |
fn lookup(status?: enum, fleet?: string, iccid?: string, max_items?: number)
List sims and record each as a data artifact (capped at 200 by default; writes a sim_lookup record with the coverage of the walk)
| Argument | Type | Description |
|---|---|---|
| status? | enum | The status of the Sim resources to read. Can be `new`, `ready`, `active`, `inactive`, or `scheduled`. |
| fleet? | string | The SID or unique name of the Fleet to which a list of Sims are assigned. |
| iccid? | string | The [ICCID](https://en.wikipedia.org/wiki/Subscriber_identity_module#ICCID) associated with a Super SIM to filter the list by. Passing this parameter will always return a list containing zero or one SIMs. |
| max_items? | number | Stop after this many results (default 200, ceiling 1000000). Raise deliberately: Twilio's message and call logs are effectively endless, and every result becomes its own data artifact. When the walk stops here with rows still on offer, the sim_lookup record reports truncated: true. |
fn update()
Update sim attributes
fn sync()
Sync sim state from Twilio
Resources
state(infinite)— Sim resource state
sim_lookup(infinite)— Sim lookup coverage — whether the page walk exhausted the collection
@keeb/twilio/supersim/sim-ip-addressv2026.08.25.2sim_ip_address.ts
Global Arguments
| Argument | Type | Description |
|---|---|---|
| account_sid? | string | Twilio Account SID (starts with AC). Also substituted for {AccountSid} path parameters. Overrides the TWILIO_ACCOUNT_SID environment variable. |
| sim_sid | string | Path scope for the sim ip address: sim_sid |
| name? | string | Instance name for this resource (used as the unique identifier in the factory pattern) |
| auth_token? | string | Twilio auth token, used as the HTTP Basic password when no API key is set. Overrides TWILIO_AUTH_TOKEN. Wire with a vault.get(...) expression to source it from a vault. |
| api_key_sid? | string | Twilio API key SID (starts with SK). Takes precedence over auth_token. Overrides TWILIO_API_KEY_SID. |
| api_key_secret? | string | Twilio API key secret, paired with api_key_sid. Overrides TWILIO_API_KEY_SECRET. Wire with a vault.get(...) expression to source it from a vault. |
fn lookup(max_items?: number)
List sim ip addresss and record each as a data artifact (capped at 200 by default; writes a sim_ip_address_lookup record with the coverage of the walk)
| Argument | Type | Description |
|---|---|---|
| max_items? | number | Stop after this many results (default 200, ceiling 1000000). Raise deliberately: Twilio's message and call logs are effectively endless, and every result becomes its own data artifact. When the walk stops here with rows still on offer, the sim_ip_address_lookup record reports truncated: true. |
Resources
state(infinite)— Sim ip address resource state
sim_ip_address_lookup(infinite)— Sim ip address lookup coverage — whether the page walk exhausted the collection
@keeb/twilio/supersim/sms-commandv2026.08.25.2sms_command.ts
Global Arguments
| Argument | Type | Description |
|---|---|---|
| account_sid? | string | Twilio Account SID (starts with AC). Also substituted for {AccountSid} path parameters. Overrides the TWILIO_ACCOUNT_SID environment variable. |
| name | string | Instance name for this resource (used as the unique identifier in the factory pattern) |
| sim | string | The `sid` or `unique_name` of the [SIM](https://www.twilio.com/docs/iot/supersim/api/sim-resource) to send the SMS Command to. |
| payload | string | The message body of the SMS Command. |
| callback_method? | enum | The HTTP method we should use to call `callback_url`. Can be: `GET` or `POST` and the default is POST. |
| callback_url? | string | The URL we should call using the `callback_method` after we have sent the command. |
| auth_token? | string | Twilio auth token, used as the HTTP Basic password when no API key is set. Overrides TWILIO_AUTH_TOKEN. Wire with a vault.get(...) expression to source it from a vault. |
| api_key_sid? | string | Twilio API key SID (starts with SK). Takes precedence over auth_token. Overrides TWILIO_API_KEY_SID. |
| api_key_secret? | string | Twilio API key secret, paired with api_key_sid. Overrides TWILIO_API_KEY_SECRET. Wire with a vault.get(...) expression to source it from a vault. |
fn create()
Create a sms command
fn get(id: string)
Get a sms command
| Argument | Type | Description |
|---|---|---|
| id | string | The sid of the sms command |
fn lookup(sim?: string, status?: enum, direction?: enum, max_items?: number)
List sms commands and record each as a data artifact (capped at 200 by default; writes a sms_command_lookup record with the coverage of the walk)
| Argument | Type | Description |
|---|---|---|
| sim? | string | The SID or unique name of the Sim resource that SMS Command was sent to or from. |
| status? | enum | The status of the SMS Command. Can be: `queued`, `sent`, `delivered`, `received` or `failed`. See the [SMS Command Status Values](https://www.twilio.com/docs/iot/supersim/api/smscommand-resource#status-values) for a description of each. |
| direction? | enum | The direction of the SMS Command. Can be `to_sim` or `from_sim`. The value of `to_sim` is synonymous with the term `mobile terminated`, and `from_sim` is synonymous with the term `mobile originated`. |
| max_items? | number | Stop after this many results (default 200, ceiling 1000000). Raise deliberately: Twilio's message and call logs are effectively endless, and every result becomes its own data artifact. When the walk stops here with rows still on offer, the sms_command_lookup record reports truncated: true. |
fn sync()
Sync sms command state from Twilio
Resources
state(infinite)— Sms command resource state
sms_command_lookup(infinite)— Sms command lookup coverage — whether the page walk exhausted the collection
@keeb/twilio/supersim/usage-recordv2026.08.25.2usage_record.ts
Global Arguments
| Argument | Type | Description |
|---|---|---|
| account_sid? | string | Twilio Account SID (starts with AC). Also substituted for {AccountSid} path parameters. Overrides the TWILIO_ACCOUNT_SID environment variable. |
| name? | string | Instance name for this resource (used as the unique identifier in the factory pattern) |
| auth_token? | string | Twilio auth token, used as the HTTP Basic password when no API key is set. Overrides TWILIO_AUTH_TOKEN. Wire with a vault.get(...) expression to source it from a vault. |
| api_key_sid? | string | Twilio API key SID (starts with SK). Takes precedence over auth_token. Overrides TWILIO_API_KEY_SID. |
| api_key_secret? | string | Twilio API key secret, paired with api_key_sid. Overrides TWILIO_API_KEY_SECRET. Wire with a vault.get(...) expression to source it from a vault. |
fn lookup(sim?: string, fleet?: string, network?: string, iso_country?: string, group?: enum, granularity?: enum, start_time?: string, end_time?: string, max_items?: number)
List usage records and record each as a data artifact (capped at 200 by default; writes a usage_record_lookup record with the coverage of the walk)
| Argument | Type | Description |
|---|---|---|
| sim? | string | SID or unique name of a Sim resource. Only show UsageRecords representing usage incurred by this Super SIM. |
| fleet? | string | SID or unique name of a Fleet resource. Only show UsageRecords representing usage for Super SIMs belonging to this Fleet resource at the time the usage occurred. |
| network? | string | SID of a Network resource. Only show UsageRecords representing usage on this network. |
| iso_country? | string | Alpha-2 ISO Country Code. Only show UsageRecords representing usage in this country. |
| group? | enum | Dimension over which to aggregate usage records. Can be: `sim`, `fleet`, `network`, `isoCountry`. Default is to not aggregate across any of these dimensions, UsageRecords will be aggregated into the time buckets described by the `Granularity` parameter. |
| granularity? | enum | Time-based grouping that UsageRecords should be aggregated by. Can be: `hour`, `day`, or `all`. Default is `all`. `all` returns one UsageRecord that describes the usage for the entire period. |
| start_time? | string | Only include usage that occurred at or after this time, specified in [ISO 8601](https://en.wikipedia.org/wiki/ISO_8601) format. Default is one month before the `end_time`. |
| end_time? | string | Only include usage that occurred before this time (exclusive), specified in [ISO 8601](https://en.wikipedia.org/wiki/ISO_8601) format. Default is the current time. |
| max_items? | number | Stop after this many results (default 200, ceiling 1000000). Raise deliberately: Twilio's message and call logs are effectively endless, and every result becomes its own data artifact. When the walk stops here with rows still on offer, the usage_record_lookup record reports truncated: true. |
Resources
state(infinite)— Usage record resource state
usage_record_lookup(infinite)— Usage record lookup coverage — whether the page walk exhausted the collection
04Stats
B
85 / 100
Downloads
0
Archive size
55.7 KB
- Has README or module doc2/2earned
- README has a code example1/1earned
- README is substantive1/1earned
- Most symbols documented1/1earned
- No slow types (deprecated)1/1earned
- Dependencies pass trust audit2/2earned
- Has description1/1earned
- Platform support declared (or universal)2/2earned
- License declared1/1earned
- Verified public repository0/2missing
05Platforms
06Labels