List data session

GET /v1/Sims/{SimSid}/DataSessions

Data session information for SIMs

Path parameters

Query parameters

  • PageSize integer

    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.

Responses

  • 200

    OK

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

        The SID of the Account that created the resource

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

      • 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

      • An object with the estimated location where the device's Data Session took place

      • end string(date-time) | null

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

      • imei string | null

        The unique ID of the device using the SIM to connect

      • last_updated string(date-time) | null

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

      • operator_country string | null

        The three letter country code representing where the device's Data Session took place

      • operator_mcc string | null

        The 'mobile country code' is the unique ID of the home country where the Data Session took place

      • 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_name string | null

        The friendly name of the mobile operator network that the SIM-connected device is attached to

      • packets_downloaded integer | null

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

      • packets_uploaded integer | null

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

      • sid string | null

        The unique string that identifies the resource

      • sim_sid string | null

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

      • start string(date-time) | null

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

    • meta object
      Hide meta attributes Show meta attributes
GET /v1/Sims/{SimSid}/DataSessions
curl \
 -X GET https://wireless.twilio.com/v1/Sims/{SimSid}/DataSessions \
 --user "username:password"
Response examples (200)
{
  "data_sessions": [
    {
      "account_sid": "string",
      "cell_id": "string",
      "end": "2023-05-04T09:42:00+00:00",
      "imei": "string",
      "last_updated": "2023-05-04T09:42:00+00:00",
      "operator_country": "string",
      "operator_mcc": "string",
      "operator_mnc": "string",
      "operator_name": "string",
      "packets_downloaded": 42,
      "packets_uploaded": 42,
      "radio_link": "string",
      "sid": "string",
      "sim_sid": "string",
      "start": "2023-05-04T09:42:00+00:00"
    }
  ],
  "meta": {
    "first_page_url": "https://example.com",
    "key": "string",
    "next_page_url": "https://example.com",
    "page": 42,
    "page_size": 42,
    "previous_page_url": "https://example.com",
    "url": "https://example.com"
  }
}