Skip to main content

telnyx-iot-javascript

Manage IoT SIM cards, eSIMs, data plans, and wireless connectivity. Use when building IoT/M2M solutions. This skill provides JavaScript SDK examples.

Source facts

Repository
team-telnyx/telnyx-toolkit
Last source activity
February 10, 2026 at 20:41
Detected SKILL.md language
English
Stars
3
Forks
2

Install options

The review-first prompt is selected by default. You can switch to a direct command or download a local copy.

Review the source files

Read SKILL.md and any companion files shown by SkillsMP before deciding whether to install.

Showing SKILL.md

SKILL.md
Source instructions · Read-only preview
name
telnyx-iot-javascript
description
Manage IoT SIM cards, eSIMs, data plans, and wireless connectivity. Use when building IoT/M2M solutions. This skill provides JavaScript SDK examples.
metadata
{"author":"telnyx","product":"iot","language":"javascript","generated_by":"telnyx-ext-skills-generator"}
<!-- Auto-generated from Telnyx OpenAPI specs. Do not edit. --> # Telnyx Iot - JavaScript ## Installation ```bash npm install telnyx ``` ## Setup ```javascript import Telnyx from 'telnyx'; const client = new Telnyx({ apiKey: process.env['TELNYX_API_KEY'], // This is the default and can be omitted }); ``` All examples below assume `client` is already initialized as shown above. ## Get all wireless regions Retrieve all wireless regions for the given product. `GET /wireless/regions` ```javascript const response = await client.wireless.retrieveRegions({ product: 'public_ips' }); console.log(response.data); ``` ## Get all SIM cards Get all SIM cards belonging to the user that match the given filters. `GET /sim_cards` ```javascript // Automatically fetches more pages as needed. for await (const simpleSimCard of client.simCards.list()) { console.log(simpleSimCard.id); } ``` ## Get SIM card Returns the details regarding a specific SIM card. `GET /sim_cards/{id}` ```javascript const simCard = await client.simCards.retrieve('6a09cdc3-8948-47f0-aa62-74ac943d6c58'); console.log(simCard.data); ``` ## Update a SIM card Updates SIM card data `PATCH /sim_cards/{id}` ```javascript const simCard = await client.simCards.update('6a09cdc3-8948-47f0-aa62-74ac943d6c58'); console.log(simCard.data); ``` ## Deletes a SIM card The SIM card will be decommissioned, removed from your account and you will stop being charged.<br />The SIM card won't be able to connect to the network after the deletion is completed, thus makin... `DELETE /sim_cards/{id}` ```javascript const simCard = await client.simCards.delete('6a09cdc3-8948-47f0-aa62-74ac943d6c58'); console.log(simCard.data); ``` ## Get activation code for an eSIM It returns the activation code for an eSIM.<br/><br/> This API is only available for eSIMs. `GET /sim_cards/{id}/activation_code` ```javascript const response = await client.simCards.getActivationCode('6a09cdc3-8948-47f0-aa62-74ac943d6c58'); console.log(response.data); ``` ## Get SIM card device details It returns the device details where a SIM card is currently being used. `GET /sim_cards/{id}/device_details` ```javascript const response = await client.simCards.getDeviceDetails('6a09cdc3-8948-47f0-aa62-74ac943d6c58'); console.log(response.data); ``` ## Get SIM card public IP definition It returns the public IP requested for a SIM card. `GET /sim_cards/{id}/public_ip` ```javascript const response = await client.simCards.getPublicIP('6a09cdc3-8948-47f0-aa62-74ac943d6c58'); console.log(response.data); ``` ## List wireless connectivity logs This API allows listing a paginated collection of Wireless Connectivity Logs associated with a SIM Card, for troubleshooting purposes. `GET /sim_cards/{id}/wireless_connectivity_logs` ```javascript // Automatically fetches more pages as needed. for await (const simCardListWirelessConnectivityLogsResponse of client.simCards.listWirelessConnectivityLogs( '6a09cdc3-8948-47f0-aa62-74ac943d6c58', )) { console.log(simCardListWirelessConnectivityLogsResponse.id); } ``` ## Request a SIM card disable This API disables a SIM card, disconnecting it from the network and making it impossible to consume data.<br/> The API will trigger an asynchronous operation called a SIM Card Action. `POST /sim_cards/{id}/actions/disable` ```javascript const response = await client.simCards.actions.disable('6a09cdc3-8948-47f0-aa62-74ac943d6c58'); console.log(response.data); ``` ## Request a SIM card enable This API enables a SIM card, connecting it to the network and making it possible to consume data.<br/> To enable a SIM card, it must be associated with a SIM card group.<br/> The API will trigger a... `POST /sim_cards/{id}/actions/enable` ```javascript const response = await client.simCards.actions.enable('6a09cdc3-8948-47f0-aa62-74ac943d6c58'); console.log(response.data); ``` ## Request removing a SIM card public IP This API removes an existing public IP from a SIM card. `POST /sim_cards/{id}/actions/remove_public_ip` ```javascript const response = await client.simCards.actions.removePublicIP( '6a09cdc3-8948-47f0-aa62-74ac943d6c58', ); console.log(response.data); ``` ## Request setting a SIM card public IP This API makes a SIM card reachable on the public internet by mapping a random public IP to the SIM card. `POST /sim_cards/{id}/actions/set_public_ip` ```javascript const response = await client.simCards.actions.setPublicIP('6a09cdc3-8948-47f0-aa62-74ac943d6c58'); console.log(response.data); ``` ## Request setting a SIM card to standby The SIM card will be able to connect to the network once the process to set it to standby has been completed, thus making it possible to consume data.<br/> To set a SIM card to standby, it must be ... `POST /sim_cards/{id}/actions/set_standby` ```javascript const response = await client.simCards.actions.setStandby('6a09cdc3-8948-47f0-aa62-74ac943d6c58'); console.log(response.data); ``` ## Request bulk setting SIM card public IPs. This API triggers an asynchronous operation to set a public IP for each of the specified SIM cards.<br/> For each SIM Card a SIM Card Action will be generated. `POST /sim_cards/actions/bulk_set_public_ips` — Required: `sim_card_ids` ```javascript const response = await client.simCards.actions.bulkSetPublicIPs({ sim_card_ids: ['6b14e151-8493-4fa1-8664-1cc4e6d14158'], }); console.log(response.data); ``` ## Validate SIM cards registration codes It validates whether SIM card registration codes are valid or not. `POST /sim_cards/actions/validate_registration_codes` ```javascript const response = await client.simCards.actions.validateRegistrationCodes(); console.log(response.data); ``` ## List SIM card actions This API lists a paginated collection of SIM card actions. `GET /sim_card_actions` ```javascript // Automatically fetches more pages as needed. for await (const simCardAction of client.simCards.actions.list()) { console.log(simCardAction.id); } ``` ## Get SIM card action details This API fetches detailed information about a SIM card action to follow-up on an existing asynchronous operation. `GET /sim_card_actions/{id}` ```javascript const action = await client.simCards.actions.retrieve('6a09cdc3-8948-47f0-aa62-74ac943d6c58'); console.log(action.data); ``` ## List bulk SIM card actions This API lists a paginated collection of bulk SIM card actions. `GET /bulk_sim_card_actions` ```javascript // Automatically fetches more pages as needed. for await (const bulkSimCardActionListResponse of client.bulkSimCardActions.list()) { console.log(bulkSimCardActionListResponse.id); } ``` ## Get bulk SIM card action details This API fetches information about a bulk SIM card action. `GET /bulk_sim_card_actions/{id}` ```javascript const bulkSimCardAction = await client.bulkSimCardActions.retrieve( '6a09cdc3-8948-47f0-aa62-74ac943d6c58', ); console.log(bulkSimCardAction.data); ``` ## Get all SIM card groups Get all SIM card groups belonging to the user that match the given filters. `GET /sim_card_groups` ```javascript // Automatically fetches more pages as needed. for await (const simCardGroupListResponse of client.simCardGroups.list()) { console.log(simCardGroupListResponse.id); } ``` ## Create a SIM card group Creates a new SIM card group object `POST /sim_card_groups` — Required: `name` ```javascript const simCardGroup = await client.simCardGroups.create({ name: 'My Test Group' }); console.log(simCardGroup.data); ``` ## Get SIM card group Returns the details regarding a specific SIM card group `GET /sim_card_groups/{id}` ```javascript const simCardGroup = await client.simCardGroups.retrieve('6a09cdc3-8948-47f0-aa62-74ac943d6c58'); console.log(simCardGroup.data); ``` ## Update a SIM card group Updates a SIM card group `PATCH /sim_card_groups/{id}` ```javascript const simCardGroup = await client.simCardGroups.update('6a09cdc3-8948-47f0-aa62-74ac943d6c58'); console.log(simCardGroup.data); ``` ## Delete a SIM card group Permanently deletes a SIM card group `DELETE /sim_card_groups/{id}` ```javascript const simCardGroup = await client.simCardGroups.delete('6a09cdc3-8948-47f0-aa62-74ac943d6c58'); console.log(simCardGroup.data); ``` ## Request Private Wireless Gateway removal from SIM card group This action will asynchronously remove an existing Private Wireless Gateway definition from a SIM card group. `POST /sim_card_groups/{id}/actions/remove_private_wireless_gateway` ```javascript const response = await client.simCardGroups.actions.removePrivateWirelessGateway( '6a09cdc3-8948-47f0-aa62-74ac943d6c58', ); console.log(response.data); ``` ## Request Wireless Blocklist removal from SIM card group This action will asynchronously remove an existing Wireless Blocklist to all the SIMs in the SIM card group. `POST /sim_card_groups/{id}/actions/remove_wireless_blocklist` ```javascript const response = await client.simCardGroups.actions.removeWirelessBlocklist( '6a09cdc3-8948-47f0-aa62-74ac943d6c58', ); console.log(response.data); ``` ## Request Private Wireless Gateway assignment for SIM card group This action will asynchronously assign a provisioned Private Wireless Gateway to the SIM card group. `POST /sim_card_groups/{id}/actions/set_private_wireless_gateway` — Required: `private_wireless_gateway_id` ```javascript const response = await client.simCardGroups.actions.setPrivateWirelessGateway( '6a09cdc3-8948-47f0-aa62-74ac943d6c58', { private_wireless_gateway_id: '6a09cdc3-8948-47f0-aa62-74ac943d6c58' }, ); console.log(response.data); ``` ## Request Wireless Blocklist assignment for SIM card group This action will asynchronously assign a Wireless Blocklist to all the SIMs in the SIM card group. `POST /sim_card_groups/{id}/actions/set_wireless_blocklist` — Required: `wireless_blocklist_id` ```javascript const response = await client.simCardGroups.actions.setWirelessBlocklist( '6a09cdc3-8948-47f0-aa62-74ac943d6c58', { wireless_blocklist_id: '6a09cdc3-8948-47f0-aa62-74ac943d6c58' }, ); console.log(response.data); ``` ## List SIM card group actions This API allows listing a paginated collection a SIM card group actions. `GET /sim_card_group_actions` ```javascript // Automatically fetches more pages as needed. for await (const simCardGroupAction of client.simCardGroups.actions.list()) { console.log(simCardGroupAction.id); } ``` ## Get SIM card group action details This API allows fetching detailed information about a SIM card group action resource to make follow-ups in an existing asynchronous operation. `GET /sim_card_group_actions/{id}` ```javascript const action = await client.simCardGroups.actions.retrieve('6a09cdc3-8948-47f0-aa62-74ac943d6c58'); console.log(action.data); ``` ## Get all SIM card orders Get all SIM card orders according to filters. `GET /sim_card_orders` ```javascript // Automatically fetches more pages as needed. for await (const simCardOrder of client.simCardOrders.list()) { console.log(simCardOrder.id); } ``` ## Create a SIM card order Creates a new order for SIM cards. `POST /sim_card_orders` — Required: `address_id`, `quantity` ```javascript const simCardOrder = await client.simCardOrders.create({ address_id: '1293384261075731499', quantity: 23, }); console.log(simCardOrder.data); ``` ## Get a single SIM card order Get a single SIM card order by its ID. `GET /sim_card_orders/{id}` ```javascript const simCardOrder = await client.simCardOrders.retrieve('6a09cdc3-8948-47f0-aa62-74ac943d6c58'); console.log(simCardOrder.data); ``` ## Preview SIM card orders Preview SIM card order purchases. `POST /sim_card_order_preview` — Required: `quantity`, `address_id` ```javascript const response = await client.simCardOrderPreview.preview({ address_id: '1293384261075731499', quantity: 21, }); console.log(response.data); ``` ## List SIM card data usage notifications Lists a paginated collection of SIM card data usage notifications. `GET /sim_card_data_usage_notifications` ```javascript // Automatically fetches more pages as needed. for await (const simCardDataUsageNotification of client.simCardDataUsageNotifications.list()) { console.log(simCardDataUsageNotification.id); } ``` ## Create a new SIM card data usage notification Creates a new SIM card data usage notification. `POST /sim_card_data_usage_notifications` — Required: `sim_card_id`, `threshold` ```javascript const simCardDataUsageNotification = await client.simCardDataUsageNotifications.create({ sim_card_id: '6a09cdc3-8948-47f0-aa62-74ac943d6c58', threshold: {}, }); console.log(simCardDataUsageNotification.data); ``` ## Get a single SIM card data usage notification Get a single SIM Card Data Usage Notification. `GET /sim_card_data_usage_notifications/{id}` ```javascript const simCardDataUsageNotification = await client.simCardDataUsageNotifications.retrieve(
View on GitHub
This SKILL.md is very large, so SkillsMP previews the first section here. View on GitHub