---
title: "Initiates the flow to update a user's username."
method: POST
path: "/api/Account/update/username"
tags: ["Account"]
---

# Initiates the flow to update a user's username.

`POST /api/Account/update/username`

## Request

- Base URL: `http://localhost:5000`
- URL: `http://localhost:5000/api/Account/update/username`
- Auth: API key in header `x-api-key`

## Request body

- UpdateUsernameRequestDto
  - `username` string, nullable, required

## Response `200`

OK

- InviteUserResponse
  - `emailLink` string, nullable
  - `emailSent` boolean
  - `invalidEmail` boolean

## Changes

- **2026-04-13** `2a82e5fe5308`: 1 info
  - endpoint added

[Operation history](https://skmtc.dev/kareadita/apis/kavita/changes/api/Account/update/username/post.md)

---

[API](https://skmtc.dev/kareadita/apis/kavita.md) - [All operations](https://skmtc.dev/kareadita/apis/kavita/llms.txt) - [OpenAPI document](https://skmtc.dev/kareadita/apis/kavita/revisions/d266465eeb67?raw)
