Skip to main content
POST
Count devices for up to 20 filters in one call
Key: Read Scope: Company

Authorizations

Authorization
string
header
required

Use your Primo API key in the Authorization header as Bearer <API_KEY>.

Body

application/json
queries
object
required

Up to 20 device queries, each under a label you choose (letters, digits, "_" or "-"), e.g. {"mdmOff":{"filter":{"mdmStatus":{"operationType":"INCLUDE","values":["MDM_OFF"]}}},"all":{}}. A query takes the filter, matchAny and search of getDevices, nothing else.

Response

default - application/json
counts
object
required

The number of records matching each query, under the label the query was sent with