v7

latestOpenAPI 3.0.3raw.githubusercontent.com2026-08-013764062.2 MB
Service Accounts

List all tokens for a service account.

Enterprise feature

Returns the list of all tokens for a service account identified by the id.

get/api/admin/service-account/{id}/token

Path parameters

idstring required

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"
    }
  ]
}