Specialized APIsSensor InsightsAPI Reference

Get last reported information for a device

Get the Last Reported Information for a Device

POST /dm/v1/devices/lastreported

Use this endpoint to retrive the latest sensor 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

PATCH https://thingspace.verizon.com/api/dm/v1/devices/lastreported

Request Parameters

Note: All parameters are required unless marked (optional)

ParameterData TypeDescription
accountnamestringThe numeric name of the account and must include leading zeros.
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",
  "resourceidentifier": {
    "deveui": "The unique EUI64 address of the device",
    "deviceid": "The UUID of the device",
    "esn": 223372036854775800,
    "iccid": "The 20-digit ICCID",
    "imei": 223372036854775,
    "imsi": 223372036854775800,
    "mac": "The Media Access Control address",
    "manufacturer": "REOLINK",
    "meid": "The 56-bit Mobile Equipment ID",
    "msisdn": "The Mobile Station International Subscriber Directory Number",
    "node_uuid": "The UUID of the node the device is associated with",
    "qrcode": "The Quick Response (QR) code",
    "serial": "The device's serial number"
  }
}

Success Response

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

{
  "event": {
    "accountclientid": "null",
    "callbackurl": "The URL of the callback listener",
    "createdon": "2023-10-02T15:46:34.562Z",
    "description": "a short description",
    "deviceid": "The UUID of the device",
    "errmsg": "provider_service_error",
    "fieldid": "The field ID",
    "fields": {
      "additionalProp1": "string",
      "additionalProp2": "string",
      "additionalProp3": "string"
    },
    "fieldvalue": [
      90
    ],
    "foreignid": "c1f178d3-eeee-ffff-gggg-0d6b7ae6022a",
    "id": "string",
    "lastupdated": "2023-10-02T15:46:34.562Z",
    "modelid": "The model ID of the device",
    "name": "User defined name of the record",
    "sensordataaggregation": true,
    "state": "success",
    "transactionid": "afbcc00d-eeee-ffff-gggg-38b4333fcf06",
    "ttl": 90,
    "version": "1.0",
    "versionid": "337bd2e8-eeee-ffff-gggg-5207992fd395"
  },
  "timestamp": "string"
}

Success Parameters

ParameterData TypeDescription
eventobjectContains the device details of the last reported event.
accountclientidstringFuture functionality. This value will be "null".
callbackurlstringThe URL of the callback listener.
createdonstring ($date-time)The timestamp of when the record was created.
descriptionstringA description of the record.
deviceidstringThe UUID of the device. This value is assigned when the device is onboarded.
errmsgstringA system generated error message.
fieldidstringThe description of the value in fieldvalue.
fieldsobjectContains the device configuration details as well as device identifier details.
fieldvaluearrayThe value of the type described in fieldid.
foreignidstringThe UUID value of the user's Enterprise Customer Profile Database (ECPD) account. A UUID is a 32 to 36-bit alphanumeric string.
idstringThe UUID of the resource record. A UUID is a 32 to 36-bit alphanumeric string.
lastupdatedstring ($date-time)The timestamp of when the last update to the record was made.
modelidstringThe model ID of the device.
namestringThe user defined name of the record.
sensordataaggregationbooleanA flag to show if data is being aggregated ( true ) or not ( false ).
statestringThe status of the request made. This will be either success or failed.
transactionidstringThe UUID of this transaction. A UUID is a 34 or 36-bit alphanumeric value.
versionstringThe resource version.
versionidstringThe UUID of the resource version. A UUID is a 32 to 36-bit alphanumeric string.
timestampstringA time and date of when this data was provided.

Failure Responses

Example Response:

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

On this page