---
title: "GET /users/{userId}/tokens"
method: GET
path: "/users/{userId}/tokens"
tags: ["users"]
---

# GET /users/{userId}/tokens

`GET /users/{userId}/tokens`

Get information about tokens with user id.

## Path parameters

- `userId` integer, required

## Response `200`

A list of tokens belonging to user specified by userId

- TokenUser[]
  - `dbCreateDate` integer
  - `dbUpdateDate` integer
  - `id` integer
  - `tokenSource` 'quay.io' | 'github.com' | 'dockstore' | 'bitbucket.org' | 'gitlab.com' | 'zenodo.org' | 'google.com' | 'orcid.org'
  - `userId` integer
  - `username` string

## Other responses

- `403` — Forbidden
- `404` — User not found

---

[API](https://skmtc.dev/dockstore/apis/dockstore-api.md) · [All operations](https://skmtc.dev/dockstore/apis/dockstore-api/llms.txt) · [OpenAPI document](https://skmtc-service-production.skmtc.workers.dev/v1/apis/dockstore/dockstore-api/revisions/9d82a4e96aa7/schema)
