---
title: "Replace the authenticated user's recovery code; the new code is returned exactly once"
method: POST
path: "/api/auth/recovery-code/regenerate"
tags: ["auth"]
---

# Replace the authenticated user's recovery code; the new code is returned exactly once

`POST /api/auth/recovery-code/regenerate`

## Request

- Base URL: `https://api.hillstar.ai` (the document declares no server; this is the origin it was published from)
- URL: `https://api.hillstar.ai/api/auth/recovery-code/regenerate`
- Auth: none declared

## Response `200`

OK

- RecoveryCodeRegenerateOutputBody
  - `$schema` string, uri: A URL to the JSON Schema for this object.
  - `recovery_code` string, required

## Other responses

- `default`: Error

---

[API](https://skmtc.dev/hillstar/apis/rfpai-api-go.md) - [All operations](https://skmtc.dev/hillstar/apis/rfpai-api-go/llms.txt) - [OpenAPI document](https://skmtc.dev/hillstar/apis/rfpai-api-go/revisions/b2532dc47fc6?raw)
