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

# POST /user/recovery/recover

`POST /user/recovery/recover`

## Request

- Base URL: `https://api.novelai.net` (the document declares no server; this is the origin it was published from)
- URL: `https://api.novelai.net/user/recovery/recover`
- Auth: none declared
- TypeScript: <https://skmtc.dev/novelai/apis/novelai-primary-api/docs/user/recovery/recover/post.ts> (a function with typed inputs; its response is checked against the schema)

## 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.dev/novelai/apis/novelai-primary-api.md) - [All operations](https://skmtc.dev/novelai/apis/novelai-primary-api/llms.txt) - [OpenAPI document](https://skmtc.dev/novelai/apis/novelai-primary-api/revisions/cf1e524380e2?raw)
