---
title: "Search Devices"
method: POST
path: "/app/v1/devices/search"
tags: ["devices"]
---

# Search Devices

`POST /app/v1/devices/search`

## Request body

- object
  - `page` number — Which page to return
  - `page_size` number — How many items to list in a page
  - `sort_by` 'name' | 'status' | 'type_id'
  - `sort_direction` 'asc' | 'desc' — sort direction
  - `filter` DeviceFilterFields
    - `facility.custom_attributes` object
    - `facility.id` string
    - `facility.name` string
    - `facility.status` string
    - `attributes` object
    - `custom_attributes` object
    - `id` string
    - `measurement_types` string
    - `name` string
    - `status` string
    - `type_id` string
    - `created_at` string, date-time
    - `updated_at` string, date-time
    - `event.id` string

## Response `200`

successful operation

- PagedDeviceList
  - `page_number` number
  - `page_size` number
  - `total_entries` number
  - `total_pages` number
  - `data` Device[]
    - `created_at` string, date-time
    - `updated_at` string, date-time
    - `created_by` string, uuid
    - `updated_by` string, uuid
    - `attributes` DeviceAttribute — Device Attributes
    - `custom_attributes` CustomAttributes
    - `facility` FacilityNameAndId
      - `custom_attributes` CustomAttributes
      - `id` string, uuid
      - `name` string
    - `facility_id` string, uuid — facility_id
    - `id` string, uuid
    - `measurement_types` string[] — measurement_types
    - `name` string — Device name
    - `status` 'active' | 'archived'
    - `type_id` string — Device type

---

[API](https://skmtc.net/validere/apis/carbonhub-api.md) · [All operations](https://skmtc.net/validere/apis/carbonhub-api/llms.txt) · [OpenAPI document](https://skmtc-service-staging.skmtc.workers.dev/v1/apis/validere/carbonhub-api/revisions/053edab62415/schema)
