Inspect the token currently used by the client

async AsyncCogniteClient.iam.token.inspect() TokenInspection

Inspect a token.

Get details about which projects it belongs to and which capabilities are granted to it.

Returns:

The object with token inspection details.

Return type:

TokenInspection

Example

Inspect token:

>>> from cognite.client import CogniteClient, AsyncCogniteClient
>>> client = CogniteClient()
>>> # async_client = AsyncCogniteClient()  # another option
>>> res = client.iam.token.inspect()