---
title: "List all api tokens for a user"
method: GET
path: "/api/v1/entities/users/{userId}/apiTokens"
tags: ["API tokens"]
---

# List all api tokens for a user

`GET /api/v1/entities/users/{userId}/apiTokens`

## Request

- Base URL: `https://www.gooddata.ai`
- URL: `https://www.gooddata.ai/api/v1/entities/users/{userId}/apiTokens`
- Auth: none declared

## Path parameters

- `userId` string, required

## Query parameters

- `filter` string
- `page` integer
- `size` integer
- `sort` string[]
- `metaInclude` string[]: Included meta objects

## Response `200`

Request successfully processed

- JsonApiApiTokenOutList: A JSON:API document with a list of resources
  - `data` JsonApiApiTokenOutWithLinks[], required
    - `attributes` object
      - `bearerToken` string: The value of the Bearer token. It is only returned when the API token is created.
    - `id` string, required: API identifier of an object
    - `type` 'apiToken', required: Object type
    - `links` ObjectLinks
      - `self` string, uri, required: A string containing the link's URL.
  - `links` ListLinks
    - `self` string, uri, required: A string containing the link's URL.
    - `next` string, uri: A string containing the link's URL for the next page of data.
  - `meta` object
    - `page` PageMetadata
      - `number` integer: The number of the current page
      - `size` integer: The size of the current page
      - `totalElements` integer: The total number of elements
      - `totalPages` integer: The total number of pages

---

[API](https://skmtc.dev/gooddata/apis/gooddata-cn-oapi-all-api.md) - [All operations](https://skmtc.dev/gooddata/apis/gooddata-cn-oapi-all-api/llms.txt) - [OpenAPI document](https://skmtc.dev/gooddata/apis/gooddata-cn-oapi-all-api/revisions/c728ef303bfb?raw)
