Skip to main content
GET
/
sim_card_actions
JavaScript
import Telnyx from 'telnyx';

const client = new Telnyx({
  apiKey: 'My API Key',
});

const actions = await client.simCards.actions.list();

console.log(actions.data);
{
  "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"
    }
  ],
  "meta": {
    "page_number": 2,
    "page_size": 25,
    "total_pages": 3,
    "total_results": 55
  }
}

Authorizations

Authorization
string
header
required

Bearer authentication header of the form Bearer <token>, where <token> is your auth token.

Query Parameters

filter
object

Consolidated filter parameter for SIM card actions (deepObject style). Originally: filter[sim_card_id], filter[status], filter[bulk_sim_card_action_id], filter[action_type]

page
object

Consolidated pagination parameter (deepObject style). Originally: page[number], page[size]

Response

Successful Response

data
SIMCardAction · object[]
meta
object