ThingsBoard icon

ThingsBoard

Interact with ThingsBoard REST API

Asset → Get Many for Current User

AI-generated

Summary

Fetch assets accessible to the current user with optional paging, sorting, and filtering

Inputs

  • authentication — Authentication method (API Key or Username/Password)
  • pageSize — Maximum amount of entities per page (minimum 1)
  • page — Zero‑based page index
  • sortOrder — Sort order ASC or DESC
  • assetType — Asset type filter (name of asset profile)
  • assetTextSearch — Case‑insensitive substring filter on asset name
  • assetSortProperty — Property of entity to sort by (e.g., name, createdTime)

Output shape

array of asset objects

Paging via page and pageSize; optional filtering via assetType and assetTextSearch; sorting via sortOrder and assetSortProperty; returns only assets visible to the current user.

Examples

Example 1: Fetch first page of all assets sorted by name descending

authentication=apiKey&pageSize=10&page=0&sortOrder=DESC&assetSortProperty=name

Example 2: Search assets named like 'door' and sort by createdTime ascending

assetTextSearch=door&sortOrder=ASC&assetSortProperty=createdTime&pageSize=5

Links

Discussion