Skip to main content
POST
/
events
/
list
JavaScript SDK
const events = await client.events.list({ filter: { startTime: { min: new Date('1 jan 2018') }, endTime: { max: new Date('1 jan 2019') } } });
{
  "items": [
    {
      "id": 4503599627370496,
      "lastUpdatedTime": 1730204346000,
      "createdTime": 1730204346000,
      "externalId": "my.known.id",
      "dataSetId": 4503599627370496,
      "startTime": 1730204346000,
      "endTime": 1730204346000,
      "type": "<string>",
      "subtype": "<string>",
      "description": "<string>",
      "metadata": {},
      "assetIds": [
        4503599627370496
      ],
      "source": "<string>"
    }
  ],
  "nextCursor": "<string>"
}

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

Cursor for paging through results. In general, if a response contains a nextCursor property, it means that there may be more results, and you should pass that value as the cursor parameter in the next request.

Note that the cursor may or may not be encrypted, but either way, it is not intended to be decoded. Its internal structure is not a part of the public API, and may change without notice. You should treat it as an opaque string and not attempt to craft your own cursors.

filter
object

Filter on events filter with exact match

advancedFilter
and · object

A query that matches items matching boolean combinations of other queries. It's built using one or more boolean clauses of the following types: and, or, or not

Example:
{
"or": [
{
"not": {
"and": [
{
"equals": {
"property": ["metadata", "severity"],
"value": "medium"
}
},
{
"in": {
"property": ["source"],
"values": ["inspection protocol", "incident report"]
}
},
{
"range": {
"property": ["dataSetId"],
"gte": 1,
"lt": 10
}
}
]
}
},
{
"and": [
{
"equals": {
"property": ["type"],
"value": "equipment malfunction"
}
},
{
"equals": {
"property": ["subtype"],
"value": "mechanical failure"
}
}
]
},
{
"search": {
"property": ["description"],
"value": "outage"
}
}
]
}
limit
integer<int32>
default:100

Limits the maximum number of results to be returned by a single request. In case there are more results to the request, the 'nextCursor' attribute will be provided as part of the response. Request may contain less results than the request limit.

Required range: 1 <= x <= 1000
sort

Sort by array of selected properties.

Maximum array length: 2
Example:
[
{
"property": ["createdTime"],
"order": "desc"
},
{
"property": ["metadata", "FooBar"],
"nulls": "first"
}
]
cursor
string
Example:

"4zj0Vy2fo0NtNMb229mI9r1V3YG5NBL752kQz1cKtwo"

partition
string

Splits the data set into N partitions. The attribute is specified as a "M/N" string, where M is a natural number in the interval of [1, N]. You need to follow the cursors within each partition in order to receive all the data.

The maximum number of allowed partitions (N) is 10.

Cognite rejects requests if you specify more than 10 partitions. When Cognite enforces this behavior, the requests result in a 400 Bad Request status.

Example:

"1/3"

Response

Paged response with list of events

A list of objects along with possible cursors to get the next or previous page of results.

items
object[]
required
nextCursor
string

Cursor to get the next page of results (if available).

Last modified on April 23, 2026