Skip to main content
POST
Count the devices a script run would reach
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
target
object
required

Which devices to run on, intersected with platforms. Resolved once at trigger time — devices joining a group later are not included.

platforms
enum<string>[]
required

Platforms to run on. The target is intersected with this list, and a saved script must support them.

Minimum array length: 1
Available options:
macos,
windows,
linux

Response

default - application/json
count
number
required

Number of devices a run with this target and these platforms would reach.