---
title: "Refresh the specified API key for the user that is currently authenticated."
method: PUT
path: "/user/tokens/{slug_perm}/refresh/"
tags: ["user"]
---

# Refresh the specified API key for the user that is currently authenticated.

`PUT /user/tokens/{slug_perm}/refresh/`

Refresh the specified API key for the user that is currently authenticated.

## Response `200`

Successfully refreshed the API key.

- UserAuthenticationToken
  - `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).
- `404` — The specified API key cannot be found.
- `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)
