---
title: "Two Factor Recovery Codes"
method: POST
path: "/auth/2fa/recovery-codes"
---

# Two Factor Recovery Codes

`POST /auth/2fa/recovery-codes`

## Request

- Base URL: `https://safefamilyapp.com` (the document declares no server; this is the origin it was published from)
- URL: `https://safefamilyapp.com/auth/2fa/recovery-codes`
- Auth: HTTP bearer

Fresh recovery codes; the old ones stop working.

## Request body

- PasswordConfirm
  - `password` string, required

## Response `200`

Successful Response

- RecoveryCodesOut
  - `codes` string[], required
  - `method` string, required
  - `access_token` string
  - `token_type` string
  - `expires_in` integer, nullable

## Other responses

- `422`: Validation Error

---

[API](https://skmtc.dev/safefamilyapp/apis/otri-api.md) · [All operations](https://skmtc.dev/safefamilyapp/apis/otri-api/llms.txt) · [OpenAPI document](https://skmtc.dev/safefamilyapp/apis/otri-api/revisions/d07bb03cb836?raw)
