Get all SIM cards belonging to the user that match the given filters.
{- "data": [
- {
- "id": "6a09cdc3-8948-47f0-aa62-74ac943d6c58",
- "record_type": "sim_card",
- "status": {
- "value": "enabled",
- "reason": "The SIM card is active, ready to connect to networks and consume data."
}, - "type": "physical",
- "iccid": "89310410106543789301",
- "imsi": "081932214823362973",
- "msisdn": "+13109976224",
- "sim_card_group_id": "6a09cdc3-8948-47f0-aa62-74ac943d6c58",
- "tags": [
- "personal",
- "customers",
- "active-customers"
], - "data_limit": {
- "amount": "2048.0",
- "unit": "MB"
}, - "current_billing_period_consumed_data": {
- "amount": "2049.0",
- "unit": "MB"
}, - "actions_in_progress": true,
- "created_at": "2018-02-02T22:25:27.521Z",
- "updated_at": "2018-02-02T22:25:27.521Z"
}
], - "meta": {
- "total_pages": 3,
- "total_results": 55,
- "page_number": 2,
- "page_size": 25
}
}
Returns the details regarding a specific SIM card.
Successful response
{- "data": {
- "id": "6a09cdc3-8948-47f0-aa62-74ac943d6c58",
- "record_type": "sim_card",
- "status": {
- "value": "enabled",
- "reason": "The SIM card is active, ready to connect to networks and consume data."
}, - "type": "physical",
- "iccid": "89310410106543789301",
- "imsi": "081932214823362973",
- "msisdn": "+13109976224",
- "sim_card_group_id": "6a09cdc3-8948-47f0-aa62-74ac943d6c58",
- "tags": [
- "personal",
- "customers",
- "active-customers"
], - "authorized_imeis": [
- "106516771852751",
- "534051870479563",
- "508821468377961"
], - "current_imei": "457032284023794",
- "data_limit": {
- "amount": "2048.1",
- "unit": "MB"
}, - "current_billing_period_consumed_data": {
- "amount": "2049.0",
- "unit": "MB"
}, - "actions_in_progress": true,
- "created_at": "2018-02-02T22:25:27.521Z",
- "updated_at": "2018-02-02T22:25:27.521Z",
- "ipv4": "192.168.0.0",
- "ipv6": "2001:cdba:0000:0000:0000:0000:3257:9652",
- "current_device_location": {
- "latitude": "41.143",
- "longitude": "-8.605",
- "accuracy": 1250,
- "accuracy_unit": "m"
}, - "current_mnc": "260",
- "current_mcc": "410",
- "live_data_session": "connected"
}
}
Updates SIM card data
object (SIMCardStatus) | |
sim_card_group_id | string <uuid> The group SIMCardGroup identification. This attribute can be |
tags | Array of strings Searchable tags associated with the SIM card |
authorized_imeis | Array of strings <int64> List of IMEIs authorized to use a given SIM card. |
object The SIM card individual data limit configuration. |
Successful response
object (SIMCard) | |||||||||||||||||||||||||||||||||||||||||||||
|
{- "status": { },
- "sim_card_group_id": "6a09cdc3-8948-47f0-aa62-74ac943d6c58",
- "tags": [
- "personal",
- "customers",
- "active-customers"
], - "authorized_imeis": [
- "106516771852751",
- "534051870479563",
- "508821468377961"
], - "data_limit": {
- "amount": "2048.1",
- "unit": "MB"
}
}
{- "data": {
- "id": "6a09cdc3-8948-47f0-aa62-74ac943d6c58",
- "record_type": "sim_card",
- "status": {
- "value": "enabled",
- "reason": "The SIM card is active, ready to connect to networks and consume data."
}, - "type": "physical",
- "iccid": "89310410106543789301",
- "imsi": "081932214823362973",
- "msisdn": "+13109976224",
- "sim_card_group_id": "6a09cdc3-8948-47f0-aa62-74ac943d6c58",
- "tags": [
- "personal",
- "customers",
- "active-customers"
], - "authorized_imeis": [
- "106516771852751",
- "534051870479563",
- "508821468377961"
], - "current_imei": "457032284023794",
- "data_limit": {
- "amount": "2048.1",
- "unit": "MB"
}, - "current_billing_period_consumed_data": {
- "amount": "2049.0",
- "unit": "MB"
}, - "actions_in_progress": true,
- "created_at": "2018-02-02T22:25:27.521Z",
- "updated_at": "2018-02-02T22:25:27.521Z",
- "ipv4": "192.168.0.0",
- "ipv6": "2001:cdba:0000:0000:0000:0000:3257:9652",
- "current_device_location": {
- "latitude": "41.143",
- "longitude": "-8.605",
- "accuracy": 1250,
- "accuracy_unit": "m"
}, - "current_mnc": "260",
- "current_mcc": "410",
- "live_data_session": "connected"
}
}
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.
Until the transition is completed, the SIM card status will be disabling disabling
.
In order to re-enable the SIM card, you will need to re-register it.
Successful response
object (SIMCard) | |||||||||||||||||||||||||||||||||||||||||||||
|
{- "data": {
- "id": "6a09cdc3-8948-47f0-aa62-74ac943d6c58",
- "record_type": "sim_card",
- "status": {
- "value": "enabled",
- "reason": "The SIM card is active, ready to connect to networks and consume data."
}, - "type": "physical",
- "iccid": "89310410106543789301",
- "imsi": "081932214823362973",
- "msisdn": "+13109976224",
- "sim_card_group_id": "6a09cdc3-8948-47f0-aa62-74ac943d6c58",
- "tags": [
- "personal",
- "customers",
- "active-customers"
], - "authorized_imeis": [
- "106516771852751",
- "534051870479563",
- "508821468377961"
], - "current_imei": "457032284023794",
- "data_limit": {
- "amount": "2048.1",
- "unit": "MB"
}, - "current_billing_period_consumed_data": {
- "amount": "2049.0",
- "unit": "MB"
}, - "actions_in_progress": true,
- "created_at": "2018-02-02T22:25:27.521Z",
- "updated_at": "2018-02-02T22:25:27.521Z",
- "ipv4": "192.168.0.0",
- "ipv6": "2001:cdba:0000:0000:0000:0000:3257:9652",
- "current_device_location": {
- "latitude": "41.143",
- "longitude": "-8.605",
- "accuracy": 1250,
- "accuracy_unit": "m"
}, - "current_mnc": "260",
- "current_mcc": "410",
- "live_data_session": "connected"
}
}
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. The status of the SIM Card Action can be followed through the List SIM Card Action API.
Successful Response
object (SIMCardAction) This object represents a SIM card action. It allows tracking the current status of an operation that impacts the SIM card. | |||||||||||||||||
|
Unprocessable entity. Check the 'detail' field in response for details.
{- "data": {
- "id": "6a09cdc3-8948-47f0-aa62-74ac943d6c58",
- "record_type": "sim_card_action",
- "sim_card_id": "6a09cdc3-8948-47f0-aa62-74ac943d6c58",
- "action_type": "enable",
- "status": {
- "value": "completed",
- "reason": "The data limit was exceeded."
}, - "settings": { },
- "created_at": "2018-02-02T22:25:27.521Z",
- "updated_at": "2018-02-02T22:25:27.521Z"
}
}
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. The status of the SIM Card Action can be followed through the List SIM Card Action API.
Successful Response
object (SIMCardAction) This object represents a SIM card action. It allows tracking the current status of an operation that impacts the SIM card. | |||||||||||||||||
|
{- "data": {
- "id": "6a09cdc3-8948-47f0-aa62-74ac943d6c58",
- "record_type": "sim_card_action",
- "sim_card_id": "6a09cdc3-8948-47f0-aa62-74ac943d6c58",
- "action_type": "enable",
- "status": {
- "value": "completed",
- "reason": "The data limit was exceeded."
}, - "settings": { },
- "created_at": "2018-02-02T22:25:27.521Z",
- "updated_at": "2018-02-02T22:25:27.521Z"
}
}
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. The status of the SIM Card Action can be followed through the List SIM Card Action API.
Successful Response
object (SIMCardAction) This object represents a SIM card action. It allows tracking the current status of an operation that impacts the SIM card. | |||||||||||||||||
|
{- "data": {
- "id": "6a09cdc3-8948-47f0-aa62-74ac943d6c58",
- "record_type": "sim_card_action",
- "sim_card_id": "6a09cdc3-8948-47f0-aa62-74ac943d6c58",
- "action_type": "enable",
- "status": {
- "value": "completed",
- "reason": "The data limit was exceeded."
}, - "settings": { },
- "created_at": "2018-02-02T22:25:27.521Z",
- "updated_at": "2018-02-02T22:25:27.521Z"
}
}
It validates whether SIM card registration codes are valid or not.
Successful
{- "registration_codes": [
- "123456780",
- "1231231230"
]
}
{- "data": [
- {
- "record_type": "sim_card_registration_code_validation",
- "registration_code": "0123456789",
- "valid": false,
- "invalid_detail": "This code has already been used."
}
]
}
This API sets network preferences for a SIM card.
Every SIM card has default network preferences defined on Telnyx. These preferences will determine how a SIMCard will connect to the network by considering a list of preferable operators.
The SIM card needs to be attached to the network so this can connect and SMS must be available, otherwise, the operation will fail. This preference will only be respected if the network is available, otherwise the strongest signal will be used.
The API will trigger an asynchronous operation called a SIM Card Action. Creating network preferences may take a period of time. The status of the SIM Card Action can be followed through the List SIM Card Action API.
Successful Response
object (SIMCardAction) This object represents a SIM card action. It allows tracking the current status of an operation that impacts the SIM card. | |||||||||||||||||
|
Unprocessable entity. Check the 'detail' field in response for details.
{- "data": {
- "id": "6a09cdc3-8948-47f0-aa62-74ac943d6c58",
- "record_type": "sim_card_action",
- "sim_card_id": "6a09cdc3-8948-47f0-aa62-74ac943d6c58",
- "action_type": "enable",
- "status": {
- "value": "completed",
- "reason": "The data limit was exceeded."
}, - "settings": { },
- "created_at": "2018-02-02T22:25:27.521Z",
- "updated_at": "2018-02-02T22:25:27.521Z"
}
}
This API deletes network preferences for a SIM card.
The API will trigger an asynchronous operation called a SIM Card Action. Creating network preferences may take a period of time. The status of the SIM Card Action can be followed through the List SIM Card Action API.
Successful Response
object (SIMCardAction) This object represents a SIM card action. It allows tracking the current status of an operation that impacts the SIM card. | |||||||||||||||||
|
Unprocessable entity. Check the 'detail' field in response for details.
{- "data": {
- "id": "6a09cdc3-8948-47f0-aa62-74ac943d6c58",
- "record_type": "sim_card_action",
- "sim_card_id": "6a09cdc3-8948-47f0-aa62-74ac943d6c58",
- "action_type": "enable",
- "status": {
- "value": "completed",
- "reason": "The data limit was exceeded."
}, - "settings": { },
- "created_at": "2018-02-02T22:25:27.521Z",
- "updated_at": "2018-02-02T22:25:27.521Z"
}
}
This API allows setting or updating a SIM card network preference.
Every SIM card has default network preferences defined on Telnyx. These preferences will determine how a SIMCard will connect to the network by considering a list of preferable operators.
There can be multiple scenarios where an operator can be preferred over another, for example, when a specific mobile operator can provide better network latency or better pricing.
Array of objects (MobileNetworkOperatorPreferencesRequest) A list of mobile network operators and the priority that should be applied when the SIM is connecting to the network. | |||||
Array
|
A successful network preferences definition response.
The sent mobile_network_operators_preferences parameter won't be applied to the main resource right away - this is an asynchronous operation. While interacting with this API, you will face the following scenarios:
The returned OTA updated (present in the ota_updates node) will, by default, be the resource related to the operation, not all of them.
object (SIMCardNetworkPreferenceWithOTAUpdates) | |||||||||||||
|
{- "mobile_network_operators_preferences": [
- {
- "mobile_network_operator_id": "6a09cdc3-8948-47f0-aa62-74ac943d6c58",
- "priority": 0
}
]
}
{- "data": {
- "record_type": "sim_card_network_preferences",
- "sim_card_id": "6b14e151-8493-4fa1-8664-1cc4e6d14158",
- "mobile_network_operators_preferences": [
- {
- "mobile_network_operator_id": "6a09cdc3-8948-47f0-aa62-74ac943d6c58",
- "mobile_network_operator_name": "AT&T Mobility (USACG)",
- "priority": 0
}
], - "ota_updates": [
- {
- "created_at": "2018-02-02T22:25:27.521Z",
- "id": "6a09cdc3-8948-47f0-aa62-74ac943d6c58",
- "record_type": "ota_update",
- "settings": {
- "mobile_network_operators_preferences": [
- {
- "mobile_network_operator_id": "6a09cdc3-8948-47f0-aa62-74ac943d6c58",
- "mobile_network_operator_name": "AT&T Mobility (USACG)",
- "priority": 0
}
]
}, - "sim_card_id": "6a09cdc3-8948-47f0-aa62-74ac943d6c58",
- "status": "in-progress",
- "type": "sim_card_network_preferences",
- "updated_at": "2018-02-02T22:25:27.521Z"
}
], - "created_at": "2018-02-02T22:25:27.521Z",
- "updated_at": "2018-02-02T22:25:27.521Z"
}
}
It returns the network preferences currently applied in the SIM card.
A successful network preferences definition response.
object (SIMCardNetworkPreferenceWithOTAUpdates) | |||||||||||||
|
{- "data": {
- "record_type": "sim_card_network_preferences",
- "sim_card_id": "6b14e151-8493-4fa1-8664-1cc4e6d14158",
- "mobile_network_operators_preferences": [
- {
- "mobile_network_operator_id": "6a09cdc3-8948-47f0-aa62-74ac943d6c58",
- "mobile_network_operator_name": "AT&T Mobility (USACG)",
- "priority": 0
}
], - "ota_updates": [
- {
- "created_at": "2018-02-02T22:25:27.521Z",
- "id": "6a09cdc3-8948-47f0-aa62-74ac943d6c58",
- "record_type": "ota_update",
- "settings": {
- "mobile_network_operators_preferences": [
- {
- "mobile_network_operator_id": "6a09cdc3-8948-47f0-aa62-74ac943d6c58",
- "mobile_network_operator_name": "AT&T Mobility (USACG)",
- "priority": 0
}
]
}, - "sim_card_id": "6a09cdc3-8948-47f0-aa62-74ac943d6c58",
- "status": "in-progress",
- "type": "sim_card_network_preferences",
- "updated_at": "2018-02-02T22:25:27.521Z"
}
], - "created_at": "2018-02-02T22:25:27.521Z",
- "updated_at": "2018-02-02T22:25:27.521Z"
}
}
This API asynchronously removes the custom-defined network preferences settings. After this operation is done the Telnyx default settings, the same applied for an unaltered SIM card, will be in place.
A successful network preferences deletion response.
The delete won't be done right away - this is an asynchronous operation. The request will return the resource with an in-progress OTA update resource (in the ota_updates node) representing the delete operation. Similarly to the PUT API, the resource will only be deleted when the OTA updated is successfully completed.
object (SIMCardNetworkPreferenceWithOTAUpdates) | |||||||||||||
|
{- "data": {
- "record_type": "sim_card_network_preferences",
- "sim_card_id": "6b14e151-8493-4fa1-8664-1cc4e6d14158",
- "mobile_network_operators_preferences": [
- {
- "mobile_network_operator_id": "6a09cdc3-8948-47f0-aa62-74ac943d6c58",
- "mobile_network_operator_name": "AT&T Mobility (USACG)",
- "priority": 0
}
], - "ota_updates": [
- {
- "created_at": "2018-02-02T22:25:27.521Z",
- "id": "6a09cdc3-8948-47f0-aa62-74ac943d6c58",
- "record_type": "ota_update",
- "settings": {
- "mobile_network_operators_preferences": [
- {
- "mobile_network_operator_id": "6a09cdc3-8948-47f0-aa62-74ac943d6c58",
- "mobile_network_operator_name": "AT&T Mobility (USACG)",
- "priority": 0
}
]
}, - "sim_card_id": "6a09cdc3-8948-47f0-aa62-74ac943d6c58",
- "status": "in-progress",
- "type": "sim_card_network_preferences",
- "updated_at": "2018-02-02T22:25:27.521Z"
}
], - "created_at": "2018-02-02T22:25:27.521Z",
- "updated_at": "2018-02-02T22:25:27.521Z"
}
}
It returns the public IP requested for a SIM card.
Successful response
object (SIMCardPublicIP) | |||||||||||||
|
{- "data": {
- "record_type": "sim_card_public_ip",
- "sim_card_id": "6b14e151-8493-4fa1-8664-1cc4e6d14158",
- "type": "ipv4",
- "ip": "192.168.0.0",
- "created_at": "2018-02-02T22:25:27.521Z",
- "updated_at": "2018-02-02T22:25:27.521Z"
}
}
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. The status of the SIM Card Action can be followed through the List SIM Card Action API.
Setting a Public IP to a SIM Card incurs a charge and will only succeed if the account has sufficient funds.
Successful Response
object (SIMCardAction) This object represents a SIM card action. It allows tracking the current status of an operation that impacts the SIM card. | |||||||||||||||||
|
{- "data": {
- "id": "6a09cdc3-8948-47f0-aa62-74ac943d6c58",
- "record_type": "sim_card_action",
- "sim_card_id": "6a09cdc3-8948-47f0-aa62-74ac943d6c58",
- "action_type": "enable",
- "status": {
- "value": "completed",
- "reason": "The data limit was exceeded."
}, - "settings": { },
- "created_at": "2018-02-02T22:25:27.521Z",
- "updated_at": "2018-02-02T22:25:27.521Z"
}
}
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.
Successful Response
object (SIMCardAction) This object represents a SIM card action. It allows tracking the current status of an operation that impacts the SIM card. | |||||||||||||||||
|
{- "data": {
- "id": "6a09cdc3-8948-47f0-aa62-74ac943d6c58",
- "record_type": "sim_card_action",
- "sim_card_id": "6a09cdc3-8948-47f0-aa62-74ac943d6c58",
- "action_type": "enable",
- "status": {
- "value": "completed",
- "reason": "The data limit was exceeded."
}, - "settings": { },
- "created_at": "2018-02-02T22:25:27.521Z",
- "updated_at": "2018-02-02T22:25:27.521Z"
}
}
It returns the device details where a SIM card is currently being used.
Successful response
object (SIMCardDeviceDetails) | |||||||||||||
|
{- "data": {
- "record_type": "device_details",
- "imei": "457032284023794",
- "model_name": "iPad Pro 11 2020 Cellular",
- "brand_name": "Apple",
- "device_type": "Tablet",
- "operating_system": "iOS 12"
}
}
It returns the contents for the activation QR 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.
Successful response
{- "data": {
- "record_type": "sim_card_activation_code",
- "activation_code": "LPA:1$...."
}
}
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.
sim_card_group_id | string <uuid> The group SIMCardGroup identification. This attribute can be |
tags | Array of strings Searchable tags associated with the SIM card |
registration_codes required | Array of strings |
status | string Default: "enabled" Status on which the SIM card will be set after being successful registered. |
Successful response
Array of objects (SIMCard) |