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) Successfully registered SIM cards. | |
Array of objects (Error) |
{- "sim_card_group_id": "6a09cdc3-8948-47f0-aa62-74ac943d6c58",
- "tags": [
- "personal",
- "customers",
- "active-customers"
], - "registration_codes": [
- "0000000001",
- "0000000002",
- "0000000003"
], - "status": "standby"
}
{- "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"
}
], - "errors": [
- {
- "code": "string",
- "title": "string",
- "detail": "string",
- "source": {
- "pointer": "/json/pointer",
- "parameter": "string"
}, - "meta": { }
}
]
}
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.
sim_card_group_id | string <uuid> The group SIMCardGroup identification. This attribute can be |
tags | Array of strings Searchable tags associated with the SIM cards |
amount required | integer >= 1 The amount of eSIMs to be purchased. |
status | string Default: "enabled" Status on which the SIM cards will be set after being successfully registered. |
Successful response
Array of objects (SIMCard) Successfully registered SIM cards. | |
Array of objects (Error) |
{- "sim_card_group_id": "6a09cdc3-8948-47f0-aa62-74ac943d6c58",
- "tags": [
- "personal",
- "customers",
- "active-customers"
], - "amount": 10,
- "status": "standby"
}
{- "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"
}
], - "errors": [
- {
- "code": "string",
- "title": "string",
- "detail": "string",
- "source": {
- "pointer": "/json/pointer",
- "parameter": "string"
}, - "meta": { }
}
]
}
This API allows dispatching the same operation described for the PUT sim_cards/:sim_card_id/network_preferences API for multiple SIM cards at once.
Although, a SIM card network preference may fail individually under any validation triggered as a consequence of its state. For example, a SIM can't have an in-progress OTA update for applying a Network Preference, so they'll fail when requested in this API. In that scenario, the specific error will be present in the response along with the successful definitions in the "errors" response node.
Array of objects (SIMCardNetworkPreferenceWithOTAUpdates) Multi requested SIM cards network preferences. | |
Array of objects (Error) |
{- "sim_card_ids": [
- "6b14e151-8493-4fa1-8664-1cc4e6d14158",
- "6b14e151-8493-4fa1-8664-1cc4e6d14158"
], - "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"
}
], - "errors": [
- {
- "code": "string",
- "title": "string",
- "detail": "string",
- "source": {
- "pointer": "/json/pointer",
- "parameter": "string"
}, - "meta": { }
}
]
}
This API allows listing a paginated collection of Wireless Connectivity Logs associated with a SIM Card, for troubleshooting purposes.
{- "data": [
- {
- "record_type": "wireless_connectivity_log",
- "id": 137509451,
- "sim_card_id": "6a09cdc3-8948-47f0-aa62-74ac943d6c58",
- "log_type": "registration",
- "imsi": "081932214823362973",
- "imei": "490154203237518",
- "mobile_country_code": "310",
- "mobile_network_code": "410",
- "start_time": "2018-02-02T22:25:27.521Z",
- "stop_time": "2018-02-02T22:25:27.521Z",
- "created_at": "2018-02-02T22:25:27.521Z",
- "last_seen": "2018-02-02T22:25:27.521Z",
- "apn": "data00.telnyx",
- "ipv4": "192.168.0.0",
- "ipv6": "2001:cdba:0000:0000:0000:0000:3257:9652",
- "radio_access_technology": "LTE",
- "state": "provisioned",
- "cell_id": "311210-6813"
}
], - "meta": {
- "total_pages": 3,
- "total_results": 55,
- "page_number": 2,
- "page_size": 25
}
}
Lists a paginated collection of SIM card data usage notifications. It enables exploring the collection using specific filters.
{- "data": [
- {
- "id": "79228acc-3f08-4e70-ac68-cb5aae8b537a",
- "sim_card_id": "b34c1683-cd85-4493-b9a5-315eb4bc5e19",
- "threshold": {
- "amount": "2048.0",
- "unit": "MB"
}, - "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
}
}
Creates a new SIM card data usage notification.
Successful response
object (SimCardDataUsageNotification) The SIM card individual data usage notification information. | |||||||||||||
|
{- "sim_card_id": "6a09cdc3-8948-47f0-aa62-74ac943d6c58",
- "threshold": {
- "amount": "2048.1",
- "unit": "MB"
}
}
{- "data": {
- "id": "79228acc-3f08-4e70-ac68-cb5aae8b537a",
- "sim_card_id": "b34c1683-cd85-4493-b9a5-315eb4bc5e19",
- "threshold": {
- "amount": "2048.0",
- "unit": "MB"
}, - "created_at": "2018-02-02T22:25:27.521Z",
- "updated_at": "2018-02-02T22:25:27.521Z"
}
}
Get a single SIM Card Data Usage Notification.
Successful response
object (SimCardDataUsageNotification) The SIM card individual data usage notification information. | |||||||||||||
|
Resource not found
{- "data": {
- "id": "79228acc-3f08-4e70-ac68-cb5aae8b537a",
- "sim_card_id": "b34c1683-cd85-4493-b9a5-315eb4bc5e19",
- "threshold": {
- "amount": "2048.0",
- "unit": "MB"
}, - "created_at": "2018-02-02T22:25:27.521Z",
- "updated_at": "2018-02-02T22:25:27.521Z"
}
}
Updates information for a SIM Card Data Usage Notification.
Successful response
object (SimCardDataUsageNotification) The SIM card individual data usage notification information. | |||||||||||||
|
{- "id": "79228acc-3f08-4e70-ac68-cb5aae8b537a",
- "sim_card_id": "b34c1683-cd85-4493-b9a5-315eb4bc5e19",
- "threshold": {
- "amount": "2048.0",
- "unit": "MB"
}, - "created_at": "2018-02-02T22:25:27.521Z",
- "updated_at": "2018-02-02T22:25:27.521Z"
}
{- "data": {
- "id": "79228acc-3f08-4e70-ac68-cb5aae8b537a",
- "sim_card_id": "b34c1683-cd85-4493-b9a5-315eb4bc5e19",
- "threshold": {
- "amount": "2048.0",
- "unit": "MB"
}, - "created_at": "2018-02-02T22:25:27.521Z",
- "updated_at": "2018-02-02T22:25:27.521Z"
}
}
Delete the SIM Card Data Usage Notification.
Successful response
object (SimCardDataUsageNotification) The SIM card individual data usage notification information. | |||||||||||||
|
{- "data": {
- "id": "79228acc-3f08-4e70-ac68-cb5aae8b537a",
- "sim_card_id": "b34c1683-cd85-4493-b9a5-315eb4bc5e19",
- "threshold": {
- "amount": "2048.0",
- "unit": "MB"
}, - "created_at": "2018-02-02T22:25:27.521Z",
- "updated_at": "2018-02-02T22:25:27.521Z"
}
}
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.
Successful Response
object (BulkSIMCardAction) This object represents a bulk SIM card action. It groups SIM card actions created through a bulk endpoint under a single resource for further lookup. | |||||||||||||
|
{- "sim_card_ids": [
- "6b14e151-8493-4fa1-8664-1cc4e6d14158"
]
}
{- "data": {
- "id": "6a09cdc3-8948-47f0-aa62-74ac943d6c58",
- "record_type": "bulk_sim_card_action",
- "action_type": "bulk_set_public_ips",
- "settings": { },
- "created_at": "2018-02-02T22:25:27.521Z",
- "updated_at": "2018-02-02T22:25:27.521Z"
}
}
This API triggers an asynchronous operation to set network preferences 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.
Successful Response
object (BulkSIMCardAction) This object represents a bulk SIM card action. It groups SIM card actions created through a bulk endpoint under a single resource for further lookup. | |||||||||||||
|
{- "sim_card_ids": [
- "6b14e151-8493-4fa1-8664-1cc4e6d14158"
]
}
{- "data": {
- "id": "6a09cdc3-8948-47f0-aa62-74ac943d6c58",
- "record_type": "bulk_sim_card_action",
- "action_type": "bulk_set_public_ips",
- "settings": { },
- "created_at": "2018-02-02T22:25:27.521Z",
- "updated_at": "2018-02-02T22:25:27.521Z"
}
}