---
title: "Inspect the current account"
description: "Returns the account and owner associated with the bearer credential."
canonical: "https://www.cool.computer/docs/api-reference/authentication/inspect-the-current-account"
---
# Inspect the current account

> Returns the account and owner associated with the bearer credential.

```http
GET https://api.cool.computer/api/auth/whoami
```

Returns the account and owner associated with the bearer credential.

## Authorization

- A Cool Computers API key, user access token, or claimed agent access token in the Authorization header. Follow https://www.cool.computer/auth.md for agent registration and https://www.cool.computer/authentication.md for direct user credentials.

## Responses

- `200`: The authenticated account.
  - `application/json` (object)
    - `account_id` (integer, int64, required)
    - `owner` (object, required)
      - `id` (integer, int64, required)
      - `email` (string, email, required)
      - `name` (string, required)
- `401`: Unauthorized.
- `429`: Too Many Requests. If the problem code is api_request_rate_exceeded, wait for Retry-After seconds; other problem codes describe a separate limit.
- `500`: Internal Server Error.
- `default`: A machine-readable API error with a stable code and recovery instruction.

An error is an `application/problem+json` document with a stable `code`; [API errors](/docs/api-reference/errors) says how to handle one.

## Example

```sh
curl "https://api.cool.computer/api/auth/whoami" \
  -H "authorization: Bearer $TOKEN"
```
