Skip to main content
POST
/
assets
/
search
JavaScript SDK
const assets = await client.assets.search({
  filter: {
    parentIds: [1, 2]
  },
  search: {
    query: '21PT1019'
  }
});
{
  "items": [
    {
      "createdTime": 1730204346000,
      "lastUpdatedTime": 1730204346000,
      "rootId": 4503599627370496,
      "name": "<string>",
      "id": 4503599627370496,
      "aggregates": {
        "childCount": 1,
        "depth": 1,
        "path": [
          {
            "id": 4503599627370496
          }
        ]
      },
      "parentId": 4503599627370496,
      "parentExternalId": "my.known.id",
      "externalId": "my.known.id",
      "description": "<string>",
      "dataSetId": 4503599627370496,
      "metadata": {},
      "source": "<string>",
      "labels": [
        {
          "externalId": "my.known.id"
        }
      ],
      "geoLocation": {
        "type": "Feature",
        "geometry": {
          "type": "Point",
          "coordinates": [
            123
          ]
        },
        "properties": {}
      }
    }
  ]
}

Authorizations

Authorization
string
header
required

Access token issued by the CDF project's configured identity provider. Access token must be an OpenID Connect token, and the project must be configured to accept OpenID Connect tokens. Use a header key of 'Authorization' with a value of 'Bearer $accesstoken'. The token can be obtained through any flow supported by the identity provider.

Body

application/json

Search query

Search request with filter capabilities.

filter
Filter · object

Filter on assets with strict matching.

limit
integer<int32>
default:100

Limits the number of results to return.

Required range: 1 <= x <= 1000

Fulltext search for assets. Primarily meant for for human-centric use-cases, not for programs. The query parameter uses a different search algorithm than the deprecated name and description parameters, and will generally give much better results.

Response

Response with list of assets.

items
object[]
required
Last modified on April 23, 2026