---
title: "Regenerating the API key of the authenticated user with the current API key"
method: POST
path: "/user/api_key"
tags: ["user"]
---

# Regenerating the API key of the authenticated user with the current API key

`POST /user/api_key`

Regenerating the API key of the authenticated user with the current API key.

## Headers

- `X-Fields` string, mask

## Request body

- API20Key — unresolved $ref

## Response `200`

Success.

- UserFull
  - `uuid` string — User UUID.
  - `login` string — User login.
  - `is_admin` boolean — Boolean specifying whether the user is administrator.
  - `is_reporter` boolean — Boolean specifying whether the user is reporter.
  - `is_commenter` boolean — Boolean specifying whether the user is commenter.
  - `created_at` string, date-time — Creation time of the user.
  - `last_seen` string, date-time — Last seen time of the user.

## Other responses

- `403` — Wrong API key submitted.
- `404` — User not found.

## Changes

- **2024-11-27** `5ff926c52769` — 1 info
  - endpoint added
- **2024-06-05** `28bfb33cc1fb` — 1 breaking
  - api path removed without deprecation

[Change history](https://skmtc.dev/vulnerability-lookup/apis/vulnerability-lookup-api/changes/user/api_key/post.md)

---

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