---
title: "Post Username"
method: POST
path: "/api/account/username"
tags: ["account"]
---

# Post Username

`POST /api/account/username`

## Request

- Base URL: `https://api.getcheapgames.com` (the document declares no server; this is the origin it was published from)
- URL: `https://api.getcheapgames.com/api/account/username`
- Auth: none declared

A new username: the account as it now is, or 422 `invalid-username` for
its shape and 409 `username-taken` for one in use (any case) or reserved.

## Response `200`

Successful Response

- MeOut: The signed-in account, as `/api/account/me` and every sign-in answer it.
  - `id` integer, required
  - `username` string, required
  - `email` string, nullable, required
  - `emailVerified` boolean, required
  - `twoFactor` boolean, required
  - `methods` MethodsOut, required: The ways this account can sign in.
    - `password` boolean, required
    - `google` boolean, required
    - `steam` boolean, required
    - `epic` boolean, required
  - `platforms` string[], required
  - `createdAt` string, date-time, required

---

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