Account API – Search and Pagination
Devices can be searched and paginated within the /api/v2/devices route. This search is similar to searches on the DeviceHQ website.
- A query parameter ( “q” ) will match against the various fields of the devices collection.
- Limit and skip parameters may be included. If no limit parameter is included, it will default to 500
- Examples:
- GET https://devicehq.com/api/v2/devices?limit=30
- Retrieves the first 30 devices for an account.
- GET https://devicehq.com/api/v2/devices?limit=20&skip=30
- Retrieves devices 30 through 49 for an account.
- GET https://devicehq.com/api/v2/devices?q=MTCDT
- Retrieves all the devices for an account matching on the phrase “MTCDT”
- GET https://devicehq.com/api/v2/devices?limit=30