---
title: "List PATs"
method: GET
path: "/v3/users/{userId}/access-tokens"
tags: ["Personal Access Tokens"]
---

# List PATs

`GET /v3/users/{userId}/access-tokens`

List personal access tokens for a user.

## Response `200`

A list response for a collection of personal access tokens.

- object
  - `meta` PageMeta — Contains pagination query parameters and the total number of objects returned.
    - `number` number, required
    - `size` number, required
    - `total` number, required
  - `data` PersonalAccessToken[], required
    - `id` string, uuid, required — Contains a unique identifier used for this resource.
    - `user_id` string, uuid, required — Contains a unique identifier used for a user.
    - `name` string, required
    - `state` 'ACTIVE' | 'REVOKED' | 'EXPIRED', required — State of the personal access token.
    - `revoked_by` string, uuid, nullable — Contains a unique identifier used for the user that revoked this token.
    - `created_at` string, date-time, required — An ISO-8601 timestamp representation of entity creation date.
    - `updated_at` string, date-time, required — An ISO-8601 timestamp representation of entity update date.
    - `last_used_at` string, date-time, nullable — An ISO-8601 timestamp representation of entity last used date.
    - `expires_at` string, date-time, nullable, required — An ISO-8601 timestamp representation of entity expiration date.
    - `revoked_at` string, date-time, nullable — An ISO-8601 timestamp representation of entity revoked at date.

## Other responses

- `400` — Bad Request
- `401` — Unauthorized
- `403` — Forbidden
- `404` — Not Found

---

[API](https://skmtc.net/kong/apis/konnect-api-go-sdk.md) · [All operations](https://skmtc.net/kong/apis/konnect-api-go-sdk/llms.txt) · [OpenAPI document](https://skmtc-service-staging.skmtc.workers.dev/v1/apis/kong/konnect-api-go-sdk/versions/0261aef4b1e2/schema)
