# 3pm-backend route `createUserToken`

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: 288
  o200k: 187
# POST /api/auth/tokens (createUserToken)

Another token for the account (a laptop, a CI job); the secret comes back once.

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

## Types

```ts
interface CreateUserToken {
  /** 1–64 characters; `token` by default. */
  label?: string;
}

interface UserTokenCreated {
  /** The secret, `3pmu_…`: returned once, never stored. */
  token: string;
  token_id: string;
  label: string;
  created_at: EpochMs;
}

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