---
title: "Retrieve the API key assigned to the user that is currently authenticated."
method: GET
path: "/user/tokens/"
tags: ["user"]
---

# Retrieve the API key assigned to the user that is currently authenticated.

`GET /user/tokens/`

Retrieve the API key assigned to the user that is currently authenticated.

## Query parameters

- `page` integer
- `page_size` integer

## Response `200`

Retrieved the API key for the user that is currently authenticated.

- object
  - `results` UserAuthenticationToken[], required
    - `created` string, date-time — The time at which the API key was created.
    - `key` string — The unique API key used for authentication. This will be obfuscated on read-only HTTP methods.
    - `slug_perm` string — The slug_perm for token.

## Other responses

- `400` — Request could not be processed (see detail).
- `422` — Missing or invalid parameters (see detail).

---

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