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
}
]
}Required capabilities:
sessionsAcl:LIST
Retrieves sessions with given IDs. The request will fail if any of the IDs does not belong to an existing session.
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
}
]
}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.
List of session IDs to retrieve
1 - 1000 elementsShow child attributes
A list of sessions with the given ids
Show child attributes
Was this page helpful?