Skip to main content
POST
/
sessions
/
byids
Retrieve sessions with given IDs
curl --request POST \
  --url https://{cluster}.cognitedata.com/api/v1/projects/{project}/sessions/byids \
  --header 'Authorization: Bearer <token>' \
  --header 'Content-Type: application/json' \
  --data '
{
  "items": [
    {
      "id": 4503599627370496
    }
  ]
}
'
{
  "items": [
    {
      "id": 105049194919491,
      "type": "TOKEN_EXCHANGE",
      "status": "ACTIVE",
      "creationTime": 1638795559528,
      "expirationTime": 1638795559628
    }
  ]
}

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 session IDs to retrieve

items
object[]
required
Required array length: 1 - 1000 elements

Response

A list of sessions with the given ids

items
object[]
Last modified on April 23, 2026