---
title: "Recover an account with an emailed code plus the saved recovery code"
method: POST
path: "/api/auth/recover"
tags: ["auth"]
---

# Recover an account with an emailed code plus the saved recovery code

`POST /api/auth/recover`

## 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/recover`
- Auth: none declared

## Request body

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

## Response `200`

OK

- RecoverAccountOutputBody
  - `$schema` string, uri: A URL to the JSON Schema for this object.
  - `recovery_code` string
  - `user_id` integer, 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)
