Install any skill in seconds. Free to start, no credit card required.
Get Started Free →Manage IoT SIM cards, eSIMs, data plans, and wireless connectivity. Use when building IoT/M2M solutions. This skill provides Go SDK examples.
.claude/skills/team-telnyx-telnyx-iot-go/SKILL.md| Test case | Without → With | Effect | Δ tokens | Δ turns |
|---|---|---|---|---|
| case-01 | ✗→✓ | ▲ Improved | 644% | 0% |
| case-02 | ✗→✓ | ▲ Improved | 517% | 0% |
| case-03 | ✗→✓ | ▲ Improved | 641% | 0% |
| case-04 | ✗→✓ | ▲ Improved | 693% | 0% |
| case-13 | ✗→✓ | ▲ Improved | 697% | 0% |
<!-- Auto-generated from Telnyx OpenAPI specs. Do not edit. -->
bashgo get github.com/team-telnyx/telnyx-go
goimport ( "context" "fmt" "os" "github.com/team-telnyx/telnyx-go" "github.com/team-telnyx/telnyx-go/option" ) client := telnyx.NewClient( option.WithAPIKey(os.Getenv("TELNYX_API_KEY")), )
All examples below assume client is already initialized as shown above.
All API calls can fail with network errors, rate limits (429), validation errors (422), or authentication errors (401). Always handle errors in production code:
goimport "errors" result, err := client.Messages.Send(ctx, params) if err != nil { var apiErr *telnyx.Error if errors.As(err, &apiErr) { switch apiErr.StatusCode { case 422: fmt.Println("Validation error — check required fields and formats") case 429: // Rate limited — wait and retry with exponential backoff fmt.Println("Rate limited, retrying...") default: fmt.Printf("API error %d: %s\n", apiErr.StatusCode, apiErr.Error()) } } else { fmt.Println("Network error — check connectivity and retry") } }
Common error codes: 401 invalid API key, 403 insufficient permissions, 404 resource not found, 422 validation error (check field formats), 429 rate limited (retry with exponential backoff).
ListAutoPaging() for automatic iteration: iter := client.Resource.ListAutoPaging(ctx, params); for iter.Next() { item := iter.Current() }.Purchases and registers the specified amount of eSIMs to the current user's account. If sim_card_group_id is provided, the eSIMs will be associated with that group. Otherwise, the default group for the current user will be used.
POST /actions/purchase/esims — Required: amount
Optional: product (string), sim_card_group_id (uuid), status (enum: enabled, disabled, standby), tags (arraystring]), whitelabel_name (string)
gopurchase, err := client.Actions.Purchase.New(context.Background(), telnyx.ActionPurchaseNewParams{ Amount: 10, }) if err != nil { log.Fatal(err) } fmt.Printf("%+v\n", purchase.Data)
Returns: actions_in_progress (boolean), authorized_imeis (array | null), created_at (string), current_billing_period_consumed_data (object), data_limit (object), eid (string | null), esim_installation_status (enum: released, disabled), iccid (string), id (uuid), imsi (string), msisdn (string), record_type (string), resources_with_in_progress_actions (arrayobject]), sim_card_group_id (uuid), status (object), tags (arraystring]), type (enum: physical, esim), updated_at (string), version (string), voice_enabled (boolean)
Register the SIM cards associated with the provided registration codes to the current user's account. If sim_card_group_id is provided, the SIM cards will be associated with that group. Otherwise, the default group for the current user will be used.
POST /actions/register/sim_cards — Required: registration_codes
Optional: sim_card_group_id (uuid), status (enum: enabled, disabled, standby), tags (arraystring])
goregister, err := client.Actions.Register.New(context.Background(), telnyx.ActionRegisterNewParams{ RegistrationCodes: []string{"0000000001", "0000000002", "0000000003"}, }) if err != nil { log.Fatal(err) } fmt.Printf("%+v\n", register.Data)
Returns: actions_in_progress (boolean), authorized_imeis (array | null), created_at (string), current_billing_period_consumed_data (object), data_limit (object), eid (string | null), esim_installation_status (enum: released, disabled), iccid (string), id (uuid), imsi (string), msisdn (string), record_type (string), resources_with_in_progress_actions (arrayobject]), sim_card_group_id (uuid), status (object), tags (arraystring]), type (enum: physical, esim), updated_at (string), version (string), voice_enabled (boolean)
This API lists a paginated collection of bulk SIM card actions. A bulk SIM card action contains details about a collection of individual SIM card actions.
GET /bulk_sim_card_actions
gopage, err := client.BulkSimCardActions.List(context.Background(), telnyx.BulkSimCardActionListParams{}) if err != nil { log.Fatal(err) } fmt.Printf("%+v\n", page)
Returns: action_type (enum: bulk_disable_voice, bulk_enable_voice, bulk_set_public_ips), created_at (string), id (uuid), record_type (string), settings (object), sim_card_actions_summary (arrayobject]), updated_at (string)
This API fetches information about a bulk SIM card action. A bulk SIM card action contains details about a collection of individual SIM card actions.
GET /bulk_sim_card_actions/{id}
gobulkSimCardAction, err := client.BulkSimCardActions.Get(context.Background(), "6a09cdc3-8948-47f0-aa62-74ac943d6c58") if err != nil { log.Fatal(err) } fmt.Printf("%+v\n", bulkSimCardAction.Data)
Returns: action_type (enum: bulk_disable_voice, bulk_enable_voice, bulk_set_public_ips), created_at (string), id (uuid), record_type (string), settings (object), sim_card_actions_summary (arrayobject]), updated_at (string)
GET /ota_updates
gopage, err := client.OtaUpdates.List(context.Background(), telnyx.OtaUpdateListParams{}) if err != nil { log.Fatal(err) } fmt.Printf("%+v\n", page)
Returns: created_at (string), id (uuid), record_type (string), sim_card_id (uuid), status (enum: in-progress, completed, failed), type (enum: sim_card_network_preferences), updated_at (string)
This API returns the details of an Over the Air (OTA) update.
GET /ota_updates/{id}
gootaUpdate, err := client.OtaUpdates.Get(context.Background(), "6a09cdc3-8948-47f0-aa62-74ac943d6c58") if err != nil { log.Fatal(err) } fmt.Printf("%+v\n", otaUpdate.Data)
Returns: created_at (string), id (uuid), record_type (string), settings (object), sim_card_id (uuid), status (enum: in-progress, completed, failed), type (enum: sim_card_network_preferences), updated_at (string)
This API lists a paginated collection of SIM card actions. It enables exploring a collection of existing asynchronous operations using specific filters.
GET /sim_card_actions
gopage, err := client.SimCards.Actions.List(context.Background(), telnyx.SimCardActionListParams{}) if err != nil { log.Fatal(err) } fmt.Printf("%+v\n", page)
Returns: action_type (enum: enable, enable_standby_sim_card, disable, set_standby), created_at (string), id (uuid), record_type (string), settings (object | null), sim_card_id (uuid), status (object), updated_at (string)
This API fetches detailed information about a SIM card action to follow-up on an existing asynchronous operation.
GET /sim_card_actions/{id}
goaction, err := client.SimCards.Actions.Get(context.Background(), "6a09cdc3-8948-47f0-aa62-74ac943d6c58") if err != nil { log.Fatal(err) } fmt.Printf("%+v\n", action.Data)
Returns: action_type (enum: enable, enable_standby_sim_card, disable, set_standby), created_at (string), id (uuid), record_type (string), settings (object | null), sim_card_id (uuid), status (object), updated_at (string)
Lists a paginated collection of SIM card data usage notifications. It enables exploring the collection using specific filters.
GET /sim_card_data_usage_notifications
gopage, err := client.SimCardDataUsageNotifications.List(context.Background(), telnyx.SimCardDataUsageNotificationListParams{}) if err != nil { log.Fatal(err) } fmt.Printf("%+v\n", page)
Returns: created_at (string), id (uuid), record_type (string), sim_card_id (uuid), threshold (object), updated_at (string)
Creates a new SIM card data usage notification.
POST /sim_card_data_usage_notifications — Required: sim_card_id, threshold
gosimCardDataUsageNotification, err := client.SimCardDataUsageNotifications.New(context.Background(), telnyx.SimCardDataUsageNotificationNewParams{ SimCardID: "6a09cdc3-8948-47f0-aa62-74ac943d6c58", Threshold: telnyx.SimCardDataUsageNotificationNewParamsThreshold{}, }) if err != nil { log.Fatal(err) } fmt.Printf("%+v\n", simCardDataUsageNotification.Data)
Returns: created_at (string), id (uuid), record_type (string), sim_card_id (uuid), threshold (object), updated_at (string)
Get a single SIM Card Data Usage Notification.
GET /sim_card_data_usage_notifications/{id}
gosimCardDataUsageNotification, err := client.SimCardDataUsageNotifications.Get(context.Background(), "6a09cdc3-8948-47f0-aa62-74ac943d6c58") if err != nil { log.Fatal(err) } fmt.Printf("%+v\n", simCardDataUsageNotification.Data)
Returns: created_at (string), id (uuid), record_type (string), sim_card_id (uuid), threshold (object), updated_at (string)
Updates information for a SIM Card Data Usage Notification.
PATCH /sim_card_data_usage_notifications/{id}
Optional: created_at (string), id (uuid), record_type (string), sim_card_id (uuid), threshold (object), updated_at (string)
gosimCardDataUsageNotification, err := client.SimCardDataUsageNotifications.Update( context.Background(), "6a09cdc3-8948-47f0-aa62-74ac943d6c58", telnyx.SimCardDataUsageNotificationUpdateParams{ SimCardDataUsageNotification: telnyx.SimCardDataUsageNotificationParam{}, }, ) if err != nil { log.Fatal(err) } fmt.Printf("%+v\n", simCardDataUsageNotification.Data)
Returns: created_at (string), id (uuid), record_type (string), sim_card_id (uuid), threshold (object), updated_at (string)
Delete the SIM Card Data Usage Notification.
DELETE /sim_card_data_usage_notifications/{id}
gosimCardDataUsageNotification, err := client.SimCardDataUsageNotifications.Delete(context.Background(), "6a09cdc3-8948-47f0-aa62-74ac943d6c58") if err != nil { log.Fatal(err) } fmt.Printf("%+v\n", simCardDataUsageNotification.Data)
Returns: created_at (string), id (uuid), record_type (string), sim_card_id (uuid), threshold (object), updated_at (string)
This API allows listing a paginated collection a SIM card group actions. It allows to explore a collection of existing asynchronous operation using specific filters.
GET /sim_card_group_actions
gopage, err := client.SimCardGroups.Actions.List(context.Background(), telnyx.SimCardGroupActionListParams{}) if err != nil { log.Fatal(err) } fmt.Printf("%+v\n", page)
Returns: created_at (string), id (uuid), record_type (string), settings (object), sim_card_group_id (uuid), status (enum: in-progress, completed, failed), type (enum: set_private_wireless_gateway, remove_private_wireless_gateway, set_wireless_blocklist, remove_wireless_blocklist), updated_at (string)
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}
goaction, err := client.SimCardGroups.Actions.Get(context.Background(), "6a09cdc3-8948-47f0-aa62-74ac943d6c58") if err != nil { log.Fatal(err) } fmt.Printf("%+v\n", action.Data)
Returns: created_at (string), id (uuid), record_type (string), settings (object), sim_card_group_id (uuid), status (enum: in-progress, completed, failed), type (enum: set_private_wireless_gateway, remove_private_wireless_gateway, set_wireless_blocklist, remove_wireless_blocklist), updated_at (string)
Get all SIM card groups belonging to the user that match the given filters.
GET /sim_card_groups
gopage, err := client.SimCardGroups.List(context.Background(), telnyx.SimCardGroupListParams{}) if err != nil { log.Fatal(err) } fmt.Printf("%+v\n", page)
Returns: consumed_data (object), created_at (string), data_limit (object), default (boolean), id (uuid), name (string), private_wireless_gateway_id (uuid), record_type (string), sim_card_count (integer), updated_at (string), wireless_blocklist_id (uuid)
Creates a new SIM card group object
POST /sim_card_groups — Required: name
Optional: data_limit (object)
gosimCardGroup, err := client.SimCardGroups.New(context.Background(), telnyx.SimCardGroupNewParams{ Name: "My Test Group", }) if err != nil { log.Fatal(err) } fmt.Printf("%+v\n", simCardGroup.Data)
Returns: consumed_data (object), created_at (string), data_limit (object), default (boolean), id (uuid), name (string), private_wireless_gateway_id (uuid), record_type (string), updated_at (string), wireless_blocklist_id (uuid)
Returns the details regarding a specific SIM card group
GET /sim_card_groups/{id}
gosimCardGroup, err := client.SimCardGroups.Get( context.Background(), "6a09cdc3-8948-47f0-aa62-74ac943d6c58", telnyx.SimCardGroupGetParams{}, ) if err != nil { log.Fatal(err) } fmt.Printf("%+v\n", simCardGroup.Data)
Returns: consumed_data (object), created_at (string), data_limit (object), default (boolean), id (uuid), name (string), private_wireless_gateway_id (uuid), record_type (string), updated_at (string), wireless_blocklist_id (uuid)
Updates a SIM card group
PATCH /sim_card_groups/{id}
Optional: data_limit (object), name (string)
gosimCardGroup, err := client.SimCardGroups.Update( context.Background(), "6a09cdc3-8948-47f0-aa62-74ac943d6c58", telnyx.SimCardGroupUpdateParams{}, ) if err != nil { log.Fatal(err) } fmt.Printf("%+v\n", simCardGroup.Data)
Returns: consumed_data (object), created_at (string), data_limit (object), default (boolean), id (uuid), name (string), private_wireless_gateway_id (uuid), record_type (string), updated_at (string), wireless_blocklist_id (uuid)
Permanently deletes a SIM card group
DELETE /sim_card_groups/{id}
gosimCardGroup, err := client.SimCardGroups.Delete(context.Background(), "6a09cdc3-8948-47f0-aa62-74ac943d6c58") if err != nil { log.Fatal(err) } fmt.Printf("%+v\n", simCardGroup.Data)
Returns: consumed_data (object), created_at (string), data_limit (object), default (boolean), id (uuid), name (string), private_wireless_gateway_id (uuid), record_type (string), updated_at (string), wireless_blocklist_id (uuid)
This action will asynchronously remove an existing Private Wireless Gateway definition from a SIM card group. Completing this operation defines that all SIM cards in the SIM card group will get their traffic handled by Telnyx's default mobile network configuration.
POST /sim_card_groups/{id}/actions/remove_private_wireless_gateway
goresponse, err := client.SimCardGroups.Actions.RemovePrivateWirelessGateway(context.Background(), "6a09cdc3-8948-47f0-aa62-74ac943d6c58") if err != nil { log.Fatal(err) } fmt.Printf("%+v\n", response.Data)
Returns: created_at (string), id (uuid), record_type (string), settings (object), sim_card_group_id (uuid), status (enum: in-progress, completed, failed), type (enum: set_private_wireless_gateway, remove_private_wireless_gateway, set_wireless_blocklist, remove_wireless_blocklist), updated_at (string)
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
goresponse, err := client.SimCardGroups.Actions.RemoveWirelessBlocklist(context.Background(), "6a09cdc3-8948-47f0-aa62-74ac943d6c58") if err != nil { log.Fatal(err) } fmt.Printf("%+v\n", response.Data)
Returns: created_at (string), id (uuid), record_type (string), settings (object), sim_card_group_id (uuid), status (enum: in-progress, completed, failed), type (enum: set_private_wireless_gateway, remove_private_wireless_gateway, set_wireless_blocklist, remove_wireless_blocklist), updated_at (string)
This action will asynchronously assign a provisioned Private Wireless Gateway to the SIM card group. Completing this operation defines that all SIM cards in the SIM card group will get their traffic controlled by the associated Private Wireless Gateway. This operation will also imply that new SIM cards assigned to a group will inherit its network definitions.
POST /sim_card_groups/{id}/actions/set_private_wireless_gateway — Required: private_wireless_gateway_id
goresponse, err := client.SimCardGroups.Actions.SetPrivateWirelessGateway( context.Background(), "6a09cdc3-8948-47f0-aa62-74ac943d6c58", telnyx.SimCardGroupActionSetPrivateWirelessGatewayParams{ PrivateWirelessGatewayID: "6a09cdc3-8948-47f0-aa62-74ac943d6c58", }, ) if err != nil { log.Fatal(err) } fmt.Printf("%+v\n", response.Data)
Returns: created_at (string), id (uuid), record_type (string), settings (object), sim_card_group_id (uuid), status (enum: in-progress, completed, failed), type (enum: set_private_wireless_gateway, remove_private_wireless_gateway, set_wireless_blocklist, remove_wireless_blocklist), updated_at (string)
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
goresponse, err := client.SimCardGroups.Actions.SetWirelessBlocklist( context.Background(), "6a09cdc3-8948-47f0-aa62-74ac943d6c58", telnyx.SimCardGroupActionSetWirelessBlocklistParams{ WirelessBlocklistID: "6a09cdc3-8948-47f0-aa62-74ac943d6c58", }, ) if err != nil { log.Fatal(err) } fmt.Printf("%+v\n", response.Data)
Returns: created_at (string), id (uuid), record_type (string), settings (object), sim_card_group_id (uuid), status (enum: in-progress, completed, failed), type (enum: set_private_wireless_gateway, remove_private_wireless_gateway, set_wireless_blocklist, remove_wireless_blocklist), updated_at (string)
Preview SIM card order purchases.
POST /sim_card_order_preview — Required: quantity, address_id
goresponse, err := client.SimCardOrderPreview.Preview(context.Background(), telnyx.SimCardOrderPreviewPreviewParams{ AddressID: "1293384261075731499", Quantity: 21, }) if err != nil { log.Fatal(err) } fmt.Printf("%+v\n", response.Data)
Returns: quantity (integer), record_type (string), shipping_cost (object), sim_cards_cost (object), total_cost (object)
Get all SIM card orders according to filters.
GET /sim_card_orders
gopage, err := client.SimCardOrders.List(context.Background(), telnyx.SimCardOrderListParams{}) if err != nil { log.Fatal(err) } fmt.Printf("%+v\n", page)
Returns: cost (object), created_at (string), id (uuid), order_address (object), quantity (integer), record_type (string), status (enum: pending, processing, ready_to_ship, shipped, delivered, canceled), tracking_url (uri), updated_at (string)
Creates a new order for SIM cards.
POST /sim_card_orders — Required: address_id, quantity
gosimCardOrder, err := client.SimCardOrders.New(context.Background(), telnyx.SimCardOrderNewParams{ AddressID: "1293384261075731499", Quantity: 23, SimCardGroupID: "550e8400-e29b-41d4-a716-446655440000", }) if err != nil { log.Fatal(err) } fmt.Printf("%+v\n", simCardOrder.Data)
Returns: cost (object), created_at (string), id (uuid), order_address (object), quantity (integer), record_type (string), status (enum: pending, processing, ready_to_ship, shipped, delivered, canceled), tracking_url (uri), updated_at (string)
Get a single SIM card order by its ID.
GET /sim_card_orders/{id}
gosimCardOrder, err := client.SimCardOrders.Get(context.Background(), "6a09cdc3-8948-47f0-aa62-74ac943d6c58") if err != nil { log.Fatal(err) } fmt.Printf("%+v\n", simCardOrder.Data)
Returns: cost (object), created_at (string), id (uuid), order_address (object), quantity (integer), record_type (string), status (enum: pending, processing, ready_to_ship, shipped, delivered, canceled), tracking_url (uri), updated_at (string)
Get all SIM cards belonging to the user that match the given filters.
GET /sim_cards
gopage, err := client.SimCards.List(context.Background(), telnyx.SimCardListParams{}) if err != nil { log.Fatal(err) } fmt.Printf("%+v\n", page)
Returns: actions_in_progress (boolean), authorized_imeis (array | null), created_at (string), current_billing_period_consumed_data (object), data_limit (object), eid (string | null), esim_installation_status (enum: released, disabled), iccid (string), id (uuid), imsi (string), msisdn (string), record_type (string), resources_with_in_progress_actions (arrayobject]), sim_card_group_id (uuid), status (object), tags (arraystring]), type (enum: physical, esim), updated_at (string), version (string), voice_enabled (boolean)
This API triggers an asynchronous operation to disable voice on SIM cards belonging to a specified SIM Card Group. For each SIM Card a SIM Card Action will be generated.
POST /sim_cards/actions/bulk_disable_voice — Required: sim_card_group_id
goresponse, err := client.SimCards.Actions.BulkDisableVoice(context.Background(), telnyx.SimCardActionBulkDisableVoiceParams{ SimCardGroupID: "6b14e151-8493-4fa1-8664-1cc4e6d14158", }) if err != nil { log.Fatal(err) } fmt.Printf("%+v\n", response.Data)
Returns: action_type (enum: bulk_disable_voice, bulk_enable_voice, bulk_set_public_ips), created_at (string), id (uuid), record_type (string), settings (object), updated_at (string)
This API triggers an asynchronous operation to enable voice on SIM cards belonging to a specified SIM Card Group. For each SIM Card a SIM Card Action will be generated.
POST /sim_cards/actions/bulk_enable_voice — Required: sim_card_group_id
goresponse, err := client.SimCards.Actions.BulkEnableVoice(context.Background(), telnyx.SimCardActionBulkEnableVoiceParams{ SimCardGroupID: "6b14e151-8493-4fa1-8664-1cc4e6d14158", }) if err != nil { log.Fatal(err) } fmt.Printf("%+v\n", response.Data)
Returns: action_type (enum: bulk_disable_voice, bulk_enable_voice, bulk_set_public_ips), created_at (string), id (uuid), record_type (string), settings (object), updated_at (string)
This API triggers an asynchronous operation to set a public IP for each of the specified SIM cards. For each SIM Card a SIM Card Action will be generated. The status of the SIM Card Action can be followed through the List SIM Card Action API.
POST /sim_cards/actions/bulk_set_public_ips — Required: sim_card_ids
goresponse, err := client.SimCards.Actions.BulkSetPublicIPs(context.Background(), telnyx.SimCardActionBulkSetPublicIPsParams{ SimCardIDs: []string{"6b14e151-8493-4fa1-8664-1cc4e6d14158"}, }) if err != nil { log.Fatal(err) } fmt.Printf("%+v\n", response.Data)
Returns: action_type (enum: bulk_disable_voice, bulk_enable_voice, bulk_set_public_ips), created_at (string), id (uuid), record_type (string), settings (object), updated_at (string)
It validates whether SIM card registration codes are valid or not.
POST /sim_cards/actions/validate_registration_codes
Optional: registration_codes (arraystring])
goresponse, err := client.SimCards.Actions.ValidateRegistrationCodes(context.Background(), telnyx.SimCardActionValidateRegistrationCodesParams{}) if err != nil { log.Fatal(err) } fmt.Printf("%+v\n", response.Data)
Returns: invalid_detail (string | null), record_type (string), registration_code (string), valid (boolean)
Returns the details regarding a specific SIM card.
GET /sim_cards/{id}
gosimCard, err := client.SimCards.Get( context.Background(), "6a09cdc3-8948-47f0-aa62-74ac943d6c58", telnyx.SimCardGetParams{}, ) if err != nil { log.Fatal(err) } fmt.Printf("%+v\n", simCard.Data)
Returns: actions_in_progress (boolean), authorized_imeis (array | null), created_at (string), current_billing_period_consumed_data (object), current_device_location (object), current_imei (string), current_mcc (string), current_mnc (string), data_limit (object), eid (string | null), esim_installation_status (enum: released, disabled), iccid (string), id (uuid), imsi (string), ipv4 (string), ipv6 (string), live_data_session (enum: connected, disconnected, unknown), msisdn (string), pin_puk_codes (object), record_type (string), resources_with_in_progress_actions (arrayobject]), sim_card_group_id (uuid), status (object), tags (arraystring]), type (enum: physical, esim), updated_at (string), version (string), voice_enabled (boolean)
Updates SIM card data
PATCH /sim_cards/{id}
Optional: actions_in_progress (boolean), authorized_imeis (array | null), created_at (string), current_billing_period_consumed_data (object), current_device_location (object), current_imei (string), current_mcc (string), current_mnc (string), data_limit (object), eid (string | null), esim_installation_status (enum: released, disabled), iccid (string), id (uuid), imsi (string), ipv4 (string), ipv6 (string), live_data_session (enum: connected, disconnected, unknown), msisdn (string), pin_puk_codes (object), record_type (string), resources_with_in_progress_actions (arrayobject]), sim_card_group_id (uuid), status (object), tags (arraystring]), type (enum: physical, esim), updated_at (string), version (string), voice_enabled (boolean)
gosimCard, err := client.SimCards.Update( context.Background(), "6a09cdc3-8948-47f0-aa62-74ac943d6c58", telnyx.SimCardUpdateParams{ SimCard: telnyx.SimCardParam{}, }, ) if err != nil { log.Fatal(err) } fmt.Printf("%+v\n", simCard.Data)
Returns: actions_in_progress (boolean), authorized_imeis (array | null), created_at (string), current_billing_period_consumed_data (object), current_device_location (object), current_imei (string), current_mcc (string), current_mnc (string), data_limit (object), eid (string | null), esim_installation_status (enum: released, disabled), iccid (string), id (uuid), imsi (string), ipv4 (string), ipv6 (string), live_data_session (enum: connected, disconnected, unknown), msisdn (string), pin_puk_codes (object), record_type (string), resources_with_in_progress_actions (arrayobject]), sim_card_group_id (uuid), status (object), tags (arraystring]), type (enum: physical, esim), updated_at (string), version (string), voice_enabled (boolean)
The SIM card will be decommissioned, removed from your account and you will stop being charged. The SIM card won't be able to connect to the network after the deletion is completed, thus making it impossible to consume data. Transitioning to the disabled state may take a period of time.
DELETE /sim_cards/{id}
gosimCard, err := client.SimCards.Delete( context.Background(), "6a09cdc3-8948-47f0-aa62-74ac943d6c58", telnyx.SimCardDeleteParams{}, ) if err != nil { log.Fatal(err) } fmt.Printf("%+v\n", simCard.Data)
Returns: actions_in_progress (boolean), authorized_imeis (array | null), created_at (string), current_billing_period_consumed_data (object), current_device_location (object), current_imei (string), current_mcc (string), current_mnc (string), data_limit (object), eid (string | null), esim_installation_status (enum: released, disabled), iccid (string), id (uuid), imsi (string), ipv4 (string), ipv6 (string), live_data_session (enum: connected, disconnected, unknown), msisdn (string), pin_puk_codes (object), record_type (string), resources_with_in_progress_actions (arrayobject]), sim_card_group_id (uuid), status (object), tags (arraystring]), type (enum: physical, esim), updated_at (string), version (string), voice_enabled (boolean)
This API disables a SIM card, disconnecting it from the network and making it impossible to consume data. The API will trigger an asynchronous operation called a SIM Card Action. Transitioning to the disabled state may take a period of time.
POST /sim_cards/{id}/actions/disable
goresponse, err := client.SimCards.Actions.Disable(context.Background(), "6a09cdc3-8948-47f0-aa62-74ac943d6c58") if err != nil { log.Fatal(err) } fmt.Printf("%+v\n", response.Data)
Returns: action_type (enum: enable, enable_standby_sim_card, disable, set_standby), created_at (string), id (uuid), record_type (string), settings (object | null), sim_card_id (uuid), status (object), updated_at (string)
This API enables a SIM card, connecting it to the network and making it possible to consume data. To enable a SIM card, it must be associated with a SIM card group. The API will trigger an asynchronous operation called a SIM Card Action. Transitioning to the enabled state may take a period of time.
POST /sim_cards/{id}/actions/enable
goresponse, err := client.SimCards.Actions.Enable(context.Background(), "6a09cdc3-8948-47f0-aa62-74ac943d6c58") if err != nil { log.Fatal(err) } fmt.Printf("%+v\n", response.Data)
Returns: action_type (enum: enable, enable_standby_sim_card, disable, set_standby), created_at (string), id (uuid), record_type (string), settings (object | null), sim_card_id (uuid), status (object), updated_at (string)
This API removes an existing public IP from a SIM card. The API will trigger an asynchronous operation called a SIM Card Action. The status of the SIM Card Action can be followed through the List SIM Card Action API.
POST /sim_cards/{id}/actions/remove_public_ip
goresponse, err := client.SimCards.Actions.RemovePublicIP(context.Background(), "6a09cdc3-8948-47f0-aa62-74ac943d6c58") if err != nil { log.Fatal(err) } fmt.Printf("%+v\n", response.Data)
Returns: action_type (enum: enable, enable_standby_sim_card, disable, set_standby), created_at (string), id (uuid), record_type (string), settings (object | null), sim_card_id (uuid), status (object), updated_at (string)
This API makes a SIM card reachable on the public internet by mapping a random public IP to the SIM card. The API will trigger an asynchronous operation called a SIM Card Action.
POST /sim_cards/{id}/actions/set_public_ip
goresponse, err := client.SimCards.Actions.SetPublicIP( context.Background(), "6a09cdc3-8948-47f0-aa62-74ac943d6c58", telnyx.SimCardActionSetPublicIPParams{}, ) if err != nil { log.Fatal(err) } fmt.Printf("%+v\n", response.Data)
Returns: action_type (enum: enable, enable_standby_sim_card, disable, set_standby), created_at (string), id (uuid), record_type (string), settings (object | null), sim_card_id (uuid), status (object), updated_at (string)
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. To set a SIM card to standby, it must be associated with SIM card group. The API will trigger an asynchronous operation called a SIM Card Action. Transitioning to the standby state may take a period of time.
POST /sim_cards/{id}/actions/set_standby
goresponse, err := client.SimCards.Actions.SetStandby(context.Background(), "6a09cdc3-8948-47f0-aa62-74ac943d6c58") if err != nil { log.Fatal(err) } fmt.Printf("%+v\n", response.Data)
Returns: action_type (enum: enable, enable_standby_sim_card, disable, set_standby), created_at (string), id (uuid), record_type (string), settings (object | null), sim_card_id (uuid), status (object), updated_at (string)
It returns the activation code for an eSIM. This API is only available for eSIMs. If the given SIM is a physical SIM card, or has already been installed, an error will be returned.
GET /sim_cards/{id}/activation_code
goresponse, err := client.SimCards.GetActivationCode(context.Background(), "6a09cdc3-8948-47f0-aa62-74ac943d6c58") if err != nil { log.Fatal(err) } fmt.Printf("%+v\n", response.Data)
Returns: activation_code (string), record_type (string)
It returns the device details where a SIM card is currently being used.
GET /sim_cards/{id}/device_details
goresponse, err := client.SimCards.GetDeviceDetails(context.Background(), "6a09cdc3-8948-47f0-aa62-74ac943d6c58") if err != nil { log.Fatal(err) } fmt.Printf("%+v\n", response.Data)
Returns: brand_name (string), device_type (string), imei (string), model_name (string), operating_system (string), record_type (string)
It returns the public IP requested for a SIM card.
GET /sim_cards/{id}/public_ip
goresponse, err := client.SimCards.GetPublicIP(context.Background(), "6a09cdc3-8948-47f0-aa62-74ac943d6c58") if err != nil { log.Fatal(err) } fmt.Printf("%+v\n", response.Data)
Returns: created_at (string), ip (string), record_type (string), region_code (string), sim_card_id (uuid), type (enum: ipv4), updated_at (string)
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
gopage, err := client.SimCards.ListWirelessConnectivityLogs( context.Background(), "6a09cdc3-8948-47f0-aa62-74ac943d6c58", telnyx.SimCardListWirelessConnectivityLogsParams{}, ) if err != nil { log.Fatal(err) } fmt.Printf("%+v\n", page)
Returns: apn (string), cell_id (string), created_at (string), id (integer), imei (string), imsi (string), ipv4 (string), ipv6 (string), last_seen (string), log_type (enum: registration, data), mobile_country_code (string), mobile_network_code (string), radio_access_technology (string), record_type (string), sim_card_id (uuid), start_time (string), state (string), stop_time (string)
GET /storage/migration_source_coverage
goresponse, err := client.Storage.ListMigrationSourceCoverage(context.Background()) if err != nil { log.Fatal(err) } fmt.Printf("%+v\n", response.Data)
Returns: provider (enum: aws), source_region (string)
GET /storage/migration_sources
gomigrationSources, err := client.Storage.MigrationSources.List(context.Background()) if err != nil { log.Fatal(err) } fmt.Printf("%+v\n", migrationSources.Data)
Returns: bucket_name (string), id (string), provider (enum: aws, telnyx), provider_auth (object), source_region (string)
Create a source from which data can be migrated from.
POST /storage/migration_sources — Required: provider, provider_auth, bucket_name
Optional: id (string), source_region (string)
gomigrationSource, err := client.Storage.MigrationSources.New(context.Background(), telnyx.StorageMigrationSourceNewParams{ MigrationSourceParams: telnyx.MigrationSourceParams{ BucketName: "my-bucket", Provider: telnyx.MigrationSourceParamsProviderAws, ProviderAuth: telnyx.MigrationSourceParamsProviderAuth{}, }, }) if err != nil { log.Fatal(err) } fmt.Printf("%+v\n", migrationSource.Data)
Returns: bucket_name (string), id (string), provider (enum: aws, telnyx), provider_auth (object), source_region (string)
GET /storage/migration_sources/{id}
gomigrationSource, err := client.Storage.MigrationSources.Get(context.Background(), "") if err != nil { log.Fatal(err) } fmt.Printf("%+v\n", migrationSource.Data)
Returns: bucket_name (string), id (string), provider (enum: aws, telnyx), provider_auth (object), source_region (string)
DELETE /storage/migration_sources/{id}
gomigrationSource, err := client.Storage.MigrationSources.Delete(context.Background(), "") if err != nil { log.Fatal(err) } fmt.Printf("%+v\n", migrationSource.Data)
Returns: bucket_name (string), id (string), provider (enum: aws, telnyx), provider_auth (object), source_region (string)
GET /storage/migrations
gomigrations, err := client.Storage.Migrations.List(context.Background()) if err != nil { log.Fatal(err) } fmt.Printf("%+v\n", migrations.Data)
Returns: bytes_migrated (integer), bytes_to_migrate (integer), created_at (date-time), eta (date-time), id (string), last_copy (date-time), refresh (boolean), source_id (string), speed (integer), status (enum: pending, checking, migrating, complete, error, stopped), target_bucket_name (string), target_region (string)
Initiate a migration of data from an external provider into Telnyx Cloud Storage. Currently, only S3 is supported.
POST /storage/migrations — Required: source_id, target_bucket_name, target_region
Optional: bytes_migrated (integer), bytes_to_migrate (integer), created_at (date-time), eta (date-time), id (string), last_copy (date-time), refresh (boolean), speed (integer), status (enum: pending, checking, migrating, complete, error, stopped)
gomigration, err := client.Storage.Migrations.New(context.Background(), telnyx.StorageMigrationNewParams{ MigrationParams: telnyx.MigrationParams{ SourceID: "550e8400-e29b-41d4-a716-446655440000", TargetBucketName: "my-target-bucket", TargetRegion: "us-central-1", }, }) if err != nil { log.Fatal(err) } fmt.Printf("%+v\n", migration.Data)
Returns: bytes_migrated (integer), bytes_to_migrate (integer), created_at (date-time), eta (date-time), id (string), last_copy (date-time), refresh (boolean), source_id (string), speed (integer), status (enum: pending, checking, migrating, complete, error, stopped), target_bucket_name (string), target_region (string)
GET /storage/migrations/{id}
gomigration, err := client.Storage.Migrations.Get(context.Background(), "") if err != nil { log.Fatal(err) } fmt.Printf("%+v\n", migration.Data)
Returns: bytes_migrated (integer), bytes_to_migrate (integer), created_at (date-time), eta (date-time), id (string), last_copy (date-time), refresh (boolean), source_id (string), speed (integer), status (enum: pending, checking, migrating, complete, error, stopped), target_bucket_name (string), target_region (string)
POST /storage/migrations/{id}/actions/stop
goresponse, err := client.Storage.Migrations.Actions.Stop(context.Background(), "") if err != nil { log.Fatal(err) } fmt.Printf("%+v\n", response.Data)
Returns: bytes_migrated (integer), bytes_to_migrate (integer), created_at (date-time), eta (date-time), id (string), last_copy (date-time), refresh (boolean), source_id (string), speed (integer), status (enum: pending, checking, migrating, complete, error, stopped), target_bucket_name (string), target_region (string)
GET /v2/mobile_voice_connections
gopage, err := client.MobileVoiceConnections.List(context.Background(), telnyx.MobileVoiceConnectionListParams{}) if err != nil { log.Fatal(err) } fmt.Printf("%+v\n", page)
Returns: active (boolean), connection_name (string), created_at (date-time), id (string), inbound (object), outbound (object), record_type (enum: mobile_voice_connection), tags (arraystring]), updated_at (date-time), webhook_api_version (enum: 1, 2), webhook_event_failover_url (string | null), webhook_event_url (string | null), webhook_timeout_secs (integer | null)
POST /v2/mobile_voice_connections
Optional: active (boolean), connection_name (string), inbound (object), outbound (object), tags (arraystring]), webhook_api_version (enum: 1, 2), webhook_event_failover_url (string | null), webhook_event_url (string | null), webhook_timeout_secs (integer | null)
gomobileVoiceConnection, err := client.MobileVoiceConnections.New(context.Background(), telnyx.MobileVoiceConnectionNewParams{}) if err != nil { log.Fatal(err) } fmt.Printf("%+v\n", mobileVoiceConnection.Data)
Returns: active (boolean), connection_name (string), created_at (date-time), id (string), inbound (object), outbound (object), record_type (enum: mobile_voice_connection), tags (arraystring]), updated_at (date-time), webhook_api_version (enum: 1, 2), webhook_event_failover_url (string | null), webhook_event_url (string | null), webhook_timeout_secs (integer | null)
GET /v2/mobile_voice_connections/{id}
gomobileVoiceConnection, err := client.MobileVoiceConnections.Get(context.Background(), "id") if err != nil { log.Fatal(err) } fmt.Printf("%+v\n", mobileVoiceConnection.Data)
Returns: active (boolean), connection_name (string), created_at (date-time), id (string), inbound (object), outbound (object), record_type (enum: mobile_voice_connection), tags (arraystring]), updated_at (date-time), webhook_api_version (enum: 1, 2), webhook_event_failover_url (string | null), webhook_event_url (string | null), webhook_timeout_secs (integer | null)
PATCH /v2/mobile_voice_connections/{id}
Optional: active (boolean), connection_name (string), inbound (object), outbound (object), tags (arraystring]), webhook_api_version (enum: 1, 2), webhook_event_failover_url (string | null), webhook_event_url (string | null), webhook_timeout_secs (integer)
gomobileVoiceConnection, err := client.MobileVoiceConnections.Update( context.Background(), "id", telnyx.MobileVoiceConnectionUpdateParams{}, ) if err != nil { log.Fatal(err) } fmt.Printf("%+v\n", mobileVoiceConnection.Data)
Returns: active (boolean), connection_name (string), created_at (date-time), id (string), inbound (object), outbound (object), record_type (enum: mobile_voice_connection), tags (arraystring]), updated_at (date-time), webhook_api_version (enum: 1, 2), webhook_event_failover_url (string | null), webhook_event_url (string | null), webhook_timeout_secs (integer | null)
DELETE /v2/mobile_voice_connections/{id}
gomobileVoiceConnection, err := client.MobileVoiceConnections.Delete(context.Background(), "id") if err != nil { log.Fatal(err) } fmt.Printf("%+v\n", mobileVoiceConnection.Data)
Returns: active (boolean), connection_name (string), created_at (date-time), id (string), inbound (object), outbound (object), record_type (enum: mobile_voice_connection), tags (arraystring]), updated_at (date-time), webhook_api_version (enum: 1, 2), webhook_event_failover_url (string | null), webhook_event_url (string | null), webhook_timeout_secs (integer | null)
Retrieve all wireless regions for the given product.
GET /wireless/regions
goresponse, err := client.Wireless.GetRegions(context.Background(), telnyx.WirelessGetRegionsParams{ Product: "public_ips", }) if err != nil { log.Fatal(err) } fmt.Printf("%+v\n", response.Data)
Returns: code (string), inserted_at (date-time), name (string), updated_at (date-time)
Retrieve all wireless blocklist values for a given blocklist type.
GET /wireless_blocklist_values
gowirelessBlocklistValues, err := client.WirelessBlocklistValues.List(context.Background(), telnyx.WirelessBlocklistValueListParams{ Type: telnyx.WirelessBlocklistValueListParamsTypeCountry, }) if err != nil { log.Fatal(err) } fmt.Printf("%+v\n", wirelessBlocklistValues.Data)
Returns: data (object), meta (object)
Get all Wireless Blocklists belonging to the user.
GET /wireless_blocklists
gopage, err := client.WirelessBlocklists.List(context.Background(), telnyx.WirelessBlocklistListParams{}) if err != nil { log.Fatal(err) } fmt.Printf("%+v\n", page)
Returns: created_at (string), id (uuid), name (string), record_type (string), type (enum: country, mcc, plmn), updated_at (string), values (arrayobject])
Create a Wireless Blocklist to prevent SIMs from connecting to certain networks.
POST /wireless_blocklists — Required: name, type, values
gowirelessBlocklist, err := client.WirelessBlocklists.New(context.Background(), telnyx.WirelessBlocklistNewParams{ Name: "My Wireless Blocklist", Type: telnyx.WirelessBlocklistNewParamsTypeCountry, Values: []string{"CA", "US"}, }) if err != nil { log.Fatal(err) } fmt.Printf("%+v\n", wirelessBlocklist.Data)
Returns: created_at (string), id (uuid), name (string), record_type (string), type (enum: country, mcc, plmn), updated_at (string), values (arrayobject])
Retrieve information about a Wireless Blocklist.
GET /wireless_blocklists/{id}
gowirelessBlocklist, err := client.WirelessBlocklists.Get(context.Background(), "6a09cdc3-8948-47f0-aa62-74ac943d6c58") if err != nil { log.Fatal(err) } fmt.Printf("%+v\n", wirelessBlocklist.Data)
Returns: created_at (string), id (uuid), name (string), record_type (string), type (enum: country, mcc, plmn), updated_at (string), values (arrayobject])
Update a Wireless Blocklist.
PATCH /wireless_blocklists/{id}
Optional: name (string), values (arrayobject])
gowirelessBlocklist, err := client.WirelessBlocklists.Update( context.Background(), "6a09cdc3-8948-47f0-aa62-74ac943d6c58", telnyx.WirelessBlocklistUpdateParams{}, ) if err != nil { log.Fatal(err) } fmt.Printf("%+v\n", wirelessBlocklist.Data)
Returns: created_at (string), id (uuid), name (string), record_type (string), type (enum: country, mcc, plmn), updated_at (string), values (arrayobject])
Deletes the Wireless Blocklist.
DELETE /wireless_blocklists/{id}
gowirelessBlocklist, err := client.WirelessBlocklists.Delete(context.Background(), "6a09cdc3-8948-47f0-aa62-74ac943d6c58") if err != nil { log.Fatal(err) } fmt.Printf("%+v\n", wirelessBlocklist.Data)
Returns: created_at (string), id (uuid), name (string), record_type (string), type (enum: country, mcc, plmn), updated_at (string), values (arrayobject])
| Case | Status | Duration (ms) | Turns | Tokens | Tool calls | ||||||||
|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
| Without | With | Δ | Without | With | Δ | Without | With | Δ | Without | With | Δ | ||
case-01 | fail→pass | 11,513 | 7,634 | -34% | 1 | 1 | 0% | 2,416 | 17,977 | +644% | 0 | 0 | — |
case-02 | fail→pass | 16,178 | 12,228 | -24% | 1 | 1 | 0% | 3,047 | 18,800 | +517% | 0 | 0 | — |
case-03 | fail→pass | 12,441 | 17,460 | +40% | 1 | 1 | 0% | 2,441 | 18,089 | +641% | 0 | 0 | — |
case-04 | fail→pass | 11,075 | 5,705 | -48% | 1 | 1 | 0% | 2,180 | 17,291 | +693% | 0 | 0 | — |
case-13 | fail→pass | 10,534 | 3,311 | -69% | 1 | 1 | 0% | 2,113 | 16,845 | +697% | 0 | 0 | — |
case-05 | pass→pass | 15,858 | 12,364 | -22% | 1 | 1 | 0% | 3,097 | 18,472 | +496% | 0 | 0 | — |
case-06 | pass→pass | 9,822 | 8,652 | -12% | 1 | 1 | 0% | 1,888 | 17,874 | +847% | 0 | 0 | — |
case-07 | fail→pass | 10,259 | 8,876 | -13% | 1 | 1 | 0% | 1,972 | 18,066 | +816% | 0 | 0 | — |
case-08 | pass→pass | 9,256 | 3,041 | -67% | 1 | 1 | 0% | 1,782 | 16,784 | +842% | 0 | 0 | — |
case-09 | fail→pass | 11,566 | 5,102 | -56% | 1 | 1 | 0% | 2,246 | 16,923 | +653% | 0 | 0 | — |
case-10 | fail→fail | 11,369 | 6,624 | -42% | 1 | 1 | 0% | 2,070 | 17,585 | +750% | 0 | 0 | — |
case-11 | fail→pass | 13,695 | 5,261 | -62% | 1 | 1 | 0% | 2,685 | 17,228 | +542% | 0 | 0 | — |
case-12 | fail→pass | 12,575 | 3,520 | -72% | 1 | 1 | 0% | 2,405 | 16,919 | +603% | 0 | 0 | — |
case-14 | fail→fail | 13,725 | 8,338 | -39% | 1 | 1 | 0% | 2,566 | 17,964 | +600% | 0 | 0 | — |
case-15 | fail→pass | 13,762 | 7,671 | -44% | 1 | 1 | 0% | 2,664 | 17,794 | +568% | 0 | 0 | — |
case-16 | fail→pass | 13,945 | 3,896 | -72% | 1 | 1 | 0% | 2,681 | 17,051 | +536% | 0 | 0 | — |
case-17 | fail→pass | 10,297 | 5,567 | -46% | 1 | 1 | 0% | 1,881 | 17,359 | +823% | 0 | 0 | — |
case-18 | fail→pass | 15,897 | 3,882 | -76% | 1 | 1 | 0% | 2,899 | 16,982 | +486% | 0 | 0 | — |
case-19 | fail→pass | 8,853 | 2,444 | -72% | 1 | 1 | 0% | 1,579 | 16,637 | +954% | 0 | 0 | — |
case-20 | fail→pass | 14,514 | 12,510 | -14% | 1 | 1 | 0% | 2,614 | 17,258 | +560% | 0 | 0 | — |
case-21 | fail→pass | 18,470 | 4,991 | -73% | 1 | 1 | 0% | 3,562 | 17,275 | +385% | 0 | 0 | — |
case-22 | fail→pass | 14,081 | 5,541 | -61% | 1 | 1 | 0% | 2,620 | 17,313 | +561% | 0 | 0 | — |
case-23 | fail→pass | 13,084 | 6,946 | -47% | 1 | 1 | 0% | 2,421 | 17,601 | +627% | 0 | 0 | — |
case-24 | fail→pass | 15,417 | 5,092 | -67% | 1 | 1 | 0% | 2,978 | 17,290 | +481% | 0 | 0 | — |
case-25 | fail→pass | 20,848 | 3,084 | -85% | 1 | 1 | 0% | 1,147 | 16,794 | +1364% | 0 | 0 | — |
case-26 | fail→pass | 11,635 | 5,621 | -52% | 1 | 1 | 0% | 2,477 | 17,424 | +603% | 0 | 0 | — |
case-27 | fail→pass | 12,362 | 3,628 | -71% | 1 | 1 | 0% | 2,263 | 16,978 | +650% | 0 | 0 | — |
DecimalAI ran this skill against gemini-3.6-flash twice over the same eval suite — once with the skill loaded and once without — and compared the two runs case by case. 27 cases were attempted. The headline lift of +81 percentage points is the difference between those two pass rates over the 27 comparable cases.
Without the skill loaded, the model failed this case. With it loaded, the same prompt on the same model passed. This is one improved case from the latest verified run; every case, including any that regressed, is in the table above.
Other measured skills in the registry, with their headline benchmark lift.