Skip to main content

Get all Personal Access Tokens for the current user.

GET <your-unleash-url>/api/admin/user/tokens

Authorization

name: Authorizationtype: apiKeyin: header

Returns all of the Personal Access Tokens belonging to the current user.

Request

Responses

patsSchema

Schema
  • pats object[]

    A collection of Personal Access Tokens

  • Array [
  • id integer

    Possible values: >= 1

    The unique identification number for this Personal Access Token. (This property is set by Unleash when the token is created and cannot be set manually: if you provide a value when creating a PAT, Unleash will ignore it.)

  • secret string

    The token used for authentication. (This property is set by Unleash when the token is created and cannot be set manually: if you provide a value when creating a PAT, Unleash will ignore it.)

  • expiresAt date-time

    The token's expiration date.

  • createdAt date-time

    When the token was created. (This property is set by Unleash when the token is created and cannot be set manually: if you provide a value when creating a PAT, Unleash will ignore it.)

  • seenAt date-time nullable

    When the token was last seen/used to authenticate with. null if it has not been used yet. (This property is set by Unleash when the token is created and cannot be set manually: if you provide a value when creating a PAT, Unleash will ignore it.)

  • ]

Authorization

name: Authorizationtype: apiKeyin: header

Request

Base URL
<your-unleash-url>
apiKey
curl / cURL
curl -L -X GET '<your-unleash-url>/api/admin/user/tokens' \
-H 'Accept: application/json' \
-H 'Authorization: <API_KEY_VALUE>'