References
/devices
/count

/devices/count

Body

type (optional)

  • Type: Enumeration
  • Examples: "registered", "paired", "unpaired"

filter (optional)

  • Type: Enumeration
  • Examples: "online", "offline"

Success response

code

"DEVICES-COUNT-FETCHED"

message

"Number of online devices is successfully fetched."

nDevices

  • Type: Integer
  • Examples: 20

Usage:

curl "https://api.grandeur.tech/devices/count?apiKey=${API_KEY}" -H "Authorization: ${AUTH_TOKEN}" --json '{"type": "paired", "filter": "offline"}'

Output

JSON
{
    "code": "DEVICES-COUNT-FETCHED",
    "message": "Number of online devices is successfully fetched.",
    "nDevices": 20
}