---
title: "ListUserAuthTokens lists the current user's auth tokens.
You can optionally pass \"current\" instead of the user ID to list the current user's tokens."
method: GET
path: "/v1/users/{userId}/tokens"
---

# ListUserAuthTokens lists the current user's auth tokens.
You can optionally pass "current" instead of the user ID to list the current user's tokens.

`GET /v1/users/{userId}/tokens`

## Path parameters

- `userId` string, required

## Query parameters

- `pageSize` integer
- `pageToken` string
- `superuserForceAccess` boolean
- `refresh` boolean

## Response `200`

A successful response.

- V1ListUserAuthTokensResponse
  - `nextPageToken` string — Page token for the next page of results. If empty, there are no more pages.
  - `tokens` V1UserAuthToken[] — List of auth tokens for the user.
    - `attributes` object
    - `authClientDisplayName` string
    - `authClientId` string
    - `createdOn` string, date-time
    - `displayName` string
    - `expiresOn` string, date-time
    - `id` string
    - `prefix` string
    - `refresh` boolean
    - `representingUserId` string
    - `usedOn` string, date-time

## Other responses

- `default` — An unexpected error response.

---

[API](https://skmtc.net/rilldata/apis/rill-admin-api.md) · [All operations](https://skmtc.net/rilldata/apis/rill-admin-api/llms.txt) · [OpenAPI document](https://skmtc-service-staging.skmtc.workers.dev/v1/apis/rilldata/rill-admin-api/revisions/289a0ca9ce49/schema)
