Diagnostics History

Get history data

POST
/diagnostics/v1/history/actions/$search

This endpoint allows the user to get the history data.

Authorization

thingspace_oauth VZ-M2M-Token
AuthorizationBearer <token>

This is the ThingSpace token, from Credentials and Tokens is used

In: header

VZ-M2M-Token<token>

M2M Session Token (How to generate an M2M session token?)

In: header

Request Body

*/*

History data information.

History data information.

$filter*

The selected device and attributes for which a request should retrieve data.

$limitNumber?integer

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.

Formatint32
$limitTime?

The time period for which a request should retrieve data, beginning with the limitTime.startOn and proceeding with the limitTime.duration.

$page?string

Page number for pagination purposes.

Response Body

application/json

application/json

curl -X POST "https://example.com/diagnostics/v1/history/actions/$search" \  -H "Content-Type: */*" \  -d '<$filter>    <accountName>0000123456-00001</accountName>    <device>      <id>15-digit IMEI</id>      <kind>IMEI</kind>    </device>    <attributes>      <name>LINK_QUALITY</name>    </attributes>  </$filter>'
[  {    "accountName": "0000123456-00001",    "attributes": {      "createdOn": "2022-02-10T16:02:21.406Z",      "name": "LINK_QUALITY",      "value": "47"    },    "device": {      "id": "15-digit IMEI",      "kind": "IMEI"    }  },  {    "accountName": "0000123456-00001",    "attributes": {      "createdOn": "2022-02-10T16:02:05.316Z",      "name": "LINK_QUALITY",      "value": "47"    },    "device": {      "id": "15-digit IMEI",      "kind": "IMEI"    }  }]