ThingsBoard icon

ThingsBoard

Interact with ThingsBoard REST API

Asset → Get Many

AI-generated

Summary

Fetch a paginated list of assets filtered and sorted as specified.

Inputs

  • authentication (required) — Authentication method: either 'API Key' or 'Username / Password'.
  • pageSize — Maximum number of assets to return per page (default 10).
  • page — Zero‑based page index (default 0).
  • sortOrder — Sort direction, either 'ASC' or 'DESC'.
  • assetType — Filter assets by their type.
  • assetTextSearch — Case‑insensitive substring filter on asset name.
  • assetSortProperty — Property used for sorting, such as 'createdTime', 'name', etc.

Output shape

an array of asset objects

Pagination respects page and pageSize; optional filtering via assetType and assetTextSearch; sorting uses assetSortProperty and sortOrder. May return an empty array if no assets match.

Examples

Example 1: Retrieve the first page of tenant assets, sorted by creation time descending, with a page size of 5.

resource = Asset, operation = Get Many, page = 0, pageSize = 5, sortOrder = DESC, assetSortProperty = createdTime

Example 2: Search for assets of type 'temperature_sensor' using a name substring 'sensor', return the second page with 20 items.

resource = Asset, operation = Get Many, assetType = temperature_sensor, assetTextSearch = sensor, page = 1, pageSize = 20

Links

Discussion