> ## Documentation Index
> Fetch the complete documentation index at: https://docs.getkato.io/llms.txt
> Use this file to discover all available pages before exploring further.

# Inspect CLI credentials

> Inspect the workspace, scopes, and optional project pin on a CLI-compatible key.

Inspect the workspace, scopes, and optional project pin on a CLI-compatible key.

Use a developer access key. This endpoint is part of the [CLI API](/api-reference/cli/overview), with its own response format and rate limit.

No additional resource scope is required.

The response is a top-level object without a `data` wrapper. `recordId` is null for an unpinned key.

## Response

**200** — Returns the resource under `data`. Example IDs and values are illustrative.

<ResponseExample>
  ```json 200 theme={null}
  {
    "workspace": {
      "id": "workspace_example",
      "name": "Northlane",
      "slug": "northlane"
    },
    "scopes": [
      "env:read"
    ],
    "recordId": null
  }
  ```
</ResponseExample>

<RequestExample>
  ```bash Request theme={null}
  curl --fail-with-body --silent --show-error \
    "https://api.getkato.io/cli/v1/whoami" \
    -H "Authorization: Bearer $KATO_API_KEY"
  ```
</RequestExample>


## Related topics

- [All endpoints](/api-reference/endpoints.md)
- [CLI API](/api-reference/cli/overview.md)
- [Kato CLI](/documentation/cli.md)
- [CLI configuration and CI](/documentation/cli-configuration.md)
- [Get OAuth client metadata](/api-reference/oauth/client.md)
