Devices

devices

Methods

List Devices -> OffsetPage<>
get/devices

Retrieve a list of devices.

Filtering by custom properties

Use the query parameter to filter devices on custom properties. Syntax:

  • properties.key:value: matches devices with a property that contains a key named key with a value of value; use double quotes if the value contains spaces or special characters
  • properties.key:value1,value2: matches devices with a property that contains a key named key and its value is either value1 or value2
  • properties.key:*: matches devices with a property that contains a key named key and any value
  • foo: matches devices with properties where any key or stringified value contains foo Multiple qualifiers can be used in the same query string; this will filter devices matching the intersection of the qualifiers (AND).
query Parameters
limit: number
Optional
(minimum: 0, maximum: 2000, default: 2000)

Maximum number of items to return

offset: number
Optional
(minimum: 0)

Number of items to skip before returning the results

query: string
Optional

Space-separated query string for device custom properties. Each custom property key must be valid and prefixed with "properties.". See above for syntax and examples.

sortBy: string
Optional

Field to sort items by ("id", "name", or a custom property key prefixed with properties.)

sortOrder:
Optional

Sort order for the sortBy field

"asc"
"desc"
Response fields
id: string

Opaque identifier

name: string

Organization-chosen device name

createdAt: string
Optional
(format: date)
orgId: string
Optional
properties: Record<string, string | number | boolean>
Optional

A key-value map, where each key is one of your pre-defined device custom properties. Keys which are not recognized as custom properties will be ignored.

retainRecordingsSeconds: number
Optional

The retention period for recordings created on this device. If set to zero, recordings are retained indefinitely. This is only relevant for devices that have an agent installed.

updatedAt: string
Optional
(format: date-time)
Request example
200Example
Create A Device ->
post/devices

Create a device

Get A Device ->
get/devices/{nameOrId}

Get details on a specific device.

Delete A Device -> { id }
delete/devices/{nameOrId}

Delete a device. Once a device is deleted, it will no longer show up in your list of devices.

Before deleting a device, you must delete all associated data.

Update A Device ->
patch/devices/{nameOrId}

Update a device

Domain types

Device = { id, name, createdAt, 4 more... }
Devices

Tokens

devices.tokens

Methods

List Device Tokens -> Array<>
get/device-tokens

List device tokens

Create A Device Token ->
post/device-tokens

You must have an Enterprise or Team account to create and use device tokens

Get A Device Token ->
get/device-tokens/{id}

Get a device token

Edit A Device Token ->
patch/device-tokens/{id}

Edit a device token

Delete A Device Token -> { id }
delete/device-tokens/{id}

Delete a device token

Domain types

DeviceToken = { id, createdAt, deviceId, 1 more... }

A DeviceToken authenticates device agents to the API.