---
title: "Refresh Api Key"
method: POST
path: "/api/users/{user_id}/api-key/refresh"
tags: ["users"]
---

# Refresh Api Key

`POST /api/users/{user_id}/api-key/refresh`

Refresh the API key for a user by ID.

## Path parameters

- `user_id` string, required

## Response `200`

Successful Response

- User
  - `id` string, required
  - `api_key` string, required
  - `created_at` string, date-time, required

## Other responses

- `422` — Validation Error

---

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