Device Actions

Retrieve daily usage

POST
/v1/devices/usage/actions/list

Retrieve the daily usage for a device, for a specified period of time, segmented by day

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

application/json

deviceId?
earliest?string

The start date of the time period queried as "$datetime"

Match^[A-Za-z0-9]{3,32}$
Length3 <= length <= 32
latest?string

The end date of the time period being queried as "$datetime"

Match^[A-Za-z0-9]{3,32}$
Length3 <= length <= 32

Response Body

application/json

application/json

curl -X POST "https://example.com/v1/devices/usage/actions/list" \  -H "Content-Type: application/json" \  -d '{}'
{  "hasMoreData": false,  "deviceId": {    "kind": "eid",    "id": "12345678901234567890123456789012"  },  "usageHistory": [    {      "bytesUsed": "string",      "extendedAttributes": [        {          "key": "MoSms",          "value": "string"        }      ],      "servicePlan": "string",      "smsUsed": "string",      "source": "string",      "timestamp": "string"    }  ]}