Specialized APIsSensor InsightsAPI Reference

Query a device profile

Query an Individual Device Profile

POST /dm/v1/deviceConfigurationProfiles/actions/query

Use this endpoint to query an individual device profile.

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/deviceConfigurationProfiles/actions/query

Request Parameters

Note: All parameters are required unless marked (optional)

ParameterData TypeDescription
filterobjectThe values to filter on to select the device profile to view.
$selectionobjectAn object containing the model ID of the device profile.
modelidstringThe UUID of the sensor's model identifier. A UUID is a 32 to 36-bit alphanumeric string. This value is assigned at onboarding.
$querytotalcountbooleanA flag to retrieve either all profiles ( true ) or just the first listed ( false ).

Request Body

Example Request:

{
  "filter": {
    "$selection": {
      "modelid": "00000000-0000-0000-0000-000000000019"
    },
    "$querytotalcount": true
  }
}

Success Response

Status 201 This is a synchronous response, so the details of the device profile will be returned. Example Response:

[
  {
    "id": "cb4169ec-eeee-ffff-gggg-d2951060421a",
    "kind": "the kind of profile being created",
    "version": "1.0",
    "versionid": "15bd78a1-eeee-ffff-gggg-86daa842009b",
    "createdon": "2023-10-02T15:46:34.562Z",
    "lastupdated": "2023-10-02T15:46:34.562Z",
    "name": "Demo Entry sensor 1730928792",
    "foreignid": "c1f178d3-eeee-ffff-gggg-0d6b7ae6022a",
    "billingaccountid": "0000123456-00001",
    "modelid": "00000000-0000-0000-0000-000000000019",
    "configuration": {
      "randomInt": 21,
      "resportingInterval": 24
    }
  }
]

Success Parameters

ParameterData TypeDescription
idstringThe UUID of the request. A UUID is a 32 to 36-bit alphanumeric string.
kindstringThe kind of profile created, as per the user.
versionstringthe version of the device profile.
versionidstringThe UUID of the version. A UUID is a 32 to 36-bit alphanumeric string.
createdonstring ($date-time)The timestamp of when the record was created.
lastupdatedstring ($date-time)The timestamp of when the last update to the record was made.
namestringThe user-assigned name of the sensor.
foreignidstringThe UUID value of the user's Enterprise Customer Profile Database (ECPD) account. A UUID is a 32 to 36-bit alphanumeric string.
billingaccountidstringThe numeric name of the account and must include leading zeros. This value matches the accountname.
modelidstringThe UUID of the sensor's model identifier. A UUID is a 32 to 36-bit alphanumeric string. This value is assigned at onboarding.
configurationobjectThe time intervals for the sensor to report data as a default.
randomIntintegerThe reporting interval (in hours) if an event is detected.
reportingIntervalintegerThe reporting interval (in hours) as a default.

Failure Responses

Example Response:

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

On this page