Personal access tokens
A personal access token (PAT) is a bearer credential bound to one user account. It acts with that user's permissions, and an optional scope can only narrow them. Tokens from the CLI's device flow and from OAuth are personal access tokens too, so everything on this page applies to them.
Format
| Property | Value |
|---|---|
| Shape | fpat_ followed by 32 random bytes, base64url-encoded |
| Sent as | Authorization: Bearer fpat_… |
| Stored as | A SHA-256 hash only. The token itself is returned once, when it is created, and cannot be shown again. |
| Label | A name you choose, shown in your token list. The CLI uses the machine's host name followed by CLI. |
| Last used | Recorded each time the token authenticates a call |
How a token is checked
Resolving a personal access token: 6 nodes and 5 connections at L2 Containers.
- Script, agent or CLI (actor)
- Look up by hash (service)
- Scope and expiry (service)
- Owner still active (service)
- Owner's permissions (service)
- Token scope (service)
- Script, agent or CLI connects to Look up by hash (sync, HTTPS)
- Look up by hash connects to Scope and expiry (sync)
- Scope and expiry connects to Owner still active (sync)
- Owner still active connects to Owner's permissions (sync, Allowed)
- Owner's permissions connects to Token scope (sync, Both must pass)
Scope
A token minted without a scope has its owner's full authority. A scope has up to four fields, and each one only removes authority:
| Field | Effect when set |
|---|---|
readOnly | Refuses every route and MCP tool whose mode is write, even if the owner holds api:write. |
namespaces | The token can touch only these namespaces. |
permissions | An allowlist of permission strings, such as read:content. A request needs the permission both in this list and in the owner's permissions for that namespace. Wildcards such as read:* match here the same way they do in a role. |
expiresAt | A time in epoch milliseconds. From that moment the token no longer authenticates. |
Because both checks must pass for the same permission, a scope of *:* grants nothing beyond what the owner already has, and a scope of read:content limits even an owner who holds *:* to reading content. The owner's permissions are read fresh on every call, so a role removed from the owner is removed from all of their tokens at once.
When a token is created, Furnace rejects a scope it cannot parse, an expiresAt that is already past, and, when namespaces is listed, a permission the owner does not hold in at least one of those namespaces. These checks give an early error; the per-call check above is what enforces the scope.
The CLI requests a scope at sign-in with --read-only, --namespace and --scope (comma-separated permissions). The API tokens page offers the same fields plus an expiry. See Permissions, entitlements and flags for permission strings and namespaces.
Expiry
A token without expiresAt does not expire. It keeps working until it is revoked or its owner's account is deactivated, banned, suspended or deleted. A ban leaves the token in place but refuses it on the next call.
Revocation
| How | What it revokes |
|---|---|
DELETE /api/v1/auth/token with the token as bearer | The token making the request. |
| The Revoke button on the API tokens page while signed in | Any of your own tokens. A token that belongs to someone else is treated as not found. |
A revoked token is refused from its next call. It stays in your token list, marked revoked, and the revocation is recorded in the security audit log, as is every token creation. Short-lived tokens that Furnace issues for a single run are deleted outright when the run ends.
A token can always list the tokens of the user who owns it, whatever its scope.
Endpoint detail is in the API reference.