Specialized APIsSensor InsightsAPI Reference

Get a summary of device health scores

Get the Health Score Summary

Use this endpoint to retrieve the overall health of devices.

POST /dm/v1/healthscore/summary

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.

HTTP Request

POST https://thingspace.verizon.com/api/dm/v1/healthscore/summary

Request Parameters

None

Request Body

None

Success Response

Status 200 This is a synchronous response, so the health summary will be returned. Example Response:

{
  "overallsummary": [
    {
      "metrictype": "overallscore",
      "metricvalue": "string"
    }
  ]
}

Success Parameters

ParameterData TypeDescription
overallsummaryarrayAn array of metrics objects indicating the health of the devices.
metrictypestringThe type of metric maesured. This can be overallscore, gatewayscore, sensorscore or averagesignalstrength.
metricvaluestringThe score as a percentage.

Failure Responses

Example Response:

{
  "error": "Error name or code",
  "error_description": "A longer error description.",
  "cause": "A cause for the error"
}

On this page