---
title: "Request username recovery"
method: POST
path: "/recover-username"
---

# Request username recovery

`POST /recover-username`

## Request body

- RecoverUsername
  - `email` string, required — Email address associated with the account.

## Response `200`

Send username recovery email

- DefaultJsonResponseNoUser
  - `meta` object, required
    - `code` integer, required — Http status code
  - `response` object, required
    - `csrf_token` string — Session CSRF token

## Other responses

- `400` — Error when trying to send recovery email (e.g. user doesn't exist)

## Changes

- **2025-01-14** `a0f89515a349` — 1 breaking, 2 info
  - the response's body type/format changed from ``/`` to `object`/`` for status `400`
  - added the required property `meta` to the response with the `400` status
  - added the required property `response` to the response with the `400` status
- **2024-12-30** `b4ad23967247` — 1 info
  - endpoint added
- **2019-07-23** `11c8459a5c04` — 1 breaking
  - api path removed without deprecation

[Change history](https://skmtc.dev/pallets-eco/apis/flask-security-external-api/changes/recover-username/post.md)

---

[API](https://skmtc.dev/pallets-eco/apis/flask-security-external-api.md) · [All operations](https://skmtc.dev/pallets-eco/apis/flask-security-external-api/llms.txt) · [OpenAPI document](https://skmtc-service-production.skmtc.workers.dev/v1/apis/pallets-eco/flask-security-external-api/revisions/ee92f388dafa/schema)
