Get all SIM cards
GET/sim_cards
Get all SIM cards belonging to the user that match the given filters.
Request
Query Parameters
['customers', 'staff', 'test']
['test']
['customers']
Possible values: >= 1
Default value: 1
The page number to load.
Possible values: >= 1
and <= 250
Default value: 20
The size of the page.
It includes the associated SIM card group object in the response when present.
A valid SIM card group ID.
A list of SIM card tags to filter on.
If the SIM card contains all of the given tags
they will be found.
For example, if the SIM cards have the following tags:
['customers', 'test']
Searching for
test
Searching for
customers
A search string to partially match for the SIM card's ICCID.
Possible values: [enabled
, disabled
, standby
, data_limit_exceeded
, unauthorized_imei
]
Filter by a SIM card's status.
Possible values: [current_billing_period_consumed_data.amount
]
Sorts SIM cards by the given field. Defaults to ascending order unless field is prefixed with a minus sign.
Responses
200: Successful response
- application/json
401: Unauthorized
default: Unexpected error
- application/json
Request samples
curl -L 'https://api.telnyx.com/v2/sim_cards' \
-H 'Accept: application/json' \
-H 'Authorization: Bearer <TOKEN>'
Response samples
{
"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
}
}
{
"errors": [
{
"code": "string",
"title": "string",
"detail": "string",
"source": {
"pointer": "string",
"parameter": "string"
},
"meta": {}
}
]
}