curl --request GET \
--url https://{cluster}.cognitedata.com/api/v1/projects/{project}/sessions \
--header 'Authorization: Bearer <token>'{
"items": [
{
"id": 123,
"type": "CLIENT_CREDENTIALS",
"status": "READY",
"creationTime": 1730204346000,
"expirationTime": 1730204346000,
"clientId": "<string>"
}
],
"nextCursor": "<string>",
"previousCursor": "<string>"
}Required capabilities:
sessionsAcl:LIST
List all sessions in the current project.
curl --request GET \
--url https://{cluster}.cognitedata.com/api/v1/projects/{project}/sessions \
--header 'Authorization: Bearer <token>'{
"items": [
{
"id": 123,
"type": "CLIENT_CREDENTIALS",
"status": "READY",
"creationTime": 1730204346000,
"expirationTime": 1730204346000,
"clientId": "<string>"
}
],
"nextCursor": "<string>",
"previousCursor": "<string>"
}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.
If given, only sessions with the given status are returned.
ready, active, cancelled, revoked, access_lost Cursor to use for paging through results.
Return up to this many results. Maximum is 1000. Default is 25.
x <= 1000Was this page helpful?