Specialized APIsSensor InsightsAPI Reference

List all device details on the account

POST /dm/v1/devices/actions/query

Use this endpoint to retrieve sensors and their details.

Header Parameters

The request header must set the content-type to JSON, contain a current ThingSpace authorization token and a current VZ-M2M session token. For more details on how to get these tokens, visit Getting Started.

Parameter NameData TypeDescription
Authorization (required)stringHTTP Authorization request header containing a valid Bearer token: Authorization: Bearer {token}
VZ-M2M-Token (required)stringA valid session token returned by a Connectivity Management POST /session/login request.
Content-Type (required)stringMust be application/json.

HTTP Request

POST https://thingspace.verizon.com/api/dm/v1/devices/actions/query

Request Parameters

Note: All parameters are required unless marked (optional)

ParameterData TypeDescription
accountnamestringThe numeric name of the account and must include leading zeros.
filterobjectOptional filter data to narrow the search.
$expand (optional)stringUse to provide device details to filter on.
$limitnumber (optional)integerLimits the number of results returned.
$nopagination (optional)booleanA flag to indicate if pagination is requested ( false ) or not ( true ).
$page (optional)stringThe number of pages in the response.
$pagenumber (optional)integerThe page number requested (if known).
$projection (optional)arrayLimits results to the fields of the device that the user is interested in rather than all of the fields.
$selection (optional)objectFilters results based on user defined criteria.
resourceidentifierobjectDetails about the device being queried.
deveuistringThe unique EUI64 address of the device.
deviceidstringThe UUID of the device. This is assigned to the device at Onboarding.
esnintegerThe Electronic Serial Number of the device and is a 64-bit integer.
iccidstringThe 20-digit Integrated Circuit Card ID (SIM card ID).
imeiintegerThe 15-digit International Mobile Equipment Identifier.
imsiintegerThe International Mobile Subscriber Identifier and is a 64-bit integer.
macstringThe Media Access Control address of the device, listed on the device in the format XX-XX-XX-XX-XX-XX or XX:XX:XX:XX:XX:XX.
manufacturerstringThe name of the manufacturer of the device.
meidstringThe 56-bit Mobile Equipment ID.
msisdnstringThe Mobile Station International Subscriber Directory Number. In the USA, this is 1+ a 10-digit phone number.
node_uuidstringThe UUID of the node the device is associated with. This is a 34 or 36-bit alphanumeric value.
qrcodestringThe numeric value of the Quick Response (QR) code on the device.
serialstringThe device's serial number.

Request Body

Example Request:

{
  "accountname": "0000123456-00001",
  "filter": {
    "$expand": "Expand",
    "$limitnumber": 100,
    "$nopagination": true,
    "$page": "The number of pages",
    "$pagenumber": 1,
    "$projection": [
      "j7eZks2ZMj9DiIIwp2SUUF8xgmPGqpB4IGJdh"
    ],
    "$selection": {
      "additionalProp1": "string",
      "additionalProp2": "string",
      "additionalProp3": "string"
    }
  },
  "resourceidentifier": {
    "deveui": "The EUI64 address",
    "deviceid": "The UUID of the device",
    "esn": 223372036854775800,
    "iccid": "The 20-digit ICCID",
    "imei": 223372036854775,
    "imsi": 223372036854775800,
    "mac": "The Media Access Control address of the device",
    "manufacturer": "REOLINK",
    "meid": "The 56-bit Mobile Equipment ID",
    "msisdn": "The Mobile Station International Subscriber Directory Number",
    "node_uuid": "The UUID of the node",
    "qrcode": "The Quick Response (QR) code",
    "serial": "The device's serial number"
  }
}

Success Response

Status 200 This is a synchronous response, so the details of the device will be returned. Example Response:

{
    "accountclientid": null,
    "billingaccountid": "0000123456-00001",
    "chipset": "The chipset used by the device",
    "commands": {
      "additionalProp1": {},
      "additionalProp2": {},
      "additionalProp3": {}
    },
    "createdon": "2023-10-02T15:46:34.562Z",
    "customdata": {
      "additionalProp1": [
        100
      ],
      "additionalProp2": [
        100
      ],
      "additionalProp3": [
        100
      ]
    },
    "description": "a short description",
    "esn": 223372036854775800,
    "fields": {
      "additionalProp1": "string",
      "additionalProp2": "string",
      "additionalProp3": "string"
    },
    "foreignid": "c1f178d3-eeee-ffff-gggg-0d6b7ae6022a",
    "hardwareversion": "1.0",
    "iccid": "The 20-digit ICCID",
    "id": "The UUID of the record",
    "imei": 223372036854775,
    "imsi": 223372036854775800,
    "lastupdated": "2023-10-02T15:46:34.562Z",
    "licenses": [
      "licenses assigned to the device"
    ],
    "mac": "The Media Access Control address of the device",
    "manufacturer": "REOLINK",
    "meid": "The 56-bit Mobile Equipment ID",
    "modelmetadata": {},
    "msisdn": "The Mobile Station International Subscriber Directory Number",
    "name": "name of the record",
    "parentdeviceid": "string",
    "productmodel": "Model name of the device",
    "providerid": "Verizon Wireless",
    "qrcode": "The Quick Response (QR) code",
    "refid": "P3730-1422323050860",
    "refidtype": "The type of value represented by `refid`",
    "serial": "The device's serial number",
    "services": [
      "configuration"
    ],
    "sku": "The Stock Keeping Unit (SKU) number",
    "softwareversion": "the current device software version",
    "state": "success",
    "version": "1.0",
    "versionid": "337bd2e8-eeee-ffff-gggg-5207992fd395"
  }

Success Parameters

ParameterData TypeDescription
accountclientidstringFuture functionality. This value will be "null".
billingaccountidstringThe numeric name of the account and must include leading zeros. This value matches the accountname.
chipsetstringThe chipset used by the device.
commandsobjectThis is raw JSON used for caoomands to the device.
createdonstring ($date-time)The timestamp of when the record was created.
customdataobjectThis is free form JSON, any thing in the form of JSON can be stored.
descriptionstringA brief description of the record.
esnintegerThe Electronic Serial Number of the device and is a 64-bit integer.
fieldsobjectContains the device configuration details as well as device identifier details.
foreignidstringThe UUID value of the user's Enterprise Customer Profile Database (ECPD) account. A UUID is a 32 to 36-bit alphanumeric string.
hardwareversionstringThe hardware version of the device. This varies by device and manufacturer.
iccidstringThe 20-digit Integrated Circuit Card ID (SIM card ID).
idstringThe UUID of the resource. A UUID is a 34 or 36-bit alphanumeric value.
imeiintegerThe 15-digit International Mobile Equipment Identifier.
imsiintegerThe International Mobile Subscriber Identifier and is a 64-bit integer.
lastupdatedstring ($date-time)The timestamp of when the last update to the record was made.
licensesarrayThe licenses assigned to the device.
macstringThe Media Access Control address of the device, listed on the device in the format XX-XX-XX-XX-XX-XX or XX:XX:XX:XX:XX:XX.
manufacturerstringThe name of the manufacturer of the device.
meidstringThe 56-bit Mobile Equipment ID.
msisdnstringThe Mobile Station International Subscriber Directory Number. In the USA, this is 1+ a 10-digit phone number.
namestringThe user defined name of the record.
parentdeviceidstringThis field is applicable for BLE sensors. This represents the value of the parent gateway device.
productmodelstringThe model name of the device.
provideridstringThe name of the cellular service provider.
qrcodestringThe numeric value of the Quick Response (QR) code on the device.
refidstringThe device's reference ID.
refidtypestringThe type of value represented by refid .
serialstringThe device's serial number.
servicesarrayServices associated with the record.
skustringThe Stock Keeping Unit (SKU) number of the device.
softwareversionstringthe current device software version.
statestringThe status of the request made.
versionstringThe resource version.
versionidstringThe UUID of the resource version. A UUID is a 32 to 36-bit alphanumeric string.

Failure Responses

Example Response:

{
  "error": "Error name or code",
  "error_description": "A longer error description.",
  "cause": "A cause for the error"
}

On this page