EndpointsAuth

List personal access tokens

Lists the authenticated user's active (non-revoked) PATs. Plaintext is never returned; only metadata. PAT callers need `read` scope.

GET
/auth/tokens

Authorization

headerAuthorizationBearer <token>

Personal access token for non-browser clients. Mint at Settings → API Tokens. Carries one of two scopes: read (list/get Routes, export GPX, profile) or write (read plus metadata-only mutations on owned routes and on preferences). Blocked from /admin/* and from DELETE /users/me. Destructive operations require X-Routess-Confirm: true and return 428 PRECONDITION_REQUIRED otherwise. See ADR-0022 and ADR-0023.

Response Body

Tokens retrieved

application/json
  1. response
[index: integer]?
curl -X GET 'https://api.routess.com/auth/tokens'
[  {    "id": 42,    "label": "Backup script (laptop)",    "scope": "read",    "lastUsedAt": "2026-05-14T10:23:00Z",    "expiresAt": "2027-01-01T00:00:00Z",    "createdAt": "2026-05-10T08:00:00Z"  }]