Skip to main content
POST
/
datasets
/
byids
JavaScript SDK
const dataSets = await client.datasets.retrieve([{id: 123}, {externalId: 'abc'}]);
{
  "items": [
    {
      "writeProtected": false,
      "id": 4503599627370496,
      "createdTime": 1730204346000,
      "lastUpdatedTime": 1730204346000,
      "externalId": "my.known.id",
      "name": "<string>",
      "description": "<string>",
      "metadata": {}
    }
  ]
}

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 the IDs of the data sets to retrieve. You can retrieve a maximum of 1000 data sets per request. All IDs must be unique.

items
(DataSetInternalId · object | DataSetExternalId · object)[]
required
Required array length: 1 - 1000 elements
ignoreUnknownIds
boolean
default:false

Ignore IDs and external IDs that are not found

Response

A list of data sets.

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