---
title: "Get user tokens for current account by admin user"
method: GET
path: "/users/{user_id}/tokens"
tags: ["users"]
---

# Get user tokens for current account by admin user

`GET /users/{user_id}/tokens`

Returns the list of created token by this user, either `scope` or `resource` type. Token list includes also `token_hash`.

## Path parameters

- `user_id` string, required

## Response `200`

successful operation

- UserTokenList — The list of user tokens, either `scope` or `resource` types.
  - `items` union[]
    - union
      - UserResourceToken
        - `id` string — Id of the token in the system, not a token itself!
        - `name` string
        - `created_at` string
        - `expires_at` string
        - `metadata` object
        - `resources` UserTokenPermissionResourceItem[]
          - `resource_type` 'channel' | 'subchannel' | 'artifact', required
          - `resource_id` string, required — resource name
          - `permission` string, required
      - UserScopeToken
        - `id` string — Id of the token in the system, not a token itself!
        - `name` string
        - `metadata` object
        - `created_at` string
        - `expires_at` string
        - `scopes` string[]

## Other responses

- `401` — Unauthenticated, no token is provided or token is invalid
- `403` — Access is forbidden
- `500` — Internal server error

---

[API](https://skmtc.net/anaconda/apis/anaconda-server-api.md) · [All operations](https://skmtc.net/anaconda/apis/anaconda-server-api/llms.txt) · [OpenAPI document](https://skmtc-service-staging.skmtc.workers.dev/v1/apis/anaconda/anaconda-server-api/versions/6aef0cb7a151/schema)
