---
title: "POST /v1/accessTokens"
method: POST
path: "/v1/accessTokens"
---

# POST /v1/accessTokens

`POST /v1/accessTokens`

Lists all personal access tokens (PATs) associated with the user who calls the API. You can only list PATs associated with your Amazon Web Services Builder ID.

## Request body

- object
  - `maxResults` integer — The maximum number of results to show in a single call to this API. If the number of results is larger than the number you specified, the response will include a <code>NextToken</code> element, which you can use to obtain additional results.
  - `nextToken` string — A token returned from a call to this API to indicate the next batch of results to return, if any.

## Response `200`

Success

- ListAccessTokensResponse
  - `items` AccessTokenSummary[], required — A list of personal access tokens (PATs) associated with the calling user identity.
    - `id` string, required — The system-generated ID of the personal access token.
    - `name` string, required — The friendly name of the personal access token.
    - `expiresTime` string, date-time — The date and time when the personal access token will expire, in coordinated universal time (UTC) timestamp format as specified in <a href="https://www.rfc-editor.org/rfc/rfc3339#section-5.6">RFC 3339</a>.
  - `nextToken` string — A token returned from a call to this API to indicate the next batch of results to return, if any.

## Other responses

- `480` — ThrottlingException
- `481` — ConflictException
- `482` — ValidationException
- `483` — ServiceQuotaExceededException
- `484` — ResourceNotFoundException
- `485` — AccessDeniedException

---

[API](https://skmtc.net/aws/apis/codecatalyst.md) · [All operations](https://skmtc.net/aws/apis/codecatalyst/llms.txt) · [OpenAPI document](https://skmtc-service-staging.skmtc.workers.dev/v1/apis/aws/codecatalyst/versions/b82f5a10dc49/schema)
