gateway

Get a device

Full state of one device, including its last heartbeat, battery, and SIM list.

get/api/v1/gateway/devices/{id}

Request

  • Base URL: https://api.textbee.dev
  • URL: https://api.textbee.dev/api/v1/gateway/devices/{id}
  • Auth: API key in header x-api-key

Path parameters

idstring required

Device id, from GET /gateway/devices.

Response

The device.

Example response

{
  "data": {
    "brand": "google",
    "manufacturer": "Google",
    "model": "Pixel 7",
    "name": "Office phone",
    "os": "Android",
    "osVersion": "16",
    "osApiLevel": 36,
    "appVersionName": "1.9.0",
    "appVersionCode": 190,
    "heartbeatIntervalMinutes": 30,
    "appVersionInfo": {
      "versionName": "1.9.0",
      "versionCode": 190
    },
    "systemInfo": {
      "timezone": "Africa/Addis_Ababa",
      "locale": "en_US"
    },
    "simInfo": {
      "sims": [
        {
          "subscriptionId": 1,
          "carrierName": "Safaricom",
          "mcc": "639",
          "mnc": "02",
          "countryIso": "ke",
          "simState": "READY",
          "signalLevel": 3
        }
      ]
    }
  }
}

Changes

No recorded changes to this operation across all 1 revision of this API.