ThingsBoard icon

ThingsBoard

Interact with ThingsBoard REST API

Device → Get Many by Customer

AI-generated

Summary

Fetch devices assigned to a customer

Inputs

  • pageSize — Maximum amount of entities in a one page
  • page — Sequence number of page starting from 0
  • sortOrder — Sort order. ASC (ASCENDING) or DESC (DESCENDING).
  • deviceType — Device type as the name of the device profile
  • deviceTextSearch — The case insensitive "substring" filter based on the device name
  • deviceSortProperty — Property of entity to sort by
  • customerIdRequired (required) — A string value representing the customer ID. For example, "784f394c-42b6-435a-983c-b7beff2784f9".

Output shape

a paginated list of device entities

Returns devices assigned to the specified customer; pagination controlled by page and pageSize; optional filters and sorting can be applied.

Examples

Example 1: Fetch devices for a specific customer

Enter the Customer ID, optionally adjust pageSize and sortOrder.

Example 2: Search devices by name within a customer

Provide Customer ID and optionally set deviceTextSearch to filter device names.

Example 3: Sort devices by a specific property

Set deviceSortProperty and sortOrder as needed, then provide Customer ID.

Links

Discussion