Skip to main content

List all tokens for a service account.

GET /api/admin/service-account/:id/token

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

Request

Path Parameters

  • id string required
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.)

  • ]
Loading...