---
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
  - `id` integer — User id.
  - `login` string — User login.
  - `name` string — User name.
  - `organisation` string — User organisation.
  - `email` string — User email.
  - `apikey` string — User API key.
  - `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.

---

[API](https://skmtc.net/gcve-eu/apis/vulnerability-lookup-api.md) · [All operations](https://skmtc.net/gcve-eu/apis/vulnerability-lookup-api/llms.txt) · [OpenAPI document](https://skmtc-service-staging.skmtc.workers.dev/v1/apis/gcve-eu/vulnerability-lookup-api/revisions/5ff926c52769/schema)
