Specialized APIsHyper Precise LocationAPI EndpointsDevice Reports for Hyper Precise Feature UsageSession Usage Report

API Reference

Get Session Report for a Device

POST /report/sessions

Detailed report of session duration and number of bytes transferred per day for an individual device.

HTTP Request

POST https://thingspace.verizon.com/api/hyper-precise/v1/report/sessions

Header Parameters

The request header must set the content-type to JSON, contain a current ThingSpace authorization token and a current VZ-M2M session token. For more details on how to get these tokens, visit Getting Started.

Parameter NameData TypeDescription
Authorization (required)stringHTTP Authorization request header containing a valid Bearer token: Authorization: Bearer {token}
VZ-M2M-Token (required)stringA valid session token returned by a Connectivity Management POST /session/login request.
Content-Type (required)stringMust be application/json.

Request Parameters

Parameter NameData TypeDescription
accountNumber (required)stringThe unique identifier for the account.
startDatestringStart date of session to include. If not specified information will be shown from the earliest available (180 days). ISO 8601 format.
endDatestringEnd date of session to include. If not specified information will be shown to the latest available. ISO 8601 format.
imei (required)stringInternational Mobile Device Identifier. The unique identifier of the device.
durationLowintegerThe Low value of session duration.
durationHighintegerThe High value of session duration.

Request Body

Example request:

{
  "accountNumber": "string",
  "startDate": "string",
  "endDate": "string",
  "imei": "15-digit IMEI",
  "durationLow": 0,
  "durationHigh": 0
}

Success Responses

Status 200

A successful request returns the device's session information and a Transaction ID (txid) for the report request.

Example response:

{
  "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
    }
  ]
}

Response Parameters

Parameter NameData TypeDescription
idstringThe 10-digit ID of the device.
txidstringTransaction ID of the request.
sessionsarrayAn array containing objects detailing the start and end time of the session with the amount of data transferred.
startTimestringStart date of session. ISO 8601 format.
endTimestringEnd date of session. ISO 8601 format.
numBytesintegerAmount of data transferred, measured in Bytes.

Failure Responses

Request failures will be in this format:

{
  "errorCode": "INVALID_PARAMETER",
  "errorMessage": "Device Not Found, Request will be queued"
}

On this page