List data session

GET /v1/Sims/{SimSid}/DataSessions

Data session information for SIMs

Path parameters

  • SimSid string Required

    The SID of the Sim resource with the Data Sessions to read.

Query parameters

  • PageSize integer(int64)

    How many resources to return in each list page. The default is 50, and the maximum is 1000.

    Minimum value is 1, maximum value is 1000.

  • Page integer

    The page index. This value is simply for client state.

    Minimum value is 0.

  • PageToken string

    The page token. This is provided by the API.

Responses

  • 200 application/json

    OK

    Hide headers attributes Show headers attributes
    • Access-Control-Allow-Origin string

      Specify the origin(s) allowed to access the resource

    • Access-Control-Allow-Methods string

      Specify the HTTP methods allowed when accessing the resource

    • Access-Control-Allow-Headers string

      Specify the headers allowed when accessing the resource

    • Access-Control-Allow-Credentials boolean

      Indicates whether the browser should include credentials

    • Access-Control-Expose-Headers string

      Headers exposed to the client

    Hide response attributes Show response attributes object
    • data_sessions array[object]
      Hide data_sessions attributes Show data_sessions attributes object
      • sid string | null

        The unique string that we created to identify the DataSession resource.

      • sim_sid string | null

        The SID of the Sim resource that the Data Session is for.

      • account_sid string | null

        The SID of the Account that created the DataSession resource.

        Minimum length is 34, maximum length is 34. Format should match the following pattern: ^AC[0-9a-fA-F]{32}$.

      • operator_mcc string | null

        The 'mobile country code' is the unique ID of the home country where the Data Session took place. See: MCC/MNC lookup.

      • operator_mnc string | null

        The 'mobile network code' is the unique ID specific to the mobile operator network where the Data Session took place.

      • operator_country string | null

        The three letter country code representing where the device's Data Session took place. This is determined by looking up the operator_mcc.

      • operator_name string | null

        The friendly name of the mobile operator network that the SIM-connected device is attached to. This is determined by looking up the operator_mnc.

      • cell_id string | null

        The unique ID of the cellular tower that the device was attached to at the moment when the Data Session was last updated.

      • cell_location_estimate

        An object that describes the estimated location in latitude and longitude where the device's Data Session took place. The location is derived from the cell_id when the Data Session was last updated. See Cell Location Estimate Object.

      • packets_uploaded integer

        The number of packets uploaded by the device between the start time and when the Data Session was last updated.

        Default value is 0.

      • packets_downloaded integer

        The number of packets downloaded by the device between the start time and when the Data Session was last updated.

        Default value is 0.

      • last_updated string(date-time) | null

        The date that the resource was last updated, given as GMT in ISO 8601 format.

      • start string(date-time) | null

        The date that the Data Session started, given as GMT in ISO 8601 format.

      • end string(date-time) | null

        The date that the record ended, given as GMT in ISO 8601 format.

      • imei string | null

        The 'international mobile equipment identity' is the unique ID of the device using the SIM to connect. An IMEI is a 15-digit string: 14 digits for the device identifier plus a check digit calculated using the Luhn formula.

    • meta object
      Hide meta attributes Show meta attributes object
      • first_page_url string(uri)
      • key string
      • next_page_url string(uri) | null
      • page integer
      • page_size integer
      • previous_page_url string(uri) | null
      • url string(uri)
GET /v1/Sims/{SimSid}/DataSessions
curl \
 --request GET 'https://wireless.twilio.com/v1/Sims/{SimSid}/DataSessions' \
 --user "username:password"
Response examples (200)
{
  "meta": {
    "key": "data_sessions",
    "url": "https://wireless.twilio.com/v1/Sims/DEaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa/DataSessions?PageSize=50&Page=0",
    "page": 0,
    "page_size": 50,
    "next_page_url": null,
    "first_page_url": "https://wireless.twilio.com/v1/Sims/DEaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa/DataSessions?PageSize=50&Page=0",
    "previous_page_url": null
  },
  "data_sessions": [
    {
      "end": null,
      "sid": "WNaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa",
      "imei": null,
      "start": "2015-07-30T20:00:00Z",
      "cell_id": "",
      "sim_sid": "DEaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa",
      "radio_link": "LTE",
      "account_sid": "ACaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa",
      "last_updated": "2015-07-30T20:00:00Z",
      "operator_mcc": "",
      "operator_mnc": "",
      "operator_name": "",
      "operator_country": "",
      "packets_uploaded": 0,
      "packets_downloaded": 0,
      "cell_location_estimate": {}
    },
    {
      "end": "2015-07-30T20:00:00Z",
      "sid": "WNaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa",
      "imei": "014931000129700",
      "start": "2015-07-30T20:00:00Z",
      "cell_id": "",
      "sim_sid": "DEaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa",
      "radio_link": "3G",
      "account_sid": "ACaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa",
      "last_updated": "2015-07-30T20:00:00Z",
      "operator_mcc": "",
      "operator_mnc": "",
      "operator_name": "",
      "operator_country": "",
      "packets_uploaded": 0,
      "packets_downloaded": 0,
      "cell_location_estimate": {}
    }
  ]
}