Skip to main content
POST
/
events
/
byids
JavaScript SDK
const events = await client.events.retrieve([{id: 123}, {externalId: 'abc'}]);
{
  "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>"
    }
  ]
}

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

List of IDs of events to retrieve. Must be up to a maximum of 1000 IDs, and all of them must be unique.

items
object[]
required
Required array length: 1 - 1000 elements
ignoreUnknownIds
boolean
default:false

Ignore IDs and external IDs that are not found

Response

Paged response with list of events

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