Detailed report of session duration and number of bytes transferred per day.
thingspace_oauth VZ-M2M-Token This is the ThingSpace token, from Credentials and Tokens is used
In: header
The VZ-M2M session token from Credentials and Tokens
In: header
application/json
Request for sessions report.
TypeScript Definitions
Use the request body type in TypeScript.
Request for obtaining a session report.
application/json
application/json
application/json
application/json
application/json
application/json
application/json
curl -X POST "https://example.com/report/sessions" \ -H "Content-Type: application/json" \ -d '{ "accountNumber": "0000123456-00001", "startDate": "2022-12-09T22:01:06.217Z", "endDate": "2022-12-09T22:01:08.734Z", "imei": "15-digit IMEI", "durationLow": 0, "durationHigh": 0 }'{ "id": "The 10-digit ID of the device", "txid": "60c07fff-eeee-ffff-gggg-75e6a7c238f6", "sessions": [ { "startTime": "Start date of session. ISO 8601 format.", "endTime": "End date of session. ISO 8601 format.", "numBytes": 0 } ]}"{\n \"responseCode\": \"INVALID_PARAMETER\",\n \"message\": \"Device Not Found, Request will be queued\"\n}""{\n \"responseCode\": \"INVALID_ACCESS\",\n \"message\": \"The access policy denied the resource operation for this user\"\n}""{\n \"responseCode\": \"INVALID_PARAMETER\",\n \"message\": \"Device Not Certified\"\n}""{\n \"responseCode\": \"INVALID_PARAMETER\",\n \"message\": \"Device Inactive\"\n}""{\n \"responseCode\": \"INVALID_PARAMETER\",\n \"message\": \"Service Not Purchased\"\n}""{\n \"responseCode\": \"INTERNAL_ERROR\",\n \"message\": \"Device is active in several accounts\"\n}"The numeric ID of the account and must include leading zeroes. This value is indentical to accountName.
The International Mobile Equipment Identifier of the device.
Start date of session to include. If not specified information will be shown from the earliest available (180 days). Can be either date in ISO 8601 format or predefined constants.
End date of session to include. If not specified information will be shown to the latest available. Can be either date in ISO 8601 format or predefined constants.
Optional filter — minimum session duration
int32Optional filter — maximum session duration
int32