Skip to main content
POST
/
api
/
v1
/
orgs
/
{org}
/
principals
/
{principal}
/
sessions
/
revoke
Revoke login sessions
curl --request POST \
  --url https://auth.cognite.com/api/v1/orgs/{org}/principals/{principal}/sessions/revoke \
  --header 'Content-Type: application/json' \
  --data '
{
  "items": [
    {
      "id": "aea91e72-a984-4a4c-ba06-a7f54e650825"
    }
  ]
}
'
{
  "code": 123,
  "message": "<string>"
}

Path Parameters

org
string
required

ID of an organization The ID of an organization

Required string length: 3 - 64
Pattern: ^([a-z][a-z0-9-]{1,62}[a-z0-9])$
Example:

"my-org"

principal
string
required

ID of a principal Unique identifier of a principal

Example:

"5yAFQRAATb7vtWGp4gvbJD3wE7VS81CGuQ7EZT"

Body

application/json

A request to revoke login sessions for a user principal.

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

Response

Login sessions revoked successfully.

Last modified on April 23, 2026