Skip to main content
POST
/
sequences
/
byids
JavaScript SDK
const [sequence1, sequence2] = await client.sequences.retrieve([{id: 123}, {externalId: 'abc'}]);
{
  "items": [
    {
      "id": 1,
      "columns": [
        {
          "valueType": "DOUBLE",
          "createdTime": 100000000000,
          "lastUpdatedTime": 100000000000,
          "name": "depth",
          "externalId": "DPS1",
          "description": "Optional description",
          "metadata": {
            "extracted-by": "cognite"
          }
        }
      ],
      "createdTime": 100000000000,
      "lastUpdatedTime": 100000000000,
      "name": "Any relevant name",
      "description": "Optional description",
      "assetId": 1221123111,
      "externalId": "my.known.id",
      "metadata": {
        "extracted-by": "cognite"
      },
      "dataSetId": 2718281828459
    }
  ]
}

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

Ids of the sequences

items
(Select by Id · object | Select by ExternalId · object)[]
required
Required array length: 1 - 1000 elements
ignoreUnknownIds
boolean
default:false

Ignore IDs and external IDs that are not found

Response

200 - application/json

Response with the requested sequences.

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