Specialized APIsSensor InsightsAPI Reference

Get a summary of the network health scores

Get the Network Health Score

POST /dm/v1/healthscore/network

Use this endpoint to retrieve the overall health of devices and their network connection.

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/network

Request Parameters

None

Request Body

None

Success Response

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

{
  "networksummary": [
    {
      "metrictype": "networkscore",
      "metricvalue": "95"
    }
  ],
  "overallsummary": [
    {
      "metrictype": "overallscore",
      "metricvalue": "95"
    }
  ]
}

Success Parameters

ParameterData TypeDescription
networksummaryarrayAn array of metrics objects indicating the health of the network.
metrictypestringThe type of metric measured. This can be networkscore, networkstatus, or networkavailabilitylast30.
metricvaluestringThe score as a percentage.
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