openapi: 3.1.0
info:
contact:
email: support@telnyx.com
description: Telnyx provides global communications and connectivity APIs for developers — including SIP trunking, programmable voice, SMS, MMS, WhatsApp Business Messaging, Call Control, Fax, Wireless (IoT & eSIM), Phone Numbers (DID provisioning & porting), Emergency Services, and Network APIs for private interconnects and edge connectivity. Build, scale, and manage voice, messaging, and data networks with Telnyx's carrier-grade global infrastructure and API-first platform.
title: Telnyx Access Tokens SIM Cards API
version: 2.0.0
x-endpoint-cost: light
servers:
- description: Version 2.0.0 of the Telnyx API
url: https://api.telnyx.com/v2
security:
- bearerAuth: []
tags:
- description: SIM Cards operations
name: SIM Cards
paths:
/actions/purchase/esims:
post:
description: '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.
'
operationId: PurchaseESim
requestBody:
content:
application/json:
schema:
$ref: '#/components/schemas/ESimPurchase'
required: true
responses:
'202':
$ref: '#/components/responses/RegisterSimCardsResponse'
'401':
description: Unauthorized
summary: Purchase eSIMs
tags:
- SIM Cards
x-latency-category: background
/actions/register/sim_cards:
post:
description: '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.
'
operationId: RegisterSimCards
requestBody:
content:
application/json:
schema:
$ref: '#/components/schemas/SIMCardRegistration'
required: true
responses:
'202':
$ref: '#/components/responses/RegisterSimCardsResponse'
'401':
description: Unauthorized
summary: Register SIM cards
tags:
- SIM Cards
x-latency-category: background
/sim_card_data_usage_notifications:
get:
description: Lists a paginated collection of SIM card data usage notifications. It enables exploring the collection using specific filters.
operationId: ListDataUsageNotifications
parameters:
- $ref: '#/components/parameters/wireless_PageNumber'
- $ref: '#/components/parameters/wireless_PageSize'
- $ref: '#/components/parameters/FilterSIMCardId'
responses:
'200':
$ref: '#/components/responses/SimCardDataUsageNotificationCollectionResponse'
'401':
description: Unauthorized
default:
$ref: '#/components/responses/wireless_GenericErrorResponse'
summary: List SIM card data usage notifications
tags:
- SIM Cards
x-latency-category: background
post:
description: Creates a new SIM card data usage notification.
operationId: PostSimCardDataUsageNotification
requestBody:
content:
application/json:
schema:
properties:
sim_card_id:
description: The identification UUID of the related SIM card resource.
example: 6a09cdc3-8948-47f0-aa62-74ac943d6c58
format: uuid
type: string
threshold:
description: Data usage threshold that will trigger the notification.
properties:
amount:
example: '2048.1'
type: string
unit:
enum:
- MB
- GB
example: MB
type: string
type: object
required:
- sim_card_id
- threshold
type: object
required: true
responses:
'201':
$ref: '#/components/responses/CreateSimCardDataUsageNotificationResponse'
'401':
description: Unauthorized
default:
$ref: '#/components/responses/wireless_GenericErrorResponse'
summary: Create a new SIM card data usage notification
tags:
- SIM Cards
x-latency-category: responsive
/sim_card_data_usage_notifications/{id}:
delete:
description: Delete the SIM Card Data Usage Notification.
operationId: DeleteSimCardDataUsageNotifications
parameters:
- $ref: '#/components/parameters/ResourceId'
responses:
'200':
$ref: '#/components/responses/DeleteSimCardDataUsageNotificationResponse'
'401':
description: Unauthorized
default:
$ref: '#/components/responses/wireless_GenericErrorResponse'
summary: Delete SIM card data usage notifications
tags:
- SIM Cards
x-latency-category: responsive
get:
description: Get a single SIM Card Data Usage Notification.
operationId: GetSimCardDataUsageNotification
parameters:
- $ref: '#/components/parameters/ResourceId'
responses:
'200':
$ref: '#/components/responses/GetSimCardDataUsageNotificationResponse'
'404':
$ref: '#/components/responses/wireless_ResourceNotFound'
default:
$ref: '#/components/responses/wireless_GenericErrorResponse'
summary: Get a single SIM card data usage notification
tags:
- SIM Cards
x-latency-category: background
patch:
description: Updates information for a SIM Card Data Usage Notification.
operationId: PatchSimCardDataUsageNotification
parameters:
- $ref: '#/components/parameters/ResourceId'
requestBody:
content:
application/json:
schema:
$ref: '#/components/schemas/SimCardDataUsageNotification'
required: true
responses:
'200':
$ref: '#/components/responses/UpdateSimCardDataUsageNotificationResponse'
'401':
description: Unauthorized
default:
$ref: '#/components/responses/wireless_GenericErrorResponse'
summary: Updates information for a SIM Card Data Usage Notification
tags:
- SIM Cards
x-latency-category: responsive
/sim_cards:
get:
description: Get all SIM cards belonging to the user that match the given filters.
operationId: GetSimCards
parameters:
- $ref: '#/components/parameters/FilterSIMCardConsolidated'
- $ref: '#/components/parameters/wireless_PageConsolidated'
- $ref: '#/components/parameters/IncludeSIMCardGroup'
- $ref: '#/components/parameters/FilterSIMCardGroupId'
- description: Sorts SIM cards by the given field. Defaults to ascending order unless field is prefixed with a minus sign.
example: -current_billing_period_consumed_data.amount
in: query
name: sort
required: false
schema:
enum:
- current_billing_period_consumed_data.amount
- -current_billing_period_consumed_data.amount
type: string
responses:
'200':
$ref: '#/components/responses/SearchSimCardsResponse'
'401':
description: Unauthorized
default:
$ref: '#/components/responses/wireless_GenericErrorResponse'
summary: Get all SIM cards
tags:
- SIM Cards
x-latency-category: responsive
/sim_cards/actions/bulk_disable_voice:
post:
description: '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. The status of the SIM Card Actions can be followed through the [List SIM Card Action](https://developers.telnyx.com/api-reference/sim-card-actions/list-sim-card-actions) API.
The overall status of the Bulk SIM Card Action can be followed through the [List Bulk SIM Card Action](https://developers.telnyx.com/api-reference/sim-card-actions/list-bulk-sim-card-actions) API.
'
operationId: DisableVoiceBulk
requestBody:
content:
application/json:
schema:
properties:
sim_card_group_id:
example: 6b14e151-8493-4fa1-8664-1cc4e6d14158
type: string
required:
- sim_card_group_id
type: object
responses:
'202':
$ref: '#/components/responses/BulkSIMCardActionResponse'
'422':
$ref: '#/components/responses/wireless_UnprocessableEntity'
summary: Request bulk disabling voice on SIM cards.
tags:
- SIM Cards
x-latency-category: background
/sim_cards/actions/bulk_enable_voice:
post:
description: '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. The status of the SIM Card Actions can be followed through the [List SIM Card Action](https://developers.telnyx.com/api-reference/sim-card-actions/list-sim-card-actions) API.
The overall status of the Bulk SIM Card Action can be followed through the [List Bulk SIM Card Action](https://developers.telnyx.com/api-reference/sim-card-actions/list-bulk-sim-card-actions) API.
'
operationId: EnableVoiceBulk
requestBody:
content:
application/json:
schema:
properties:
sim_card_group_id:
example: 6b14e151-8493-4fa1-8664-1cc4e6d14158
type: string
required:
- sim_card_group_id
type: object
responses:
'202':
$ref: '#/components/responses/BulkSIMCardActionResponse'
'422':
$ref: '#/components/responses/wireless_UnprocessableEntity'
summary: Request bulk enabling voice on SIM cards.
tags:
- SIM Cards
x-latency-category: background
/sim_cards/actions/bulk_set_public_ips:
post:
description: '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](https://developers.telnyx.com/api-reference/sim-card-actions/list-sim-card-actions) API.
'
operationId: SetPublicIPsBulk
requestBody:
content:
application/json:
schema:
properties:
sim_card_ids:
example:
- 6b14e151-8493-4fa1-8664-1cc4e6d14158
items:
$ref: '#/components/schemas/wireless_Id'
type: array
required:
- sim_card_ids
type: object
responses:
'202':
$ref: '#/components/responses/BulkSIMCardActionResponse'
'422':
$ref: '#/components/responses/wireless_UnprocessableEntity'
summary: Request bulk setting SIM card public IPs.
tags:
- SIM Cards
x-latency-category: background
/sim_cards/actions/validate_registration_codes:
post:
description: It validates whether SIM card registration codes are valid or not.
operationId: ValidateRegistrationCodes
requestBody:
content:
application/json:
schema:
description: The object containing the Array of SIM card registration codes.
example:
registration_codes:
- '123456780'
- '1231231230'
properties:
registration_codes:
items:
type: string
type: array
type: object
required: true
responses:
'200':
content:
application/json:
schema:
$ref: '#/components/schemas/SIMCardRegistrationCodeValidations'
description: Successful
'401':
description: Unauthorized
default:
$ref: '#/components/responses/wireless_GenericErrorResponse'
summary: Validate SIM cards registration codes
tags:
- SIM Cards
x-latency-category: responsive
/sim_cards/{id}:
delete:
description: '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.'
operationId: DeleteSimCard
parameters:
- $ref: '#/components/parameters/SIMCardId'
- description: Enables deletion of disabled eSIMs that can't be uninstalled from a device. This is irreversible and the eSIM cannot be re-registered.
in: query
name: report_lost
required: false
schema:
default: false
type: boolean
responses:
'200':
$ref: '#/components/responses/DeleteSimCardResponse'
'401':
description: Unauthorized
default:
$ref: '#/components/responses/wireless_GenericErrorResponse'
summary: Deletes a SIM card
tags:
- SIM Cards
x-latency-category: responsive
get:
description: Returns the details regarding a specific SIM card.
operationId: GetSimCard
parameters:
- $ref: '#/components/parameters/SIMCardId'
- $ref: '#/components/parameters/IncludeSIMCardGroup'
- description: When set to true, includes the PIN and PUK codes in the response. These codes are used for SIM card security and unlocking purposes. Available for both physical SIM cards and eSIMs.
in: query
name: include_pin_puk_codes
required: false
schema:
default: false
type: boolean
responses:
'200':
$ref: '#/components/responses/GetSimCardResponse'
'401':
description: Unauthorized
default:
$ref: '#/components/responses/wireless_GenericErrorResponse'
summary: Get SIM card
tags:
- SIM Cards
x-latency-category: responsive
patch:
description: Updates SIM card data
operationId: UpdateSimCard
parameters:
- $ref: '#/components/parameters/SIMCardId'
requestBody:
content:
application/json:
schema:
$ref: '#/components/schemas/SIMCard'
required: true
responses:
'200':
$ref: '#/components/responses/UpdateSimCardResponse'
'401':
description: Unauthorized
default:
$ref: '#/components/responses/wireless_GenericErrorResponse'
summary: Update a SIM card
tags:
- SIM Cards
x-latency-category: responsive
/sim_cards/{id}/actions/disable:
post:
description: '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](https://developers.telnyx.com/api-reference/sim-card-actions/list-sim-card-actions) API.
'
operationId: DisableSimCard
parameters:
- $ref: '#/components/parameters/SIMCardId'
responses:
'202':
$ref: '#/components/responses/SIMCardActionResponse'
'401':
description: Unauthorized
default:
$ref: '#/components/responses/wireless_GenericErrorResponse'
summary: Request a SIM card disable
tags:
- SIM Cards
x-latency-category: background
/sim_cards/{id}/actions/enable:
post:
description: '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](https://developers.telnyx.com/api-reference/sim-card-actions/list-sim-card-actions) API.
'
operationId: EnableSimCard
parameters:
- $ref: '#/components/parameters/SIMCardId'
responses:
'202':
$ref: '#/components/responses/SIMCardActionResponse'
'422':
$ref: '#/components/responses/wireless_UnprocessableEntity'
default:
$ref: '#/components/responses/wireless_GenericErrorResponse'
summary: Request a SIM card enable
tags:
- SIM Cards
x-latency-category: background
/sim_cards/{id}/actions/remove_public_ip:
post:
description: "This API removes an existing public IP from a SIM card.
\n 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](https://developers.telnyx.com/api-reference/sim-card-actions/list-sim-card-actions) API."
operationId: RemoveSimCardPublicIp
parameters:
- $ref: '#/components/parameters/SIMCardId'
responses:
'202':
$ref: '#/components/responses/SIMCardActionResponse'
'401':
description: Unauthorized
default:
$ref: '#/components/responses/wireless_GenericErrorResponse'
summary: Request removing a SIM card public IP
tags:
- SIM Cards
x-latency-category: background
/sim_cards/{id}/actions/set_public_ip:
post:
description: "This API makes a SIM card reachable on the public internet by mapping a random public IP to the SIM card.
\n 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](https://developers.telnyx.com/api-reference/sim-card-actions/list-sim-card-actions) API.
\n Setting a Public IP to a SIM Card incurs a charge and will only succeed if the account has sufficient funds."
operationId: SetSimCardPublicIp
parameters:
- $ref: '#/components/parameters/SIMCardId'
- description: The code of the region where the public IP should be assigned. A list of available regions can be found at the regions endpoint
in: query
name: region_code
required: false
schema:
example: dc2
type: string
responses:
'202':
$ref: '#/components/responses/SIMCardActionResponse'
'401':
description: Unauthorized
default:
$ref: '#/components/responses/wireless_GenericErrorResponse'
summary: Request setting a SIM card public IP
tags:
- SIM Cards
x-latency-category: background
/sim_cards/{id}/actions/set_standby:
post:
description: '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](https://developers.telnyx.com/api-reference/sim-card-actions/list-sim-card-actions) API.
'
operationId: SetSimCardStandby
parameters:
- $ref: '#/components/parameters/SIMCardId'
responses:
'202':
$ref: '#/components/responses/SIMCardActionResponse'
'401':
description: Unauthorized
default:
$ref: '#/components/responses/wireless_GenericErrorResponse'
summary: Request setting a SIM card to standby
tags:
- SIM Cards
x-latency-category: background
/sim_cards/{id}/activation_code:
get:
description: "It returns the activation code for an eSIM.
\n 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.\n"
operationId: GetSimCardActivationCode
parameters:
- $ref: '#/components/parameters/SIMCardId'
responses:
'200':
$ref: '#/components/responses/SIMCardActivationCodeResponse'
'401':
description: Unauthorized
default:
$ref: '#/components/responses/wireless_GenericErrorResponse'
summary: Get activation code for an eSIM
tags:
- SIM Cards
x-latency-category: responsive
/sim_cards/{id}/device_details:
get:
description: 'It returns the device details where a SIM card is currently being used.
'
operationId: GetSimCardDeviceDetails
parameters:
- $ref: '#/components/parameters/SIMCardId'
responses:
'200':
$ref: '#/components/responses/SIMCardDeviceDetailsResponse'
'401':
description: Unauthorized
default:
$ref: '#/components/responses/wireless_GenericErrorResponse'
summary: Get SIM card device details
tags:
- SIM Cards
x-latency-category: responsive
/sim_cards/{id}/public_ip:
get:
description: 'It returns the public IP requested for a SIM card.
'
operationId: GetSimCardPublicIp
parameters:
- $ref: '#/components/parameters/SIMCardId'
responses:
'200':
$ref: '#/components/responses/SIMCardPublicIPResponse'
'401':
description: Unauthorized
default:
$ref: '#/components/responses/wireless_GenericErrorResponse'
summary: Get SIM card public IP definition
tags:
- SIM Cards
x-latency-category: responsive
/sim_cards/{id}/wireless_connectivity_logs:
get:
description: This API allows listing a paginated collection of Wireless Connectivity Logs associated with a SIM Card, for troubleshooting purposes.
operationId: GetWirelessConnectivityLogs
parameters:
- $ref: '#/components/parameters/wireless_PageNumber'
- $ref: '#/components/parameters/wireless_PageSize'
- $ref: '#/components/parameters/SIMCardId'
responses:
'200':
$ref: '#/components/responses/WirelessConnectivityLogCollectionResponse'
'401':
description: Unauthorized
default:
$ref: '#/components/responses/wireless_GenericErrorResponse'
summary: List wireless connectivity logs
tags:
- SIM Cards
x-latency-category: responsive
components:
schemas:
SIMCardRegistrationCodeValidations:
properties:
data:
items:
$ref: '#/components/schemas/SIMCardRegistrationCodeValidation'
type: array
type: object
ESimPurchase:
properties:
amount:
description: The amount of eSIMs to be purchased.
example: 10
minimum: 1
type: integer
product:
description: Type of product to be purchased, specify "whitelabel" to use a custom SPN
example: whitelabel
type: string
sim_card_group_id:
description: The group SIMCardGroup identification. This attribute can be null when it's present in an associated resource.
example: 6a09cdc3-8948-47f0-aa62-74ac943d6c58
format: uuid
type: string
status:
default: enabled
description: Status on which the SIM cards will be set after being successfully registered.
enum:
- enabled
- disabled
- standby
example: standby
type: string
tags:
description: Searchable tags associated with the SIM cards
example:
- personal
- customers
- active-customers
items:
type: string
type: array
whitelabel_name:
description: Service Provider Name (SPN) for the Whitelabel eSIM product. It will be displayed as the mobile service name by operating systems of smartphones. This parameter must only contain letters, numbers and whitespaces.
example: Custom SPN
type: string
required:
- amount
title: SIMCardRegistration
type: object
WirelessConnectivityLog:
description: This object represents a wireless connectivity session log that happened through a SIM card. It aids in finding out potential problems when the SIM is not able to attach properly.
properties:
apn:
description: The Access Point Name (APN) identifies the packet data network that a mobile data user wants to communicate with.
example: data00.telnyx
readOnly: true
type: string
cell_id:
description: The cell ID to which the SIM connected.
example: 311210-6813
readOnly: true
type: string
created_at:
description: ISO 8601 formatted date-time indicating when the record was created.
example: '2018-02-02T22:25:27.521Z'
readOnly: true
type: string
id:
description: Uniquely identifies the session.
example: 137509451
readOnly: true
type: integer
imei:
description: The International Mobile Equipment Identity (or IMEI) is a number, usually unique, that identifies the device currently being used connect to the network.
example: '490154203237518'
readOnly: true
type: string
imsi:
description: 'SIM cards are identified on their individual network operators by a unique International Mobile Subscriber Identity (IMSI).
Mobile network operators connect mobile phone calls and communicate with their market SIM cards using their IMSIs. The IMSI is stored in the Subscriber Identity Module (SIM) inside the device and is sent by the device to the appropriate network. It is used to acquire the details of the device in the Home Location Register (HLR) or the Visitor Location Register (VLR).
'
example: 081932214823362973
readOnly: true
type: string
ipv4:
description: 'The SIM''s address in the currently connected network. This IPv4 address is usually obtained dynamically, so it may vary according to the location or new connections.
'
example: 192.168.0.0
readOnly: true
type: string
ipv6:
description: 'The SIM''s address in the currently connected network. This IPv6 address is usually obtained dynamically, so it may vary according to the location or new connections.
'
example: 2001:cdba:0000:0000:0000:0000:3257:9652
readOnly: true
type: string
last_seen:
description: ISO 8601 formatted date-time indicating when the last heartbeat to the device was successfully recorded.
example: '2018-02-02T22:25:27.521Z'
readOnly: true
type: string
log_type:
description: The type of the session, 'registration' being the initial authentication session and 'data' the actual data transfer sessions.
enum:
- registration
- data
example: registration
readOnly: true
type: string
mobile_country_code:
description: 'It''s a three decimal digit that identifies a country.
This code is commonly seen joined with a Mobile Network Code (MNC) in a tuple that allows identifying a carrier known as PLMN (Public Land Mobile Network) code.'
example: '310'
readOnly: true
type: string
mobile_network_code:
description: "It's a two to three decimal digits that identify a network.
\n This code is commonly seen joined with a Mobile Country Code (MCC) in a tuple that allows identifying a carrier known as PLMN (Public Land Mobile Network) code."
example: '410'
readOnly: true
type: string
radio_access_technology:
description: The radio technology the SIM card used during the session.
example: LTE
readOnly: true
type: string
record_type:
example: wireless_connectivity_log
readOnly: true
type: string
sim_card_id:
description: The identification UUID of the related SIM card resource.
example: 6a09cdc3-8948-47f0-aa62-74ac943d6c58
format: uuid
type: string
start_time:
description: ISO 8601 formatted date-time indicating when the session started.
example: '2018-02-02T22:25:27.521Z'
readOnly: true
type: string
state:
description: The state of the SIM card after when the session happened.
example: provisioned
readOnly: true
type: string
stop_time:
description: ISO 8601 formatted date-time indicating when the session ended.
example: '2018-02-02T22:25:27.521Z'
readOnly: true
type: string
title: WirelessConnectivityLog
type: object
SIMCard:
properties:
actions_in_progress:
default: false
description: Indicate whether the SIM card has any pending (in-progress) actions.
example: true
readOnly: true
type: boolean
authorized_imeis:
description: List of IMEIs authorized to use a given SIM card.
example:
- '106516771852751'
- '534051870479563'
- '508821468377961'
items:
type: string
type:
- array
- 'null'
created_at:
description: ISO 8601 formatted date-time indicating when the resource was created.
example: '2018-02-02T22:25:27.521Z'
readOnly: true
type: string
current_billing_period_consumed_data:
description: The SIM card consumption so far in the current billing cycle.
properties:
amount:
example: '2049.0'
type: string
unit:
default: MB
example: MB
type: string
readOnly: true
type: object
current_device_location:
description: Current physical location data of a given SIM card. Accuracy is given in meters.
properties:
accuracy:
example: 1250
type: integer
accuracy_unit:
default: m
example: m
type: string
latitude:
example: '41.143'
type: string
longitude:
example: '-8.605'
type: string
readOnly: true
type: object
current_imei:
description: IMEI of the device where a given SIM card is currently being used.
example: '457032284023794'
readOnly: true
type: string
current_mcc:
description: 'Mobile Country Code of the current network to which the SIM card is connected. It''s a three decimal digit that identifies a country.
This code is commonly seen joined with a Mobile Network Code (MNC) in a tuple that allows identifying a carrier known as PLMN (Public Land Mobile Network) code.'
example: '410'
readOnly: true
type: string
current_mnc:
description: "Mobile Network Code of the current network to which the SIM card is connected. It's a two to three decimal digits that identify a network.
\n This code is commonly seen joined with a Mobile Country Code (MCC) in a tuple that allows identifying a carrier known as PLMN (Public Land Mobile Network) code."
example: '260'
readOnly: true
type: string
data_limit:
description: The SIM card individual data limit configuration.
properties:
amount:
example: '2048.1'
type: string
unit:
enum:
- MB
- GB
example: MB
type: string
type: object
eid:
description: The Embedded Identity Document (eID) for eSIM cards.
example: null
readOnly: true
type:
- string
- 'null'
esim_installation_status:
description: The installation status of the eSIM. Only applicable for eSIM cards.
enum:
- released
- disabled
example: released
readOnly: true
type:
- string
- 'null'
iccid:
description: 'The ICCID is the identifier of the specific SIM card/chip. Each SIM is internationally identified by its integrated circuit card identifier (ICCID). ICCIDs are stored in the SIM card''s memory and are also engraved or printed on the SIM card body during a process called personalization.
'
example: '89310410106543789301'
readOnly: true
type: string
id:
description: Identifies the resource.
example: 6a09cdc3-8948-47f0-aa62-74ac943d6c58
format: uuid
readOnly: true
type: string
imsi:
description: 'SIM cards are identified on their individual network operators by a unique International Mobile Subscriber Identity (IMSI).
Mobile network operators connect mobile phone calls and communicate with their market SIM cards using their IMSIs. The IMSI is stored in the Subscriber Identity Module (SIM) inside the device and is sent by the device to the appropriate network. It is used to acquire the details of the device in the Home Location Register (HLR) or the Visitor Location Register (VLR).
'
example: 081932214823362973
readOnly: true
type: string
ipv4:
description: 'The SIM''s address in the currently connected network. This IPv4 address is usually obtained dynamically, so it may vary according to the location or new connections.
'
example: 192.168.0.0
readOnly: true
type: string
ipv6:
description: 'The SIM''s address in the currently connected network. This IPv6 address is usually obtained dynamically, so it may vary according to the location or new connections.
'
example: 2001:cdba:0000:0000:0000:0000:3257:9652
readOnly: true
type: string
live_data_session:
description: Indicates whether the device is actively connected to a network and able to run data.
enum:
- connected
- disconnected
- unknown
example: connected
readOnly: true
type: string
msisdn:
description: 'Mobile Station International Subscriber Directory Number (MSISDN) is a number used to identify a mobile phone number internationally.
MSISDN is defined by the E.164 numbering plan. It includes a country code and a National Destination Code which identifies the subscriber''s operator.
'
example: '+13109976224'
readOnly: true
type: string
pin_puk_codes:
description: PIN and PUK codes for the SIM card. Only available when include_pin_puk_codes=true is set in the request.
properties:
pin1:
description: The primary Personal Identification Number (PIN) for the SIM card. This is a 4-digit code used to protect the SIM card from unauthorized use.
example: '1234'
readOnly: true
type: string
pin2:
description: The secondary Personal Identification Number (PIN2) for the SIM card. This is a 4-digit code used for additional security features.
example: '5678'
readOnly: true
type: string
puk1:
description: The primary Personal Unblocking Key (PUK1) for the SIM card. This is an 8-digit code used to unlock the SIM card if PIN1 is entered incorrectly multiple times.
example: '12345678'
readOnly: true
type: string
puk2:
description: The secondary Personal Unblocking Key (PUK2) for the SIM card. This is an 8-digit code used to unlock the SIM card if PIN2 is entered incorrectly multiple times.
example: '87654321'
readOnly: true
type: string
readOnly: true
type: object
record_type:
example: sim_card
readOnly: true
type: string
resources_with_in_progress_actions:
description: List of resources with actions in progress.
example: []
items:
type: object
readOnly: true
type: array
sim_card_group_id:
description: The group SIMCardGroup identification. This attribute can be null when it's present in an associated resource.
example: 6a09cdc3-8948-47f0-aa62-74ac943d6c58
format: uuid
type: string
status:
$ref: '#/components/schemas/SIMCardStatus'
tags:
description: Searchable tags associated with the SIM card
example:
- personal
- customers
- active-customers
items:
type: string
type: array
type:
description: The type of SIM card
enum:
- physical
- esim
example: physical
readOnly: true
type: string
updated_at:
description: ISO 8601 formatted date-time indicating when the resource was updated.
example: '2018-02-02T22:25:27.521Z'
readOnly: true
type: string
version:
description: The version of the SIM card.
example: '4.3'
readOnly: true
type: string
voice_enabled:
default: false
description: Indicates whether voice services are enabled for the SIM card.
example: false
readOnly: true
type: boolean
title: SIMCard
type: object
SimCardDataUsageNotification:
description: The SIM card individual data usage notification information.
example:
created_at: '2018-02-02T22:25:27.521Z'
id: 79228acc-3f08-4e70-ac68-cb5aae8b537a
sim_card_id: b34c1683-cd85-4493-b9a5-315eb4bc5e19
threshold:
amount: '2048.0'
unit: MB
updated_at: '2018-02-02T22:25:27.521Z'
properties:
created_at:
description: ISO 8601 formatted date-time indicating when the resource was created.
example: '2018-02-02T22:25:27.521Z'
readOnly: true
type: string
id:
description: Identifies the resource.
example: 79228acc-3f08-4e70-ac68-cb5aae8b537a
format: uuid
readOnly: true
type: string
record_type:
example: sim_card_data_usage_notification
readOnly: true
type: string
sim_card_id:
description: The identification UUID of the related SIM card resource.
example: b34c1683-cd85-4493-b9a5-315eb4bc5e19
format: uuid
type: string
threshold:
description: Data usage threshold that will trigger the notification.
properties:
amount:
example: '2048.1'
type: string
unit:
enum:
- MB
- GB
example: MB
type: string
type: object
updated_at:
description: ISO 8601 formatted date-time indicating when the resource was updated.
example: '2018-02-02T22:25:27.521Z'
readOnly: true
type: string
type: object
wireless_Id:
description: Identifies the resource.
example: 6a09cdc3-8948-47f0-aa62-74ac943d6c58
format: uuid
readOnly: true
type: string
SIMCardActivationCode:
properties:
activation_code:
description: Contents of the eSIM activation QR code.
example: LPA:1$....
readOnly: true
type: string
record_type:
example: sim_card_activation_code
readOnly: true
type: string
title: SIMCardActivationCode
type: object
wireless_Errors:
properties:
errors:
items:
$ref: '#/components/schemas/wireless_Error'
type: array
type: object
SimpleSIMCard:
properties:
actions_in_progress:
default: false
description: Indicate whether the SIM card has any pending (in-progress) actions.
example: true
readOnly: true
type: boolean
authorized_imeis:
description: List of IMEIs authorized to use a given SIM card.
example:
- '106516771852751'
- '534051870479563'
- '508821468377961'
items:
type: string
type:
- array
- 'null'
created_at:
description: ISO 8601 formatted date-time indicating when the resource was created.
example: '2018-02-02T22:25:27.521Z'
readOnly: true
type: string
current_billing_period_consumed_data:
description: The SIM card consumption so far in the current billing cycle.
properties:
amount:
example: '2049.0'
type: string
unit:
default: MB
example: MB
type: string
readOnly: true
type: object
data_limit:
description: The SIM card individual data limit configuration.
properties:
amount:
example: '2048.0'
type: string
unit:
enum:
- MB
- GB
example: MB
type: string
readOnly: true
type: object
eid:
description: The Embedded Identity Document (eID) for eSIM cards.
example: null
readOnly: true
type:
- string
- 'null'
esim_installation_status:
description: The installation status of the eSIM. Only applicable for eSIM cards.
enum:
- released
- disabled
example: released
readOnly: true
type:
- string
- 'null'
iccid:
description: 'The ICCID is the identifier of the specific SIM card/chip. Each SIM is internationally identified by its integrated circuit card identifier (ICCID). ICCIDs are stored in the SIM card''s memory and are also engraved or printed on the SIM card body during a process called personalization.
'
example: '89310410106543789301'
readOnly: true
type: string
id:
description: Identifies the resource.
example: 6a09cdc3-8948-47f0-aa62-74ac943d6c58
format: uuid
readOnly: true
type: string
imsi:
description: 'SIM cards are identified on their individual network operators by a unique International Mobile Subscriber Identity (IMSI).
Mobile network operators connect mobile phone calls and communicate with their market SIM cards using their IMSIs. The IMSI is stored in the Subscriber Identity Module (SIM) inside the device and is sent by the device to the appropriate network. It is used to acquire the details of the device in the Home Location Register (HLR) or the Visitor Location Register (VLR).
'
example: 081932214823362973
readOnly: true
type: string
msisdn:
description: 'Mobile Station International Subscriber Directory Number (MSISDN) is a number used to identify a mobile phone number internationally.
MSISDN is defined by the E.164 numbering plan. It includes a country code and a National Destination Code which identifies the subscriber''s operator.
'
example: '+13109976224'
readOnly: true
type: string
record_type:
example: sim_card
readOnly: true
type: string
resources_with_in_progress_actions:
description: List of resources with actions in progress.
example: []
items:
type: object
readOnly: true
type: array
sim_card_group_id:
description: The group SIMCardGroup identification. This attribute can be null when it's present in an associated resource.
example: 6a09cdc3-8948-47f0-aa62-74ac943d6c58
format: uuid
type: string
status:
$ref: '#/components/schemas/SIMCardStatus'
tags:
description: Searchable tags associated with the SIM card
example:
- personal
- customers
- active-customers
items:
type: string
type: array
type:
description: The type of SIM card
enum:
- physical
- esim
example: physical
readOnly: true
type: string
updated_at:
description: ISO 8601 formatted date-time indicating when the resource was updated.
example: '2018-02-02T22:25:27.521Z'
readOnly: true
type: string
version:
description: The version of the SIM card.
example: '4.3'
readOnly: true
type: string
voice_enabled:
default: false
description: Indicates whether voice services are enabled for the SIM card.
example: false
readOnly: true
type: boolean
title: SIMCard
type: object
wireless_Error:
properties:
code:
type: string
detail:
type: string
meta:
additionalProperties: true
type: object
source:
properties:
parameter:
description: Indicates which query parameter caused the error.
type: string
pointer:
description: JSON pointer (RFC6901) to the offending entity.
type: string
type: object
title:
type: string
required:
- code
- title
type: object
SIMCardDeviceDetails:
properties:
brand_name:
description: Brand of the device where the SIM card is being used in.
example: Apple
readOnly: true
type: string
device_type:
description: Type of the device where the SIM card is being used in.
example: Tablet
readOnly: true
type: string
imei:
description: IMEI of the device where the SIM card is being used in.
example: '457032284023794'
readOnly: true
type: string
model_name:
description: Brand of the device where the SIM card is being used in.
example: iPad Pro 11 2020 Cellular
readOnly: true
type: string
operating_system:
description: Operating system of the device where the SIM card is being used in.
example: iOS 12
readOnly: true
type: string
record_type:
example: device_details
readOnly: true
type: string
title: SIMCardDeviceDetails
type: object
SIMCardRegistrationCodeValidation:
properties:
invalid_detail:
description: The validation message
example: This code has already been used.
type:
- string
- 'null'
record_type:
example: sim_card_registration_code_validation
type: string
registration_code:
description: The 10-digit SIM card registration code
example: 0123456789
type: string
valid:
description: The attribute that denotes whether the code is valid or not
example: false
type: boolean
type: object
wireless_CreatedAt:
description: ISO 8601 formatted date-time indicating when the resource was created.
example: '2018-02-02T22:25:27.521Z'
readOnly: true
type: string
BulkSIMCardAction:
description: 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.
properties:
action_type:
description: 'The action type. It can be one of the following:
bulk_disable_voice - disable voice for every SIM Card in a SIM Card Group.bulk_enable_voice - enable voice for every SIM Card in a SIM Card Group.bulk_set_public_ips - set a public IP for each specified SIM Card.null when it's present in an associated resource.
example: 6a09cdc3-8948-47f0-aa62-74ac943d6c58
format: uuid
type: string
status:
default: enabled
description: Status on which the SIM card will be set after being successful registered.
enum:
- enabled
- disabled
- standby
example: standby
type: string
tags:
description: Searchable tags associated with the SIM card
example:
- personal
- customers
- active-customers
items:
type: string
type: array
required:
- registration_codes
title: SIMCardRegistration
type: object
PaginationMeta:
properties:
page_number:
example: 2
type: integer
page_size:
example: 25
type: integer
total_pages:
example: 3
type: integer
total_results:
example: 55
type: integer
type: object
SIMCardPublicIP:
properties:
created_at:
description: ISO 8601 formatted date-time indicating when the resource was created.
example: '2018-02-02T22:25:27.521Z'
readOnly: true
type: string
ip:
default: null
description: The provisioned IP address. This attribute will only be available when underlying resource status is in a "provisioned" status.
example: 192.168.0.0
readOnly: true
type: string
record_type:
example: sim_card_public_ip
readOnly: true
type: string
region_code:
example: dc2
readOnly: true
type: string
sim_card_id:
example: 6b14e151-8493-4fa1-8664-1cc4e6d14158
format: uuid
type: string
type:
default: ipv4
enum:
- ipv4
example: ipv4
readOnly: true
type: string
updated_at:
description: ISO 8601 formatted date-time indicating when the resource was updated.
example: '2018-02-02T22:25:27.521Z'
readOnly: true
type: string
title: SIMCardPublicIP
type: object
SIMCardStatus:
properties:
reason:
description: It describes why the SIM card is in the current status.
example: The SIM card is active, ready to connect to networks and consume data.
readOnly: true
type: string
value:
description: "The current status of the SIM card. It will be one of the following: registering - the card is being registeredenabling - the card is being enabledenabled - the card is enabled and ready for usedisabling - the card is being disableddisabled - the card has been disabled and cannot be useddata_limit_exceeded - the card has exceeded its data consumption limitsetting_standby - the process to set the card in stand by is in progressstandby - the card is in stand byenable - move the SIM card to the enabled statusenable_standby_sim_card - move a SIM card previously on the standby status to the enabled status after it consumes data.disable - move the SIM card to the disabled statusset_standby - move the SIM card to the standby statusnull for self-explanatory statuses, such as in-progress and completed but will include further information on statuses like interrupted and failed.
example: The data limit was exceeded.
readOnly: true
type: string
value:
description: The current status of the SIM card action.
enum:
- in-progress
- completed
- failed
- interrupted
example: completed
readOnly: true
type: string
type: object
updated_at:
$ref: '#/components/schemas/wireless_UpdatedAt'
title: SIMCardAction
type: object
wireless_UpdatedAt:
description: ISO 8601 formatted date-time indicating when the resource was updated.
example: '2018-02-02T22:25:27.521Z'
readOnly: true
type: string
responses:
SIMCardDeviceDetailsResponse:
content:
application/json:
schema:
properties:
data:
$ref: '#/components/schemas/SIMCardDeviceDetails'
type: object
description: Successful response
wireless_ResourceNotFound:
content:
application/json:
schema:
$ref: '#/components/schemas/wireless_Error'
description: Resource not found
RegisterSimCardsResponse:
content:
application/json:
schema:
properties:
data:
description: Successfully registered SIM cards.
items:
$ref: '#/components/schemas/SimpleSIMCard'
type: array
errors:
items:
$ref: '#/components/schemas/wireless_Error'
type: array
type: object
description: Successful response
DeleteSimCardResponse:
content:
application/json:
schema:
properties:
data:
$ref: '#/components/schemas/SIMCard'
type: object
description: Successful response
GetSimCardResponse:
content:
application/json:
schema:
properties:
data:
$ref: '#/components/schemas/SIMCard'
type: object
description: Successful response
WirelessConnectivityLogCollectionResponse:
content:
application/json:
schema:
properties:
data:
items:
$ref: '#/components/schemas/WirelessConnectivityLog'
type: array
meta:
$ref: '#/components/schemas/PaginationMeta'
type: object
description: Successful Response
SIMCardActivationCodeResponse:
content:
application/json:
schema:
properties:
data:
$ref: '#/components/schemas/SIMCardActivationCode'
type: object
description: Successful response
BulkSIMCardActionResponse:
content:
application/json:
schema:
properties:
data:
$ref: '#/components/schemas/BulkSIMCardAction'
type: object
description: Successful Response
SimCardDataUsageNotificationCollectionResponse:
content:
application/json:
schema:
properties:
data:
items:
$ref: '#/components/schemas/SimCardDataUsageNotification'
type: array
meta:
$ref: '#/components/schemas/PaginationMeta'
type: object
description: Successful Response
DeleteSimCardDataUsageNotificationResponse:
content:
application/json:
schema:
properties:
data:
$ref: '#/components/schemas/SimCardDataUsageNotification'
type: object
description: Successful Response
SIMCardPublicIPResponse:
content:
application/json:
schema:
properties:
data:
$ref: '#/components/schemas/SIMCardPublicIP'
type: object
description: Successful response
SIMCardActionResponse:
content:
application/json:
schema:
properties:
data:
$ref: '#/components/schemas/SIMCardAction'
type: object
description: Successful Response
SearchSimCardsResponse:
content:
application/json:
schema:
properties:
data:
items:
$ref: '#/components/schemas/SimpleSIMCard'
type: array
meta:
$ref: '#/components/schemas/PaginationMeta'
type: object
description: Successful response
CreateSimCardDataUsageNotificationResponse:
content:
application/json:
schema:
properties:
data:
$ref: '#/components/schemas/SimCardDataUsageNotification'
type: object
description: Successful Response
GetSimCardDataUsageNotificationResponse:
content:
application/json:
schema:
properties:
data:
$ref: '#/components/schemas/SimCardDataUsageNotification'
type: object
description: Successful Response
wireless_UnprocessableEntity:
content:
application/json:
schema:
$ref: '#/components/schemas/wireless_Errors'
description: Unprocessable entity. Check the 'detail' field in response for details.
wireless_GenericErrorResponse:
content:
application/json:
schema:
$ref: '#/components/schemas/wireless_Errors'
description: Unexpected error
UpdateSimCardResponse:
content:
application/json:
schema:
properties:
data:
$ref: '#/components/schemas/SIMCard'
type: object
description: Successful response
UpdateSimCardDataUsageNotificationResponse:
content:
application/json:
schema:
properties:
data:
$ref: '#/components/schemas/SimCardDataUsageNotification'
type: object
description: Successful Response
parameters:
FilterSIMCardId:
description: A valid SIM card ID.
in: query
name: filter[sim_card_id]
schema:
example: 47a1c2b0-cc7b-4ab1-bb98-b33fb0fc61b9
format: uuid
type: string
wireless_PageSize:
description: The size of the page.
in: query
name: page[size]
schema:
default: 20
maximum: 250
minimum: 1
type: integer
IncludeSIMCardGroup:
description: It includes the associated SIM card group object in the response when present.
in: query
name: include_sim_card_group
schema:
default: false
example: true
type: boolean
wireless_PageConsolidated:
description: 'Consolidated pagination parameter (deepObject style). Originally: page[number], page[size]'
explode: true
in: query
name: page
schema:
properties:
number:
default: 1
description: The page number to load.
minimum: 1
type: integer
size:
default: 20
description: The size of the page.
maximum: 250
minimum: 1
type: integer
type: object
FilterSIMCardConsolidated:
description: 'Consolidated filter parameter for SIM cards (deepObject style). Originally: filter[iccid], filter[msisdn], filter[status], filter[tags]'
explode: true
in: query
name: filter
schema:
properties:
iccid:
description: A search string to partially match for the SIM card's ICCID.
example: '89310410106543789301'
type: string
msisdn:
description: A search string to match for the SIM card's MSISDN.
example: '+13109976224'
type: string
status:
description: Filter by a SIM card's status.
items:
enum:
- enabled
- disabled
- standby
- data_limit_exceeded
- unauthorized_imei
type: string
type: array
tags:
description: "A list of SIM card tags to filter on.tags they will be found.['customers', 'staff', 'test']\n ['test']['customers']['customers', 'test'] returns only the first because it's the only one with both tags.test returns the first two SIMs, because both of them have such tag.customers returns the first and last SIMs.