Skip to main content
POST
/
sessions
/
revoke
Revoke sessions
curl --request POST \
  --url https://{cluster}.cognitedata.com/api/v1/projects/{project}/sessions/revoke \
  --header 'Authorization: Bearer <token>' \
  --header 'Content-Type: application/json' \
  --data '
{
  "items": [
    {
      "id": 123
    }
  ]
}
'
{
  "items": [
    {
      "id": 0,
      "type": "CLIENT_CREDENTIALS",
      "status": "REVOKED",
      "creationTime": 1638795554528,
      "expirationTime": 1638795554528,
      "clientId": "client-123"
    }
  ]
}

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

A request containing the information needed to revoke sessions.

items
object[]
Minimum array length: 1

Response

List of revoked sessions. If the user does not have the sessionsAcl:LIST capability, then only the session IDs will be present in the response.

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