v7

latestOpenAPI 3.0.3raw.githubusercontent.com2026-08-013764062.2 MB
Personal access tokens

Get all personal access tokens (PATs) for the current user.

Returns all of the personal access tokens (PATs) belonging to the current user.

get/api/admin/user/tokens

Response

#/components/schemas/patsSchema

Example response

{
  "pats": [
    {
      "id": 1,
      "secret": "user:xyzrandomstring",
      "createdAt": "2023-04-19T08:15:14.000Z",
      "seenAt": "2023-04-19T08:15:14.000Z",
      "userId": 1337,
      "description": "user:xyzrandomstring",
      "expiresAt": "2023-04-19T08:15:14.000Z"
    }
  ]
}