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

Request

  • Base URL
    https://app.unleash-instance.example.com
  • URL
    https://app.unleash-instance.example.com/api/admin/user/tokens
  • Auth
    • API key in header Authorization
    • or HTTP bearer

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

Changes

No recorded changes to this operation across all 7 revisions of this API.