Skip to main content
GET
/
sessions
List sessions
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>"
}

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.

Query Parameters

status
enum<string>

If given, only sessions with the given status are returned.

Available options:
ready,
active,
cancelled,
revoked,
access_lost
cursor
string

Cursor to use for paging through results.

limit
integer<int32>
default:25

Return up to this many results. Maximum is 1000. Default is 25.

Required range: x <= 1000

Response

A list of sessions in the current project.

items
object[]
nextCursor
string

Cursor to get the next page of results (if available).

previousCursor
string

Cursor to get the previous page of results (if available).

Last modified on April 23, 2026