Returns the network data usage history of a device during a specified time period.
thingspace_oauth VZ-M2M-Token In: header
M2M Session Token (How to generate an M2M session token?)
In: header
application/json
Request to obtain usage history for a specific device.
TypeScript Definitions
Use the request body type in TypeScript.
Request to return the daily network data usage of a single device during a specified time period.
application/json
application/json
application/json
curl -X POST "https://example.com/m2m/v1/devices/usage/actions/list" \ -H "Content-Type: application/json" \ -d '{ "deviceId": { "id": "50684915885088839315521399821675", "kind": "eid" }, "earliest": "2018-03-20T00:00:01Z", "latest": "2020-12-31T00:00:01Z" }'{ "hasMoreData": false, "usageHistory": [ { "bytesUsed": 4096, "extendedAttributes": [ { "key": "MoSms", "value": "0" } ], "smsUsed": 0, "source": "Raw Usage", "timestamp": "2020-12-01T00:00:00Z" } ]}{ "hasMoreData": false, "usageHistory": [ { "bytesUsed": 4096, "extendedAttributes": [ { "key": "MoSms", "value": "0" } ], "smsUsed": 0, "source": "Raw Usage", "timestamp": "2020-12-01T00:00:00Z" } ]}{ "errorCode": "error code string", "errorMessage": "error message string"}The earliest date for which you want usage data.
The last date for which you want usage data.
An identifier for a single device.