Premium APIsDevice DiagnosticsAPI EndpointsDiagnostics History

API Reference

Get Diagnostics History Data

POST /history/actions/$search

Retrieve historical streamed attribute information about selected devices.

Uses and Requirements

You can retrieve the history data for selected devices and attributes over specific time periods. You are able filter this data by time period or number of devices. If both the time period and the number of devices are specified, the number of records returned will be determined by the condition that is met first.

Request Components

HTTP Request

POST https://thingspace.verizon.com/api/diagnostics/v1/history/actions/$search

Resource Path and Query Parameters

None

Header Parameters

The request header must contain a current ThingSpace authorization bearer token and a valid VZ-M2M session token, and must set the content-type to JSON.

Parameter NameData TypeDescription
Authorization requiredstringHTTP Authorization bearer token.
VZ-M2M-Token requiredstringA valid session token returned by POST /session/login.
Content-Type requiredstringMust be application/json.

Request Body

Parameter NameData TypeDescription
accountName requiredstringThe name of the billing account for which you want retrieve history data. An account name is usually numeric, and must include any leading zeros.
device requireddevice data objectThe devices for which you want to retrieve history data.
device.id requiredstringA device identifier value
device.kind requiredstringType of identifier IMEI ESN MEID
attribute requiredattributes data objectStreaming RF parameters for which you want to retrieve history data.
attribute.name requiredstringexamples: RADIO_SIGNAL_STRENGTH LINK_QUALITY NETWORK_BEARER CELL_ID
$limitNumber optionalinteger($int32)The maximum number of historical attributes to include in the response. If the request matches more than this number of attributes, the response will contain an X-Next value in the header that can be used as the page value in the next request to retrieve the next page of events.
$limitTimelimitTime data objectThe time period for which this request should retrieve data, beginning with the limitTime.startOn and proceeding with the limitTime.duration.
$limitTime.startOn optionalstring($date-time)The starting date-time for this request
$limitTime.duration optionallimitTime duration data objectThe duration for which this request should retriev data.
$limitTime.duration.value optionalinteger($int32)
$limitTime.duration.unit optionalstringSECOND MINUTE HOUR DAY
$page optionalstringPage number for pagination purposes.

Example Request Body

{
    "$filter": {
        "accountName": "0000123456-00001",
        "device": {
            "id": "15-digit IMEI",
            "kind": "IMEI"
        },
        "attribute": {
            "name": "LINK_QUALITY"
        }
    }
}

Success Responses

Status 200

Parameter NameData TypeDescription
accountNamestringThe name of the account for which you want retrieve history data. An account name is usually numeric, and must include any leading zeros.
devicedevice data objectThe devices for which you want to retrieve history data.
device.idstringA device identifier value
device.kindstringType of identifier IMEI ESN MEID
attributeattributes data objectStreaming RF parameters for which you want to retrieve history data.
attribute.namestringexamples: RADIO_SIGNAL_STRENGTH LINK_QUALITY NETWORK_BEARER CELL_ID
attributes.valuestring
attributes.createdOnstring($date-time)Date and time the request was created.

Example Success Response

[
  {
    "accountName": "0000123456-00001",
    "attribute": {
      "updatedOn": "2022-02-10T16:02:21.406Z",
      "name": "LINK_QUALITY",
      "value": "47"
    },
    "device": {
      "id": "15-digit IMEI",
      "kind": "IMEI"
    }
  },
  {
    "accountName": "0000123456-00001",
    "attribute": {
      "updatedOn": "2022-02-10T16:02:05.316Z",
      "name": "LINK_QUALITY",
      "value": "47"
    },
    "device": {
      "id": "15-digit IMEI",
      "kind": "IMEI"
    }
  }
]

Example Success Response Headers

Reponse headers, with pagination, are added when the number of records returned are more than (>) 100.

NameDescriptionType
X-NextUsed for pagination, needs to be passed in the next request body $page field.string

Failure Responses

Status 400 All error messages are returned in this format:

{
  "errorCode": "error code string",
  "errorMessage": "error message string"
}

On this page