# 3pm-backend route `me`

Paths are relative to the backend's origin (https://fleet.edgecr4ft.net, or your own 3pm-backend), not to this site. Index: https://3pm.edgecr4ft.net/docs/backend/api.md

---

tokens:
  claude: 363
  o200k: 228
# GET /api/auth/me (me)

The account behind this request: its name, its tokens (never their secrets) and how many buckets it owns.

- auth: an account — Authorization: Bearer 3pmu_<token>, or the dashboard's session cookie
- answer: Me (JSON)

## Types

```ts
interface Me {
  user: UserView;
  tokens: UserTokenView[];
  /** How many buckets the account owns. */
  buckets: number;
}

interface UserView {
  name: string;
  created_at: EpochMs;
}

/** A token as listed: never the secret. */
interface UserTokenView {
  token_id: string;
  label: string;
  created_at: EpochMs;
  /** Refreshed at most once a minute. */
  last_used_at: EpochMs | null;
  /** The token behind this request, or behind its session. */
  current: boolean;
}

/** Milliseconds since the Unix epoch. */
type EpochMs = number;
```
