---
title: "POST /user/recovery/recover"
method: POST
path: "/user/recovery/recover"
tags: ["/user/"]
---

# POST /user/recovery/recover

`POST /user/recovery/recover`

## Request body

- RecoveryFinishRequest
  - `recoveryToken` string, required — Recovery token provided in the email letter
  - `newAccessKey` string, required — New access key
  - `deleteContent` boolean, required — Should the server reset keystore and remove objects of stories and storycontent type?

## Response `201`

Account recovery successful.

- SuccessfulLoginResponse
  - `accessToken` string, required — Access Token to be used in the Authorization header in the format of "Bearer ${accessToken}"

## Other responses

- `400` — A validation error occured.
- `401` — Recovery token was not found.
- `409` — A conflict error occured.
- `500` — An unknown error occured.

---

[API](https://skmtc.net/novelai/apis/novelai-primary-api.md) · [All operations](https://skmtc.net/novelai/apis/novelai-primary-api/llms.txt) · [OpenAPI document](https://skmtc-service-staging.skmtc.workers.dev/v1/apis/novelai/novelai-primary-api/revisions/327b3674db26/schema)
